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.
This book details the use of the Arduino Uno and the Raspberry Pi 4 in practical CAN bus based projects. Using either the Arduino Uno or the Raspberry Pi with off-the-shelf CAN bus interface modules considerably ease developing, debugging, and testing CAN bus based projects.
This book is written for students, practicing engineers, enthusiasts, and for everyone else wanting to learn more about the CAN bus and its applications. The book assumes that the reader has some knowledge of basic electronics. Knowledge of the C and Python programming languages and programming the Arduino Uno using its IDE and Raspberry Pi will be useful, especially if the reader intends to develop microcontroller-based projects using the CAN bus.
The book should be a useful source of reference material for anyone interested in finding answers to questions such as:
What bus systems are available for the automotive industry?
What are the principles of the CAN bus?
How can I create a physical CAN bus?
What types of frames (or data packets) are available in a CAN bus system?
How can errors be detected in a CAN bus system and how dependable is a CAN bus system?
What types of CAN bus controllers exist?
How do I use the MCP2515 CAN bus controller?
How do I create 2-node Arduino Uno-based CAN bus projects?
How do I create 3-node Arduino Uno-based CAN bus projects?
How do I set the acceptance masks and acceptance filters?
How do I analyze data on the CAN bus?
How do I create 2-node Raspberry Pi-based CAN bus projects?
How do I create 3-node Raspberry Pi-based CAN bus projects?
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.
Praxisnahe Projekte, Profi-Tricks und eigene Anwendungen
Dieses Buch führt Sie Schritt für Schritt in die faszinierende Welt der State Machines ein und zeigt, wie Sie Hardware direkt und effizient ansteuern können – jenseits klassischer CPU-gesteuerter Ansätze.
In diesem Buch lernen Sie:
LEDs und NeoPixel kreativ steuern: Blinken, Dimmen, Farbwechsel und komplexe Animationen
Taster und Encoder zuverlässig auslesen und in Echtzeit in Ihre Projekte integrieren
Analoge Eingänge (ADC) nutzen und Signale digital steuern
Servos präzise ansteuern und Bewegungsabläufe automatisieren
SPI mit PIO umsetzen, um Displays, Sensoren und Module anzusteuern
Menüsysteme und Submenüs auf SPI-Displays realisieren, inklusive Navigation über mehrere Taster
PWM, Signalgenerierung und Frequenzsteuerung für akustische oder visuelle Effekte
Debugging-Strategien und Tipps, um Ihre PIO-Programme effizient zu entwickeln
Alle Beispiele sind praxisnah, sofort umsetzbar und zuverlässig. Mit klaren Anleitungen, Hintergrundwissen und fertigen Codebeispielen lernen Sie, die PIO-Fähigkeiten des Pico maximal zu nutzen – egal ob für Maker-Projekte, Prototypen oder professionelle Anwendungen.
Erleben Sie, wie Sie komplexe Hardwaresteuerung elegant mit dem Pico realisieren können – schneller, flexibler und leistungsfähiger als je zuvor.
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
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
Projects with Arduino Uno & Raspberry Pi with Examples for the MCP2515 CAN Bus Interface Module
This book details the use of the Arduino Uno and the Raspberry Pi 4 in practical CAN bus based projects. Using either the Arduino Uno or the Raspberry Pi with off-the-shelf CAN bus interface modules considerably ease developing, debugging, and testing CAN bus based projects.
This book is written for students, practicing engineers, enthusiasts, and for everyone else wanting to learn more about the CAN bus and its applications. The book assumes that the reader has some knowledge of basic electronics. Knowledge of the C and Python programming languages and programming the Arduino Uno using its IDE and Raspberry Pi will be useful, especially if the reader intends to develop microcontroller-based projects using the CAN bus.
The book should be a useful source of reference material for anyone interested in finding answers to questions such as:
What bus systems are available for the automotive industry?
What are the principles of the CAN bus?
How can I create a physical CAN bus?
What types of frames (or data packets) are available in a CAN bus system?
How can errors be detected in a CAN bus system and how dependable is a CAN bus system?
What types of CAN bus controllers exist?
How do I use the MCP2515 CAN bus controller?
How do I create 2-node Arduino Uno-based CAN bus projects?
How do I create 3-node Arduino Uno-based CAN bus projects?
How do I set the acceptance masks and acceptance filters?
How do I analyze data on the CAN bus?
How do I create 2-node Raspberry Pi-based CAN bus projects?
How do I create 3-node Raspberry Pi-based CAN bus projects?
USB-Logikanalysatoren am PC mit Arduino, Raspberry Pi und Co
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.
Accroche-regard basé sur Raspberry Pi
Une horloge à sable standard ne fait qu'indiquer le temps qui passe. En revanche, cette horloge à sable contrôlée par le Raspberry Pi Pico indique l'heure exacte en 'gravant' les quatre chiffres de l'heure et des minutes dans la couche de sable. Après un temps réglable, le sable est aplati par deux moteurs vibrants et tout recommence.
Au cœur de l'horloge de sable se trouvent deux servomoteurs qui entraînent un stylo dans un mécanisme de pantographe. Un troisième servomoteur soulève le stylo de haut en bas. Le bac à sable est équipé de deux moteurs vibrants qui aplatissent le sable. La partie électronique de l'horloge des sables se compose d'un Raspberry Pi Pico et d'une carte RTC/driver avec une horloge en temps réel, ainsi que des circuits de commande pour les servomoteurs.
Un manuel de construction détaillé peut être téléchargé.
Caractéristiques
Dimensions: 135 x 110 x 80 mm
Temps de construction : environ. 1,5 à 2 heures
Inclus
3x Feuilles acryliques prédécoupées avec toutes les pièces mécaniques
3x Mini servomoteurs
2x moteurs de vibration
1x Raspberry Pi Pico
1x Carte RTC/pilote avec les pièces assemblées
Ecrous, boulons, entretoises et fils pour l'assemblage
Sable blanc à grains fins
Le FNIRSI 2D15P est un outil de test compact 3-en-1 qui combine un oscilloscope numérique à 2 canaux, un multimètre True RMS et un générateur de formes d'onde dans un seul appareil. Doté d'un écran tactile capacitif de 4,3 pouces, d'une bande passante de 100 MHz, d'une fréquence d'échantillonnage de 500 Méch/s et d'une vitesse d'acquisition jusqu'à 1200 images/s, il est idéal pour le dépannage rapide, l'analyse de signaux et les tests électroniques.
Caractéristiques
Entrée double canal (100 MHz en monocanal, 50 MHz en bicanal)
Profondeurs de mémoire sélectionnables
Bande passante limitée à 20 MHz
Visualisation en niveaux de gris et température de couleur
Opérations mathématiques (addition, soustraction, multiplication, division, etc.)
Mode XY et persistance infinie
Fonction curseur et 13 mesures automatiques
Modes de déclenchement : Auto / Normal / Single
Multimètre True RMS (19999 points)
Générateur de signal DDS 10 MHz
Spécifications
Généralités
Écran
Écran tactile capacitif IPS 4,3 pouces
Fonctionnement
Tactile + Molette + Boutons physiques
Chargement
USB-C (charge rapide 12 V/1 A)
Batterie
Batterie au lithium 5000 mAh
Dimensions
19,6 x 12,9 x 5,7 cm
Poids
1,1 kg
Oscilloscope
Canaux
2
Bande passante analogique
100 MHz
Fréquence d'échantillonnage
500 Méch/s
Profondeur de mémoire
10K, 100K, 1M
Impédance d'entrée
1 MΩ
Plage de la base de temps
5 ns - 50 s
Sensibilité verticale
10 mV - 10 V/div
Tension d'entrée max.
800 V (sonde x10)
Mode de déclenchement
Auto, Normal, Single
Type de déclenchement
Montant, Descendant, Fronts montants et descendants
Couplage
CA/CC
Persistance
min / 2s / 5s / 10s / 20s / 50s / ∞
Calcul Opérations
Oui
Capture de forme d'onde
Oui
Exportation de forme d'onde
Oui
Mesure du curseur
Oui
Multimètre
Tension CC
1.9999V / 19.999V / 199.99V / 1000V
Tension CA
1.9999V / 19.999V / 199.99V / 750.0V
Courant CC
19.999mA / 199.99mA / 1.9999A / 9.999A
Courant CA
19.999mA / 199.99mA / 1.9999A / 9.999A
Résistance
19.999MΩ / 1.9999MΩ / 199.99KΩ / 19.999KΩ / 1.9999KΩ / 199.99Ω
Capacité
999.9uF / 99.99uF / 9.999uF / 999.9nF / 99.99nF / 9.999nF / 9.999mF / 99.99mF
Diode
Oui
Continuité
Oui
Générateur de signaux
Canaux
1
Fréquence
0–10 MHz
Amplitude
0,1–3,0 Vpp
Rapport cyclique
0–100%
Inclus
1x FNIRSI 2D15P oscilloscope
2x Sondes d'oscilloscope P6100
1x Sonde multimètre
1x Sonde à pince crocodile
1x Câble de données USB
1x Manuel
Téléchargements
Manual
Firmware V2.7.0.7
Zeitsteuerung, Scheduler, PIO und Zustandsmaschinen
Multitasking ist der Schlüssel zu leistungsfähigen Embedded-Systemen, und zugleich eine der größten Herausforderungen in der Mikrocontroller-Programmierung. Dieses Buch zeigt Ihnen Schritt für Schritt, wie Sie von einem einfachen Ein-Task-Programm zu einem strukturierten, reaktionsfähigen und skalierbaren System gelangen. Dabei steht nicht nur das Wie, sondern vor allem das Warum im Mittelpunkt.
Sie lernen:
warum scheinbare Parallelität entsteht
weshalb blockierende Programme instabil werden
wie Aufgaben effizient und kontrolliert parallel ablaufen
Ausgehend vom klassischen Superloop vermittelt das Buch moderne Multitasking-Strategien – von nicht-blockierender Programmierung und Tick-Systemen bis zu Task-Schedulern, Zustandsmaschinen und ereignisgesteuerten Konzepten.
Der Fokus liegt auf der Praxis: Sensoren, Displays, Kommunikation und reale Anwendungen werden Schritt für Schritt integriert und mit verständlich kommentierten Beispielprogrammen erklärt.
Fortgeschrittene Themen umfassen:
Multicore-Programmierung mit dem Raspberry Pi Pico
asynchrones Programmieren mit uasyncio
RTOS-Grundlagen mit FreeRTOS
die Kombination aus Multicore und RTOS
Dabei werden auch die Grenzen dieser Techniken, insbesondere unter MicroPython, klar aufgezeigt.
Das Buch richtet sich an ambitionierte Einsteiger und fortgeschrittene Entwickler, die Embedded-Systeme fundiert verstehen und robuste, wartbare Multitasking-Anwendungen entwickeln möchten.
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.