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.
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.
Architecture, Programming and Applications
The MSP430 is a popular family of microcontrollers from Texas Instruments. In this book we will work with the smallest type, which is the powerful MSP430G2553. We will look at the capabilities of this microcontroller in detail, as it is well-suited for self-made projects because it is available in a P-DIP20 package.
We will take a closer look at the microcontroller and then build, step by step, some interesting applications, including a 'Hello World' blinking LED and a nice clock application, which can calculate the day of the week based on the date.
You also will learn how to create code for the MSP microcontroller in assembler. In addition to that, we will work with the MSP-Arduino IDE, which makes it quite easy to create fast applications without special in-depth knowledge of the microcontrollers.
All the code used in the book is available for download from the Elektor website.
Programming and Projects for the Minima and WiFi
Based on the low-cost 8-bit ATmega328P processor, the Arduino Uno R3 board is likely to score as the most popular Arduino family member, and this workhorse has been with us for many years. Eleven years later, the long-overdue successor, the Arduino Uno R4, was released. It is built around a 48 MHz, 32-bit Arm Cortex-M4 microcontroller and provides significantly expanded SRAM and Flash memory. Additionally, a higher-precision ADC and a new DAC are added to the design. The Uno R4 board also supports the CAN Bus with an interface.
Two versions of the board are available: Uno R4 Minima, and Uno R4 WiFi. This book is about using these new boards to develop many different and interesting projects with just a handful of parts and external modules. All projects described in the book have been fully tested on the Uno R4 Minima or the Uno R4 WiFi board, as appropriate.
The project topics include the reading, control, and driving of many components and modules in the kit as well as on the relevant Uno R4 board, including
LEDs
7-segment displays (using timer interrupts)
LCDs
Sensors
RFID Reader
4x4 Keypad
Real-time clock (RTC)
Joystick
8×8 LED matrix
Motors
DAC (Digital-to-analog converter)
LED matrix
WiFi connectivity
Serial UART
CAN bus
Infrared controller and receiver
Simulators
… all in creative and educational ways with the project operation and associated software explained in great detail.
Robot à équilibrage sur deux roues compatible Arduino et alimenté par ESP32
L'Elektor Mini-Wheelie est une plateforme robotique expérimentale autonome et auto-équilibrée. Basé sur un microcontrôleur ESP32-S3, le robot auto-équilibré est entièrement programmable à l'aide de l'environnement Arduino et de bibliothèques open source. Ses capacités sans fil lui permettent d'être contrôlé à distance via Wi-Fi, Bluetooth ou ESP-NOW ou de communiquer avec un utilisateur ou même un autre robot.
Un transducteur à ultrasons est disponible pour détecter les obstacles. Son écran couleur peut être utilisé pour afficher de jolies expressions faciales ou, pour les utilisateurs les plus terre-à-terre, des messages de débogage énigmatiques.
Le robot est livré en kit complet avec des pièces à assembler soi-même. Tout est inclus, même un tournevis.
Remarque : Le Mini-Wheelie est une plateforme de développement pédagogique destinée à l'apprentissage, à l'expérimentation et au développement de la robotique. Il n'est pas considéré comme un jouet pour enfants, et ses caractéristiques, sa documentation et le public auquel il s'adresse reflètent cet objectif. Le produit est destiné aux étudiants, aux éducateurs et aux développeurs qui souhaitent explorer la robotique, la programmation et l'intégration de matériel dans un cadre éducatif.
Spécifications
Microcontrôleur ESP32-S3 avec Wi-Fi et Bluetooth
MPU6050 unité de mesure inertielle (IMU) à 6 axes
Deux moteurs électriques 12 V à commande indépendante avec tachymètre
Transducteur à ultrasons
Écran couleur TFT 2,9 pouces (320 x 240)
Emplacement pour carte MicroSD
Moniteur de puissance de la batterie
Batterie Li-Po rechargeable 3S (11,1 V/2200 mAh)
Chargeur de batterie inclus
Logiciel Open Source basé sur Arduino
Dimensions (L x L x H) : 23 x 8 x 13 cm
Inclus
1x Carte mère ESP32-S3 + module MPU6050
1x Carte LCD (2,9 pouces)
1x Capteur à ultrasons
1x Batterie (2200 mAh)
1x Chargeur de batterie
1x Kit de pneus moteur
1x Tableau de caisse
1x Tableau acrylique
1x Tournevis
1x Bande de protection
1x Câble flexible B (8 cm)
1x Câble flexible A (12 cm)
1x Câble flexible C
4x Colonnes A en cuivre (25 mm)
4x Colonnes B en cuivre (55 mm)
4x Colonnes C en cuivre (5 mm)
2x Colonnes en plastique et nylon
8x Vis A (10 mm)
24 Vis B (M3x5)
8x Noix
24x Rondelles métalliques
2x Attaches zippées
1x Carte MicroSD (32 Go)
Téléchargements
Documentation
Pfiffige Lösungen mit Arduino Pro Mini und ATmega328-Boards
Mit einem einfachen Arduino Pro Mini Board und ein paar weiteren Bauteilen lassen sich heute für wenig Geld Projekte realisieren, die vor 20 oder 30 Jahren noch undenkbar waren oder ein kleines Vermögen gekostet hätten. Von einfachen LED-Effekten bis zur Ladestation – die den Akku auf Herz und Nieren prüft – ist in diesem Buch vieles dabei.
Als Mikrocontroller dient bei allen beschriebenen Projekten der ATmega328, der mit seinen 20 Ein- und Ausgangsleitungen unzählige Möglichkeiten zum Messen, Schalten und Steuern bietet. Mit einem 7-Segment-Display und ein paar Widerständen lässt sich daraus z. B. ein Voltmeter bauen oder mittels NTC ein Thermometer. Die Arduino-Plattform bietet dabei die perfekte Entwicklungsumgebung zum Programmieren der Boards.
Neben den ganz konkreten Projekten soll das Buch aber auch das nötige Wissen vermitteln, um eigene Ideen zu realisieren. Wie misst man was? Welches ist der geeignete Transistor, um verschiedene Verbraucher zu schalten? Wann ist man mit einem IC besser bedient, oder wie schaltet man Netzspannung? Auch batteriebetriebene Projekte mit LilyPad sind ausführlich thematisiert. Ebenso vielerlei Motoren, vom einfachen Gleichstrommotor bis zum Schrittmotor.
Sensoren sind ein weiteres spannendes Thema. Nur zwei Beispiele: Mit einem winzigen Bauteil lässt sich tatsächlich messen, dass der Luftdruck am Fußboden höher ist als auf Tischhöhe. Mit einem simplen Infrarot-Empfänger kann man ausgedienten Fernbedienungen ein zweites Leben schenken und die Wohnung damit steuern.
Programming and Projects for the Minima and WiFi
Based on the low-cost 8-bit ATmega328P processor, the Arduino Uno R3 board is likely to score as the most popular Arduino family member, and this workhorse has been with us for many years. Eleven years later, the long-overdue successor, the Arduino Uno R4, was released. It is built around a 48 MHz, 32-bit Arm Cortex-M4 microcontroller and provides significantly expanded SRAM and Flash memory. Additionally, a higher-precision ADC and a new DAC are added to the design. The Uno R4 board also supports the CAN Bus with an interface.
Two versions of the board are available: Uno R4 Minima, and Uno R4 WiFi. This book is about using these new boards to develop many different and interesting projects with just a handful of parts and external modules. All projects described in the book have been fully tested on the Uno R4 Minima or the Uno R4 WiFi board, as appropriate.
The project topics include the reading, control, and driving of many components and modules in the kit as well as on the relevant Uno R4 board, including
LEDs
7-segment displays (using timer interrupts)
LCDs
Sensors
RFID Reader
4x4 Keypad
Real-time clock (RTC)
Joystick
8×8 LED matrix
Motors
DAC (Digital-to-analog converter)
LED matrix
WiFi connectivity
Serial UART
CAN bus
Infrared controller and receiver
Simulators
… all in creative and educational ways with the project operation and associated software explained in great detail.
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.
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.
Construisez votre propre émetteur radio vintage
Le kit émetteur AM Elektor permet de diffuser de l’audio vers des récepteurs radio AM vintage. Basé sur un module microcontrôleur Raspberry Pi Pico, l’émetteur AM peut transmettre sur 32 fréquences dans la bande AM, de 500 kHz jusqu’à 1,6 MHz en 32 pas d’environ 35 kHz.
La fréquence est sélectionnée à l’aide d’un potentiomètre et affichée sur un écran OLED de 0,96". Un bouton-poussoir permet de basculer le mode d’émission entre Marche et Arrêt. La portée de l’émetteur dépend de l’antenne. L’antenne intégrée offre une portée de quelques centimètres, nécessitant de placer l’émetteur AM à proximité ou à l’intérieur de la radio. Une antenne boucle externe (non incluse) peut être connectée pour augmenter la portée.
Le kit émetteur AM Elektor est livré en kit de pièces que vous devez souder vous-même sur la carte.
Caractéristiques
La carte est compatible avec un boîtier Hammond 1593N (non inclus).Une alimentation 5 VDC avec connecteur micro-USB (par exemple, un ancien chargeur de téléphone) est nécessaire pour alimenter le kit (non incluse). Consommation de courant : 100 mA.
Le logiciel Arduino (nécessitant le package RP2040 Boards d’Earle Philhower) pour le kit émetteur AM Elektor ainsi que plus d’informations sont disponibles sur la page Elektor Labs de ce projet.
Liste des composants
Résistances
R1, R4 = 100 Ω
R2, R3, R8 = 10 kΩ
R5, R6, R9, R10, R11 = 1 kΩ
R7 = optionnelle (non incluse)
P1 = potentiomètre 100 kΩ, linéaire
Condensateurs
C1 = 22 µF 16V
C2, C4 = 10 nF
C3 = 150 pF
Divers
K1 = barrette 4×1 broches
K2, K3 = prise 3,5 mm
Raspberry Pi Pico
Bouton-poussoir, montage en angle
Afficheur OLED I²C monochrome 0,96"
PCB 150292-1
Cours complet sur le microcontrôleur ESP32, comprenant une carte d’extension MCU spécialement conçue, des projets pratiques et un guide en ligne complet – idéal pour apprendre le matériel, la programmation et la connectivité étape par étape.
Introduction pratique aux systèmes embarqués avec l'ESP32
Ce cours est conçu pour les débutants en systèmes embarqués qui recherchent une approche structurée et concrète pour se lancer. Si vous avez déjà exploré l'électronique générale ou les ressources basées sur Arduino, mais que vous les avez trouvées trop générales ou manquant de conseils pratiques, ce cours offre une alternative plus ciblée.
Grâce au kit « ESP32 by Example » (EEK) – un ensemble de composants compacts et abordables comprenant des LED, des capteurs, un écran OLED et un processeur de mouvement – vous travaillerez avec une configuration matérielle cohérente tout au long du cours. Une fois assemblé, l'EEK reste quasiment inchangé, ce qui vous permet de vous concentrer sur l'apprentissage et l'expérimentation sans reconfiguration constante.
Sujets abordés :
Comprendre et programmer le microcontrôleur ESP32
Écrire et déployer du code avec l’IDE Arduino
Explorer les systèmes cyberphysiques, jusqu’au pilotage de drones de base
Aucune expérience préalable avec Arduino ou le développement embarqué 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. À la fin de ce cours, vous serez capable non seulement de reproduire les exemples du livre, mais aussi de les enrichir avec vos propres idées et applications.
Que vous soyez intéressé par la programmation embarquée, les systèmes interactifs ou le pilotage de drones, ce cours vous offre une approche claire et pratique pour débuter.
Ce que vous apprendrez ?
Programmation embarquée avec l'ESP32 à l'aide de l'IDE Arduino
Acquisition et contrôle en temps réel des données de capteurs via boutons, LED et écrans
Interaction gestuelle grâce au capteur de mouvement MPU6050
Intégration d'une manette de jeu Bluetooth et simulation de contrôle de drone
Réseaux Wi-Fi et UDP, serveurs web locaux et NTP
Communication MQTT avec des plateformes cloud telles qu'AWS et Arduino IoT
Comment concevoir et déployer des systèmes IoT complets
Idéal pour
Étudiants et autodidactes explorant les systèmes embarqués
Créateurs et passionnés d'IoT souhaitant perfectionner leurs compétences en matériel
Enseignants et formateurs à la recherche de ressources pédagogiques prêtes à l'emploi
Développeurs souhaitant aller au-delà des bases de Raspberry Pi ou Arduino
Une assistance en cas de besoin
Accès aux formateurs via Elektor Academy
Forums communautaires utiles et documentation essentielle
Que contient la boîte (cours) ?
Nouveau livre de 384 pages : « ESP32 by Example » (valeur : 45 €)
Kit Elektor ESP32 by Example (EEK) : Carte d’extension pour microcontrôleur avec 6 LED et 6 boutons intégrés + écran OLED, module accéléromètre et gyroscope 3 axes MPU6050 (valeur : 40 €)
Carte Adafruit HUZZAH32 – ESP32 Feather MCU (valeur : 30 €)
Carte ESP32 Cheap Yellow Display (valeur : 25 €)
Capteur d’humidité et de température DHT11
Plaque d'essai
Câbles de connexion
Câble USB-C
Accès au cours complet sur la plateforme d'apprentissage Elektor Academy Pro
Vidéos pédagogiques
Fichiers de projet Arduino téléchargeables pour chaque module
Matériel pédagogique (de cette boîte/ce cours)
▶ Cliquez ici pour ouvrir
Module 1 – Getting Started with the ESP32 & EEK
Module 2 – Digital Output – LEDs and GPIO
Module 3 – Switches and Input Handling
Module 4 – EEK and PWM
Module 5 – OLED and Display Output
Module 6 – Motion Sensing with the MPU6050
Module 7 – Capstone Project (EEK in Action)
Module 8 – WiFi and Web Control with ESP32
Module 9 – Cloud Concepts using EEK
Module 10 – Hands-on: Arduino IoT Cloud and EEK
Module 11 – BlueTooth and EEK GamePad Integration
Module 12 – Why Drones?
Module 13 – Drone Simulator Concepts
Module 14 – Simple Drone Flight Control
Module 15 – Real-Time Drone Flight Control
Module 16 – Drone Control Mini-Projects
Module 17 – Middleware and Python Scripting
Module 18 – Python Applications for Drone Control
Module 19 – Capstone EEK Control Project and Presentation
À propos de l'auteur
Jim Solderitsch est un enseignant, architecte logiciel, développeur de systèmes et chercheur en cybersécurité spécialisé dans les systèmes cyberphysiques. Il est actuellement professeur associé en sciences informatiques à l'Villanova University en Pennsylvanie.
Qu'est-ce qu'Elektor Academy Pro ?
Elektor Academy Pro propose des solutions d’apprentissage spécialisées, conçues pour les professionnels, les équipes d’ingénieurs et les experts techniques du secteur de l’électronique et des systèmes embarqués. Elle permet aux individus et aux organisations d’approfondir leurs connaissances pratiques, de perfectionner leurs compétences et de garder une longueur d’avance grâce à des ressources de haute qualité et des outils de formation concrets.
Des projets réels aux formations animées par des spécialistes, en passant par des analyses techniques approfondies, Elektor donne aux ingénieurs les moyens de relever les défis actuels du secteur. Notre offre de formation inclut des livres Academy, des coffrets Pro, des webinaires, des conférences et des magazines B2B spécialisés – tous conçus pour favoriser le développement professionnel.
Que vous soyez ingénieur, expert R&D ou décideur technique, Elektor Academy Pro fait le lien entre la théorie et la pratique, vous aide à maîtriser les technologies émergentes et à faire progresser l’innovation dans votre entreprise.
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