Projects Using Arduino IDE and the LVGL Graphics Library
The ESP32 is probably one of the most popular microcontrollers used by many people, including students, hobbyists, and professional engineers. Its low cost, coupled with rich features makes it a popular device to use in many projects. Recently, a board called the ESP32 Cheap Yellow Display (CYD for short) is available from its manufacturers. The board includes a standard ESP32 microcontroller together with a 320x240 pixel TFT display. Additionally, the board provides several connectors for interfaces such as GPIO, serial port (TX/RX), power and Ground. The inclusion of a TFT display is a real advantage as it enables users to design complex graphics-based projects without resorting to an external LCD or graphics displays.
The book describes the basic hardware of the ESP32 CYD board and provides details of its on-board connectors. Many basic, simple, and intermediate-level projects are given in the book based on the ESP32 CYD, using the highly popular Arduino IDE 2.0 integrated development environment. The use of both the basic graphics functions and the use of the popular LVGL graphics library are discussed in the book and projects are given that use both types of approaches.
All the projects given in the book have been tested and are working. The block diagram, circuit diagram, and the complete program listings and program descriptions of all the projects are given with explanations. Readers can use the LVGL graphics library to design highly popular eye-catching full-color graphics projects using widgets such as buttons, labels, calendars, keypads, keyboards, message boxes, spinboxes, sliders, charts, tables, menus, bars, switches, drop-down lists, animations, and many more widgets.
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.
Die WiFi-Module der chinesischen Firma Espressif haben schon längst die Maker-Community erobert, bieten sie doch zu einem konkurrenzlosen Preis MCU- und WiFi-Funktionalität. Mit einfachen Mitteln lässt sich ein Arduino mit einem ESP-Modul um WiFi erweitern. Die globale Bastler-Gemeinde ersetzte schon bald die integrierte Firmware mit eigener Firmware, sodass Entwickler ESP-Boards wie Arduino-Boards programmieren können. Der neue ESP32 geht einen Schritt weiter und ist in jeder Beziehung leistungsfähiger als der ESP8266. Zudem besitzt er nun Bluetooth-Funktionalität.
Der ESP32 verfügt über einen 240-MHz-Zweikern-Mikroprozessor mit einer Performanz von 600 DMIPS. Neben 520 KByte SRAM befinden sich 16 MByte Flashspeicher an Board. Zur Kommunikation mit der Außenwelt enthält das System-on-a-Chip die 802.11-b/g/n-WiFi-Komponente HT40 und Bluetooth-Funktionalität. Als Sensoren bietet der ESP32 einen Hall-Sensor, eine zehnfache, kapazitive Touch-Schnittstelle, einen analogen Verstärker für niedrige Signale und einen 32-kHz-Kristallquartz.
Der Bestseller-Autor Erik Bartmann hat sich ausführlich mit dem ESP32 beschäftigt. Heraus gekommen ist dabei Das ESP32-Praxisbuch, in dem er die Leser Schritt für Schritt in die Arbeit mit diesem preiswerten WiFi-Mikrocontroller einführt.
A Project-Based Introduction to Microcontrollers and Drone Control
A Practical Introduction to Embedded Systems with the ESP32
This book is intended for readers who are new to embedded systems and looking for a structured, example-driven way to begin. If you’ve explored general-purpose electronics or Arduino-based resources but found them too broad or lacking in practical application, this guide offers a more focused alternative.
With a small, affordable set of components – such as LEDs, sensors, an OLED screen and a motion sensor – you’ll build and work with the same hardware setup throughout the book. This allows you to focus on learning and experimenting without constant reconfiguration.
Topics include:
Understanding and programming the ESP32 microcontroller
Using the Arduino IDE to write and deploy code
Exploring cyber-physical systems, culminating in basic drone control
No prior experience with Arduino or embedded development is required. Each section includes hands-on examples and mini-projects designed to reinforce core concepts and encourage deeper exploration. By the end, you’ll be equipped not only to reproduce the book’s examples, but also to extend them toward your own ideas and applications.
Whether your interest is in learning embedded programming, building interactive systems, or exploring educational drone control, this book provides a clear and practical path to getting started.
A Project-Based Introduction to Microcontrollers and Drone Control
A Practical Introduction to Embedded Systems with the ESP32
This book is intended for readers who are new to embedded systems and looking for a structured, example-driven way to begin. If you’ve explored general-purpose electronics or Arduino-based resources but found them too broad or lacking in practical application, this guide offers a more focused alternative.
With a small, affordable set of components – such as LEDs, sensors, an OLED screen and a motion sensor – you’ll build and work with the same hardware setup throughout the book. This allows you to focus on learning and experimenting without constant reconfiguration.
Topics include:
Understanding and programming the ESP32 microcontroller
Using the Arduino IDE to write and deploy code
Exploring cyber-physical systems, culminating in basic drone control
No prior experience with Arduino or embedded development is required. Each section includes hands-on examples and mini-projects designed to reinforce core concepts and encourage deeper exploration. By the end, you’ll be equipped not only to reproduce the book’s examples, but also to extend them toward your own ideas and applications.
Whether your interest is in learning embedded programming, building interactive systems, or exploring educational drone control, this book provides a clear and practical path to getting started.
Über 180 Projekte mit Raspberry Pi, Pico W, Arduino und ESP32
Dieses Bundle enthält das Universal Maker Sensor Kit mit zahlreichen Sensoren, Aktoren, Displays und Motoren. Es eignet sich perfekt für Umweltüberwachung, Smart-Home-Projekte, Robotik und Gamecontroller.
Das neue Elektor-Buch beschreibt die Entwicklung zahlreicher Projekte mit dem Kit und den beliebten Entwicklungsboards Raspberry Pi, Raspberry Pi Pico W, Arduino Uno und der ESP32-Familie. Sie können jedes dieser Entwicklungsboards für Ihre Projekte auswählen und die bereitgestellten Programme entweder unverändert verwenden oder an Ihre Anwendungen anpassen.
Dieses Bundle enthält:
Buch: Universal Maker Sensor Kit (Einzelpreis: 45 €)
Universal Maker Sensor Kit für Raspberry Pi, Pico W, Arduino, ESP32 (Einzelpreis: 70 €)
Buch: Universal Maker Sensor Kit
Lernen Sie, mehr als 35 Sensoren und Aktoren mit C++, Python und MicroPython zu verwenden
Dieses Buch enthält über 180 Projekte für alle vier wichtigen Entwicklungsboards (Arduino, Raspberry Pi, Pico W und ESP32). Je nach Entwicklungsboard sind Projekte in den Programmiersprachen C, Python oder MicroPython verfügbar.
Die Projekttitel, Kurzbeschreibungen, Schaltpläne und vollständigen Programmlisten sind zusammen mit ihren detaillierten Beschreibungen im Buch aufgeführt.
Universal Maker Sensor Kit (für Raspberry Pi, Pico W, Arduino, ESP32)
Entdecken Sie grenzenlose Kreativität mit dem Universal Maker Sensor Kit, das für Raspberry Pi, Pico W, Arduino und ESP32 entwickelt wurde. Dieses vielseitige Kit ist mit gängigen Entwicklungsplattformen kompatibel, darunter Arduino Uno R4 Minima/WiFi, Uno R3, Mega 2560, Raspberry Pi 5, 4, 3B+, 3B, Zero, Pico W und ESP32.
Mit über 35 Sensoren, Aktoren und Displays eignet es sich perfekt für Projekte von Umweltüberwachung und Smart-Home-Automatisierung bis hin zu Robotik und interaktivem Gaming. Schritt-für-Schritt-Tutorials in C/C++, Python und MicroPython führen Anfänger und erfahrene Maker gleichermaßen durch 169 spannende Projekte.
Features
Umfassende Kompatibilität: Vollständige Unterstützung für Arduino (Uno R3, Uno R4 Minima/WiFi, Mega 2560), Raspberry Pi (5, 4, 3B+, 3B, Zero, Pico W) und ESP32. Dies ermöglicht umfassende Flexibilität auf zahlreichen Entwicklungsplattformen. Enthält Anleitungen für 169 Projekte.
Umfassende Komponenten: Mehr als 35 Sensoren, Aktoren und Anzeigemodule für vielfältige Projekte wie Umweltüberwachung, Smart Home-Automatisierung, Robotik und interaktive Spielesteuerungen.
Ausführliche Tutorials: Klare Schritt-für-Schritt-Anleitungen für Arduino, Raspberry Pi, Pico W, ESP32 und alle enthaltenen Komponenten. Es stehen Tutorials in C/C++, Python und MicroPython zur Verfügung, die sowohl für Anfänger als auch für erfahrene Maker geeignet sind.
Für alle Kenntnisstufen geeignet: Bietet strukturierte Projekte, die Benutzer nahtlos vom Anfänger zum Fortgeschrittenen in Elektronik und Programmierung führen und so Kreativität und technisches Know-how fördern.
Lieferumfang des Kits
Breadboard
Tastenmodul
Kapazitives Bodenfeuchtemodul
Flammensensormodul
Gas-/Rauchsensormodul (MQ2)
Gyroskop & Beschleunigungssensormodul (MPU6050)
Hall-Sensormodul
Infrarot-Geschwindigkeitssensormodul
IR-Hindernisvermeidungssensormodul
Joystickmodul
PCF8591 ADC/DAC-Wandlermodul
Fotowiderstandsmodul
PIR-Bewegungssensormodul (HC-SR501)
Potentiometermodul
Pulsoximeter- und Herzfrequenzsensormodul (MAX30102)
Regentropfenerkennungsmodul
Echtzeituhrmodul (DS1302)
Drehgebermodul
Temperatursensormodul (DS18B20)
Temperatur- und Feuchtigkeitssensormodul (DHT11)
Temperatur, Luftfeuchtigkeit und Drucksensor (BMP280)
Time-of-Flight-Mikro-LIDAR-Distanzsensor (VL53L0X)
Berührungssensormodul
Ultraschallsensormodul (HC-SR04)
Vibrationssensormodul (SW-420)
Wasserstandssensormodul
I²C LCD 1602
OLED-Displaymodul (SSD1306)
RGB-LED-Modul
Ampelmodul
5-V-Relaismodul
Kreiselpumpe
L9110-Motortreibermodul
Passives Summermodul
Servomotor (SG90)
TT-Motor
ESP8266 Modul
JDY-31 Bluetooth-Modul
Stromversorgungsmodul
Dokumentation
Online-Tutorial
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 ESP8266 from Espressif is a Wi-Fi microchip with full TCP/IP stack and microcontroller capability. It has made waves in the maker community with its low price.
But many developers were unhappy with ESP8266's high power consumption. The ESP32, equipped with a ULP (Ultra Low Power) coprocessor, offers a remedy for this.
This e-book features a number of projects featuring ESP32 & ESP8266 as well as an interview with the CEO of Espressif Teo Swee Ann.
Articles
ESP32 for Use in Industry 4.0 Equipment
Scrolling Message Display, 512 LEDs controlled over Wi-Fi via an ESP-12F
The Connected Greenhouse IoT demonstration project using MQTT and Node-RED
VFD-tube Clock with ESP32 with an accurate Internet-derived time
ESP32 Low Power
DCF77 Emulator with ESP8266
ESP8266 on the Elektor Android I/O Board
The Reason Behind the Hugely Popular ESP8266?
Wi-Fi Desktop Thermostat
Timers for the Wi-Fi Desktop Thermostat
PlatformIO, the Universal Programming Tool
Weather Display, Visualize current weather data on an LC display
GoNotify, a Flexible IoT Sensor Interface
ESP32 for Power Users
USB Programming Adaptor for ESP8266
Getting started with ESP32 and the Arduino IDE
MicroPython, Python for small systems
RGBDigit Clock
WLAN for Microcontrollers
Return of the Wi-Fi Controller Board
Compact and Self-contained WLAN
Der ESP8266 von Espressif ist ein Wi-Fi-Mikrochip mit vollem TCP/IP-Stack und Mikrocontroller-Fähigkeit. Es hat mit seinem niedrigen Preis Wellen in der Herstellergemeinschaft geschlagen.
Aber viele Entwickler waren unzufrieden mit dem hohen Stromverbrauch von ESP8266. Der ESP32, ausgestattet mit einem ULP (Ultra Low Power) Coprozessor, bietet eine Lösung.
Dieses E-Book enthält eine Reihe von Projekten mit ESP32 & ESP8266 sowie ein Interview mit dem CEO von Espressif Teo Swee Ann.
Artikel
ESP32 für den Einsatz in Geräten der Industrie 4.0
Scrollende Nachrichtenanzeige, 512 LEDs per WLAN mit ESP-12F ansteuern
Das vernetzte Treibhaus, IoT-Modellprojekt mit MQTT und Node-RED
VFD-Röhren-Uhr mit ESP32, Internet-Zeit auf Vintage-Displays
ESP32 stromsparend, die Programmierung des ULP-Coprozessors
DCF77-Emulator mit ESP8266, DCF durch Internet-Zeit ersetzen
Was steckt hinter dem berühmtem ESP8266?
WLAN-Thermostat, flexible und programmierbare Temperatursteuerung
Timer für den WLAN-Thermostat, sieben Kanäle mit atomarer Genauigkeit
Schweizer Taschenmesser für Mikrocontroller, PlatformIO als universelles Programmier-Tool
ESP32 für Power-User, native Programmierung
Weather-Display, aktuelle Wetterdaten auf einem LC-Display darstellen
GoNotify, ein flexibles IoT-Sensorinterface. Einfach in die Cloud.
Der große Bruder des ESP8266, erste Schritte mit dem ESP32 und der Arduino-IDE
MicroPython, Python für kleine Systeme
RGBDigit Clock, farbenfrohe 7-Segment-Displays zeigen Zeit und Klima
USB-Programmieradapter für die ESP-Module von Espressif
Heizkesselmonitor mit ESP8266, Haustechnik für die Energiewende
WLAN für Mikrocontroller, steuern mit dem ESP8266
Die Rückkehr des WLAN-Controller-Boards, Smartphone steuert IoT-Objekte
WLAN kompakt und autonom, oder: Wie man den ESP8266 auch ohne MCU einsetzen kann
Elektor GREEN en GOLD leden kunnen deze uitgave hier downloaden.
Nog geen lid? Klik hier om een lidmaatschap af te sluiten.
De ESP-BLASTEen mini ESP32 raketdrone die ruim 100 km/u vliegt
STM32Cube Innovation-ChallengeDoe mee met je beste STM32C5-ontwerp
Wireless workshop (1)Radiomodules uitgelegd: 433 MHz CC1101 sub-GHz-transceiver
AM-zenderMet sinus- en blokgolfgenerator op Raspberry Pi Pico
AudiotronicaDe vervormingsfactor
CoffeeCallerOmroepsysteem met mesh-netwerk en Zephyr gebaseerde software
Elektor wordt 65Projecten uit voorgaande september- en oktobermaanden
Bluetooth Channel Sounding voor het volgen van objectenAfstandsmeting met centimeterprecisie voor het IoT van de volgende generatie
2026: Een AI-odysseeKwantumcomputing is geen volgende GPU
Om de cloud te beveiligen, is edge-beveiliging nodig
Eerste ervaringen met de HackRF ProPraktische tests met de nieuwe SDR-hardware
Modemupgrade van GPRS/2G naar LTE/4GEen draadloos alarmsysteem als voorbeeld
Lusvormige antenne met RF-bouwstenenDeel 1: Een zelfbouw kortegolfantenne met instelbare richtingsgevoeligheid
Internetradio naar AM-converterMet een ESP32-S3 als zender
Err-lectronics
Mioty, een overzichtFraunhofer's aanpak van LPWAN
WerkbankwijsheidPraktische tips van experts
Walter, de compacte IoT-moduleDeel 2: Toegang tot weer- en datadiensten
Practical Multitasking Fundamentals
Programming embedded systems is difficult because of resource constraints and limited debugging facilities. Why develop your own Real-Time Operating System (RTOS) as well as your application when the proven FreeRTOS software is freely available? Why not start with a validated foundation?
Every software developer knows that you must divide a difficult problem into smaller ones to conquer it. Using separate preemptive tasks and FreeRTOS communication mechanisms, a clean separation of functions is achieved within the entire application. This results in safe and maintainable designs.
Practicing engineers and students alike can use this book and the ESP32 Arduino environment to wade into FreeRTOS concepts at a comfortable pace. The well-organized text enables you to master each concept before starting the next chapter. Practical breadboard experiments and schematics are included to bring the lessons home. Experience is the best teacher.
Each chapter includes exercises to test your knowledge. The coverage of the FreeRTOS Application Programming Interface (API) is complete for the ESP32 Arduino environment. You can apply what you learn to other FreeRTOS environments, including Espressif’s ESP-IDF. The source code is available from GitHub. All of these resources put you in the driver’s seat when it is time to develop your next uber-cool ESP32 project.
What you will learn:
How preemptive scheduling works within FreeRTOS
The Arduino startup “loopTask”
Message queues
FreeRTOS timers and the IDLE task
The semaphore, mutex, and their differences
The mailbox and its application
Real-time task priorities and its effect
Interrupt interaction and use with FreeRTOS
Queue sets
Notifying tasks with events
Event groups
Critical sections
Task local storage
The gatekeeper task
Practical Multitasking Fundamentals
Programming embedded systems is difficult because of resource constraints and limited debugging facilities. Why develop your own Real-Time Operating System (RTOS) as well as your application when the proven FreeRTOS software is freely available? Why not start with a validated foundation?
Every software developer knows that you must divide a difficult problem into smaller ones to conquer it. Using separate preemptive tasks and FreeRTOS communication mechanisms, a clean separation of functions is achieved within the entire application. This results in safe and maintainable designs.
Practicing engineers and students alike can use this book and the ESP32 Arduino environment to wade into FreeRTOS concepts at a comfortable pace. The well-organized text enables you to master each concept before starting the next chapter. Practical breadboard experiments and schematics are included to bring the lessons home. Experience is the best teacher.
Each chapter includes exercises to test your knowledge. The coverage of the FreeRTOS Application Programming Interface (API) is complete for the ESP32 Arduino environment. You can apply what you learn to other FreeRTOS environments, including Espressif’s ESP-IDF. The source code is available from GitHub. All of these resources put you in the driver’s seat when it is time to develop your next uber-cool ESP32 project.
What you will learn:
How preemptive scheduling works within FreeRTOS
The Arduino startup “loopTask”
Message queues
FreeRTOS timers and the IDLE task
The semaphore, mutex, and their differences
The mailbox and its application
Real-time task priorities and its effect
Interrupt interaction and use with FreeRTOS
Queue sets
Notifying tasks with events
Event groups
Critical sections
Task local storage
The gatekeeper task