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.
The Joy-Pi Note 2 is a portable, all-in-one electronics experimentation and learning platform, fully compatible with the Raspberry Pi 4 and 5. Combining an 11.6-inch IPS display, a detachable wireless keyboard, and a compact, robust housing, it provides a flexible environment for electronics development, programming, and education.
With more than 45 hands-on courses and projects, the Joy-Pi Note 2 supports learning and experimentation with Python, Scratch, robotics, and IoT applications. Its integrated learning platform provides step-by-step instructions, making it suitable for beginners, students, educators, and experienced makers.
The system features over 22 integrated sensors and modules, including temperature, light, motion, and distance sensors, as well as LED displays and motor interfaces. Additional connectivity options, including USB-C and GPIO expansion interfaces, allow users to develop and test their own projects.
With support for the Raspberry Pi 5, the Joy-Pi Note 2 also benefits from improved processing power and graphics performance, making it a versatile platform for electronics education, prototyping, and advanced experimentation.
Features
Complete Electronics Experimentation Kit
All-in-One Learning and Experimentation Platform
Compatible with Raspberry Pi 4 & 5
Pre-installed Interactive Learning Platform
Detachable Wireless Keyboard
Integrated Storage Compartment for Power Bank and Accessories
Specifications
Display
11.6" LCD Display
Camera
2 MP
Learning platform
45+ courses & projects
Displays
7-segment display, 16x2 display, 1.8" TFT display, 0.96" OLED display, 8x8 RGB matrix
Power supply
5 V/5 A, USB-C
Displays
7-segment display, 16x2 LCD module, 8x8 RGB matrix
Sensors
DHT temperature & humidity sensor, tilt sensor, motion sensor, sound sensor, touch sensor, RFID module, light sensor, ultrasonic sensor
Motors
Servo interface, stepper motor interface, vibration motor
Control system
Joystick, 4x4 button matrix, Raspberry Pi & PCV connection switch, motion sensor sensitivity controller, sound sensor sensitivity controller, 16x2 LCD module brightness controller
Miscellaneous
Relay, fan, GPIO extension, GPIO LED indicator, breadboard, IO/ ADC/I²C/UART extension interface, infrared sensor interface, buzzer, display driver
Accessories
RFID chip, RFID card, power supply unit, servo motor, stepper motor, infrared receiver, infrared remote control, DC motor with fan attachment, screwdriver, microSD card (32 GB), SD card reader, electronic accessories, wireless mouse, wireless keyboard
Dimensions
291 x 190 x 46 mm
Weight
1.3 kg
Included
Joy-Pi Note 2 Notebook
Raspberry Pi 5 (8 GB RAM)
Accessories
USB-C power supply unit
Quick start guide
Downloads
Joy-Pi website
Datasheet
Cool Projects for Test, Measurement, and Control
The Raspberry Pi has dominated the maker scene for many years. Freely accessible I/O pins have made it one of the most popular processor boards of all time. However, the classic Raspberry Pi has no analog inputs. Direct measurement of analog values is therefore not possible. Consequently, photodiodes, NTCs, Hall sensors, etc. cannot be read directly. In addition, the pins are connected directly to the exposed contacts, i.e. without a driver or protection circuit. This can quickly destroy the central controller and thus the entire Raspberry Pi.
These problems can be elegantly solved with the Pico. As a front-end, it can easily handle a wide range of measurement tasks. In addition, the Pico is much cheaper than a classic Raspberry Pi 4 or 5. If a faulty circuit leads to the destruction of the Pico, this is relatively easy to handle. This makes the combination of a classic Raspberry Pi 4 or 5 and the Pico an ideal pair.
The book introduces the broad and highly topical field of modern controller technology using the combined force of a Raspberry Pi 4 or 5 and a Raspberry Pi Pico. In addition to a detailed introduction to the operation and functionality of the controller boards themselves, the book also focuses on data acquisition and processing with digital processors. Especially the combination of both systems offers a wide range of interesting possibilities.
Some practical projects from the contents:
USB between Raspberry Pi 4 or 5 and Pico
I²C Communication and Pico as an I²C device
Voltmeter and Computer Thermometer
Pico W as a Web Server and WLAN Scanner
Frequency Meters and Generators
OLED Displays on Raspberry Pi 4 or 5 and Pico
Energy Saving Monitor
Which Astronauts are in Orbit?
Mini Monitor for Current Bitcoin Exchange Rate
Umfassendes Buch-Hardware-Bundle für den RP2040-Mikrocontroller mit über 80 Projekten
Entdecken Sie in diesem Bundle das Potenzial der modernen Controller-Technologie mit dem Raspberry Pi Pico. Das leicht verständliche Handbuch eignet sich sowohl für Anfänger als auch für erfahrene Benutzer und führt Sie von den Grundlagen der Elektronik bis hin zu den komplexen Aspekten der digitalen Signalverarbeitung. Mit dem Raspberry Pi Pico, dem speziellen Hardware-Kit und der MicroPython-Programmierung lernen Sie die wichtigsten Prinzipien des Schaltungsdesigns, der Datenerfassung und -verarbeitung.
Machen Sie praktische Erfahrungen mit über 80 Projekten wie einer Stoppuhr mit OLED-Display, einem Laser-Entfernungsmesser und einem servogesteuerten Lüfter. Diese Projekte sollen Ihnen helfen, das Gelernte in realen Szenarien anzuwenden. Das Buch behandelt auch fortgeschrittene Themen wie drahtlose RFID-Technologie, Objekterkennung und Sensorintegration für die Robotik.
Ganz gleich, ob Sie Ihre Kenntnisse in der Elektronik erweitern oder tiefer in eingebettete Systeme eintauchen möchten, dieses Bundle ist die perfekte Ressource, um das volle Potenzial des Raspberry Pi Pico zu erkunden.
Inhalt des Bundles
1x Projektbuch (287 Seiten)
1x Smart Car Kit
Bauteile
2x Lötfreies Steckbrett (400 Löcher)
1x Lötfreies Steckbrett (170 Löcher)
5x bunte 5-mm-LEDs (Grün, Rot, Blau, Gelb und Weiß)
1x Lasersender
1x Passiver Summer
1x Micro-USB-Kabel (30 cm)
1x 65 Überbrückungskabel
1x 20 cm männlicher auf weiblicher Dupont-Draht
1x Transparentes Gehäuse
1x Magnet (Durchmesser: 8 mm, Dicke: 5 mm)
1x Drehpotentiometer
10x 2 KΩ Widerstände
2x M2, 5x30 mm Kupfersäulen
10x Kreuzschlitz-Flachkopfschrauben
10x M2,5 Sechskantmuttern aus Nickel
1x 2-Zoll-Mehrzweckschraubendreher
Module
1x RGB-Modul
1x 9G-Servo
1x Dual-Achsen-XY-Joystick-Modul
1x RC522 RFID-Modul
1x 4-Bit-Digital-LED-Display-Modul
1x Ampel-Anzeigemodul
1x Drehgebermodul
1x 1602 LCD-Anzeigemodul (blau)
1x Fotowiderstandsmodul
1x Gleichstrommotor mit männlichem Dupont-Kabel
1x Lüfterflügel
1x Regentropfen-Modul
1x OLED-Modul
1x Membranschalter-Tastatur
1x Mini-Magnetfedermodul
1x Infrarot-Fernbedienung
1x Infrarot-Empfängermodul
1x DC-Schrittmotor-Treiberplatine
1x Button
Sensoren
1x Vibrationssensor
1x Bodenfeuchtesensor
1x Schallsensor
1x Mini-PIR-Bewegungssensor
1x Temperatur & Feuchtigkeitssensor
1x Flammensensor
2x Crash-Sensor
2x Tracking-Sensor
1x Ultraschallsensor
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
Entièrement mise à jour pour le Raspberry Pi 5
Raspberry Pi 5 est un petit ordinateur intelligent, de construction britannique qui regorge de potentiel. Fabriqué à l'aide d'un processeur économe en énergie, le Raspberry Pi est conçu pour vous aider à apprendre le codage, découvrir comment fonctionne un ordinateur et construire vos propres projets uniques et incroyables. Ce guide est conçu pour vous montrer à quel point il est facile de démarrer.
Apprendre à :
Configurez votre Raspberry Pi, installez son système d'exploitation, et commencez à utiliser cet ordinateur entièrement fonctionnel.
Commencez à coder des projets, avec des guides étape par étape utilisant les langages de programmation Scratch 3, Python et MicroPython.
Expérimentez en connectant des composants électroniques, et amusez-vous à créer des projets incroyables.
Nouveauté de la 5ème édition :
Mise à jour pour les derniers ordinateurs Raspberry Pi : Raspberry Pi 5 et Raspberry Pi Zèro 2 W.
Couvre le dernier système d'exploitation Raspberry Pi.
Comprend un nouveau chapitre sur le Raspberry Pi Pico !
Téléchargements
GitHub
This USB Logic Analyzer is an 8-channel logic analyzer with each input dual purposed for analog data recording. It is perfect for debugging and analyzing signals like I²C, UART, SPI, CAN and 1-Wire. It operates by sampling a digital input connected to a device under test (DUT) at a high sample rate. The connection to the PC is via USB.
Specifications
Channels
8 digital channels
Maximum sampling rate
24 MHz
Maximum input voltage
0~5 V
Operating temperature
0~70°C
Input impedance
1 MΩ || 10 pF
Supported protocols
I²C, SPI, UART, CAN, 1-Wire, etc.
PC connection
USB
Dimensions
55 x 28 x 14 mm
Included
USB Logic Analyzer (8-ch, 24 MHz)
USB Cable
Jumper Wire Ribbon Cable
Downloads
Software
Program, build, and master over 60 projects with Python
The Raspberry Pi 5 is the latest single-board computer from the Raspberry Pi Foundation. It can be used in many applications, such as in audio and video media centers, as a desktop computer, in industrial controllers, robotics, and in many domestic and commercial applications. In addition to the well-established features found in other Raspberry Pi computers, the Raspberry Pi 5 offers Wi-Fi and Bluetooth (classic and BLE), which makes it a perfect match for IoT as well as in remote and Internet-based control and monitoring applications. It is now possible to develop many real-time projects such as audio digital signal processing, real-time digital filtering, real-time digital control and monitoring, and many other real-time operations using this tiny powerhouse.
The book starts with an introduction to the Raspberry Pi 5 computer and covers the important topics of accessing the computer locally and remotely. Use of the console language commands as well as accessing and using the desktop GUI are described with working examples. The remaining parts of the book cover many Raspberry Pi 5-based hardware projects using components and devices such as
LEDs and buzzers
LCDs
Ultrasonic sensors
Temperature and atmospheric pressure sensors
The Sense HAT
Camera modules
Example projects are given using Wi-Fi and Bluetooth modules to send and receive data from smartphones and PCs, and sending real-time temperature and atmospheric pressure data to the cloud.
All projects given in the book have been fully tested for correct operation. Only basic programming and electronics experience are required to follow the projects. Brief descriptions, block diagrams, detailed circuit diagrams, and full Python program listings are given for all projects described.
Einführung in die SPS-Programmierung mit dem Open-Source-Projekt auf dem Raspberry Pi und Modbus-Beispiele mit dem Arduino Uno und ESP8266
Die SPS-Programmierung ist heute in der Industrie und in der Hausautomation sehr weit verbreitet. In diesem Buch beschreibt der Autor, wie der Raspberry Pi 4 als SPS eingesetzt werden kann. Angefangen mit der Softwareinstallation auf dem Raspberry Pi und dem SPS-Editor auf dem PC geht es nach einer Beschreibung der Hardware an das Programmieren.
Es folgen interessante Beispiele nach IEC 61131-3 in den verschiedenen Programmiersprachen. Ausführlich wird auch erklärt, wie der SPS-Editor benutzt wird und wie die Programme auf den Raspberry Pi geladen und ausgeführt werden. Angefangen mit der Programmierung mit KOP (Kontaktplan) über ST (Structured Control Language) bis zu AS (Special Function Chart) werden alle IEC-Sprachen mit Beispielen behandelt. Diese können auf der Website des Autors heruntergeladen werden.
Auch die Vernetzung kommt nicht zu kurz. Der Arduino Uno und der ESP8266 werden als ModbusRTU- bzw. ModbusTCP-Module programmiert, um Zugriff auf externe Peripherie zu erhalten. Damit ist es möglich, Sensoren einzulesen und Verbraucher zu schalten. Interessant dürften auch E/A-Schaltungen sein, die dem 24V-Industriestandard entsprechen.
Befehlsübersichten für ST und KOP runden das Buch ab.
Nach dem Durcharbeiten des Buches ist der Leser in der Lage, eigene SPS-Steuerungen mit dem Raspberry Pi zu verwirklichen.
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 in MicroPython 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 MicroPython with the Raspberry Pi Pico using the Thonny 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 MicroPython
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
This hands-on bundle lets you build real Edge AI applications with the Raspberry Pi
Raspberry Pi AI HAT+ (13 TOPS)
The Raspberry Pi AI HAT+ (13 TOPS) is an expansion board designed for the Raspberry Pi 5, featuring an integrated Hailo AI accelerator. This add-on offers a cost-effective, efficient, and accessible approach to incorporating high-performance AI capabilities, with applications spanning process control, security, home automation, and robotics.
The AI HAT+ connects via the Raspberry Pi 5’s PCIe Gen3 interface. When the Raspberry Pi 5 is running a current version of the Raspberry Pi OS, it automatically detects the onboard Hailo accelerator, making the neural processing unit (NPU) available for AI tasks. Additionally, the rpicam-apps camera applications included in Raspberry Pi OS seamlessly support the AI module, automatically using the NPU for compatible post-processing functions.
Raspberry Pi Camera Module 3
Raspberry Pi Camera Module 3 is a compact camera from Raspberry Pi. It offers an IMX708 12-megapixel sensor with HDR, and features phase detection autofocus. Camera Module 3 is available in standard and wide-angle variants, both of which are available with or without an infrared cut filter.
Camera Module 3 can be used to take full HD video as well as stills photographs, and features an HDR mode up to 3 megapixels. Its operation is fully supported by the libcamera library, including Camera Module 3’s rapid autofocus feature: this makes it easy for beginners to use, while offering plenty for advanced users. Camera Module 3 is compatible with all Raspberry Pi computers.
Book: Edge AI Made Practical – 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.
This bundle contains:
Book: Edge AI Made Practical
Raspberry Pi AI HAT+ (13 TOPS)
Raspberry Pi Camera Module 3
Active Cooler for Raspberry Pi 5
FPC Display Cable for Raspberry Pi 5 (300 mm)
Elektor Component Kit
40-pin GPIO Header
Traffic Light Module
LED red 5 V with built-in resistor
LED yellow 5 V with built-in resistor
LED green 5 V with built-in resistor
LED blue 5 V with built-in resistor
Breadboard (400 Tie-points)
10 Dupont wires male-female
DHT22 sensor module
Servo motor
Required
Raspberry Pi 5
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