This book is about DC electric motors and their use in Arduino and Raspberry Pi Zero W based projects. The book includes many tested and working projects where each project has the following sub-headings:
Title of the project
Description of the project
Block diagram
Circuit diagram
Project assembly
Complete program listing of the project
Full description of the program
The projects in the book cover the standard DC motors, stepper motors, servo motors, and mobile robots. The book is aimed at students, hobbyists, and anyone else interested in developing microcontroller based projects using the Arduino Uno or the Raspberry Pi Zero W.
One of the nice features of this book is that it gives complete projects for remote control of a mobile robot from a mobile phone, using the Arduino Uno as well as the Raspberry Pi Zero W development boards. These projects are developed using Wi-Fi as well as the Bluetooth connectivity with the mobile phone. Readers should be able to move a robot forward, reverse, turn left, or turn right by sending simple commands from a mobile phone. Full program listings of all the projects as well as the detailed program descriptions are given in the book. Users should be able to use the projects as they are presented, or modify them to suit to their own needs.
The Arduino Uno is an open-source microcontroller development system encompassing hardware, an Integrated Development Environment (IDE), and a vast number of libraries. It is supported by an enormous community of programmers, electronic engineers, enthusiasts, and academics. The libraries in particular really smooth Arduino programming and reduce programming time. What’s more, the libraries greatly facilitate testing your programs since most come fully tested and working.
The Raspberry Pi 4 can be used in many applications such as audio and video media devices. It also works in industrial controllers, robotics, games, and in many domestic and commercial applications. The Raspberry Pi 4 also offers Wi-Fi and Bluetooth capability which makes it great for remote and Internet-based control and monitoring applications.
This book is about using both the Raspberry Pi 4 and the Arduino Uno in PID-based automatic control applications. The book starts with basic theory of the control systems and feedback control. Working and tested projects are given for controlling real-life systems using PID controllers. The open-loop step time response, tuning the PID parameters, and the closed-loop time response of the developed systems are discussed together with the block diagrams, circuit diagrams, PID controller algorithms, and the full program listings for both the Raspberry Pi and the Arduino Uno.
The projects given in the book aim to teach the theory and applications of PID controllers and can be modified easily as desired for other applications. The projects given for the Raspberry Pi 4 should work with all other models of Raspberry Pi family.
The book covers the following topics:
Open-loop and closed-loop control systems
Analog and digital sensors
Transfer functions and continuous-time systems
First-order and second-order system time responses
Discrete-time digital systems
Continuous-time PID controllers
Discrete-time PID controllers
ON-OFF temperature control with Raspberry Pi and Arduino Uno
PID-based temperature control with Raspberry Pi and Arduino Uno
PID-based DC motor control with Raspberry Pi and Arduino Uno
PID-based water level control with Raspberry Pi and Arduino Uno
PID-based LED-LDR brightness control with Raspberry Pi and Arduino Uno
The Arduino Uno is an open-source microcontroller development system encompassing hardware, an Integrated Development Environment (IDE), and a vast number of libraries. It is supported by an enormous community of programmers, electronic engineers, enthusiasts, and academics. The libraries in particular really smooth Arduino programming and reduce programming time. What’s more, the libraries greatly facilitate testing your programs since most come fully tested and working.
The Raspberry Pi 4 can be used in many applications such as audio and video media devices. It also works in industrial controllers, robotics, games, and in many domestic and commercial applications. The Raspberry Pi 4 also offers Wi-Fi and Bluetooth capability which makes it great for remote and Internet-based control and monitoring applications.
This book is about using both the Raspberry Pi 4 and the Arduino Uno in PID-based automatic control applications. The book starts with basic theory of the control systems and feedback control. Working and tested projects are given for controlling real-life systems using PID controllers. The open-loop step time response, tuning the PID parameters, and the closed-loop time response of the developed systems are discussed together with the block diagrams, circuit diagrams, PID controller algorithms, and the full program listings for both the Raspberry Pi and the Arduino Uno.
The projects given in the book aim to teach the theory and applications of PID controllers and can be modified easily as desired for other applications. The projects given for the Raspberry Pi 4 should work with all other models of Raspberry Pi family.
The book covers the following topics:
Open-loop and closed-loop control systems
Analog and digital sensors
Transfer functions and continuous-time systems
First-order and second-order system time responses
Discrete-time digital systems
Continuous-time PID controllers
Discrete-time PID controllers
ON-OFF temperature control with Raspberry Pi and Arduino Uno
PID-based temperature control with Raspberry Pi and Arduino Uno
PID-based DC motor control with Raspberry Pi and Arduino Uno
PID-based water level control with Raspberry Pi and Arduino Uno
PID-based LED-LDR brightness control with Raspberry Pi and Arduino Uno
Over 180 Projects with Raspberry Pi, Pico W, Arduino, and ESP32
This bundle contains the Universal Maker Sensor Kit, which consists of many sensors, actuators, displays, and motors. It’s perfect for environmental monitoring, smart home projects, robotics, and game controllers.
The new Elektor book describes the design of many projects using the kit together with the popular Raspberry Pi, Raspberry Pi Pico W, Arduino Uno, and the ESP32 family of development boards. You can choose any of these development boards for your projects and either use the provided programs as they are, or modify these programs to suit your applications.
This bundle contains:
Book: Universal Maker Sensor Kit (normal price: €45)
Universal Maker Sensor Kit for Raspberry Pi, Pico W, Arduino, ESP32 (normal price: €70)
Book: Universal Maker Sensor Kit
Learn to use more than 35 Sensors and Actuators with C++, Python, and MicroPython
This book contains over 180 projects for all four major development boards (Arduino, Raspberry Pi, Pico W, and ESP32). Depending on the development board, projects are available in the C, Python, or MicroPython programming languages.
The project titles, brief descriptions, wiring diagrams, and full program listings together with their detailed descriptions are given in the guide.
Universal Maker Sensor Kit (for Raspberry Pi, Pico W, Arduino, ESP32)
Discover endless creativity with the Universal Maker Sensor Kit, designed for use with Raspberry Pi, Pico W, Arduino, and ESP32. This versatile kit offers compatibility across popular development platforms, including Arduino Uno R4 Minima/WiFi, Uno R3, Mega 2560, Raspberry Pi 5, 4, 3B+, 3B, Zero, Pico W, and ESP32.
Featuring over 35 sensors, actuators, and displays, it's perfect for projects ranging from environmental monitoring and smart home automation to robotics and interactive gaming. Step-by-step tutorials in C/C++, Python, and MicroPython guide beginners and experienced makers alike through 169 exciting projects.
Features
Wide Compatibility: Fully supports Arduino (Uno R3, Uno R4 Minima/WiFi, Mega 2560), Raspberry Pi (5, 4, 3B+, 3B, Zero, Pico W), and ESP32, enabling extensive flexibility across numerous development platforms. Includes instructions for building 169 projects.
Comprehensive Components: Features more than 35 sensors, actuators, and display modules suitable for diverse projects such as environmental monitoring, smart home automation, robotics, and interactive game controllers.
Detailed Tutorials: Provides clear, step-by-step tutorials covering Arduino, Raspberry Pi, Pico W, ESP32, and each included component. Tutorials are available in C/C++, Python, and MicroPython, catering effectively to both beginners and experienced makers.
Suitable for All Skill Levels: Offers structured projects designed to guide users seamlessly from beginner to advanced proficiency in electronics and programming, enhancing creativity and technical expertise.
Kit includes
Breadboard
Button Module
Capacitive Soil Moisture Module
Flame Sensor Module
Gas/Smoke Sensor Module (MQ2)
Gyroscope & Accelerometer Module (MPU6050)
Hall Sensor Module
Infrared Speed Sensor Module
IR Obstacle Avoidance Sensor Module
Joystick Module
PCF8591 ADC DAC Converter Module
Photoresistor Module
PIR Motion Module (HC-SR501)
Potentiometer Module
Pulse Oximeter and Heart Rate Sensor Module (MAX30102)
Raindrop Detection Module
Real Time Clock Module (DS1302)
Rotary Encoder Module
Temperature Sensor Module (DS18B20)
Temperature and Humidity Sensor Module (DHT11)
Temperature, Humidity & Pressure Sensor (BMP280)
Time of Flight Micro-LIDAR Distance Sensor (VL53L0X)
Touch Sensor Module
Ultrasonic Sensor Module (HC-SR04)
Vibration Sensor Module (SW-420)
Water Level Sensor Module
I²C LCD 1602
OLED Display Module (SSD1306)
RGB LED Module
Traffic Light Module
5 V Relay Module
Centrifugal Pump
L9110 Motor Driver Module
Passive Buzzer Module
Servo Motor (SG90)
TT Motor
ESP8266 Module
JDY-31 Bluetooth Module
Power Supply Module
Documentation
Online Tutorial
For a limited time, the Joy-Pi Advanced is available in a great-value bundle with a Raspberry Pi 4 (8 GB)!
The Joy-Pi Advanced is a compact and powerful device that allows you to realize your projects quickly and easily. Whether you already have a lot of experience, or next to none, the Joy-Pi Advanced lets you unleash your creativity. Thanks to its compatibility with a wide range of platforms, including Raspberry Pi, Raspberry Pi Pico, Arduino Nano, BBC micro:bit, and NodeMCU ESP32, you can easily and quickly access your preferred platform.
In addition, the Joy-Pi Advanced features more than 30 stations, lessons, and modules, giving you an unlimited variety of ways to get your projects done. With the self-developed learning center, you can not only improve your skills but also create new projects. The learning center offers a wealth of information and tutorials that will guide you step by step through your projects.
Joy-Pi Advanced is characterized in particular by its intelligent switch units, which allow an extended use of the available pins. A total of three switch units are integrated, each equipped with 12 individual switches that provide precise control of the connected sensors and modules. This system solves the well-known problem of limited pin count that occurs with conventional microcontrollers. The switch units allow you to operate a large number of sensors and modules in parallel by switching them on and off individually. This simulates multiple pin assignment, allowing you to exploit the full power of your projects without compromising functionality.
By combining innovative adapter boards and the micro:bit slot, you can achieve seamless compatibility with a wide range of microcontrollers such as Raspberry Pi Pico, NodeMCU ESP32, micro:mit and Arduino Nano. The specially developed adapter boards are designed to perfectly match the respective microcontroller. By plugging the microcontroller onto the appropriate adapter board and then plugging it into the micro:bit slot, the Joy-Pi Advanced quickly and easily becomes compatible with the different microcontrollers. This allows seamless integration of your preferred platform and the ability to combine the strengths of the different microcontrollers in your projects. This way, you can fully focus on your creative projects without worrying about the compatibility of different microcontrollers. The Joy-Pi Advanced simplifies the development process and gives you the possibility to design your projects flexibly and individually.
Features
Highly integrated development platform & learning center
Fast, easy & wireless combination of various sensors & actuators
Installation option for Raspberry Pi 4
Compatible with various microcontrollers
Self-developed, didactic learning platform for Raspberry Pi & Windows
Specifications
Compatible to
Raspberry Pi 4, Arduino Nano, NodeMCU ESP32, BBC micro:bit, Raspberry Pi Pico
Installed sensors, actuators & components
39
Learning platform
Over 40 entries in the know-ledge database, 10 projects, 10 learning tasks, 14 visions
Displays
7-segment display, 16x2 display, 1.8“ TFT display, 0.96" OLED display, 8x8 RGB matrix
Sensors
DS18B20, shock sensor, hall sensor, barometer, sound sensor, gyroscope, PIR sensor, Light barrier, NTC, Light sensor, 6x touch sensor, color sensor, ultrasonic distance sensor, DHT11 temperature & humidity sensor
Control
Joystick, 5x switches, potentiometer, rotary encoder, 4x4 button matrix, relays, PWM fan
Motors
Servo interface, Stepper motor interface, Vibration motor
Measuring & conversion modules
Analog-Digital Converter, Level converter, voltmeter, Variable voltage supply
Other components
RTC real time clock, buzzer, EEPROM memory, infrared receiver, breadboard, RFID reader
Adapter boards
Adapter for NodeMCU ESP32, Arduino Nano & Raspberry Pi Pico, Board connectors for Raspberry Pi & External Boards
Electronic components
Infrared remote control, RFID chip, RFID card, 6x alligator clips, microSD card reader, servo motor, stepper motor, 32 GB microSD card
Components
40x resistors, 3x green LEDs, 3x yellow LEDs, 3x red LEDs, 1x transistor, 5x buttons, 1x potentiometer, 2x capacitors
Other accessories
Screw assortment, screwdriver, accessory storage bag, power supply & power cable, servo mount
Power supply
Built-in power supply: 36 W, 12 V, 3 A Case connector: Small device plug C8
Voltage outputs
12 V, 5 V, 3.3 V, Variable voltage output (2-11 V)
Data buses & signal outputs
I²C, SPI, Analog to digital converter
Battery (RTC)
CR2032
Dimensions
327 x 200 x 52 mm
Included
Raspberry Pi 4 (8 GB RAM)
Downloads
Joy-Pi website
Datasheet
Manual
Discover endless creativity with the Universal Maker Sensor Kit, designed for use with Raspberry Pi, Pico W, Arduino, and ESP32. This versatile kit offers compatibility across popular development platforms, including Arduino Uno R4 Minima/WiFi, Uno R3, Mega 2560, Raspberry Pi 5, 4, 3B+, 3B, Zero, Pico W, and ESP32.
Featuring over 35 sensors, actuators, and displays, it's perfect for projects ranging from environmental monitoring and smart home automation to robotics and interactive gaming. Step-by-step tutorials in C/C++, Python, and MicroPython guide beginners and experienced makers alike through 169 exciting projects.
Features
Wide Compatibility: Fully supports Arduino (Uno R3, Uno R4 Minima/WiFi, Mega 2560), Raspberry Pi (5, 4, 3B+, 3B, Zero, Pico W), and ESP32, enabling extensive flexibility across numerous development platforms. Includes instructions for building 169 projects.
Comprehensive Components: Features more than 35 sensors, actuators, and display modules suitable for diverse projects such as environmental monitoring, smart home automation, robotics, and interactive game controllers.
Detailed Tutorials: Provides clear, step-by-step tutorials covering Arduino, Raspberry Pi, Pico W, ESP32, and each included component. Tutorials are available in C/C++, Python, and MicroPython, catering effectively to both beginners and experienced makers.
Suitable for All Skill Levels: Offers structured projects designed to guide users seamlessly from beginner to advanced proficiency in electronics and programming, enhancing creativity and technical expertise.
Included
Breadboard
Button Module
Capacitive Soil Moisture Module
Flame Sensor Module
Gas/Smoke Sensor Module (MQ2)
Gyroscope & Accelerometer Module (MPU6050)
Hall Sensor Module
Infrared Speed Sensor Module
IR Obstacle Avoidance Sensor Module
Joystick Module
PCF8591 ADC DAC Converter Module
Photoresistor Module
PIR Motion Module (HC-SR501)
Potentiometer Module
Pulse Oximeter and Heart Rate Sensor Module (MAX30102)
Raindrop Detection Module
Real Time Clock Module (DS1302)
Rotary Encoder Module
Temperature Sensor Module (DS18B20)
Temperature and Humidity Sensor Module (DHT11)
Temperature, Humidity & Pressure Sensor (BMP280)
Time of Flight Micro-LIDAR Distance Sensor (VL53L0X)
Touch Sensor Module
Ultrasonic Sensor Module (HC-SR04)
Vibration Sensor Module (SW-420)
Water Level Sensor Module
I²C LCD 1602
OLED Display Module (SSD1306)
RGB LED Module
Traffic Light Module
5 V Relay Module
Centrifugal Pump
L9110 Motor Driver Module
Passive Buzzer Module
Servo Motor (SG90)
TT Motor
ESP8266 Module
JDY-31 Bluetooth Module
Power Supply Module
Documentation
Online Tutorial
This complete Raspberry Pi Pico microcontroller programming course features a textbook, a component kit, hands-on projects, and a comprehensive online course with simulations. It is ideal for step-by-step learning of embedded systems programming in MicroPython using a practical, hands-on approach.
A Practical Introduction to Embedded Systems with the Raspberry Pi Pico
This course is designed for people who are new to embedded systems and looking for a structured, example-driven way to get started.
A kit of parts comprising LEDs and resistors, switches, sensors and actuators, displays, a breadboard and wires, and more is included. These are used in the course to illustrate example applications.
No prior experience with Arduino or embedded development is required. Each section features hands-on examples and mini projects designed to reinforce key concepts and inspire deeper exploration. By the end of the course, you’ll be able not only to reproduce the examples but also to build on them with your own ideas and applications.
What Will You Learn?
Microcontroller programming in MicroPython with the Raspberry Pi Pico using the Thonny IDE
Working with Digital I/O, read buttons and encoders, control LEDs and relays
Read analog inputs, voltages, and analog sensors
Generating analog output signals and PWM
Use serial communication like UART, I²C and SPI to control displays and read digital sensors and SD cards
Managing time
Working with interrupts
Real-time sensor input and control via buttons, LEDs, and displays
Control actuators like relays and servo motors
Who Is It For?
Students and self-learners exploring embedded systems
Makers and IoT enthusiasts looking to improve their hardware skills
Educators and trainers seeking ready-to-teach material
What's Inside the Box?
Access to the full course on the Elektor Academy Pro Learning Platform
Raspberry Pi Pico microcontroller board + USB cable
Book: Programming Microcontrollers in MicroPython
Downloadable project files for every module
Component Box:
2× LED, red, 5 mm
LED, green, 5 mm
3× Resistor, 470 Ω, 0.25 W
LDR
Potentiometer, 10 kΩ, linear
Pushbutton
Rotary encoder module
Relay module
DHT22 Humidity & Temperature Sensor
TM1637-compatible 4-digit 7-segment display
MPU-6050 IMU with headers
SSD1306-compatible I²C OLED display
Micro SD card adapter with header
Buzzer
SG90 Micro Servo
ILI9341-compatible SPI 240×320 TFT display
20× Jumper wires
Breadboard
All Programming Courses (and differences in content)
Course
Arduino
Raspberry Pi Pico with Arduino C/C++
ESP32 with Arduino C/C++
Raspberry Pi Pico with MicroPython
ESP32 with MicroPython
Online Course
Access to Arduino Course
Access to Pico with Arduino C/C++ Course
Access to ESP32 with Arduino C/C++ Course
Access to Pico with MicroPython Course
Access to ESP32 with MicroPython Course
Board
Uno R3
Raspberry Pi Pico
ESP32
Raspberry Pi Pico
ESP32
Book
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in MicroPython
Programming Microcontrollers in MicroPython
Kit
40-piece Component Box
40-piece Component Box
40-piece Component Box
40-piece Component Box
40-piece Component Box
This complete Raspberry Pi Pico microcontroller programming course features a textbook, a component kit, hands-on projects, and a comprehensive online course with simulations. It is ideal for step-by-step learning of embedded systems programming with Arduino using a practical, hands-on approach.
A Practical Introduction to Embedded Systems with the Raspberry Pi Pico
This course is designed for people who are new to embedded systems and looking for a structured, example-driven way to get started.
A kit of parts comprising LEDs and resistors, switches, sensors and actuators, displays, a breadboard and wires, and more is included. These are used in the course to illustrate example applications.
No prior experience with Arduino or embedded development is required. Each section features hands-on examples and mini projects designed to reinforce key concepts and inspire deeper exploration. By the end of the course, you’ll be able not only to reproduce the examples but also to build on them with your own ideas and applications.
What Will You Learn?
Microcontroller programming in C/C++ with the Raspberry Pi Pico using the Arduino IDE
Working with Digital I/O, read buttons and encoders, control LEDs and relays
Read analog inputs, voltages, and analog sensors
Generating analog output signals and PWM
Use serial communication like UART, I²C and SPI to control displays and read digital sensors and SD cards
Managing time
Working with interrupts
Real-time sensor input and control via buttons, LEDs, and displays
Control actuators like relays and servo motors
Who Is It For?
Students and self-learners exploring embedded systems
Makers and IoT enthusiasts looking to improve their hardware skills
Educators and trainers seeking ready-to-teach material
What's Inside the Box?
Access to the full course on the Elektor Academy Pro Learning Platform
Raspberry Pi Pico microcontroller board + USB cable
Book: Programming Microcontrollers in C/C++ Using Arduino
Downloadable project files for every module
Component Box:
2× LED, red, 5 mm
LED, green, 5 mm
3× Resistor, 470 Ω, 0.25 W
LDR
Potentiometer, 10 kΩ, linear
Pushbutton
Rotary encoder module
Relay module
DHT22 Humidity & Temperature Sensor
TM1637-compatible 4-digit 7-segment display
MPU-6050 IMU with headers
SSD1306-compatible I²C OLED display
Micro SD card adapter with header
Buzzer
SG90 Micro Servo
ILI9341-compatible SPI 240×320 TFT display
20× Jumper wires
Breadboard
All Programming Courses (and differences in content)
Course
Arduino
Raspberry Pi Pico with Arduino C/C++
ESP32 with Arduino C/C++
Raspberry Pi Pico with MicroPython
ESP32 with MicroPython
Online Course
Access to Arduino Course
Access to Pico with Arduino C/C++ Course
Access to ESP32 with Arduino C/C++ Course
Access to Pico with MicroPython Course
Access to ESP32 with MicroPython Course
Board
Uno R3
Raspberry Pi Pico
ESP32
Raspberry Pi Pico
ESP32
Book
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in MicroPython
Programming Microcontrollers in MicroPython
Kit
40-piece Component Box
40-piece Component Box
40-piece Component Box
40-piece Component Box
40-piece Component Box
ModbusRTU and ModbusTCP examples with the Arduino Uno and ESP8266
Introduction to PLC programming with OpenPLC, the first fully open source Programmable Logic Controller on the Raspberry Pi, and Modbus examples with Arduino Uno and ESP8266
PLC programming is very common in industry and home automation. This book describes how the Raspberry Pi 4 can be used as a Programmable Logic Controller. Before taking you into the programming, the author starts with the software installation on the Raspberry Pi and the PLC editor on the PC, followed by a description of the hardware.
You'll then find interesting examples in the different programming languages complying with the IEC 61131-3 standard. This manual also explains in detail how to use the PLC editor and how to load and execute the programs on the Raspberry Pi. All IEC languages are explained with examples, starting with LD (Ladder Diagram) over ST (Structured Control Language) to SFC (Special Function Chart). All examples can be downloaded from the author's website.
Networking gets thorough attention too. The Arduino Uno and the ESP8266 are programmed as ModbusRTU or ModbusTCP modules to get access to external peripherals, reading sensors and switching electrical loads. I/O circuits complying with the 24 V industry standard may also be of interest for the reader.
The book ends with an overview of commands for ST and LD. After reading the book, the reader will be able to create his own controllers with the Raspberry Pi.
AI in Practice
Dive into the fascinating world of robotics and automation!
This Elektor Special shows you how to build your own robots with creativity, a little know-how, and affordable technology. From your first DIY project with Arduino or Raspberry Pi to intelligent systems with AI – this issue makes modern robotics understandable and accessible.
Discover practical instructions, inspiring projects, and exciting insights into the maker scene. Learn how experimentation, community, and openness give rise to true innovation – and why robotics is so much more than just a technical hobby.
Contents
Imagination turns into reality
Arduino-controlled Drawing Robot
GalaxyRVR Mars Rover Kit for Arduino
YDLIDAR X4Pro Lidar
xHuskyLens AI Camera
DOF Robot Arm with Raspberry Pi Pico
Manufacturing Robots with Fischertechnik
Pneumatic Industrial Robot
Why Do We Keep Building Robot Dogs?
Elektor Mini-Wheelie
Robot Vehicles and Autonomous Driving
,
by Udo Bormann
Is the Pironman 5 the Best Raspberry Pi 5 Case for Cooling and Performance? A Detailed Review
The Raspberry Pi 5 is a powerhouse in a tiny package, but as with any performance-driven board, cooling and expandability are key factors in unlocking its...