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.
Goedkope audiotestermet PC-gebaseerde software en een USB-audio-interface
AC-netfrequentiemeterbewaakt netfrequentie en -spanning
Een kleine inductiemeterbetaalbare oplossing voor de werkbank
Zweven op geluidsgolvende Makerfabs Acoustic Levitation Kit nader bekeken
Alle begin......gaat gelijkrichten FFWD: de blik weer naar voren!
Aan de slag met je oscilloscoopzo gebruik je de knoppen en schakelaars
Een MSF-SDR met de Raspberry Pi Picodecodeer het tijdsignaal met een Pi Pico-SDR
Bodemvochtsensoren voor beregeningssystemenautomatische beregening
Onrust op de markt voor test- en meetapparatuurkleine spelers innoveren Elektor Infographics
Inspiratie, daar draait het omInterview met Ondernemer Walter Arkesteijn, InnoFaith Beauty Sciences EMC-storingen door opslagspoelen minimaliseren
GUI’s maken met Python:Boter-kaas-en-eieren Jeroen en Jan blijven pionieren
Eenvoudige analoge ESR-metermet draaispoelmeter-precisie
Sigfox CO2-stoplichtzonder WiFi-netwerk!
Vrouwen in de techniek“Het gaat allemaal om verdienste tot verdienste tieten heeft”
Low-budget tablet-oscilloscoop ADS1013Dwaar voor je geld?
Anatomie van smart plugsWelke zijn hacker-vriendelijk?
Huidimpedantie en huidcapaciteitexperimenteel onderzocht
Uit het leven gegrepenGeen sant in eigen land
De Pokit Meter bekekeneen Zwitsers zakmes onder de meetinstrumenten
HexadokuPuzzelen voor elektronici
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sie sind noch kein Mitglied? Hier klicken!
Die Open-Source-Prozessorarchitektur RISC-V16 Boards und MCUs, die Sie kennen sollten
Audio-Player mit FPGA und EqualizerTeil 1. Digitale Audiosignale mischen mit einem MKR Vidor 4000 von Arduino
Laserkopf für Pico-basierte SanduhrZeichnen mit Licht
Nehmen Sie teil am STM32 Edge AI Contest!
Umweltüberwachung von Pflanzen mit mehreren SensorenDrahtlose Messung der Wasserversorgung und Lichtverhältnisse
Maixduino: Automatischer KI-TüröffnerGesichtserkennung mit einer Kamera
Embedded-Elektronik 2024KI wird die Branche neu definieren
Ladungsbasiertes In-Memory Compute bei EnCharge AI
KI-Inferencing bei 10-fach geringerer Leistungsaufnahme zu 20-fach geringeren Kosten
Click-Board hilft bei der Entwicklung und dem Training von ML-Modellen für die Schwingungsanalyse
Der Elektor Mini-WheelieEin Bausatz für einen selbstbalancierenden Roboter
MCU, ich sehe dich!MCUViewer, ein Open-Source-Multiplattform-Debugging-Werkzeug
USB-2.0-IsolatorGeräte galvanisch isoliert per USB verbinden
Eingriff vor dem SchadenPredictive Maintenance in der Praxis
SPoE - Elektromagnetische VerträglichkeitSingle-Pair mit Power-over-Ethernet im EMV-Fokus
Retro-TechnikWie das Farbfernsehen eine neue Welt schuf
EKG-MonitorMit Hexabitz-Modulen und einem STM32CubeMonitor
Der Kampf um KI at the Edge
HaLow erreicht Rekorddistanz von 16 km für WLAN bei 900 MHz
Erster CHERI RISC-V-Embedded Chip und Early Access Programm
Die dritte Generation der Waldbrandfrüherkennung nutzt Satellitenverbindungen
Aus dem Leben gegriffenDie Qual der Wahl
Aller Anfang......ist nicht schwer: Wir setzen die Filterung und Klangregelung fort.
Riesen-LED-UhrNeuauflage eines Elektor-Klassikers
Ein modularer Ansatz für die SensorprüfungDas Sensor Evaluation Board mit ESP32-S3
2025: Eine Odyssee in die KIDer Aufstieg der Basismodelle und ihre Rolle bei der Demokratisierung der KImocratizing AI
Standalone MIDI-Synthesizer mit Raspberry PTeil 1: Eine Plattform für Edge-KI-Experimente vorbereiten
Projekt 2.0Korrekturen, Updates und Leserbriefe
CPU, GPU, DSP, FPGA; ein universeller KI-RISC-V-Prozessor kann alles!
CEO-Interview: Ventivas dünne und kühle Technologie
Dual-Core-Programmierung beim Raspberry Pi PicoEinstieg in die Welt der parallelen Programmierung
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.
Ready-to-use devices and self-built Arduino nodes in the 'The Things Network'
LoRaWAN has developed excellently as a communication solution in the IoT. The Things Network (TTN) has contributed to this. The Things Network was upgraded to The Things Stack Community Edition (TTS (CE)). The TTN V2 clusters were closed towards the end of 2021.
This book shows you the necessary steps to operate LoRaWAN nodes using TTS (CE) and maybe extend the network of gateways with an own gateway. Meanwhile, there are even LoRaWAN gateways suitable for mobile use with which you can connect to the TTN server via your cell phone.
The author presents several commercial LoRaWAN nodes and new, low-cost and battery-powered hardware for building autonomous LoRaWAN nodes. Registering LoRaWAN nodes and gateways in the TTS (CE), providing the collected data via MQTT and visualization via Node-RED, Cayenne, Thingspeak, and Datacake enable complex IoT projects and completely new applications at very low cost.
This book will enable you to provide and visualize data collected with battery-powered sensors (LoRaWAN nodes) wirelessly on the Internet. You will learn the basics for smart city and IoT applications that enable, for example, the measurement of air quality, water levels, snow depths, the determination of free parking spaces (smart parking), and the intelligent control of street lighting (smart lighting), among others.
For Raspberry Pi, ESP32 and nRF52 with Python, Arduino and Zephyr
Bluetooth Low Energy (BLE) radio chips are ubiquitous from Raspberry Pi to light bulbs. BLE is an elaborate technology with a comprehensive specification, but the basics are quite accessible.
A progressive and systematic approach will lead you far in mastering this wireless communication technique, which is essential for working in low power scenarios.
In this book, you’ll learn how to:
Discover BLE devices in the neighborhood by listening to their advertisements.
Create your own BLE devices advertising data.
Connect to BLE devices such as heart rate monitors and proximity reporters.
Create secure connections to BLE devices with encryption and authentication.
Understand BLE service and profile specifications and implement them.
Reverse engineer a BLE device with a proprietary implementation and control it with your own software.
Make your BLE devices use as little power as possible.
This book shows you the ropes of BLE programming with Python and the Bleak library on a Raspberry Pi or PC, with C++ and NimBLE-Arduino on Espressif’s ESP32 development boards, and with C on one of the development boards supported by the Zephyr real-time operating system, such as Nordic Semiconductor's nRF52 boards.
Starting with a very little amount of theory, you’ll develop code right from the beginning. After you’ve completed this book, you’ll know enough to create your own BLE applications.
Elektor GREEN- und GOLD-Mitglieder können diese Ausgabe hier herunterladen.
Noch kein Mitglied? Klicken Sie hier , um eine Mitgliedschaft abzuschließen.
Projektaktualisierung: ESP32-basierter Energiezähler Weiter geht es mit dem Prototyp
Optimierung von Balkon-PV-Kraftwerken Überlegungen, interessante Fakten und Berechnungen
ESP32 mit OpenDTU für Balkonbedienfelder Lesen Sie Daten von kleinen Wechselrichtern über MCUs
Einstellbares lineares Labornetzteil 0...50 V / 0...2 A + doppelt symmetrische Stromversorgung
Energiespeicher – heute und morgen ein Interview mit Simon Engelke
2024: eine KI-Odyssee es wird nicht so schnell enden
Bluetooth LE auf dem STM32 Messwerte aus der Ferne ablesen
Menschenfreundliches intelligentes Kücheninventarsystem
MAUI: Programmierung für PC, Tablet und Smartphone die neuen Rahmenbedingungen in Theorie und Praxis
ChatMagLev künstliche intelligente Levitation
Einfacher PV-Controller Bauen Sie Ihr erstes, voll funktionsfähiges PV-Energiemanagementsystem
Kaltkathodenröhren Fremde
Aus dem Leben genommen Nostalgie
Aller Anfang... ...sieht sich den FET an
CAN-Bus für den Arduino UNO R4: ein Tutorial Zwei UNO R4 fahren mit dem Bus!
Elektor-Infografik Ernährung und Energie
Vergleich von Leistungsdichte und Leistungseffizienz
Aluminium-Elektrolytkondensatoren Störpotenzial in der Audiotechnik
USB-Prüfung und -Messung mit dem Fnirsi FNB58
Das Pick-and-Place-Tool von Pixel Pump einfachere manuelle Bestückung von SMT-Platinen
East West Lab Best Vor nicht allzu langer Zeit, in einem sehr weit entfernten Land ...
„In der Welt der Elektronikethik können selbst kleine Schritte große Auswirkungen haben.“
Ethik in der Elektronik den OECD-Leitsätzen und dem Lieferkettensorgfaltspflichtgesetz
Chadèche: intelligentes NiMH-(Ent-)Ladegerät Leserprojekt in Kürze
Projekt 2.0 Korrekturen, Aktualisierungen und Leserbriefe
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
Audio DSP FX Processor BoardPart 1: Features and Design
50 Years of Elektor in English
KiCad 8Top New and Updated Features
Elektor MultiCalculator KitAn Arduino-Based Calculator Kit for Electronic Purposes
Low-Cost GNSS RTK SystemsWith Centimeter-Level Degree of Accuracy
PCB Layout and SafetyHints for a Safe, Long-Life Design of Your Boards
Opamp TesterFor Audio and Other Applications
Project Update #4: ESP32-Based Energy MeterEnergy Monitoring with MQTT
Real-Time Spectrum Analyzer with Waveguide Technology and Multi-Interface PCsAaronia Establishes New Product Segment and Presents First Prototypes at Electronica in Munich
Applications of Ynvisible’s E-paper DisplaysTransform Businesses and Shape the Future
SMT InductorsCoils and Ferrites — Selection Made Easy
Arrow Electronics to Showcase Innovative Technologies at electronica 2024
Using EMI Shielding to Achieve Electromagnetic Compatibility Compliance
The Ultimate Tool for Every Electronics EnthusiastUnlock Endless Possibilities with Red Pitaya and 1,000+ Click Boards™
V-LD1 Distance Radar Module
Siglent Presents Its New Vector Network Analyzer Platform SNA6000A
HDI in the MiddleA New Cost-Effective PCB Pooling Service for Tiny BGAs
Remote Access IoT LabOne and Only Solution for Remote Learning and Development in Embedded Industry
Challenges of DFM Analysis for Flex and Rigid-Flex Design
From Life's ExperienceMicrotechnophobia
3D Christmas TreeA 3D PCB with a Low-Cost, 32-bit Microcontroller
Starting Out in Electronics……Continues with the Opamp!
An Autonomous Sensor Node (Project Update #1)Reducing Idle Power Consumption with External RTC and Power Switch
2024: An AI OdysseyA Look Back at the Future
LED Displays with the MAX7219A Hands-On Approach to a Great Chip
Err-lectronicsCorrections, Updates, and Readers’ Letters
VibroTactile GlovesA Breakthrough for Parkinson’s Patients
Elektor GREEN en GOLD leden kunnen deze uitgave hier downloaden.
Nog geen lid? Klik hier om een lidmaatschap af te sluiten.
STM32 Wireless Innovation Design Contest: de winnaars
In-circuit LC-meteroverwegingen bij een prototype
AmpVolt: een modulaire DC-vermogensmeter (deel 1)meet gelijkstroom en energieverbruik tot 50 V en 5 A
embedded world 2024
Elektronische apparatuur reparerentools, technieken en tips
Alle begin... - NL TRANSLATION...gaat verder met de opamp-theorie
Eenvoudige DDS-signaalgeneratordirecte digitale synthese in zijn puurste vorm
Sparkplug bekekenspecificatie voor MQTT-data
De CRTCvreemde onderdelen
Radargestuurde verlichtingautomatische trapverlichting met personendetectie
Digitale waterpas en actieve stroboscoop voor draaitafelsregel je platenspeler perfect af met dit alles-in-één tool
Onderzoek naar de uitdagingen en commerciële waarde van open source-elektronica (2)
Ronde M12-connector met A-coderingvoorkeursoplossing voor industriële toepassingen
Het Arduino-Inside Measurement Labeen 8-in-1 test- en meetinstrument voor de elektronica-werkbank
Frequentie-, fase- en impedantieanalyse met een geluidskaartvoor frequenties van 100 Hz tot 90 kHz
Zuurgraad meten met de Arduino UNO R4controleer de waterkwaliteit
Uit het leven gegrepenpangpongbilletjes-lanceermachine
FNIRSI 1014D digitale geheugenoscilloscoopgoede prestaties voor weinig geld
2024: een AI-odysseeobjectdetectie aan de praat krijgen
10MHz-referentiegeneratorzeer nauwkeurig, met verdeler en galvanische isolatie
Project-update #2: ESP32-gebaseerde energiemeterenkele verbeteringen
Project 2.0correcties, updates en brieven van lezers
Een vraaggesprek met Eben Upton, CEO van Raspberry Pide Raspberry Pi 5 – en daarna
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
New LCR Meter 50 Hz - 2 MHz Part 1automatic impedance measuring bridge measures the resistance, capacitance and inductance of components with an impedance of 10 mΩ to 100 MΩ
From Ding-Dong Door Chime to IoT DoorbellIntegrate your doorbell in Home Assistant with ESPHome
Battery ManagementWhat to Be Aware of When Using (Lithium) Batteries
Starting Out in ElectronicsEasier Than Imagined!
Small Circuits RevivalFrom the Elektor Suggestions Box
Breadboard Graphics with Fritzing
Analogue Filter Design (Part 2)Active Filters
Homelab Tours: The Lap CounterA Project for Mini Petrol-Heads
Developer’s ZoneTips & Tricks, Best Practices and Other Useful Information
Review: Rigol DS1054Z Four-Channel Oscilloscope
Christmas CandleBlow It Out!
Tunable Valve Sinewave Generator
Retro is back!
Review: The Rigol DG2072 Generator
KiCad Plugins and Add-ons
Differential Oscilloscope Current Probe 2.0Measure Currents Using Your Oscilloscope
The Hewlett-Packard Interface LoopConnect the world!
The Future of Machine LearningAn Interview with Daniel Situnayake
Smartphone Apps for Android and iOSProgramming Apps Within a Single Development Environment
From Life's ExperienceThe Value of a Technical Education
5G: How Infrastructure Shapes Our Society
Practical ESP32 Multitasking (5)Task event notification
HP 10811 OscillatorPeculiar Parts, the series
LoRa GPS TrackerWith Open Hardware and Software
Programming the Finite State Machinewith 8-bit PICs in Assembly and C
Projects with Arduino, ESPHome, Home Assistant, and Raspberry Pi & Co.
This e-book contains various example projects, beginning with an introduction to electronics. It also explains how to install Home Assistant on a Raspberry Pi, how to use indoor climate sensors for temperature and humidity, how to implement the MQTT protocol and other interfaces, and how to use ESPHome to integrate sensors and actuators into Home Assistant. Numerous video tutorials complement the book.
Fundamentals of electrical engineering
The book begins with an introduction to electrical engineering. You will learn the basics of voltage, current, resistors, diodes and transistors.
Arduino and microcontrollers
A complete section is dedicated to the Arduino Uno. You will get to know the structure, write your first programs and work on practical examples.
Home Assistant and automation
You will learn how to set up Home Assistant on a Raspberry Pi and how to use automations, scenes and devices. In addition, Zigbee, MQTT and ESP-NOW – important technologies for home automation – will be discussed.
ESP8266, ESP32 and ESP32-CAM
The popular ESP microcontrollers are covered in detail. A theoretical introduction is followed by practical projects that show you how to get the most out of these devices.
Sensors and actuators
The book explains the functionality and application of numerous sensors such as temperature and humidity sensors, motion detectors and RFID readers. For actuators, stepper motors, e-ink displays, servo motors and much more are covered. There are practical application examples for all devices.
ESPHome
This chapter shows you how to integrate sensors and actuators into Home Assistant without any programming effort. You will be guided step by step through the setup with ESPHome.
LEDs and lighting technology
In this chapter, you will learn about different types of LEDs and how they can be used. The basics of lighting technology are also explained.
Node-RED
A whole chapter is dedicated to Node-RED. You will learn the basics of this powerful tool and be guided step by step through its setup and use.
Integrated Circuits (ICs)
In electronics, there are numerous ICs that make our lives easier. You will get to know the most important ones and apply your knowledge in practical projects.
Professional programming
Advanced topics such as the correct use of buttons, the use of interrupts and the use of an NTP server for time synchronisation are covered in detail in this chapter.
Downloads
GitHub