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.
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.
DRIVING MOTORS WITH H-BRIDGESAn Introduction to DC, Stepper, and Brushless Motors
THE ELEKTOR LAB TEAMOur Approach, Preferred Tools, and More
RASPBERRY PI AS A KVM REMOTE CONTROLPi-KVM Software Test
IQAUDIO CODEC ZEROA Sound Card for the Raspberry Pi Family
THE PIKVM PROJECT AND LESSONS LEARNEDInterview with Maxim Devaev (Developer, PiKVM)
AUTONOMOUS VEHICLE WITH 2D LIDARESP32 Pico Interprets Data from the Lidar Module THE RASPBERRY PI ZERO 2 W GOES QUAD-CORE NOTES FROM THE 2021 WORLD ETHICAL ELECTRONICS FORUM
MOTOR CONTROLHow the Complexity of Motor Control Is Simplified
LARGE ELECTRIC MOTORSBasic Principles and Useful Information GETTING STARTED WITH THE ESP32-C3 RISC-V MCU
PROTECT YOURSELF AND OTHERS!DIY Master Power Switch for the Lab Bench
CREATE GUIS WITH PYTHON (PART 2)Spy name chooser
PRODUCTRONICA FAST FORWARD 2021 WINNERSExciting Technologies and Creative Engineering Solutions
VERSATILE SERVO TESTERCheck Behavior When There’s No Datasheet
MODBUS OVER WLAN (PART 2)Software for the Modbus TCP WLAN Module
UNDERSTANDING THE NEURONS IN NEURAL NETWORKS (PART 3)Practical Neurons
INSIDE AN OPEN-SOURCE PROCESSORSample Chapter: Lattice and Xilinx FPGA Results
STARTING OUT IN ELECTRONICSWe Are Not Yet Done with the Coil
ERR-LECTRONICSCorrections, Updates and Readers’ Letters
COLOR TO SOUNDHow to Read Out a Color Sensor via I2C
BATTLAB-ONEMeasure and Optimize the Battery Life of IoT Devices
SIMPLE EARTH-LEAKAGE TRACERTesting Isolation of Mains Supply
POVERTY AND ELECTRONICSSustainable Development Goal 1
HEXADOKUThe Original Elektorized Sudoku
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.
Program, build, and master over 50 projects with MicroPython and the RP2040 microprocessor The Raspberry Pi Pico is a high-performance microcontroller module designed especially for physical computing. Microcontrollers differ from single-board computers, like the Raspberry Pi 4, in not having an operating system. The Raspberry Pi Pico can be programmed to run a single task very efficiently within real-time control and monitoring applications requiring speed. The ‘Pico’ as we call it, is based on the fast, efficient, and low-cost dual-core ARM Cortex-M0+ RP2040 microcontroller chip running at up to 133 MHz and sporting 264 KB of SRAM, and 2 MB of Flash memory. Besides its large memory, the Pico has even more attractive features including a vast number of GPIO pins, and popular interface modules like ADC, SPI, I²C, UART, and PWM. To cap it all, the chip offers fast and accurate timing modules, a hardware debug interface, and an internal temperature sensor. The Raspberry Pi Pico is easily programmed using popular high-level languages such as MicroPython and or C/C++. This book is an introduction to using the Raspberry Pi Pico microcontroller in conjunction with the MicroPython programming language. The Thonny development environment (IDE) is used in all the projects described. There are over 50 working and tested projects in the book, covering the following topics: Installing the MicroPython on Raspberry Pi Pico using a Raspberry Pi or a PC Timer interrupts and external interrupts Analogue-to-digital converter (ADC) projects Using the internal temperature sensor and external temperature sensor chips Datalogging projects PWM, UART, I²C, and SPI projects Using Wi-Fi and apps to communicate with smartphones Using Bluetooth and apps to communicate with smartphones Digital-to-analogue converter (DAC) projects All projects given in the book have been fully tested and are working. Only basic programming and electronics experience is required to follow the projects. Brief descriptions, block diagrams, detailed circuit diagrams, and full MicroPython program listings are given for all projects described. Readers can find the program listings on the Elektor web page created to support the book.
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
CaptureCountAn Object Detector and Counter on the Raspberry Pi 5
Voltage Reference With Arduino Pro MiniLinearize and Calibrate Your Analog Inputs
FPGAs for BeginnersThe Path From MCU to FPGA Programming
Update: STM32 Wireless Innovation Design Contest 2024
Bluetooth LE With MAUIControl Apps for Android & Co.
Port-Expanding Breakout BoardIncrease the Number of I/Os on Your Dev Board
AI SpecialistMachine Learning with the Jetson Nano
2024: An AI OdysseyFirst Forays Into TensorFlow
262,144 Ways to Play The Game of LifeA Reader’s Project in Brief
From Life’s ExperienceThe Chinese Dragon
Get Your (Brushed DC) Motor Running!Sample Projects from the Elektor Motor Control Development Bundle
ESP32-RS-232 AdapterA Wireless Link for Classic Test Equipment
Starting Out in Electronics……More About Opamps
ESP Library Recommendations
Piezoelectric DevicesPeculiar Parts, the Series
A Smart Object CounterImage Recognition Made Easy with Edge Impulse
Resolve Your Trickiest Embedded Development Challenges
ESP32 TerminalA Handheld Device with a Touch-Capable Display
Getting Started With the Zephyr RTOSAs Powerful as It Is Hard to Master
Award-Winning EthicsA Dialog with CTO Alexander Gerfer of Würth Elektronik eiSos on Enabling Innovation and Mindful Behavior
Err-lectronicsCorrections, Updates, and Readers’ Letters
Infographics: Embedded and AI
Square Wave Generation BenchmarksExploring ESP32, Pico, and Other Microcontrollers
Open-Source-Code mit Arduino IDE und PlatformIO
Autonomes Fahren: GPS, Accelerometer, Gyroskop
PS3-Controller
Mikrocontroller wie der Arduino und Einplatinenrechner wie der Raspberry Pi haben sich zu beliebten Komponenten entwickelt. Dritter im Bunde ist der ESP32 der Firma Espressif. Mikrocontroller dieser Baureihe zeichnen sich durch eine Vielzahl implementierter Funktionen aus, die bei einem Arduino konventioneller Prägung mit einem Atmel-AVR-Mikrocontroller erst mit weiterer Hardware möglich sind. Prominentes Beispiel sind hier die WiFi- und Bluetooth-Funktionalitäten. Gegenüber einem Raspberry Pi zeichnen sie sich durch einen deutlich geringeren Preis aus.
Allgemeine Informationen für die Realisierung eines Roboterauto-Projekts mit dem ESP32 sind leicht zu finden. Dabei handelt es sich aber oft nur um Ausführungen zu einem Teilaspekt, ohne inhaltliche oder funktionale Abstimmung. So ist nicht nur die Beschaffung der benötigten Informationen mühselig und zeitaufwändig, sie kann auch außerordentlich fehlerträchtig sein.
Ansatzpunkt dieses Buches ist, diese Lücke zu schließen. Es geht auf verschiedene Möglichkeiten eines Chassis ein, vermittelt nötige Kenntnisse und führt schrittweise von einer einfachen Motorsteuerung zu einem komplexen sensor- und sprachgesteuerten Roboterauto. Hacks rund um GPS und eine PlayStation 3 runden die Sache ab.
Inhalt
Bei der Reihenfolge der Kapitel wurde versucht – beginnend bei der Darstellung von grundlegenden Informationen – über die Lösung einfacher Aufgaben zu etwas anspruchsvolleren Techniken zu führen.
Der Mikrocontroller ESP32
Die Software erstellen
Die Stromversorgung
Rund um die Hardware
Das Chassis
Der Gleichstrommotor
Kabellose Steuerung über WiFi
Mit Sensoren Hindernisse erkennen
Eine eigene Roboterauto-App
Servo und Lichtsensor
GPS
Accelerometer / Gyroskop
PS3-Controller
Roboterauto-App
Hinweis zur Software
Die Dateien haben das Suffix (.cpp). Grund ist die Entwicklung mit PlatformIO. Mit Copy & Paste sollten sie auch in der Arduino-IDE verwendet werden können.
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.
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 zahlreicher 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 gründlich 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 herausfinden, welche Kriterien für Ihre Arbeit wichtig sind und in der Lage sein, das passende Gerät für Sie zu finden.
Egal ob Arduino, Raspberry Pi oder Raspberry Pi Pico: Die abgebildeten Beispielschaltungen ermöglichen einen schnellen Einstieg 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.
LoRa with the Raspberry Pi PicoFun with MicroPython
What Is RISC-V?And Why the Industry Is So Excited About a New Processing Core!
Elektor @ 60Circuits of Summer Past
Versatile Power Supply for BreadboardsPositive and Negative Voltages Out of 5 V from USB
Raspberry Pi Pico EssentialsSample Chapter: Wi-Fi with the Raspberry Pi Pico
Magnetic Levitation the Easy Way
Hands On the Parallax Propeller 2Part 3: Smart Pins and Serial Data (UART)
Nucleo Boards Programming with the STM32CubeIDESample Chapter: FreeRTOS for the STM32 MCU
Developer's ZoneTips & Tricks, Best Practices and Other Useful Information
Miniware DT71 Digital Tweezers
Wearable Wi-Fi Gadget: ESPHome Does the Job Again
Starting out in ElectronicsEasier Than Imagined! This Concludes the Subject of “Capacitors”
Simple Sketches Using the Qwiic Ecosystem
Java on the Raspberry Pi (Part 2)Controlling GPIOs with a Spring REST Service
Raspberry Pi Compute Module 4A Raspberry Pi for Industry
Portable, Stand-Alone Air Quality Display for 2.5 µm ParticlesKeep(s) an Eye on Your Health
From Life’s ExperienceThe Future Was Better in the Past
MicroPython for the ESP32 and FriendsPart 1: Installation and Our First Programs
Charge-Coupled Devices in OscilloscopesPeculiar Parts, the series
ESD – The Invisible DestroyerComponents Trashed by a Bolt from the Blue
Solar Power for Mowing RobotsEcological, Inexpensive, Simple!
Europe’s Efforts to Tame Big Tech
HexadokuThe Original Elektorized Sudoku
KI in der Praxis
Tauchen Sie ein in die faszinierende Welt der Robotik und Automatisierung!
Dieses Elektor Special zeigt, wie Sie mit Kreativität, etwas Know-how und günstiger Technik eigene Roboter bauen können. Vom ersten DIY-Projekt mit Arduino oder Raspberry Pi bis hin zu intelligenten Systemen mit KI – dieses Heft macht moderne Robotik verständlich und greifbar.
Entdecken Sie praxisnahe Anleitungen, inspirierende Projekte und spannende Einblicke in die Maker-Szene. Lernen Sie, wie aus Experimentierfreude, Gemeinschaft und Offenheit echte Innovation entsteht – und warum Robotik weit mehr ist als nur ein technisches Hobby.
Inhalt
Phantasie wird Realität
Arduino-controlled Drawing Robot
GalaxyRVR Mars Rover Kit for Arduino
YDLIDAR X4Pro Lidar
xHuskyLens AI Camera
DOF Robot Arm mit Raspberry Pi Pico
Fertigungsroboter mit Fischertechnik
Pneumatischer Industrieroboter
Warum bauen wir immer wieder Roboterhunde?
Elektor Mini-Wheelie
Roboterfahrzeuge und autonomes Fahren
Build Your Own RISC-V ControllerFirst Steps with the NEORV32 RISC-V Softcore for Low-Cost FPGAs
How to Use Arduino’s Serial PlotterPlotting Graphs With Arduino Is Easy
CLUE from AdafruitA Smart Solution for IoT Projects
Buffer Board for the Raspberry Pi 400Protect the I/Os Raspberry Pi RP2040 Boards Aplenty
A Handbook on DIY Electronic Security and EspionageSRAM Heated or Deep-Frozen
Component IdentificationTips & Tricks, Best Practices and Other Useful Information DIY Touchless Light Switch
Starting out in ElectronicsMatching and Transforming
What’s New in Embedded Development?Rust and Keeping IoT Deployments Updated Infographics How the Industrial and Automotive Sectors Will Benefit from 5G
Moving Coil RelaysPeculiar Parts, the series
HomeLab ToursEverything Revolves Around the Tools...
Understanding the Neurons in Neural Networks (Part 4)Embedded Neurons
Magnetic Levitation the Very Easy WayThe Third and Most Compact Version
PLC Programming with the Raspberry Pi and the OpenPLC ProjectVisualization of PLC Programs with AdvancedHMI
From Life's ExperiencePack Up and Leave
Under Your RadarMicrocontrollers You Should Know About
Monitor and Debug Over the AirA Solution for Arduino, ESP32 and Co.
Portable Temperature- and Humidity-Measuring DeviceUsing Ready-Made Modules
Lithium Battery Pack RepairSave Money + More Power!
GUIs with PythonMeme-Generator
Three Questions to Build OnWhy, What, and Who?
HexadokuThe Original Elektorized Sudoku