Dit boek gaat over de Raspberry Pi, en over het programmeren in C. De programmeertaal C en het besturingssysteem Linux (Raspbian) passen uitstekend bij elkaar. Alles wat we nodig hebben om in C te programmeren wordt meegeleverd met het besturingssysteem van de Raspberry Pi.
In dit boek leert u hoe C gebruikt wordt met de Raspberry Pi, en krijgt u een overzicht van de taal.
WiringPi is een softwarebibliotheek voor de Raspberry Pi waarmee C hardware-uitbreidingen kan benaderen. Die bibliotheek wordt gebruikt om sensoren uit te lezen en om extra hardware aan te sturen. U gaat experimenteren met LED’s en schakelaars, met motoren, met geluid en met sensoren voor temperatuur, luchtdruk, en luchtvochtigheid.
Met een Linux-systeem kunt u een webserver maken, inclusief interactieve websites met PHP en WiringPi. Daarom is ook een beknopt overzicht van HTML en PHP in het boek opgenomen. In de voorbeelden worden sensoren via het web uitgelezen en worden apparaten bestuurd. In het laatste voorbeeld wordt een temperatuurlogger gemaakt. Die meet elk kwartier de temperatuur. Een tabel met de meetwaarden kan via het web worden uitgelezen.
Alle voorbeeldprogramma’s kunnen worden gedownload van de website van Elektor.
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.
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.
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.
Arduino-compatibele, ESP32-aangedreven tweewielige balansrobot
De Elektor Mini-Wheelie is een experimenteel autonoom zelfbalancerend robotplatform. De zelfbalancerende robot is gebaseerd op een ESP32-S3-microcontroller en is volledig programmeerbaar met behulp van de Arduino-omgeving en open-sourcebibliotheken. Dankzij de draadloze mogelijkheden kan hij op afstand worden bediend via Wi-Fi, Bluetooth of ESP-NOW, of kan hij communiceren met een gebruiker of zelfs een andere robot.
Er is een ultrasone transducer beschikbaar voor het detecteren van obstakels. Het kleurendisplay kan worden gebruikt voor het weergeven van schattige gezichtsuitdrukkingen of, voor de meer nuchtere gebruikers, voor cryptische debug-berichten.
De robot wordt geleverd als een compleet bouwpakket met onderdelen die u zelf in elkaar moet zetten. Alles zit erbij, zelfs een schroevendraaier.
Let op: De Mini-Wheelie is een educatief ontwikkelingsplatform bedoeld voor leren, experimenteren en robotica-ontwikkeling. Het is niet geclassificeerd als speelgoed voor kinderen en de functies, documentatie en beoogde doelgroep weerspiegelen dit doel. Het product is gericht op studenten, docenten en ontwikkelaars die robotica, programmeren en hardware-integratie willen verkennen in een educatieve omgeving.
Specificaties
ESP32-S3-microcontroller met Wi-Fi en Bluetooth
MPU6050 6-assige Inertial Measurement Unit (IMU)
Twee onafhankelijk geregelde 12 V elektromotoren met toerenteller
Ultrasone transducer
2,9" TFT-kleurendisplay (320 x 240)
MicroSD-kaartsleuf
Batterijstroommonitor
3S oplaadbare Li-Po-batterij (11,1 V/2200 mAh)
Batterijlader meegeleverd
Op Arduino gebaseerde open source-software
Afmetingen (B x L x H): 23 x 8 x 13 cm
Inbegrepen
1x ESP32-S3 Mainboard + MPU6050 module
1x LCD-board (2,9 inch)
1x Ultrasone-sensor
1x Batterijpakket (2200 mAh)
1x Batterijlader
1x Motorbandenset
1x Kastboard
1x Acrylplaat
1x Schroevendraaier
1x Beschermstrip
1x Flexkabel B (8 cm)
1x Flexkabel A (12 cm)
1x Flexkabel C
4x Koperen kolom A (25 mm)
4x Koperen kolom B (55 mm)
4x Koperen kolom C (5 mm)
2x Kunststof nylon zuil
8x Schroeven A (10 mm)
24x Schroeven B (M3x5)
8x Moeren
24x Metalen ringen
2x Ritssluiting
1x MicroSD-kaart (32 GB)
Downloads
Documentation
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
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
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.
De FNIRSI TMP-610S is een compact 3-in-1 meetinstrument dat een True RMS-multimeter, een 10 MHz-oscilloscoop en een 50 kHz DDS-signaalgenerator combineert. Het apparaat is ontworpen voor het opsporen van fouten in elektronica, het testen van circuits en ontwikkelingswerkzaamheden, zowel in het laboratorium als onderweg.
De multimeter biedt een resolutie van 60.000 counts en ondersteunt metingen van spanning, stroom, weerstand, capaciteit, frequentie, temperatuur, diodes en continuïteit. De geïntegreerde oscilloscoop maakt realtime golfvormanalyse mogelijk met een snelheid tot 48 MSa/s, terwijl de signaalgenerator 13 golfvormtypen ondersteunt met instelbare frequentie, amplitude en duty cycle.
Dankzij een 3,5-inch IPS-touchscreen, slimme autoscan-functie, Bluetooth-connectiviteit voor DMM-functies, opslag van golfvormen, USB-exportmogelijkheid en een oplaadbare accu van 3000 mAh is de TMP-610S een veelzijdige alles-in-één-tool voor elektronicaprofessionals en hobbyisten.
Kenmerken
3-in-1 ontwerp: DMM + oscilloscoop + signaalgenerator
Uiterst nauwkeurige True RMS-meting (60.000 counts)
10 MHz-oscilloscoop met een samplefrequentie van 48 MSa/s
Synchronisatie met Bluetooth-app (alleen multimeterfunctie)
3,5-inch slim touchscreen met diverse weergavemodi
50 kHz DDS-signaalgenerator met 13 golfvormen
Ingebouwde zekering voor eenvoudige vervanging
Specificaties
Multimeter
Functie
Bereik
Nauwkeurigheid
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
/
Oscilloscoop
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
Signaalgenerator
Output Waveform
Supports 13 waveform types
Frequency
0~50kHz
Amplitude
0.0V~3.0V
Duty Cycle
0~100%, adjustable for Square and Sawtooth waves
Inbegrepen
1x FNIRSI TMP-610S multimeter + oscilloscoop + signaalgenerator
1x P6100-sonde
1x Adapter
2x Krokodillenklemmen
2x Multimetersondes
Probe-accessoires
1x Opbergtas
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 inzwischen sehr beliebt. Heutzutage kann jeder für ca. 40 € einen Raspberry Pi-Computer kaufen und fast 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 solch 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 der Projekte.
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.
A Beginner's Guide to AI and Edge Computing
Artificial Intelligence (AI) is now part of our daily lives. With companies developing low-cost AI-powered hardware into their products, it is now becoming a reality to purchase AI accelerator hardware at comparatively very low costs. One such hardware accelerator is the Hailo module which is fully compatible with the Raspberry Pi 5. The Raspberry Pi AI Kit is a cleverly designed hardware as it bundles an M.2-based Hailo-8L accelerator with the Raspberry Pi M.2 HAT+ to offer high speed inferencing on the Raspberry Pi 5. Using the Raspberry Pi AI Kit, you can build complex AI-based vision applications, running in real-time, such as object detection, pose estimation, instance segmentation, home automation, security, robotics, and many more neural network-based applications.
This book is an introduction to the Raspberry Pi AI Kit, and it is aimed to provide some help to readers who are new to the kit and wanting to run some simple AI-based visual models on their Raspberry Pi 5 computers. The book is not meant to cover the detailed process of model creation and compilation, which is done on an Ubuntu computer with massive disk space and 32 GB memory. Examples of pre-trained and custom object detection are given in the book.
Two fully tested and working projects are given in the book. The first project explains how a person can be detected and how an LED can be activated after the detection, and how the detection can be acknowledged by pressing an external button. The second project illustrates how a person can be detected, and how this information can be passed to a smart phone over a Wi-Fi link, as well as how the detection can be acknowledged by sending a message from the smartphone to your Raspberry Pi 5.