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.
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.
Mehr als 50 Grundlagenprojekte mit MicroPython und dem RP2040-Mikrocontroller
Der Raspberry Pi Pico ist eine leistungsstarke Mikrocontroller-Platine, die speziell für das Physical Computing – also hardwarenahe Anwendungen – entwickelt wurde. Der Raspberry Pi Pico kann so programmiert werden, dass er eine einzelne Aufgabe sehr effizient ausführt und ermöglicht so schnelle Steuerungs- und Überwachungsanwendungen in Echtzeit. Der 'Pico', wie wir ihn nennen, basiert auf dem schnellen, effizienten und kostengünstigen Dual-Core ARM Cortex-M0+ RP2040 Mikrocontroller-Chip, der mit bis zu 133 MHz läuft und über 264 KB SRAM und 2 MB Flash-Speicher verfügt. Neben dem großen Speicher hat der Pico noch weitere attraktive Eigenschaften, darunter eine große Anzahl von GPIO-Pins sowie gängige Schnittstellen wie ADC, SPI, I²C, UART und PWM. Als Krönung bietet der Chip schnelle und genaue Timer, eine Hardware-Debug-Schnittstelle und einen internen Temperatursensor.
Zur Programmierung lassen sich leicht die gängigen Hochsprachen wie MicroPython oder C/C++ verwenden. Dieses Buch ist eine Einführung in die Verwendung des Pico mit der Programmiersprache MicroPython. In allen Projekten wird die Thonny-Entwicklungsumgebung (IDE) eingesetzt. Über 50 Projekte decken folgende Themen ab:
Installation von MicroPython auf dem Raspberry Pi Pico
Timer-Interrupts und externe Interrupts
Projekte mit Analog-Digital-Wandler (ADC)
Verwendung des internen sowie externer Temperatursensoren
Datenlogger
Projekte zur PWM, UART, I²C-Bus und SPI-Bus
Wi-Fi und Bluetooth für die Kommunikation mit Smartphones
Projekte mit dem Digital-Analog-Wandler (DAC)
Alle in diesem Buch vorgestellten Projekte wurden vollständig getestet und sind funktionsfähig. Es werden keine Programmier- oder Elektronikkenntnisse vorausgesetzt, um sie nachzuvollziehen. Für alle beschriebenen Projekte gibt es kurze Beschreibungen, Blockdiagramme, detaillierte Schaltpläne und vollständige MicroPython-Programmlistings. Die Listings sind auch auf der zum Buch gehörenden Elektor-Webseite zu finden.
Program, build, and master 60+ projects with the Wireless RP2040
The Raspberry Pi Pico and Pico W are 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 spacious memory, the Pico and Pico W offer many GPIO pins, and popular peripheral interface modules like ADC, SPI, I²C, UART, PWM, timing modules, a hardware debug interface, and an internal temperature sensor.
The Raspberry Pi Pico W additionally includes an on-board Infineon CYW43439 Bluetooth and Wi-Fi chipset. At the time of writing this book, the Bluetooth firmware was not yet available. Wi-Fi is however fully supported at 2.4 GHz using the 802.11b/g/n protocols.
This book is an introduction to using the Raspberry Pi Pico W in conjunction with the MicroPython programming language. The Thonny development environment (IDE) is used in all of the 60+ working and tested projects 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 sensor chips
Using the internal temperature sensor and external temperature sensor chips
Datalogging projects
PWM, UART, I²C, and SPI projects
Using Bluetooth, WiFi, and apps to communicate with smartphones
Digital-to-analogue converter (DAC) projects
All projects are tried & tested. They can be implemented on both the Raspberry Pi Pico and Raspberry Pi Pico W, although the Wi-Fi-based subjects will run on the Pico W only. Basic programming and electronics experience are required to follow the projects. Brief descriptions, block diagrams, detailed circuit diagrams, and full MicroPython program listings are given for all projects.
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.
Program and build RPi Pico-based ham station utilities, tools, and instruments
Although much classical HF and mobile equipment is still in use by large numbers of amateurs, the use of computers and digital techniques has now become very popular among amateur radio operators. Nowadays, anyone can purchase a €5 Raspberry Pi Pico microcontroller board and develop many amateur radio projects using the “Pico” and some external components. This book is aimed at amateur radio enthusiasts, Electronic Engineering students, and anyone interested in learning to use the Raspberry Pi Pico to shape their electronic projects. The book is suitable for beginners in electronics as well as for those with wide experience.
Step-by-step installation of the MicroPython programming environment is described. Some knowledge of the Python programming language is helpful to be able to comprehend and modify the projects given in the book. The book introduces the Raspberry Pi Pico and gives examples of many general-purpose, software-only projects that familiarize the reader with the Python programming language. In addition to the software-only projects tailored to the amateur radio operator, Chapter 6 in particular presents over 36 hardware-based projects for “hams”, including:
Station mains power on/off control
Radio station clock
GPS based station geographical coordinates
Radio station temperature and humidity
Various waveform generation methods using software and hardware (DDS)
Frequency counter
Voltmeter / ammeter / ohmmeter / capacitance meter
RF meter and RF attenuators
Morse code exercisers
RadioStation Click board
Raspberry Pi Pico based FM radio
Using Bluetooth and Wi-Fi with Raspberry Pi Pico
Radio station security with RFID
Audio amplifier module with rotary encoder volume control
Morse decoder
Using the FS1000A TX-RX modules to communicate with Arduino
Contents
Projects
PicoVoiceVoice alienation and sound effects with the Raspberry Pi Pico
Navigation with Vibration Feedback
POV Display
Pulse Width Modulation (PWM) with the Raspberry Pi Pico
Wi-Fi with the Raspberry Pi Pico
'Hello World' from the Raspberry Pi Pico and RP2040A look at the Raspberry Pi Foundation’s first microcontroller
Simple On-Off Temperature Controller with Raspberry Pi HAT
Multitasking with the Raspberry PiShowcase: a traffic lights controller
The Raspberry Pi Ruler GadgetFun with a time-of-flight sensor
Raspberry Pi Buffer Board (Mk. 1)Never blow up the I/O again
FM radio with RDSA top HAT project for the Raspberry Pi
LoRa with the Raspberry Pi PicoFun with MicroPython!
Tutorials
Qt for the Raspberry Pi
Raspberry Pi Pico Programmingwith MicroPython and Thonny
Raspberry Pi Full StackRPi and RF24 at the heart of a sensor network
Raspberry Pi Bash Command Cheat Sheet
Community
Java on the Raspberry PiAn interview with Frank Delporte
Reviews
Introducing the New Raspberry Pi Pico W, H, and WH
Secure Boot Solution for Raspberry PiRetrofit security at a reasonable price
Review: SmartPi – Smart Meter Extension for Raspberry Pi
Review: The Enviro+ Raspberry Pi HATMeasuring environmental data with Raspberry Pi and the HAT Enviro+
Review: Meet the Raspberry Pi 4All new but still good?
Raspberry Pi Gets a Fast 3.5' Touch DisplayMore power at no extra charge
Book Launch: Raspberry Pi for Radio Amateurs
Comprehensive Book-Hardware Bundle for the RP2040 Microcontroller with over 80 Projects
Unlock the potential of modern controller technology with the Raspberry Pi Pico in this bundle. Perfect for both beginners and experienced users, the easy-to-follow guide takes you from the basics of electronics to the complexities of digital signal processing. With the Raspberry Pi Pico, the dedicated hardware kit and MicroPython programming, you will learn the key principles of circuit design, data collection, and processing.
Get hands-on with over 80 projects like a stopwatch with an OLED display, a laser distance meter, and a servo-controlled fan. These projects are designed to help you apply what you've learned in real-world scenarios. The book also covers advanced topics like wireless RFID technology, object detection, and sensor integration for robotics.
Whether you're looking to build your skills in electronics or dive deeper into embedded systems, this bundle is the perfect resource to help you explore the full potential of the Raspberry Pi Pico.
Contents of the Bundle
1x Project Book (273 pages)
1x Smart Car Kit
Electronic Parts
2x Solderless breadboard (400 holes)
1x Solderless breadboard (170 holes)
5x Colorful 5 mm LEDs (green, red, blue, yellow and white)
1x Laser transmitter
1x Passive buzzer
1x Micro USB cable (30 cm)
1x 65 Jumper wires
1x 20 cm male to female Dupont wire
1x Clear case
1x Magnet (diameter: 8 mm, thickness: 5 mm)
1x Rotary potentiometer
10x 2 KΩ resistors
2x M2.5x30 mm copper pillars
10x Phillips pan head screws
10x M2.5 nickel hex nuts
1x 2-inch dual-purpose screwdriver
Modules
1x RGB module
1x 9G servo
1x Dual-axis XY joystick module
1x RC522 RFID module
1x 4 Bits digital LED display module
1x Traffic light display module
1x Rotary Encoder module
1x 1602 LCD Display module (Blue)
1x Photoresistor module
1x DC motor with male Dupont wire
1x Fan blade
1x Raindrops module
1x OLED module
1x Membrane switch keyboard
1x Mini magnetic spring module
1x Infrared remote control
1x Infrared receiver module
1x DC stepper motor driver board
1x Button
Sensors
1x Vibration sensor
1x Soil moisture sensor
1x Sound sensor
1x Mini PIR motion sensor
1x Temperature & Humidity sensor
1x Flame sensor
2x Crash sensor
2x Tracking sensor
1x Ultrasonic sensor
Maîtrise de la puce RP2040 avec plus de 60 projets à réaliser et à programmer
Les cartes Raspberry Pi Pico et Pico W sont animées par un microcontrôleur ARM Cortex M0+ RP2040 à double coeur, rapide, efficace et peu coûteux, qui fonctionne jusqu'à 133 MHz et dispose de 264 Ko de SRAM et de 2 Mo de mémoire Flash. Outre une vaste mémoire, le Pico et le Pico W disposent de nombreuses broches GPIO et d'interfaces telles que CA/N, SPI, I²C, UART, MLI, de fonctions de temporisation, d'une interface de débogage matériel et d'un capteur de température interne.
La carte Raspberry Pi Pico W comporte en plus une puce CYW43439 Bluetooth et Wi-Fi d'Infineon. Au moment de la rédaction de ce livre, le micrologiciel Bluetooth pour le Pico W n'était pas encore disponible. Le Wi-Fi à 2,4 GHz est toutefois entièrement pris en charge avec les protocoles 802.11b/g/n.
Ce livre est une introduction à l'utilisation du Raspberry Pi Pico W avec le langage de programmation MicroPython. Les quelque soixante projets testés et opérationnels sont présentés à l'aide de l'environnement de développement intégré (EDI) Thonny. Les sujets abordés sont nombreux :
Installation de MicroPython sur le Raspberry Pi Pico depuis un PC
Interruptions de l'horloge et interruptions externes
Convertisseur analogique-numérique (CA/N)
Capteurs de température interne et externe
Capteurs externes (pression, humidité, pouls, à ultrasons)
Enregistrement de données
MLI, UART, I²C et SPI
Bluetooth, Wi-Fi et applis sur smarphone
Convertisseur numérique-analogique (CN/A)
Tous les projets ont été testés et éprouvés. Ils peuvent être mis en oeuvre sur le Raspberry Pi Pico ainsi que sur le Raspberry Pi Pico W. Toutefois les projets avec une liaison Wi-Fi ne fonctionnent que sur le Pico W. Une petite expérience en programmation et en électronique est nécessaire pour suivre les projets. De brèves descriptions, des schémas fonctionnels, des schémas détaillés du câblage des montages et des listings MicroPython complets sont fournis pour tous les projets.
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
Program, build, and master 60+ projects with the Wireless RP2040
The Raspberry Pi Pico and Pico W are 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 spacious memory, the Pico and Pico W offer many GPIO pins, and popular peripheral interface modules like ADC, SPI, I²C, UART, PWM, timing modules, a hardware debug interface, and an internal temperature sensor.
The Raspberry Pi Pico W additionally includes an on-board Infineon CYW43439 Bluetooth and Wi-Fi chipset. At the time of writing this book, the Bluetooth firmware was not yet available. Wi-Fi is however fully supported at 2.4 GHz using the 802.11b/g/n protocols.
This book is an introduction to using the Raspberry Pi Pico W in conjunction with the MicroPython programming language. The Thonny development environment (IDE) is used in all of the 60+ working and tested projects 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 sensor chips
Using the internal temperature sensor and external temperature sensor chips
Datalogging projects
PWM, UART, I²C, and SPI projects
Using Bluetooth, WiFi, and apps to communicate with smartphones
Digital-to-analogue converter (DAC) projects
All projects are tried & tested. They can be implemented on both the Raspberry Pi Pico and Raspberry Pi Pico W, although the Wi-Fi-based subjects will run on the Pico W only. Basic programming and electronics experience are required to follow the projects. Brief descriptions, block diagrams, detailed circuit diagrams, and full MicroPython program listings are given for all projects.
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