With Examples for Arduino UNO, Raspberry Pi Pico and ESP32
Programming small electronic systems has never been more accessible. Tasks that once demanded expensive tools, specialized hardware, and deep electrical engineering expertise can now be tackled with low-cost development boards and approachable software. At the centre of this shift is the Arduino environment, which provides a unified and familiar way to program a wide range of microcontroller platforms—from classic AVR boards like the Arduino UNO to modern ARM-based boards such as the Raspberry Pi Pico, and powerful Wi-Fi-enabled devices like the ESP32.
This book introduces embedded programming through the core idea that defines all microcontrollers: reading inputs, processing information, and controlling outputs in a predictable loop. The Arduino environment abstracts much of the hardware complexity, allowing you to focus on behaviour rather than implementation details. With just a few lines of code, you can blink LEDs, read sensors, control motors, and communicate with other devices.
While the Arduino UNO, Raspberry Pi Pico, and ESP32 boards differ greatly in performance and features, they share the same fundamental building blocks: digital and analog I/O, timers, serial communication, PWM, interrupts, and power management. Learning these concepts within the Arduino framework builds skills that transfer easily across platforms and scale toward more advanced applications.
By exploring multiple boards while maintaining a consistent programming approach, this book helps you progress from simple experiments to confidently produce well-structured designs—showing that embedded development can be both practical and enjoyable.
This is the second edition of a book aimed at engineers, scientists, and hobbyists who want to interface PCs with hardware projects using graphical user interfaces. Desktop and web-based applications are covered.
The programming language used is Python 3, which is one of the most popular languages around: speed of programming being a key feature. The book has been revised and updated with an emphasis on getting the user to produce practical designs with ease – a text editor is all that is required to produce Python programs.
Hardware interfacing is achieved using an Arduino Uno as a remote slave. A full description and source code of the communication interface is given in the book. The slave provides digital and analog input and outputs. Multiple Unos can be included in one project with all control code written in Python and running on a PC One project involves a PIC microcontroller with the code provided that can be loaded into the PIC using the Uno.
The web applications and server are all implemented in Python, allowing you to access your electronic hardware over the Internet. The Raspberry Pi computer can be used as your web server. An introductory chapter is provided to get you started with using Linux.
The book is written for use with Debian or variations including Mint or Ubuntu. All of the programs in the book are freely available, ready to use and experiment with by way of a download from Elektor.
Pfiffige Projekte zum Messen, Steuern und Regeln
Der Raspberry Pi dominiert seit vielen Jahren die Maker-Szene. Frei verfügbare I/O-Pins machten ihn zu einem der beliebtesten Prozessorboards aller Zeiten. Allerdings verfügt der klassische Raspberry Pi über keinerlei Analogeingänge. Eine direkte Messung analoger Werte ist damit nicht möglich. So können weder Photodioden noch NTCs oder Hallsensoren etc. unmittelbar ausgelesen werden. Zudem sind die Pins direkt, d. h. ohne Treiber oder Schutzschaltung, mit den freiliegenden Kontakten verbunden. Dadurch kann der zentrale Controller und damit der gesamte Raspberry Pi schnell zerstört werden.
Mit dem Pico können diese Probleme elegant gelöst werden. Er kann als sogenanntes „Frontend“ problemlos vielfältige Messaufgaben übernehmen. Zudem ist der Pico deutlich preisgünstiger als ein klassischer Raspberry Pi 4. Falls eine Fehlbeschaltung zur Zerstörung des Pico führt, ist dies vor allem für nicht-professionelle Anwender relativ leicht zu verkraften. Der klassische Raspberry Pi und der Pico werden so zum idealen Duo.
Das Buch führt entsprechend in das weite und hochaktuelle Gebiet der modernen Controllertechnik anhand der beiden Boards „Raspberry Pi 4“ und „Raspberry Pi Pico“ ein. Neben einer tiefergehenden Einführung in die Arbeits- und Funktionsweise der Controllerboards selbst wird insbesondere auch auf die Messwerterfassung und -verarbeitung mit digitalen Prozessoren eingegangen. Insbesondere die Kombination beider Systeme bietet vielfältige und hochinteressante Möglichkeiten.
Praktische Projekte aus dem Inhalt:
USB-Verbindung zwischen Raspberry Pi 4 und Pico
I²C-Kommunikation und Pico als I²C-Device
Voltmeter und Computerthermometer
Pico W als Web-Server und WLAN-Scanner
Frequenzmesser und -generatoren
OLED-Displays an Pico und Raspberry Pi 4
Energiesparmonitor
Welche Astronauten sind im Orbit?
Mini-Monitor für den aktuellen Bitcoin-Kurs
An Ultra-Rapid Programming Course
This book serves as the very first step to for novices to learn Python programming. The book is divided into ten chapters. In the first chapter, readers are introduced to the basics of Python. It has the detailed instructions for installation on various platforms such as macOS, Windows, FreeBSD, and Linux. It also covers the other aspects of Python programming such as IDEs and Package Manager. The second chapter is where the readers get an opportunity to have a detailed hands-on with Python programming. It covers a group of built-in data structures popularly known as Python Collections. The third chapter covers the important concepts of strings, functions, and recursion.
The fourth chapter focuses on the Object-Oriented Programming with Python. The fifth chapter discusses most commonly used custom data structures such as stack and queue. The sixth chapter spurs the creativity of the readers with Python’s Turtle graphics library. The seventh chapter explores animations and game development using the Pygame library. The eighth chapter covers handling data stored in a variety of file formats. The ninth chapter covers the area of Image processing with Wand library in Python. The tenth and the final chapter presents an array of assorted handy topics in Python.
The entire book follows a step-by-step approach. The explanation of the topic is always followed by a detailed code example. The code examples are also explained in suitable detail and they are followed by the output in the form of text or screenshot wherever possible. Readers will become comfortable with Python programming language by closely following the concepts and the code examples in this book. The book also has references to external resources for readers to explore further.
A download of the software code, and links to tutorial videos can be found on the Elektor website.
Apprenez à utiliser et programmer le microcontrôleur ESP32 en MicroPython dans vos futurs projets !
Ce livre (en anglais) de projets par Dogan Ibrahim, auteur populaire de livres Elektor contient de nombreux projets logiciels et matériels spécialement développés pour le kit de développement ESP32 de MakePython. Le kit est livré avec plusieurs LED, capteurs et actionneurs. Le kit vous aidera à acquérir les connaissances de base pour créer des projets IdO.
Les projets testés dans le livre sont basés sur les composants fournis. Chaque projet est décrit par un schéma fonctionnel, un schéma de circuit, un listage complet ainsi qu’une description détaillée du programme.
Contenu du kit
1x Carte de développement MakePython ESP32 avec LCD
1x Module de mesure à ultrasons
1x Capteur de température et d'humidité
1x Module buzzer
1x Module DS18B20
1x Module infrarouge
1x Potentiomètre
1x Module WS2812
1x Capteur de son
1x Capteur de vibrations
1x Module de résistance photosensible
1x Capteur de pouls
1x Servomoteur
1x Câble USB
2x Bouton
2x Plaque d'essai
45x Fils de connexion
10x résistances 330R
10x LED (Rouges)
10x LED (Verts)
1x Livre de projets (en anglais, 206 pages)
46 projets dans le livres
Projets à LED
LED clignotante
SOS clignotant
LED clignotante – utilisation d'un timer
LED clignotantes en alternance
Contrôle des boutons
Modification de la fréquence de clignotement des LED à l'aide d'interruptions de boutons-poussoirs
LED de poursuite
Compteur binaire à LED
Lumières de Noël (8 LEDs clignotant de façon aléatoire)
Dés électronique
Jour de chance de la semaine
Projets de modulation de la largeur d'impulsion (PWM)
Génération d'une forme d'onde PWM de 1000 Hz avec un rapport cyclique de 50%
Contrôle de la luminosité des LED
Mesures de la fréquence et du rapport cyclique d'une forme d'onde PWM
Compositeur de mélodies
Orgue électronique simple
Servo motor control
Thermomètre DS18B20 à servomoteur
Projets de convertisseur analogique-numérique (CAN)
Voltmètre
Traçage de la tension d'entrée analogique
Capteur de température interne de l'ESP32
Ohmmètre
Module de résistance photosensible
Projets de convertisseur numérique-analogique (CNA)
Génération de tensions fixes
Génération d'un signal en dents de scie
Génération d'un signal à onde triangulaire
Forme d'onde périodique arbitraire
Génération d'un signal sinusoïdal
Génération d'un signal sinusoïdal précis au moyen d'interruptions du timer
Utilisation de l'afficheur OLED
Compteur de secondes
Compteur d'événements
Thermomètre numérique à base d'OLED DS18B20
Contrôleur de température ON-OFF
Mesure de la température et de l'humidité
Mesure de la distance par ultrasons
Taille d'une personne (stadiomètre)
Mesure de la fréquence cardiaque (pouls)
Autres capteurs fournis dans le kit
Alarme antivol
Lumière activée par le son
Détection d'obstacles par infrarouge avec buzzer
Anneau de LED RVB WS2812
Horodatage des données de température et d'humidité
Programmation réseau
Scanner Wi-Fi
Contrôle à distance depuis le navigateur Internet (à l'aide d'un smartphone ou d'un PC) – Serveur Web
Stockage des données de température et d'humidité dans le cloud
Fonctionnement à faible puissance
Utilisation d'un timer pour activer le processeur
Inhalt
Projekte
Pico-VoiceSprachverfremdung und Soundeffekte mit dem Raspberry Pi Pico
Navi mit Vibrations-Feedback
POV-Anzeige
Impulsbreitenmodulation (PWM) mit dem Raspberry Pi Pico
Verwendung von Wi-Fi mit dem Raspberry Pi Pico
„Hello World“ vom Raspberry Pi Pico und RP2040Ein Blick auf den ersten Mikrocontroller der Raspberry Pi Foundation
Einfacher Ein-Aus-Temperaturregler mit Raspberry-Pi-HAT
Multitasking mit dem Raspberry PiBeispiel: Ampelsteuerung
Das Raspberry-Pi-LinealSpaß mit einem Laufzeitsensor
Puffer-Board für Raspberry Pi (Mk. 1)Nie wieder defekte I/O-Ports
FM-Radio mit RDSEin HAT für den Raspberry Pi
LoRa mit dem Raspberry Pi PicoViel Spaß mit MicroPython!
Tutorials
Qt für Raspberry Pi
Raspberry Pi Pico Programmierungmit MicroPython und Thonny
Raspberry Pi Full StackRPi und RF24 als Herzstück eines Sensornetzwerks
Raspberry Pi – Bash-Befehle in der Übersicht
Community
Java auf dem Raspberry PiEin Interview mit Buch-Autor Frank Delporte
Reviews
Buchvorstellung: Raspberry Pi for Radio Amateurs
Secure-Boot-Lösung für Raspberry PiViel Sicherheit zum vernünftigen Preis
Review: SmartPi – Smartmeter-Erweiterung für Raspberry Pi
Review: RPi-HAT Enviro+Umweltdaten messen mit Raspberry Pi und der HAT Enviro+
Review: Raspberry Pi 4Alles neu und doch gut?
Schnelles 3,5“-Touch-Display für RPiMehr Leistung ohne Aufpreis
Ce cours complet de programmation de microcontrôleurs STM32 comprend un manuel, un kit de composants, des projets pratiques et une formation en ligne approfondie. Il est idéal pour apprendre étape par étape la programmation de systèmes embarqués en MicroPython grâce à une approche pratique.
Une introduction pratique aux systèmes embarqués avec le STM32
Ce cours s'adresse aux débutants dans le domaine des systèmes embarqués qui recherchent une méthode structurée et basée sur des exemples pour se lancer. Un kit de composants est inclus ; il contient notamment des LED, des résistances, des interrupteurs, des capteurs, des actionneurs, des afficheurs, une plaque d'essai (breadboard) et des fils de connexion. Ces éléments sont utilisés tout au long du cours pour illustrer des exemples d'applications.
Aucune expérience préalable de MicroPython ou du développement de systèmes embarqués n'est requise. Chaque section propose des exemples pratiques et des mini-projets conçus pour consolider les concepts clés et encourager une exploration plus approfondie. À l'issue de la formation, vous serez capable non seulement de reproduire les exemples présentés, mais aussi de les enrichir grâce à vos propres idées et applications.
Que allez-vous apprendre ?
Programmation de microcontrôleurs en MicroPython sur STM32 via l'IDE Thonny
Utilisation des entrées/sorties numériques, lecture de boutons et encodeurs, commande de LED et relais
Lecture des entrées analogiques, tensions et capteurs analogiques
Génération de signaux analogiques et PWM
Utilisation des communications série comme UART, I²C et SPI pour piloter des afficheurs et lire des capteurs numériques et cartes SD
Gestion du temps
Utilisation des interruptions
Entrées capteurs en temps réel et contrôle via boutons, LED et afficheurs
Commande d’actionneurs comme relais et servomoteurs
À qui s’adresse ce cours ?
Étudiants et autodidactes explorant les systèmes embarqués
Makers et passionnés d’IoT souhaitant améliorer leurs compétences en hardware
Formateurs et enseignants à la recherche de matériel pédagogique prêt à l’emploi
Contenu de la boîte
Accès au cours complet sur la plateforme Elektor Academy Pro
Carte microcontrôleur STM32 NUCLEO-F411RE
Livre : MicroPython for STM32
Fichiers de projet téléchargeables pour chaque module
Boîte de composants :
2× LED, rouge, 5 mm
LED, verte, 5 mm
3× résistance, 470 Ω, 0,25 W
LDR
Potentiomètre, 10 kΩ, linéaire
Bouton-poussoir
Module encodeur rotatif
Module relais
Capteur DHT22 (température & humidité)
Afficheur 7 segments 4 digits compatible TM1637
MPU-6050 IMU avec connecteurs
Afficheur OLED I²C compatible SSD1306
Adaptateur carte micro SD avec connecteur
Buzzer
Micro servo SG90
Écran TFT SPI 240×320 compatible ILI9341
20× fils jumper
Breadboard
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
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.
Vom Messwert zur stabilen Entscheidung
Wie wird aus einem einfachen Mikrocontroller ein intelligentes System, das Sensorwerte erfasst, verarbeitet und sinnvoll darauf reagiert? Dieses Buch zeigt es Ihnen Schritt für Schritt – verständlich, praxisnah und ohne unnötige Vorkenntnisse.
Sie beginnen mit den Grundlagen der digitalen und analogen Ein- und Ausgänge. Anschließend lernen Sie, wie Sensorwerte gelesen, geglättet und zuverlässig bewertet werden. Anschauliche Beispiele erklären, warum einzelne Messwerte oft täuschen können und wie Mittelwertbildung, Hysterese und einfache Entscheidungsregeln für stabile Ergebnisse sorgen. Nach und nach erweitern Sie Ihre Projekte um Displays, I²C-Kommunikation und mehrere vernetzte Mikrocontroller. So entstehen verteilte Systeme, in denen Raspberry Pi Pico und ATtiny-Controller Daten austauschen und gemeinsam Aufgaben übernehmen.
Im fortgeschrittenen Teil erhalten Sie einen leicht verständlichen Einstieg in Merkmalsbildung, Datenvorverarbeitung, hybride Entscheidungsmodelle und TinyML-nahe Anwendungen. Dabei verbinden Sie klassische Regelungstechnik mit modernen datenbasierten Methoden.
Alle Projekte werden von ausführlich kommentierten Programmen in C und MicroPython begleitet. Das Buch richtet sich an Einsteiger, Maker, Studierende und alle, die Embedded-Systeme von Grund auf verstehen möchten.
Am Ende können Sie eigene Systeme entwickeln, die nicht nur messen, sondern Informationen auswerten, zuverlässige Entscheidungen treffen und gezielt reagieren.
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.
PC USB Logic Analyzers with Arduino, Raspberry Pi, and Co.
Step-by-step instructions guide you through the analysis of modern protocols such as I²C, SPI, UART, RS-232, NeoPixel, WS28xx, HD44780 and 1-Wire. With the help of numerous experimental circuits based on the Raspberry Pi Pico, Arduino Uno and the Bus Pirate, you will learn the practical application of popular USB logic analyzers.
All the experimental circuits presented in this book have been fully tested and are fully functional. The necessary program listings are included – no special programming or electronics knowledge is required for these circuits. The programming languages used are MicroPython and C along with the development environments Thonny and Arduino IDE.
This book uses several models of flexible and widely available USB logic analyzers and shows the strengths and weaknesses of each price range.
You will learn about the criteria that matter for your work and be able to find the right device for you.
Whether Arduino, Raspberry Pi or Raspberry Pi Pico, the example circuits shown allow you to get started quickly with protocol analysis and can also serve as a basis for your own experiments.
After reading this book, you will be familiar with all the important terms and contexts, conduct your own experiments, analyze protocols independently, culminating in a comprehensive knowledge set of digital signals and protocols.