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.
Projekte mit Arduino Uno und Raspberry Pi
In diesem Buch werden Anwendungen von Arduino Uno und Raspberry Pi 4 in praxisnahen Projekten auf Basis von CAN-Bus detailliert beschrieben. Durch den Einsatz von entweder Arduino Uno oder Raspberry Pi in Verbindung mit handelsüblichen CAN-Bus-Schnittstellenmodulen werden die Entwicklung, Fehlersuche und Fehlerbeseitigung sowie die Überprüfung von Projekten auf CAN-Bus-Basis erheblich erleichtert.
Dieses Buch richtet sich an jeden, der mehr über den CAN-Bus lernen möchte und mit den Grundlagen der Elektronik vertraut ist. Hilfreich ist auch Erfahrung mit den Programmiersprachen C und Python sowie mit der Programmierung von Arduino Uno unter Verwendung seiner IDE und von Raspberry Pi zu haben.
Das Buch ist eine nützliche Informationsquelle und ein Nachschlagewerk für jeden, der Antworten auf eine oder mehrere der folgenden Fragen sucht:
Welche Bussysteme stehen für die Automobilindustrie zur Verfügung?
Was sind die Grundprinzipien des CAN-Bus?
Welche Arten von Frames (oder Datenpaketen) stehen in einem CAN-Bussystem zur Verfügung?
Wie können Fehler in einem CAN-Bussystem erkannt werden, und wie zuverlässig ist ein CAN-Bussystem?
Welche Arten von CAN-Bus-Controllern gibt es?
Welches sind die Funktionsprinzipien des MCP2515 CAN-Bus-Controllers?
Wie kann ich ein CAN-Bus-Projekt mit Arduino Uno realisieren?
Wie kann ich Arduino oder Raspberry Pi CAN-Bus-Projekte mit 2 und 3 Knoten erstellen?
Wie kann ich die Daten auf dem CAN-Bus analysieren?
Wie kann ich ein CAN-Bus-Projekt mit Raspberry Pi ausführen?
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
MultiRF Dev BoardA Platform for Evaluating Short- and Long-Range Wireless Protocols
Elektor at 65Disrupting Electronics Since 1961
Wi-Fi-Based Person Detection on an ESP32When Your Router Becomes a Motion Sensor
Wireless ScalesFour Small Scales = One Big Scale
Walter, the Compact IoT ModuleESP32-S3 SoC, LTE-M/NB-IoT 5G Modem, and GNSS Receiver
3- and 4-Wire RTD Sensors ConditioningWith Full-Scale Adjustment and Cable Compensation
3-in-1 2-Channel Oscilloscope/Generator/MultimeterA Review of The Fnirsi 2D15P
electronica Fast Forward 2026 Invites Startups and Industry Partners
EcologgingA Modular Environmental IoT Station for Field Research
Wireless Connectivity in Medical ApplicationsAlways on the Pulse with Bluetooth LE
AudiotronicsHum Reduction
Increasing Agricultural Efficiency with AI Modeling and SensorsBoosting Agricultural Productivity
OPC UA — An OverviewPlatform-Independent Data Exchange
Redox Meter
Instrumentation Amplifier for Physics and Engineering Experiments
Active Differential Audio FiltersFor Professional Crossovers and More
Elektor Community Perspectives on IoT & Sensors
Telegram-Controlled Water Heater Interface ModuleA Solution Based on an ESP32 and Arduino Software
2026: An AI OdysseyWhatever Happened to Fuzzy Logic?
Err-lectronics
Alarm Signal Injector Plus PowerTools for Finding Broken Wires
Vos premiers pas avec l'ESP32-C3 et l'IdOBouton Wi-Fi + relais Wi-FiCloud IdO à la sauce ArduinoDétecteur Geiger-Müller à double tube (extension pour Arduino)Capteur très sensible pour très faible rayonnementDétecteur de CO2 : CO2 GuardUne solution « maison » pour surveiller la qualité de l'airKit de mesure de la qualité de l'air pour Raspberry Pi de MonkMakesMesure de température et de CO2eDémarrer en électronique... (13)Entrée en scène de la diodeTrucs et astuces pour tester les composantsSans appareils de test coûteuxRéduction de la consommation d'énergie de votre repousse-taupesGrâce au remplacement du 555 par un ATtiny13Interrupteur crépusculaire DeLuxUne solution pour une commutation de haute précision, commandée par la lumièreLes défis de la commercialisation des solutions IdOProblématiques de sécurité, d'évolutivité et de concurrenceElektor infographieIoT : le nouveau Graal ?« Je préfère quand même être en filaire »Conseils pour développer une interface 1 Gbit/s dans un environnement industrielLa détection d'objets en temps réel pour les microcontrôleurs grâce à Edge Impulse FOMOTubes à ondes progressivesPeculiar Parts, the SeriesNB-IoTNormes, couvertures, conventions et modulesPasserelle intérieure Dragino LPS8Configuration rapide de la passerelle LoRaWANExplorer les microcontrôleurs ATtiny en utilisant le langage C et le langage assembleurExtrait : Ports d'E/S d'ATtinyÉlectronique interactive : projet 2.0Corrections, mises à jour et courriers des lecteursMise à jour de la balise GPS LoRaRecevoir et afficher la localisation à l'aide d'un Raspberry PiSimulation de circuits avec TINA Design Suite & TINACloudExtrait : oscillateurs sinusoïdauxSur le vifFaçon de pincerInfrastructure graphique WinUI pour les applications WindowsApplication de démonstrationCréation d'interfaces graphiques en Python avec guizeroLa pire des interfacesSystèmes solaires autonomesProduction d'électricité indépendante du réseau10 ans avec le même smartphone ?Et si c'était possible !Hexadoku
KI in der Praxis
Tauchen Sie ein in die faszinierende Welt der Robotik und Automatisierung!
Dieses Elektor Special zeigt, wie Sie mit Kreativität, etwas Know-how und günstiger Technik eigene Roboter bauen können. Vom ersten DIY-Projekt mit Arduino oder Raspberry Pi bis hin zu intelligenten Systemen mit KI – dieses Heft macht moderne Robotik verständlich und greifbar.
Entdecken Sie praxisnahe Anleitungen, inspirierende Projekte und spannende Einblicke in die Maker-Szene. Lernen Sie, wie aus Experimentierfreude, Gemeinschaft und Offenheit echte Innovation entsteht – und warum Robotik weit mehr ist als nur ein technisches Hobby.
Inhalt
Phantasie wird Realität
Arduino-controlled Drawing Robot
GalaxyRVR Mars Rover Kit for Arduino
YDLIDAR X4Pro Lidar
xHuskyLens AI Camera
DOF Robot Arm mit Raspberry Pi Pico
Fertigungsroboter mit Fischertechnik
Pneumatischer Industrieroboter
Warum bauen wir immer wieder Roboterhunde?
Elektor Mini-Wheelie
Roboterfahrzeuge und autonomes Fahren
electronica Fast Forward Start- & Scale-Up AwardsLes préparatifs s'accélèrent !Bluetooth Low Energy avec ESP32-C3 et ESP32Vous n'avez pas toujours besoin de choisir le wifi !Renifleur BLEReconfiguration du dongle USB nRF52840 MDK de makerdiaryCube magique de LED RGBcircuit avec un RP2040Marche/arrêt automatique pour le compresseur de pâte à souderContenu vidéo d'ElektorLivestreams, webinaires et cours pour les ingénieurs et les fabricants professionnelsÉlectrification d'un véloUtilisation d'un kit de modification de vélo électriqueDémarer en électroniqueMultiplication de tensionsSur le vifTransmutationsTeensy 4.0 – comment cette carte peut-elle être aussi rapide ?Ou: La vitesse, ce n'est pas sorcier !Simulation d'amplificateur de puissance audio avec TINA« simuler avant de construire »Développer et utiliser vos nœuds LoRaWAN pour l'Internet des Objets (IdO)Exemple de chapitre : Modules LoRaWAN Dragino LHT65, LDS01 et LDS02Projet 2.0Corrections, mises à jour et courriers des lecteurs5G pour mon propre exploitMaîtrise totale du déploiement de la 5G avec les réseaux cellulaires privésInfographicsLes meilleurs conseils pour développer une interface WiFiComment mon appareil apprend-il à transmettre ?Horloge Tour du Rhin Mod 2Analyseur de spectre audio avec dekatronsUne nouvelle façon d'utiliser les tubes rétroEnvoi de données à TelegramAvec un ESP32 et quelques composantsFiltre coupe-bande de Fliege pour les mesures audioFaites de meilleures mesures avec un filtre coupe-bandeDémontage d'un CO2-mètrePeut-on le bidouiller pour vos projets ?Tout mis ensembleLe transistor unijonction programmable expliquéÉcran tactile rond pour Raspberry PiL'HyperPixel 2.1 Round de PimoroniTélémesure avec détection des pertes de connexionGrâce aux modules nRF24L01+Récepteur FM numérique avec Arduino et TEA5767Restez à l'écoute avec un Arduino NanoConvertir une interface OLED de SPI vers I²CHomeLab ToursUn passe-temps ne prend pas sa retraiteUne décennie d'éthique en électroniqueLe regard de Tessel Renzenbrink sur la société numérique.HexadokuThe Original Elektorized Sudoku
Praktische projecten in analoge elektronica, audio en meer
Ontdek een bijzondere verzameling van meer dan 250 elektronicaprojecten die in Elektor Magazine zijn gepubliceerd en zorgvuldig zijn geselecteerd door de gerenommeerde Elektor-labingenieur Ton Giesberts.
De USB-stick brengt een grote verscheidenheid aan schakelingen, ontwerpen en praktische projectideeën samen die in de loop der jaren door talrijke Elektor-auteurs en engineers zijn ontwikkeld. Dit uitgebreide archief bestrijkt een breed scala aan elektronicatopics en vormt een waardevolle bron van kennis en inspiratie voor engineers, makers, studenten en elektronicahobbyisten.
Meer dan 250 geselecteerde Elektor-projecten
Zorgvuldig samengesteld door Elektor-engineer Ton Giesberts
Ideaal om na te bouwen, te experimenteren en nieuwe ideeën te ontdekken
Ontdek tientallen jaren Elektor-expertise in één uitgebreide projectcollectie.
Highlights
Q-Watt audioversterker
Fortissimo-100 high-end versterker
Buffer bord voor de Raspberry Pi 400
USB-naar-multiprotocol-serieelconverter
DDS-functiegenerator
AC/DC-vermogensmeter
Charge-a-Phone
Specificaties
Geheugen
8 GB
Connectoren
1x USB-A1x USB-C
Systeemeisen
Computer geschikt voor Adobe Reader vanaf versie 7
Webbrowser
ZELFBOUW LIPO-SUPERCHARGER KITvan prototype tot productie
ELEKTOR @ 60gedachten bij zestig jaar elektronica
SIGLENT SDM3045X TAFELMULTIMETER
DC-STROOMKLEMHall-sensor + ferrietkern + Arduino
SOLDEERSTATION 2021makkelijk om te bouwen!
KENNISMAKING MET DE PARALLAX PROPELLER 2 (DEEL 2)de ontwikkelomgeving en de code
WIFI VOOR DE LORA SWITCHgeïntegreerd in Home Assistant met ESPHome
GEEN ANGST VOOR DE CELLULAIRE MODULE!
HOUD DE TIJD BIJ MET ESP32 EN TOGGLwerken met de M5Stack
KENNISMAKING MET HET RASPBERRY PI PICO-BOARD EN DE RP2040
MICROPYTHON VOOR MICROCONTROLLERStechnieken voor kleine displays
12–200 V DC/DC-CONVERTERvoor buizenversterkers
WARMTEZOEKERde Seek Shot Pro warmtebeeldcamera
OBJECTGEORIËNTEERD PROGRAMMERENeen korte inleiding met C++
OOST WEST LAB BEST...waar Kurt Diedrich synthesizers bouwt
JAVA OP DE RASPBERRY PIdeel 1: GPIO’s
DIP-SCHAKELAARSvreemde onderdelen
INTERACTIEFcorrecties & updates || brieven van lezers
WIENS PRODUCT IS HET EIGENLIJK?recht-op-reparatie beweging laat van zich horen
UIT HET LEVEN GEGREPENhet grote blunderboek
MICRO-PROFESSORassembleertaal leren op een Z80
ALLE BEGIN......hoeft niet zo moeilijk te zijn – zelfs als het om condensatoren gaat
HEXADOKUThe Original Elektorized Sudoku
BEELDVERWERKING MET DE NVIDIA JETSON NANO (DEEL 2)Beeldherkenning met Edge Impulse
NIEUWS VAN ELEKTOR JUMPSTARTERNieuwe campagnes
EEN OPEN SOURCE-PLATFORM VOOR GPS-TRACKINGMet Traccar voertuigen volgen zonder gebruik te maken van een cloudserver
JOY-IT LCR-T7 MULTIFUNCTIONELE TESTERVoor passieve componenten, discrete halfgeleiders en IR
RUISSYNTHESIZERVan ruis naar muziek met de PRBSynth1
ALLE BEGIN......speelt verder met de spoel
KENNISMAKING MET NEURONEN IN NEURALE NETWERKEN (DEEL 2)Logische Neuronen
BEVEILIGINGSPROBLEMEN? BESTRIJD VUUR MET VUUR!Met flitslampje beveiligde analoge geheugenuitbreiding voor de verzendbox met manipulatie-indicatie LCR METER POSTER
BLUETOOTH-BAKENS IN DE PRAKTIJKindoor-plaatsbepaling
PROGRAMMEREN IN C OP DE RASPBERRY PICommunicatie via WiFi (een hoofdstuk als voorbeeld)
EMC PRE-COMPLIANCE TEST VOOR UW DC-GEVOED PROJECT (DEEL 2)De hardware en het gebruik ervan
KENNISMAKING MET DE PARALLAX PROPELLER 2 (DEEL 5)Smart Pin-Functie
MODBUS VIA WLAN (DEEL 1)Hardware en programmering
OOST WEST LAB BEST... waar de Junior Computer weer tot leven is gewekt
BOUW ZELF EEN NAUWKEURIGE KALIBRATOR-10 V tot +10 V, 0 tot 40 mA, 0,001%
REVIEW: ARDUINO NANO RP2040 CONNECTRaspberry Pi RP2040 + WiFi + Bluetooth DE FYSIEKE KANT VAN KUNSTMATIGE INTELLIGENTIE
PROJECT 2.0Correcties, Updates en Brieven van lezers
MAAK GUI'S MET PYTHONIntroductie in guizero
CO2-METER-BOUWKIT VOOR IN DE KLASEen ESP8266-project van de University of Applied Sciences Aachen
NOSTALGISCHE MK484 MW/LW-RADIO...Altijd leuk om te bouwen!
ELEKTOR @ 60Laat er licht zijn!
HEXADOKUThe Original Elektorized Sudoku
Projects with Thonny-IDE, uPyCraft-IDE, and ESP32
The 'Python' programming language has enjoyed an enormous upswing in recent years. Not least, various single-board systems such as the Raspberry Pi have contributed to its popularity. But Python has also found widespread use in other fields, such as artificial intelligence (AI) or machine learning (ML). It is obvious, therefore, to use Python or the 'MicroPython' variant for use in SoCs (Systems on Chip) as well.
Powerful controllers such as the ESP32 from Espressif Systems offer excellent performance as well as Wi-Fi and Bluetooth functionality at an affordable price. With these features, the Maker scene has been taken by storm. Compared to other controllers, the ESP32 has a significantly larger flash and SRAM memory, as well as a much higher CPU speed. Due to these characteristics, the chip is not only suitable for classic C applications, but also for programming with MicroPython.
This book introduces the application of modern one-chip systems. In addition to the technical background, the focus is on MicroPython itself. After the introduction to the language, the programming skills learned are immediately put into practice. The individual projects are suitable for use in the laboratory as well as for everyday applications. So, in addition to the actual learning effect, the focus is also on the joy of building complete and useful devices. By using laboratory breadboards, circuits of all kinds can be realized with little effort, turning the testing and debugging of the 100% homebrew projects into an instructive pleasure.
The various applications, such as weather stations, digital voltmeters, ultrasound range finders, RFID card readers or function generators, make the projects presented ideally suited for practical courses or subject and study work in the natural sciences, or in science and technology classes.
40+ Projects using Arduino, Raspberry Pi and ESP32
This book is about developing projects using the sensor-modules with Arduino Uno, Raspberry Pi and ESP32 microcontroller development systems. More than 40 different sensors types are used in various projects in the book. The book explains in simple terms and with tested and fully working example projects, how to use the sensors in your project. The projects provided in the book include the following:
Changing LED brightness
RGB LEDs
Creating rainbow colours
Magic wand
Silent door alarm
Dark sensor with relay
Secret key
Magic light cup
Decoding commercial IR handsets
Controlling TV channels with IT sensors
Target shooting detector
Shock time duration measurement
Ultrasonic reverse parking
Toggle lights by clapping hands
Playing melody
Measuring magnetic field strength
Joystick musical instrument
Line tracking
Displaying temperature
Temperature ON/OFF control
Mobile phone-based Wi-Fi projects
Mobile phone-based Bluetooth projects
Sending data to the Cloud
The projects have been organized with increasing levels of difficulty. Readers are encouraged to tackle the projects in the order given. A specially prepared sensor kit is available from Elektor. With the help of this hardware, it should be easy and fun to build the projects in this book.
UNDERSTANDING THE NEURONS IN NEURAL NETWORKS (PART 1)Artificial Neurons
EMC PRE-COMPLIANCE TEST FOR YOUR DC-POWERED PROJECT (PART 1)Dual DC LISN
ELECTRONIC LOAD FOR DC AND ACUp to 400 V and 10 A (Peak)
STARTING OUT IN ELECTRONICSEasier Than Imagined! ...Taking on the Choke!
IMAGE PROCESSING WITH THE NVIDIA JETSON NANO (PART 1)The Hardware and Software
AN IN-DEPTH LOOK AT MAINS TRANSFORMERSHow Do They Behave When They Are Switched On and Off?
YES WE CAN WITH PICAN 3A CAN Bus HAT for the Raspberry Pi 4
BALCONY POWER PLANTDIY Solar Balcony = Speedy Payback!
IMAGING AND VIDEO-STREAMING WITH A RASPBERRY PI 4The Raspberry Pi High-Quality Camera in Practice
USING DISPLAYS IN RASPBERRY PI PROJECTSSample Chapter: Organic Light Emitting Diode Displays (OLED)
HANDS ON THE PARALLAX PROPELLER 2 (PART 4)Sending Strings
ELEKTOR @ 60A Look Back at Previous Septembers
HOMELAB TOURSIn the Friesian Countryside, Where the Tubes Bloom ...
HYBRIDSPeculiar Parts, the series
A COMPASS ROSE USING THE GY-271Or Why We Move in Figures of Eight to Calibrate a Sensor
FINDING YOUR FOOTPRINTCalculate the Carbon Footprint of Your Electronics
ESP32-CONNECTED THERMOSTATKeep Your Wine at the Right Temperature!
MAGNETIC LEVITATION THE DIGITAL WAYESP32 Pico Replaces the Analog Comparator
ULTIMATE ARDUINO UNO HARDWARE MANUALSample Chapter: Main Microcontroller Bootloader
MICROPYTHON FOR THE ESP32 AND FRIENDS (PART 2)Control Matrix Displays Easily
MADMACHINE SWIFTIO BOARDModern Language Meets Modern Hardware
FROM LIFE’S EXPERIENCEOn-Again, Off-Again Relationship
HEXADOKUThe Original Elektorized Sudoku