With Examples for Raspberry Pi Pico and ESP32
Creating and programming small electronic systems is now easier than ever before. With inexpensive development boards and modern software tools, anyone curious about embedded design can quickly move from an idea to a working piece of hardware. At the heart of this change is MicroPython—a clear, interactive, and beginner-friendly way to program microcontrollers while still remaining closely connected to the underlying electronics.
This book introduces embedded programming through MicroPython on popular platforms such as the Raspberry Pi Pico and the ESP32. You will discover how to use microcontrollers for reading inputs, processing data, and controlling outputs in a predictable, real-time loop. With just a few lines of code, you can blink LEDs, read sensors, drive motors, and communicate with the outside world. The interactive REPL programming interface encourages experimentation and fast learning, making concepts tangible from the very first chapter.
While different boards offer different capabilities, they all share the same core principles. Timers, GPIO, analog I/O, PWM, interrupts, and communication interfaces form the foundation of every embedded system.
By focusing on these universal building blocks, this book helps you build skills that transfer across platforms and scale naturally toward more advanced development. Whether you are a beginner or an experienced programmer entering embedded systems, you will find that working with MicroPython is both practical and genuinely enjoyable.
Met de Raspberry Pi heeft u voor slechts een paar tientjes een complete computer in handen, waar op eenvoudige wijze allerlei elektronica aangesloten kan worden. In deze 2e herziene en uitgebreide versie gaan we in op een van de sterke kanten van de Raspberry Pi: de combinatie van programmeren en elektronica.
Na een korte introductie van de Raspberry Pi wordt de benodigde software geïnstalleerd. Op de SD-kaart die u bij dit boek kunt aanschaffen, is die allemaal al aanwezig voor de Raspberry Pi. Aan de (optionele) Windows PC kant gebeurt dit met gratis software die u kunt downloaden.
Daarna volgt een beknopte inleiding in het besturingssysteem Linux en gaan we programmeren in Bash, Python en JavaScript. De nadruk ligt hierbij op Python, maar in alle gevallen houden we het kort. We bespreken net voldoende zodat u de projecten kunt begrijpen en aan uw wensen aanpassen, en gaan dan aan de slag met leuke projecten.
Maar liefst 45 spannende en interessante projecten worden in detail besproken en uitgelegd. Van wisselknipperlicht, aansluiten van een elektromotor, het verwerken en maken van analoge signalen tot lichtmeter en temperatuurregeling. Maar ook gecompliceerdere projecten zoals een motorsnelheidsregeling, webserver met CGI, client-server applicaties en Xwindows programma‘s. U kunt dit boek gebruiken als projecten boek en de projecten nabouwen en in de praktijk inzetten. Door de duidelijke uitleg, schema‘s en foto‘s van de opstellingen op een steekbord wordt het nabouwen een erg leuke bezigheid.
RPi
Alle software voor de RPi is voorgeïnstalleerd op een SD-kaart die u bij dit boek kunt aanschaffen. Dat wil zeggen dat alle software en drivers voor SSH, SPI, I²C, GPIO, PWM, muziek, Python Ontwikkelversie, wxPython, IdleX en de seriële verbinding gegarandeerd werken. Tevens staan alle broncodes van de projecten uitdit boek op deze kaart.
Windows-PC
In het gratis download-pakket dat bij dit boek hoort, vindt u de software die in dit boek gebruikt wordt op de Windows-PC handig bij elkaar in een enkel ZIP-bestand. Alle software is gratis. Tevens bevat het pakket een filmpje van de Nutteloze Doos (Useless Machine) van project 13.4.
Software download-pakket
WinOscillo
Putty
Xming
WinSCP
DiskImager
Notepad2
IdleX
Useless Box film
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.
AI Projects for the Raspberry Pi with the AI HAT+
Edge AI is transforming everyday devices by putting intelligence where it matters most: directly inside the hardware. With on-device inference, a camera can recognize a visitor instantly, a phone can translate speech without streaming audio to the cloud, and a wearable can detect anomalies in real time—fast, private, and reliable even when the network disappears.
This book is your practical guide to building exactly those kinds of systems with the Raspberry Pi AI HAT+ and the Hailo-8L accelerator. You’ll start with clear foundations: core AI and machine-learning concepts, how neural networks work, and what truly distinguishes Edge AI from cloud AI—plus an honest look at ethical considerations and future impacts.
Then it’s straight to hands-on physical computing. Step by step, you’ll set up Raspberry Pi OS, power and cooling, and develop in Python using the Thonny IDE. You’ll learn GPIO basics with lights and servos, mount the AI HAT+ hardware, install and verify the Hailo software stack, and connect the right camera—official modules or USB webcams, even multiple cameras.
From your first pipeline to real projects, you’ll run person detection, pose estimation, segmentation, and depth estimation, then level up with YOLO object detection: smart alerts, guest counters, and custom extensions. You’ll even connect vision to motion by combining gesture recognition with servo-driven mechanisms, including a robotic arm.
With troubleshooting tips, hardware essentials, and a practical Python refresher, this book turns Edge AI from buzzword into buildable reality.
Learn to program displays and GUIs with Python
This book is about Raspberry Pi 4 display projects. The book starts by explaining how to install the latest Raspbian operating system on an SD card, and how to configure and use the GPIO ports.
The core of the book explains the following topics in simple terms with fully tested and working example projects:
Simple LED projects
Bar graph LED projects
Matrix LED projects
Bitmap LED projects
LED strips
LCDs
OLED displays
E-paper displays
TFT displays
7-inch touch screen
GUI Programming with Tkinder
One unique feature of this book is that it covers almost all types of display that readers will need to use in their Raspberry Pi based projects. The operation of each project is fully given, including block diagrams, circuit diagrams, and commented full program listings. It is therefore an easy task to convert the given projects to run on other popular platforms, such as Arduino or PIC microcontrollers.
Python program listings of all Raspberry Pi projects developed in this book are available for download at Elektor.com. Readers can use these programs in their projects. Alternatively, they can modify the programs to suit their applications.
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
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
Ready to explore the world around you? By attaching the Sense HAT to your Raspberry Pi, you can quickly and easily develop a variety of creative applications, useful experiments, and exciting games.
The Sense HAT contains several helpful environmental sensors: temperature, humidity, pressure, accelerometer, magnetometer, and gyroscope. Additionally, an 8x8 LED matrix is provided with RGB LEDs, which can be used to display multi-color scrolling or fixed information, such as the sensor data. Use the small onboard joystick for games or applications that require user input. In Innovate with Sense HAT for Raspberry Pi, Dr. Dogan Ibrahim explains how to use the Sense HAT in Raspberry Pi Zero W-based projects. Using simple terms, he details how to incorporate the Sense HAT board in interesting visual and sensor-based projects. You can complete all the projects with other Raspberry Pi models without any modifications.
Exploring with Sense HAT for Raspberry Pi includes projects featuring external hardware components in addition to the Sense HAT board. You will learn to connect the Sense HAT board to the Raspberry Pi using jumper wires so that some of the GPIO ports are free to be interfaced to external components, such as to buzzers, relays, LEDs, LCDs, motors, and other sensors.
The book includes full program listings and detailed project descriptions. Complete circuit diagrams of the projects using external components are given where necessary. All the projects were developed using the latest version of the Python 3 programming language. You can easily download projects from the book’s web page. Let’s start exploring with Sense HAT.
From basics to flows for sensors, automation, motors, MQTT, and cloud services
This book is a learning guide and a reference. Use it to learn Node-RED, Raspberry Pi Pico W, and MicroPython, and add these state-of-the-art tools to your technology toolkit. It will introduce you to virtual machines, Docker, and MySQL in support of IoT projects based on Node-RED and the Raspberry Pi Pico W.
This book combines several elements into a platform that powers the development of modern Internet of Things applications. These elements are a flow-based server, a WiFi-enabled microcontroller, a high-level programming language, and a deployment technology. Combining these elements gives you the tools you need to create automation systems at any scale. From home automation to industrial automation, this book will help you get started.
Node-RED is an open-source flow-based development tool that makes it easy to wire together devices, APIs, and online services. Drag and drop nodes to create a flowchart that turns on your lights at sunset or sends you an email when a sensor detects movement. Raspberry Pi Pico W is a version of the Raspberry Pi Pico with added 802.11n Wi-Fi capability. It is an ideal device for physical computing tasks and an excellent match to the Node-RED.
Quick book facts
Project-based learning approach.
Assumes no prior knowledge of flow-based programming tools.
Learn to use essential infrastructure tools in your projects, such as virtual machines, Docker, MySQL and useful web APIs such as Google Sheets and OpenWeatherMap.
Dozens of mini-projects supported by photographs, wiring schematics, and source code. Get these from the book GitHub repository.
Step-by-step instructions on everything.
All experiments are based on the Raspberry Pi Pico W. A Wi-Fi network is required for all projects.
Hardware (including the Raspberry Pi Pico W) is available as a kit.
Downloads
GitHub
Das FNIRSI TMP-610S ist ein kompaktes 3-in-1-Messgerät, das ein True-RMS-Multimeter, ein 10-MHz-Oszilloskop und einen 50-kHz-DDS-Signalgenerator vereint. Es wurde für die Fehlersuche in der Elektronik, das Testen von Schaltkreisen sowie für Entwicklungsarbeiten im Labor oder im Außeneinsatz konzipiert.
Das Multimeter bietet eine Auflösung von 60.000 Counts und unterstützt Messungen von Spannung, Strom, Widerstand, Kapazität, Frequenz und Temperatur sowie Dioden- und Durchgangsprüfungen. Das integrierte Oszilloskop ermöglicht eine Echtzeit-Signalformanalyse mit bis zu 48 MSa/s, während der Signalgenerator 13 Signalformen mit einstellbarer Frequenz, Amplitude und Tastverhältnis (Duty Cycle) bereitstellt.
Ein 3,5-Zoll-IPS-Touchscreen, eine intelligente Auto-Scan-Funktion, Bluetooth-Konnektivität für die DMM-Funktionen, Signalformspeicherung, USB-Export sowie ein 3.000-mAh-Akku machen das TMP-610S zu einem vielseitigen All-in-One-Werkzeug für Elektronik-Profis und Enthusiasten.
Features
3-in-1-Design: Digitalmultimeter + Oszilloskop + Signalgenerator
Hochpräzise True-RMS-Messung mit 60.000 Counts
10-MHz-Oszilloskop mit 48 MSa/s Abtastrate
Bluetooth-App-Synchronisierung (nur Multimeter-Funktion)
3,5-Zoll-Smart-Touchscreen mit verschiedenen Anzeigemodi
50-kHz-DDS-Signalgenerator mit 13 Signalformen
Integrierte Sicherung für einfachen Austausch
Technische Daten
Multimeter
Funktion
Messbereich
Genauigkeit
DC voltage
600mV/6V/60V/600V/1000V
±(0.03%+5d)
AC voltage
600mV/6V/60V /600V/750V
±(0.3%+15d)
DC current
600uA/6000uA/60mA/600mA
±(0.15%+5d)
6A/10A
±(0.2%+5d)
AC current
600uA/6000uA/60mA/600mA
±(0.5%+15d)
6A/10A
±(0.75%+15d)
Resistance
600Ω/6KΩ/60KΩ/600KΩ/6MΩ
±(0.1%+5d)
60MΩ
±(0.2%+10d)
Capacitance
60nF/600nF/6uF/60uF
±(2.5%+30d)
600uF/6mF/60mF
±(3.5%+30d
Frequency
10 Hz~60 MHz
±(0.01%+5d)
Temperature
-40℃~1000℃
±(1.0%+5℃)
Continuity
0Ω~1KΩ
±(0.2%+5d)
Diode
0V~3.0V, 0Ω~1 Ω
±(1%+5d)
AC frequency response
10KHz
/
Oszilloskop
Real-time Sampling Rate
48 MSa/s
Analog Bandwidth
10 MHz
Input Impedance
1MΩ
Coupling Mode
AC/DC
Test Voltage Range
1:1 Probe - 80Vpp (±40V)
10:1 Probe - 800Vpp (±400V)
Vertical Sensitivity
10mV/div~10V/div
Vertical Displacement
Adjustable with indication
Horizontal Time Base Range
50 ns ~ 20 s
Trigger Mode
Auto, Normal, Single
Trigger Type
Rising, Falling, 50%
Trigger Level
Adjustable with indication
Measurement Parameters
Freq, Period, +Duty, ‒Duty, +Width, ‒Width, Max, Min, P‒P, Amp, RMS, Avg
Persistence
Off / 500ms / 1s / ∞
Cursor Measurement
Yes
Waveform Screenshot Saving
Yes
Signalgenerator
Output Waveform
Supports 13 waveform types
Frequency
0~50kHz
Amplitude
0.0V~3.0V
Duty Cycle
0~100%, adjustable for Square and Sawtooth waves
Lieferumfang
1x FNIRSI TMP-610S Multimeter + Oszilloskop + Signalgenerator
1x P6100 Sonde
1x Adapter
2x Krokodilklemmen
2x Multimeter-Sonden
Sondenzubehör
1x Aufbewahrungstasche
1x USB-C Kabel
1x Manual
Downloads
Manual
Mit RPi-basierten Tools und Messgeräten Amateurfunkstationen bauen und programmieren
Obwohl viele Funkamateure immer noch mit klassischer HF- und Mobilfunkausrüstung arbeiten, ist der Einsatz von Computern und digitalen Techniken mittlerweile sehr beliebt. wür überwä wür wich überwä ich wür wich überwä ich wür wämich überwä ich wür wich überich wür wämich überbich wür wich überwä ich wür wich überbich wür wäm ...ich wür wich überbich wür ich überbich wür ich wür wich überbich wür Für 40 € einen Raspberry Pi-Computer kaufen und schnell jede Amateurfunk-Software auf dem 'RPi' ausführen.
Die RTL-SDR-Geräte sind bei Funkamateuren sehr beliebt, weil sie sehr preiswert sind und viele Funktionen bieten. Ein Basissystem kann aus einem USB-basierten RTL-SDR-Dongle mit einer geeigneten Antenne, einem RPi-Computer, einem USB-basierten externen Audio-Eingangs-/Ausgangsadapter und einer auf dem RPi installierten Software bestehen. Mit einer solchen einfachen Einrichtung ist es möglich, Signale von etwa 24 MHz bis über 1,7 GHz zu empfangen.
Dieses Buch richtet sich an Funkamateure, die lernen wollen, wie man mit dem Raspberry Pi elektronische Projekte baut. Das Buch eignet sich für die gesamte Bandbreite von Anfängern bis hin zu alten Hasen im Amateurfunk. Die schrittweise Installation des Betriebssystems wird mit vielen Details zu den gängigsten Linux-Befehlen beschrieben. Einige Kenntnisse der Programmiersprache Python sind erforderlich, um die im Buch beschriebenen Projekte zu verstehen und zu bearbeiten. Zu den im Buch entwickelten Beispielprojekten gehören eine Stationsuhr, ein Signalgenerator, der Entwurf eines Transistorverstärkers, der Entwurf eines aktiven Filters, ein Morsezeichen-Übungsgerät, ein Frequenzzähler, ein HF-Meter und vieles mehr. Für jedes Projekt werden das Blockdiagramm, der Schaltplan und der vollständige Python-Quellcode angegeben, einschließlich der vollständigen Beschreibung des Projektes.
Neben der umfassenden Behandlung von RTL-SDR für Amateurfunk fasst das Buch auch die Installations- und Gebrauchsanweisungen der folgenden Amateurfunkprogramme zusammen, die Sie auf Ihrem Raspberry Pi ausführen können: TWCLOCK, Klog, Gpredict, FLDIGI, DIRE WOLF, xcwcp, QSSTV, LinPsk, Ham Clock, CHIRP, xastir und CQRLOG.
Program and Build Raspberry Pi 5 Based Ham Station Utilities with the RTL-SDR
The RTL-SDR devices (V3 and V4) have gained popularity among radio amateurs because of their very low cost and rich features. A basic system may consist of a USB based RTL-SDR device (dongle) with a suitable antenna, a Raspberry Pi 5 computer, a USB based external audio input-output adapter, and software installed on the Raspberry Pi 5 computer. With such a modest setup, it is possible to receive signals from around 24 MHz to over 1.7 GHz.
This book is aimed at amateur radio enthusiasts and electronic engineering students, as well as at anyone interested in learning to use the Raspberry Pi 5 to build electronic projects. The book is suitable for both beginners through experienced readers. Some knowledge of the Python programming language is required to understand and eventually modify the projects given in the book. A block diagram, a circuit diagram, and a complete Python program listing is given for each project, alongside a comprehensive description.
The following popular RTL-SDR programs are discussed in detail, aided by step-by-step installation guides for practical use on a Raspberry Pi 5:
SimpleFM
GQRX
SDR++
CubicSDR
RTL-SDR Server
Dump1090
FLDIGI
Quick
RTL_433
aldo
xcwcp
GPredict
TWCLOCK
CQRLOG
klog
Morse2Ascii
PyQSO
Welle.io
Ham Clock
CHIRP
xastir
qsstv
flrig
XyGrib
FreeDV
Qtel (EchoLink)
XDX (DX-Cluster)
WSJT-X
The application of the Python programming language on the latest Raspberry Pi 5 platform precludes the use of the programs in the book from working on older versions of Raspberry Pi computers.