Open-Source-Code mit Arduino IDE und PlatformIO
Autonomes Fahren: GPS, Accelerometer, Gyroskop
PS3-Controller
Mikrocontroller wie der Arduino und Einplatinenrechner wie der Raspberry Pi haben sich zu beliebten Komponenten entwickelt. Dritter im Bunde ist der ESP32 der Firma Espressif. Mikrocontroller dieser Baureihe zeichnen sich durch eine Vielzahl implementierter Funktionen aus, die bei einem Arduino konventioneller Prägung mit einem Atmel-AVR-Mikrocontroller erst mit weiterer Hardware möglich sind. Prominentes Beispiel sind hier die WiFi- und Bluetooth-Funktionalitäten. Gegenüber einem Raspberry Pi zeichnen sie sich durch einen deutlich geringeren Preis aus.
Allgemeine Informationen für die Realisierung eines Roboterauto-Projekts mit dem ESP32 sind leicht zu finden. Dabei handelt es sich aber oft nur um Ausführungen zu einem Teilaspekt, ohne inhaltliche oder funktionale Abstimmung. So ist nicht nur die Beschaffung der benötigten Informationen mühselig und zeitaufwändig, sie kann auch außerordentlich fehlerträchtig sein.
Ansatzpunkt dieses Buches ist, diese Lücke zu schließen. Es geht auf verschiedene Möglichkeiten eines Chassis ein, vermittelt nötige Kenntnisse und führt schrittweise von einer einfachen Motorsteuerung zu einem komplexen sensor- und sprachgesteuerten Roboterauto. Hacks rund um GPS und eine PlayStation 3 runden die Sache ab.
Inhalt
Bei der Reihenfolge der Kapitel wurde versucht – beginnend bei der Darstellung von grundlegenden Informationen – über die Lösung einfacher Aufgaben zu etwas anspruchsvolleren Techniken zu führen.
Der Mikrocontroller ESP32
Die Software erstellen
Die Stromversorgung
Rund um die Hardware
Das Chassis
Der Gleichstrommotor
Kabellose Steuerung über WiFi
Mit Sensoren Hindernisse erkennen
Eine eigene Roboterauto-App
Servo und Lichtsensor
GPS
Accelerometer / Gyroskop
PS3-Controller
Roboterauto-App
Hinweis zur Software
Die Dateien haben das Suffix (.cpp). Grund ist die Entwicklung mit PlatformIO. Mit Copy & Paste sollten sie auch in der Arduino-IDE verwendet werden können.
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
59 Experiments with Arduino IDE and Python
The main aim of this book is to teach the Arduino IDE and MicroPython programming languages in ESP32 based projects, using the highly popular ESP32 DevKitC development board. Many simple, basic, and intermediate level projects are provided in the book using the Arduino IDE with ESP32 DevKitC. All projects have been tested and work. Block diagrams, circuit diagrams, and complete program listings of all projects are given with explanations. In addition, several projects are provided for programming the ESP32 DevKitC using MicroPython. The projects provided in this book are designed to teach the following features of the ESP32 processor:
GPIOs
Touch sensors
External interrupts
Timer interrupts
I²C and I²S
SPI
PWM
ADC
DAC
UART
Hall sensor
Temperature sensor
Infrared controller
Reading and writing to SD card
Reading and writing to flash memory
RTC timer
Chip ID
Security and encryption
Wi-Fi and network programming
Bluetooth BLE programming
Communication mobile devices
Low power design
ESP-IDF programming
The projects have been organized with increasing levels of difficulty. Readers are encouraged to tackle the projects in the order given. A specially prepared hardware kit (SKU 18305) is available from Elektor. With the help of this hardware, it should be easy and fun to build the projects in this book.
This bundle includes both volumes of "KiCad Like a Pro" (4th edition 2024). In Fundamentals and Projects (normal price: €39.95), you'll learn how to use KiCad through a practical approach, helping you quickly become productive and start designing your own boards. Advanced Projects and Recipes (normal price: €34.95) allows you to practice your new KiCad skills by challenging yourself with a series of real-world projects.
The latest iteration of KiCad, the world’s best free-to-use Printed Circuit Board tool, is packed with features usually found only in expensive commercial CAD tools. This modern, cross-platform application suite built around schematic and design editors, with auxiliary applications is a stable and mature PCB tool. KiCad 8 is a perfect fit for electronic engineers and makers.
Here are the most significant improvements and features in KiCad 8, both over and under the hood:
Modern user interface, completely redesigned from earlier versions
Improved and customizable electrical and design rule checkers
Theme editor allowing you to customize KiCad on your screen
Ability to import projects from Eagle, CADSTART, and more
Python scripting API
Improved integrated SPICE circuit simulator
Multi-sheet schematics
Filters define selectable elements
Enhanced interactive router helps you draw single tracks and differential pairs with precision
New or enhanced tools to draw tracks, measure distances, tune track lengths, etc.
Advanced interactive router
Built-in bill of materials generator
Realistic ray-tracing capable 3D viewer
Customizable teardrops
Plug-in manager for quick installation of themes, libraries and functionalities such as autorouters and BOM generators
The first book KiCad Like A Pro – Fundamentals and Projects will teach you to use KiCad through a practical approach. It will help you become productive quickly and start designing your own boards. Example projects illustrate the basic features of KiCad, even if you have no prior knowledge of PCB design. The author describes the entire workflow from schematic entry to the intricacies of finalizing the files for PCB production and offers sound guidance on the process.
The second book KiCad Like A Pro – Advanced Projects and Recipes will help you to practice your new KiCad skills by challenging you in a series of real-world projects. The projects are supported by a comprehensive set of recipes with detailed instructions on how to achieve a variety of simple and complex tasks. Design the PCBs for a solar power supply, an LED matrix array, an Arduino-powered datalogger, and a custom ESP32 board. Understand the finer details of the interactive router, how to manage KiCad project teams with Git, how to use an autorouter on 2 and 4-layer PCBs, and much more.
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sie sind noch kein Mitglied? Hier klicken!
USB-MessadapterStrom und Signalqualität von USB-Anschlüssen testen
4...20 mA Stromausgang für Arduino UnoEine zuverlässige, EMI-unempfindliche Stromschleifenschnittstelle
Automatische StaubsaugersteuerungHalten Sie den Arbeitsbereich Ihrer Werkzeuge sauber
DDS-Generator mit ATtiny
Opamp-Tester V2Neue Platine – nun auch für SMDs geeignet
550-mW-„Lamp“-AudioverstärkerDer warme Klang von Röhren – ganz einfach
SicherungswächterSicherung mit Blink-LED überwachen
Hochwertiger RIAA-VorverstärkerHolen Sie das Beste aus Ihren Vinyl-Schallplatten heraus!
Drahzahlkalibrator für PlattenspielerEin Arduino-basierter Stroboskopgenerator mit 100–120 Hz
Infrarot-fernbedienbarer DimmerSteuern Sie Ihre Halogen- oder LED-Stehleuchte mühelos und mit Stil
Wie man switch…case mit Strings in C++/Arduino IDE verwendet
Magnetfindermit einfachem Hall-Effekt-Sensor
Intelligenter Einschaltknopf für Raspberry PiEine Lösung für Raspberry Pi bis zum Modell 4
Essenzielle Maker-TippsProfessionelle Einblicke für den Maker-Alltag
Praktische Projekte mit dem 555-TimerGleichstrommotorsteuerung und Reaktionszeitschallungen
Einfacher AC-Last-Ein-MonitorEnergie sparen mit einem einfachen Gerät
Powerbanks parallel schaltenEine durchgehende Stromversorgung für drei Tage
VFO bis 15 MHzMit Raspberry Pi Pico
Geigen-Stimmgerät mit ATtiny202
Elektor Classics: Video-Eingangsverstärker für S/W-Fernseher
Kapazitätsmesser20 pF bis 600 nF
Quasi-analoges Uhrwerk MkIIZwei LED-Ringe für Stunden und Minuten
Sie können alles tun, was Sie wollen(mit dem Arduino-Ökosystem an Ihrer Seite)
Neon-Würfel mit Glimmlampen
Elektor Classics: Video-Verstärker
Inspirierende Hardware-Designs für Ihre ESPs
Elektor Classics: RTTY-Abgleichanzeige
RGB-LEDs mit integrierter SteuerschaltungLicht mit Präzision: ICLEDs setzen Maßstäbe
Experiment: Auf dem Weg zu einem Mixed-Signal-Theremin?Moderne Time-of-Flight-Sensoren im Zusammenspiel mit dem zeitlosen XR2206-Analoggenerator
ESP32-Audio-Transceiver-Board (Teil 1)SD-Karten-WAV-Player-Demo
Infografiken: Schaltungen & Schaltungsdesign 2025
Kleiner Audio-MixerEinfaches und vielseitiges skalierbares Design
Intelligenter Treppenlicht-TimerEffiziente Lichtsteuerung zur Reduzierung des Energieverbrauchs
Machen Sie Ihre Rollläden smartVelux-Hardware steuern mit ESP32 und MQTT
Solid-State-FußwärmerEnergieeffizienter Komfort
Ist der M5Stamp Fly Quadcopter der nächste Tello?
Erhöhung der WLAN-Reichweite des ESP32-C3 SuperMiniEine einfache und wirkungsvolle Antennenmodifikation
ZD-8968 Heißluft-LötstationEin preisgünstiges Arbeitstier oder nur heiße Luft?
Parksensor-TesterDefekte beim PDC-System am Auto finden
In dit boek worden een serie spannende en leuke projecten voor de Arduino behandeld, zoals een stil alarm, mensensensor, lichtmeter, besturing van een motor, internet en draadloze bediening (via een radioverbinding). In tegenstelling tot veel gratis projecten op internet zijn de projecten in dit boek in de praktijk getest, en werken gegarandeerd!
U kunt dit boek gebruiken als projectenboek, en de 45 projecten nabouwen en in de praktijk inzetten. Door de duidelijke uitleg, schema's en zelfs foto's van de opstelling op is het nabouwen een erg leuke bezigheid. De foto's zijn gemaakt van een werkende opstelling, dus u weet zeker dat ze kloppen.
U kunt de projecten in dit boek ook met elkaar combineren om zo uw eigen projecten te maken. Per project wordt duidelijk uitgelegd waarom het project op die manier is uitgevoerd. Al doende leert u veel over het project en de gebruikte onderdelen, en kunt u het project zelf aanpassen en uitbreiden naar uw eigen wensen.
Daarnaast is het boek ook als naslagwerk inzetbaar. Via de index vindt u gemakkelijk projecten die als voorbeeld voor het gebruik van C++ opdrachten en Arduino-functionaliteit kunnen dienen. Zelfs als u alle projecten gemaakt hebt zal dit boek om die reden nog lang een plekje naast uw PC behouden.
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
In ESP32 programmeren voor beginners bekijken we de ESP32 en zijn voorganger, de ESP8266. Deze kleine, maar zeer krachtige Chinese chips bestaan uit een processor, geheugen, input- en outputaansluitingen en hebben draadloze netwerktoegang via WiFi.
Met dit boek tonen we hoe de programmeeromgeving Arduino werkt en hoe die kan gebruikt worden met ESP-hardware. Aan de hand van voorbeelden en projecten verduidelijken we hoe de ESP-hardware kan worden toegepast.
In vogelvlucht:
We beschrijven de opbouw van ESP-experimenten.
We tonen hoe displays worden aangesloten.
Eeprom_24c16 demonstreert hoe een externe geheugenchip wordt gebruikt om getallen en tekst op te slaan en weer uit te lezen.
Project Klok is de eenvoudige implementatie van een digitale klok.
We geven een handleiding voor het gebruik van temperatuur- en luchtvochtigheidsensoren.
Webclient laat zien hoe de ESP32 gegevens van het internet kan halen.
Met Webserver kunnen we op afstand met een pc of smartphone gegevens halen uit een ESP32, sensoren uitlezen en toestellen aan- en uitschakelen.
Een NTP-klok haalt tijdinformatie van Tijdserver. Die geeft zowel de tijd als het aantal seconden sinds 1 januari 1900. Het boek beschrijft hoe hieruit de tijd kan worden berekend.
In het laatste hoofdstuk gebruiken we het internet om nauwkeurige weerinformatie en voorspellingen op te vragen.
This book covers a series of exciting and fun projects for the Arduino, such as a silent alarm, people sensor, light sensor, motor control, internet and wireless control (using a radio link). Contrary to many free projects on the internet all projects in this book have been extensively tested and are guaranteed to work!
You can use it as a projects book and build more than 45 projects for your own use. The clear explanations, schematics, and pictures of each project make this a fun activity. The pictures are taken of a working project, so you know for sure that they are correct.
You can combine the projects in this book to make your own projects. To facilitate this, clear explanations are provided on how the project works and why it has been designed the way it has That way you will learn a lot about the project and the parts used, knowledge that you can use in your own projects.
Apart from that, the book can be used as a reference guide. Using the index, you can easily locate projects that serve as examples for the C++ commands and Arduino functionality. Even after you’ve built all the projects in this book, it will still be a valuable reference guide to keep next to your PC.
With Examples for Arduino UNO, Raspberry Pi Pico and ESP32
Programming small electronic systems has never been more accessible. Tasks that once demanded expensive tools, specialized hardware, and deep electrical engineering expertise can now be tackled with low-cost development boards and approachable software. At the centre of this shift is the Arduino environment, which provides a unified and familiar way to program a wide range of microcontroller platforms—from classic AVR boards like the Arduino UNO to modern ARM-based boards such as the Raspberry Pi Pico, and powerful Wi-Fi-enabled devices like the ESP32.
This book introduces embedded programming through the core idea that defines all microcontrollers: reading inputs, processing information, and controlling outputs in a predictable loop. The Arduino environment abstracts much of the hardware complexity, allowing you to focus on behaviour rather than implementation details. With just a few lines of code, you can blink LEDs, read sensors, control motors, and communicate with other devices.
While the Arduino UNO, Raspberry Pi Pico, and ESP32 boards differ greatly in performance and features, they share the same fundamental building blocks: digital and analog I/O, timers, serial communication, PWM, interrupts, and power management. Learning these concepts within the Arduino framework builds skills that transfer easily across platforms and scale toward more advanced applications.
By exploring multiple boards while maintaining a consistent programming approach, this book helps you progress from simple experiments to confidently produce well-structured designs—showing that embedded development can be both practical and enjoyable.
32 neue Projekte, praktische Beispiele und Übungen mit dem Elektor Arduino Nano MCCAB Trainingsboard
Die Elektronik und die Mikrocontrollertechnik bieten die Möglichkeit, kreativ tätig zu sein. Mit diesem Mikrocontroller-Praxiskurs besteht die Möglichkeit, eigene Arduino-Projekte zu realisieren und solche Erfolgsmomente erleben zu können. Im Idealfall funktioniert beim ersten Einschalten alles so, wie man es sich vorgestellt hat. In der Praxis läuft es dagegen selten wie erwartet. Dann braucht man Kenntnisse, um den Grund für das Nichtfunktionieren effizient suchen und finden zu können.
In diesem Buch für Fortgeschrittene steigen wir tief in die Welt der Mikrocontroller und der Arduino IDE ein, um neue Verfahren und Details kennen zu lernen, und erfolgreich noch anspruchsvollere Situationen angehen und lösen zu können.
Mit diesem Buch gibt der Autor dem Leser das nötige Rüstzeug, um eigenständig Projekte zu kreieren und auch schnell Fehler finden zu können. Anstatt nur fertige Lösungen zu bieten, erklärt er die Hintergründe, die verwendete Hardware und die eventuell benötigten Tools. Er stellt Aufgaben, bei denen der Leser seine eigene Kreativität einbringt und den Arduino-Sketch selbst schreibt.
Falls man einmal keine vernünftige Idee hat und nicht weiterkommt, gibt es natürlich zu jedem Projekt und zu jeder Aufgabe einen Lösungsvorschlag mit zugehöriger Software, der im Buch ausführlich kommentiert und erklärt wird.
Sie erfahren mit diesem Praxiskurs mehr über das Innenleben des Arduino Nano und des darauf befindlichen Mikrocontrollers. Sie lernen Hardware-Module kennen, mit denen Sie neue interessante Projekte realisieren werden. Sie beschäftigen sich mit Softwareverfahren wie z. B. "Zustandsmaschinen", durch deren Anwendung sich Aufgabenstellungen oft einfacher und übersichtlicher lösen lassen.
Die zahlreichen praktischen Projekt- und Übungs-Sketche realisieren wir wieder auf dem vom "Mikrocontroller-Praxiskurs für Arduino-Einsteiger" bekannten MCCAB Trainingsboard, das die gesamte Hardware-Peripherie und die Bedienungselemente enthält, die wir für die Ein-/Ausgabe-Operationen unserer Sketche benötigen.
Leser, die das MCCAB Trainingsboard noch nicht besitzen, können die benötigte Hardware separat erwerben, oder alternativ auch auf einem Breadboard aufbauen.
Make your project dreams come true: an odometer for the hamster wheel, a fully automatic control of your ant farm with web interface, or the Sandwich-O-Mat – a machine that toasts and grills sandwiches of your choice.
With the Arduino and the DIY or Maker movement, not only did entry into microcontroller programming become child's play, but a second development also took place: Resourceful developers brought small boards – so-called shields or modules – to the market, which greatly simplified the use of additional hardware. The small modules contain all the important electronic parts to be connected to the microcontroller with a few plug-in cables, eliminating the need for a fiddly and time-consuming assembly on the plug-in board. In addition, it is also possible to handle tiny components that do not have any connecting legs (so-called SMDs).
Projects Discussed
Arduino seeks connection
BMP and introduction to libraries, I²C
Learn I/O basics with the multi-purpose shield
I²C LCD adapter and DOT matrix displays
LCD keypad shield
Level converter
W5100: Internet connection
I/O expansion shield
Relays and solid-state relays
The multi-function shield: A universal control unit
Connecting an SD card reader via SPI
Keys and 7-segment displays
16-bit ADC
MCP4725 DAC
16-way PWM servo driver
MP3 player
GPS data logger using an SD card
Touch sensor
Joystick
SHT31: Temperature and humidity
VEML6070 UV-A sensor
VL53L0X time-of-flight
Ultrasonic distance meter
MAX7219-based LED DOT matrix display
DS3231 RTC
Port expander MCP23017
433 MHz radio
MPU-650 gyroscope
ADXL345 accelerometer
WS2812 RGB LEDs
Power supply
MQ-xx gas sensors
CO2 gas sensor
ACS712 current sensor
INA219 current sensor
L298 motor driver
MFRC522 RFID
28BYJ-48 stepper motor
TMC2209 silent step stick
X9C10x digital potentiometer
ST7735 in a color TFT display
e-Paper display
Bluetooth
Geiger counter
SIM800L GSM module
I²C multiplexer
Controller Area Network