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.
Buch: Logic Analyzer im Einsatz
Schritt-für-Schritt-Anleitungen führen Sie in die Analyse moderner Protokolle von I²C, SPI, UART, RS-232, NeoPixel, WS28xx, HD44780 und 1-Wire ein. Anhand von zahlreichen Experimentierschaltungen mit dem Raspberry Pi Pico, Arduino Uno und dem Bus Pirate üben Sie die praxisnahe Anwendung gängiger USB-Logikanalysatoren ein.
Alle in diesem Buch vorgestellten Experimentierschaltungen wurden vollständig getestet und sind funktionsfähig. Die notwendigen Programmlistings sind enthalten, es sind keine besonderen Programmier- oder Elektronikkenntnisse für diese Schaltungen notwendig. Es werden die Programmiersprachen MicroPython und C mit den Entwicklungsumgebungen Thonny und Arduino IDE eingesetzt.
Dieses Buch verwendet mehrere Modelle flexibler und weit verbreiteter USB-Logikanalysatoren und zeigt die Stärken und Schwächen jeder Preisklasse. Sie werden kennenlernen, welche Kriterien für Ihre Arbeit wichtig sind und in der Lage sein, das für Sie passende Gerät zu finden.
Egal ob Arduino, Raspberry Pi oder Raspberry Pi Pico: Die abgebildeten Beispielschaltungen ermöglichen einen schnellen Start in die Protokollanalyse und können auch als Grundlage für eigene weitere Experimente dienen.
Sie werden alle wichtigen Begriffe und Zusammenhänge kennenlernen, eigene Experimente durchführen, selbstständig Protokolle analysieren und nach der Lektüre dieses Buches – im Bereich der digitalen Signale und Protokolle – ein umfassendes Wissen aufgebaut haben.
USB Logic Analyzer (8 Kanäle, 24 MHz)
Dieser USB Logic Analyzer ist ein 8-Kanal-Logikanalysator, bei dem jeder Eingang doppelt für die analoge Datenaufzeichnung dient. Es eignet sich perfekt zum Debuggen und Analysieren von Signalen wie I²C, UART, SPI, CAN und 1-Wire. Dabei wird ein digitaler Eingang, der mit einem zu testenden Gerät (DUT) verbunden ist, mit einer hohen Abtastrate abgetastet. Die Verbindung zum PC erfolgt via USB.
Technische Daten
Kanäle
8 digitale Kanäle
Maximale Abtastrate
24 MHz
Maximale Eingangsspannung
0 V ~ 5 V
Betriebstemperatur
0°C ~ 70°C
Eingangsimpedanz
1 MΩ || 10 pF
Unterstützte Protokolle
I²C, SPI, UART, CAN, 1-Wire etc.
PC-Verbindung
USB
Abmessungen
55 x 28 x 14 mm
Downloads
Software
Dieses Bundle enthält:
Buch: Logic Analyzer im Einsatz (Einzelpreis: 40 €)
USB Logic Analyzer (8 Kanäle, 24 MHz) (Einzelpreis: 20 €)
USB-Kabel
Jumper Wire Ribbon Kabel
The Elektor Super Servo Tester can control servos and measure servo signals. It can test up to four servo channels at the same time.
The Super Servo Tester comes as a kit. All the parts required to assemble the Super Servo Tester are included in the kit. Assembling the kit requires basic soldering skills. The microcontroller is already programmed.
The Super Servo Tester features two operating modes: Control/Manual and Measure/Inputs.
In Control/Manual mode the Super Servo Tester generates control signals on its outputs for up to four servos or for the flight controller or ESC. The signals are controlled by the four potentiometers.
In Measure/Inputs the Super Servo Tester measures the servo signals connected to its inputs. These signals may come from for instance an ESC, a flight controller, or the receiver or another device. The signals are also routed to the outputs to control the servos or the flight controller or ESC. The results are shown on the display.
Specifications
Operating modes
Control/Manual & Measure/Inputs
Channels
3
Servo signal inputs
4
Servo signal outputs
4
Alarm
Buzzer & LED
Display
0.96' OLED (128 x 32 pixels)
Input voltage on K5
7-12 VDC
Input voltage on K1
5-7.5 VDC
Input current
30 mA (9 VDC on K5, nothing connected to K1 and K2)
Dimensions
113 x 66 x 25 mm
Weight
60 g
Included
Resistors (0.25 W)
R1, R3
1 kΩ, 5%
R2, R4, R5, R6, R7, R9, R10
10 kΩ, 5%
R8
22 Ω, 5%
P1, P2, P3, P4
10 kΩ, lin/B, vertical potentiometer
Capacitors
C1
100 µF 16 V
C2
10 µF 25 V
C3, C4, C7
100 nF
C5, C6
22 pF
Semiconductors
D1
1N5817
D2
LM385Z-2.5
D3
BZX79-C5V1
IC1
7805
IC2
ATmega328P-PU, programmed
LED1
LED, 3 mm, red
T1
2N7000
Miscellaneous
BUZ1
Piezo buzzer with oscillator
K1, K2
2-row, 12-way pinheader, 90°
K5
Barrel jack
K4
1-row, 4-way pin socket
K3
2-row, 6-way boxed pinheader
S1
Slide switch DPDT
S2
Slide switch SPDT
X1
Crystal, 16 MHz
28-way DIP socket for IC2
Elektor PCB
OLED display, 0.96', 128 x 32 pixels, 4-pin I²C interface
Links
Elektor Magazine
Elektor Labs
Two reasons can be identified for the immense success of the Arduino platform. First, the cheap, ready to go processor board greatly simplifies the introduction to hardware. The second success factor is the free and open-source programming suite that does not require an installation procedure.
Simple entry-level examples ensure rapid successes. Complex selection procedures for parameters like the microprocessor version or interface settings are not required. The first sample programs can be uploaded to the Arduino board, and tested, in a matter of minutes.
The Arduino user is supported by an array of software libraries. However, the daily increasing volume of libraries poses initial problems to the newcomer, and the way ahead may be uncertain after a few entry-level examples. In many cases, detailed descriptions are missing, and poorly described projects tend to confuse rather than elucidate. Clear guidance and a single motto are missing, usually owing to the projects having been created by several different persons—all with different aims in mind.
This book represents a different approach. All projects are presented in a systematical manner, guiding into various theme areas. In the coverage of must-know theory great attention is given to practical directions users can absorb, including essential programming techniques like A/D conversion, timers and interrupts—all contained in the hands-on projects. In this way readers of the book create running lights, a wakeup light, fully functional voltmeters, precision digital thermometers, clocks of many varieties, reaction speed meters, or mouse controlled robotic arms. While actively working on these projects the reader gets to truly comprehend and master the basics of the underlying controller technology.
This complete Raspberry Pi Pico microcontroller programming course features a textbook, a component kit, hands-on projects, and a comprehensive online course with simulations. It is ideal for step-by-step learning of embedded systems programming with Arduino using a practical, hands-on approach.
A Practical Introduction to Embedded Systems with the Raspberry Pi Pico
This course is designed for people who are new to embedded systems and looking for a structured, example-driven way to get started.
A kit of parts comprising LEDs and resistors, switches, sensors and actuators, displays, a breadboard and wires, and more is included. These are used in the course to illustrate example applications.
No prior experience with Arduino or embedded development is required. Each section features hands-on examples and mini projects designed to reinforce key concepts and inspire deeper exploration. By the end of the course, you’ll be able not only to reproduce the examples but also to build on them with your own ideas and applications.
What Will You Learn?
Microcontroller programming in C/C++ with the Raspberry Pi Pico using the Arduino IDE
Working with Digital I/O, read buttons and encoders, control LEDs and relays
Read analog inputs, voltages, and analog sensors
Generating analog output signals and PWM
Use serial communication like UART, I²C and SPI to control displays and read digital sensors and SD cards
Managing time
Working with interrupts
Real-time sensor input and control via buttons, LEDs, and displays
Control actuators like relays and servo motors
Who Is It For?
Students and self-learners exploring embedded systems
Makers and IoT enthusiasts looking to improve their hardware skills
Educators and trainers seeking ready-to-teach material
What's Inside the Box?
Access to the full course on the Elektor Academy Pro Learning Platform
Raspberry Pi Pico microcontroller board + USB cable
Book: Programming Microcontrollers in C/C++ Using Arduino
Downloadable project files for every module
Component Box:
2× LED, red, 5 mm
LED, green, 5 mm
3× Resistor, 470 Ω, 0.25 W
LDR
Potentiometer, 10 kΩ, linear
Pushbutton
Rotary encoder module
Relay module
DHT22 Humidity & Temperature Sensor
TM1637-compatible 4-digit 7-segment display
MPU-6050 IMU with headers
SSD1306-compatible I²C OLED display
Micro SD card adapter with header
Buzzer
SG90 Micro Servo
ILI9341-compatible SPI 240×320 TFT display
20× Jumper wires
Breadboard
All Programming Courses (and differences in content)
Course
Arduino
Raspberry Pi Pico with Arduino C/C++
ESP32 with Arduino C/C++
Raspberry Pi Pico with MicroPython
ESP32 with MicroPython
Online Course
Access to Arduino Course
Access to Pico with Arduino C/C++ Course
Access to ESP32 with Arduino C/C++ Course
Access to Pico with MicroPython Course
Access to ESP32 with MicroPython Course
Board
Uno R3
Raspberry Pi Pico
ESP32
Raspberry Pi Pico
ESP32
Book
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in C/C++ Using Arduino
Programming Microcontrollers in MicroPython
Programming Microcontrollers in MicroPython
Kit
40-piece Component Box
40-piece Component Box
40-piece Component Box
40-piece Component Box
40-piece Component Box
ModbusRTU and ModbusTCP examples with the Arduino Uno and ESP8266
Introduction to PLC programming with OpenPLC, the first fully open source Programmable Logic Controller on the Raspberry Pi, and Modbus examples with Arduino Uno and ESP8266
PLC programming is very common in industry and home automation. This book describes how the Raspberry Pi 4 can be used as a Programmable Logic Controller. Before taking you into the programming, the author starts with the software installation on the Raspberry Pi and the PLC editor on the PC, followed by a description of the hardware.
You'll then find interesting examples in the different programming languages complying with the IEC 61131-3 standard. This manual also explains in detail how to use the PLC editor and how to load and execute the programs on the Raspberry Pi. All IEC languages are explained with examples, starting with LD (Ladder Diagram) over ST (Structured Control Language) to SFC (Special Function Chart). All examples can be downloaded from the author's website.
Networking gets thorough attention too. The Arduino Uno and the ESP8266 are programmed as ModbusRTU or ModbusTCP modules to get access to external peripherals, reading sensors and switching electrical loads. I/O circuits complying with the 24 V industry standard may also be of interest for the reader.
The book ends with an overview of commands for ST and LD. After reading the book, the reader will be able to create his own controllers with the Raspberry Pi.
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.
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.
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
The OWON SDS1102 is an affordable benchtop digital oscilloscope that combines solid performance with essential measurement features. This 2-channel oscilloscope offers a 100 MHz bandwidth, a 1 GS/s sampling rate, a 7-inch LCD display, and a 10 kpts memory depth, making it a practical choice for everyday electronics testing, troubleshooting, and education.
The SDS1102 features a simplified trigger system with level and edge triggering, making it easy to capture and analyze common signals. It is designed for applications that do not require deep memory or advanced trigger functions, offering a straightforward and cost-effective solution for basic signal analysis.
Features
Bandwidth: 100 MHz
2 channels
Sample rate: 1 GS/s
Ultra-thin body
7-inch high-res LCD
SCPI and LabVIEW supported
Specifications
Bandwidth
100 MHz
Horizontal Scale (s/div)
5 ns/div – 1000 s/div
Channel
2
Vertical Sensitivity
5 mV/div – 5 V/div (at input)
DC Gain Accuracy
3%
Vertical Resolution (A/D)
8 bits (2 channels simultaneously)
Input
Input Impedance
1 MΩ, 10 pF
Input Coupling
AC, DC, GND
Max Input Voltage
±400 V, CATI, CATII
Passive probes
х1; х10
Probe Attenuation Factor
х1; х10; х100; х1000
Trigger System
Trigger Mode
Auto, Normal, Single
Trigger Type
Edge, Video
Edge Trigger Source
CH1, CH2
Video Trigger
Sampling Type
Real-time
Sample Rate
1 GS/s
Equivalent Sample Rate
No
Wavelength
10K pts
Interpolation
sin(x)/x
Measurement and Mathematical Treatment System
Automatic Measurement
Vpp, Vavg, RMS, Frequency, Period, Vmax, Vmin, Vtop, Vbase, Width, Overshoot, Pre-shootRise time, Fall time, +Width, -Width, +Duty, -Duty, Delay A→B, Delay A→B, area, cycle area
Math Functions
Addition, Subtraction, Multiplication, Division, FFT
General Characteristics
Display type
7" color LCD
Display Resolution
800 x 480
Power
100-240 V, 45-440 Hz, <15 W
Dimensions
301 x 70 x 152 mm
Weight
1.1 kg
Included
1x OWON SDS1102 Oscilloscope
2x Oscilloscope probes
1x Probe adjust
1x Mains power cord
1x USB cable
1x CD-Rom
1x Quick guide
Downloads
Quick Guide
Manual
PC Software
SCPI Commands
Learning Embedded Systems with STM32 Nucleo Boards
Embedded programming has become more accessible than ever before. Development boards are inexpensive, software tools are easy to install, and the Arduino IDE provides a familiar environment for creating embedded applications. Combined with the STM32 Nucleo family of development boards, it offers an excellent platform for learning how modern microcontrollers interact with the physical world.
This book introduces embedded programming using the Arduino environment on STM32 Nucleo boards. You will learn how a microcontroller continuously reads inputs, processes information, and controls outputs in a predictable real-time loop. Through practical examples, you will discover how to control LEDs, read switches and sensors, generate PWM signals, drive motors, and exchange data with other devices, all while becoming familiar with the capabilities of STM32 microcontrollers.
Although the STM32 family includes devices with different performance levels, memory sizes, and peripheral sets, they all share the same architectural concepts. Digital and analog I/O, timers, interrupts, PWM, communication interfaces, and low-power operation are fundamental features found throughout the STM32 ecosystem. Understanding these building blocks will enable you to work confidently with a wide range of STM32 devices, from entry-level microcontrollers to more advanced applications.
By focusing on practical programming techniques rather than hardware complexity, this book develops skills that remain useful well beyond the examples presented. Whether you are taking your first steps in embedded systems or expanding your experience with STM32 microcontrollers, you will gain a solid understanding of both the Arduino development environment and the principles that underpin embedded software design.
From Simple Ciphers to Secure Systems
Understanding how to apply cryptography on modern microcontrollers is essential for building secure, reliable, and trustworthy systems. This book explains cryptography in the context of embedded hardware, from classical ciphers that illustrate core principles to modern techniques such as AES for practical high-security applications.
By combining mathematical theory with real-world microcontroller implementations, readers learn not only how cryptography works, but also how to implement it effectively on systems with limited processing power and memory. The book is intended for students starting out in cryptography, hobbyists securing personal projects, and engineers looking for a structured guide to embedded security.
The book covers these key topics in applied cryptography:
Classical ciphers on Arduino Uno and Raspberry Pi Pico, with full programs: Spartan Scytale, Hebrew Atbash, Caesar, ROT13, Alberti Disk, Vigenère, Affine, Polybius, Playfair, Beaufort, Ottoman Codebook, and One-Time Pad.
Hacking classical ciphers using microcontrollers, with examples.
Pseudo-random (PRNG) and true random number generation (TRNG) on microcontrollers.
Symmetric-key cryptography with full programs: DES and AES-128/256.
Memory and speed constraints of cryptography on microcontrollers.
Asymmetric cryptography: public/private keys, digital signatures, key distribution and derivation (KDF), RSA, and SHA-256 implementations.
A complete secure communication program using RSA and AES-256.
A glossary of commonly used cryptography terms.