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.
Ü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
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.
Der Elektor Mini-Wheelie ist eine experimentelle autonome selbstbalancierende Roboterplattform. Der selbstbalancierende Roboter basiert auf einem ESP32-S3-Mikrocontroller und ist mithilfe der Arduino-Umgebung und Open-Source-Bibliotheken vollständig programmierbar. Dank seiner drahtlosen Fähigkeiten kann er über WLAN, Bluetooth oder ESP-NOW ferngesteuert werden oder mit einem Benutzer oder sogar einem anderen Roboter kommunizieren.
Zur Erkennung von Hindernissen steht ein Ultraschallwandler zur Verfügung. Über das Farbdisplay lassen sich niedliche Gesichtsausdrücke oder für den bodenständigeren Nutzer auch kryptische Debug-Meldungen darstellen.
Der Roboter wird als Komplettbausatz mit Teilen geliefert, die Sie selbst zusammenbauen müssen. Alles ist dabei, sogar ein Schraubenzieher.
Hinweis: Der Mini-Wheelie ist eine pädagogische Entwicklungsplattform, die zum Lernen, Experimentieren und zur Entwicklung von Robotern gedacht ist. Er ist nicht als Kinderspielzeug klassifiziert, und seine Funktionen, Dokumentation und Zielgruppe spiegeln diesen Zweck wider. Das Produkt richtet sich an Studenten, Dozenten und Entwickler, die Robotik, Programmierung und Hardware-Integration in einem pädagogischen Umfeld erforschen möchten.
Technische Daten
ESP32-S3 Mikrocontroller mit WLAN und Bluetooth
MPU6050 6-achsige Inertial Measurement Unit (IMU)
Zwei unabhängig gesteuerte 12 V-Elektromotoren mit Drehzahlmesser
Ultraschallwandler
2,9" TFT-Farbdisplay (320 x 240)
MicroSD-Kartensteckplatz
Batterieleistungsmonitor
3S wiederaufladbarer Li-Po-Akku (11,1 V/2200 mAh)
Batterieladegerät im Lieferumfang enthalten
Arduino-basierte Open-Source-Software
Abmessungen (B x L x H): 23 x 8 x 13 cm
Lieferumfang
1x ESP32-S3 Mainboard + MPU6050 Modul
1x LCD-Board (2,9 Zoll)
1x Ultraschallsensor
1x Akku (2200 mAh)
1x Batterieladegerät
1x Motorreifen-Set
1x Gehäuseplatine
1x Acrylplatte
1x Schraubendreher
1x Schutzstreifen
1x Flexkabel B (8 cm)
1x Flexkabel A (12 cm)
1x Flexkabel C
4x Kupfersäule A (25 mm)
4x Kupfersäule B (55 mm)
4x Kupfersäule C (5 mm)
2x Kunststoff-Nylonsäule
8x Schrauben A (10 mm)
24x Schrauben B (M3x5)
8x Nüsse
24x Metallscheiben
2x Kabelbinder
1x MicroSD-Karte (32 GB)
Downloads
Documentation
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
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.
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
Design IoT Projects with Raspberry Pi, Arduino and ESP32 The Internet of Things (IoT) is becoming a major application area for embedded systems. As a result, more and more people are becoming interested in learning about embedded design and programming. Technical colleges and universities are moving away from legacy 8 and 16-bit microcontrollers and are introducing 32-bit embedded microcontrollers to their curriculums. Many IoT applications demand precision, high processing power, and low power consumption. Produced by IBM, Node-RED is an open-source visual editor for wiring the Internet of Things. Node-RED comes with a large number of nodes to handle a multitude of tasks. The required nodes are selected and joined together to perform a particular task. Node-RED is based on flow type programming where nodes are configured and joined together to form an application program. There are nodes for performing complex tasks, including web access, Twitter, E-mail, HTTP, Bluetooth, MQTT, controlling GPIO ports, etc. One particularly nice aspect of Node-RED is that the programmer does not need to learn how to write complex programs. For example, an email can be sent by simply joining nodes together and writing only a few lines of code. The aim of this book is to teach how Node-RED can be used in projects. The main hardware platform used with most of the projects in this book is Raspberry Pi 4. Chapters are included to show how Node-RED can be also be used with Arduino Uno, ESP32 DevKitC, and the ESP8266 NodeMCU microcontroller development boards.
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.
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.