With Examples for Raspberry Pi Pico and ESP32
Creating and programming small electronic systems is now easier than ever before. With inexpensive development boards and modern software tools, anyone curious about embedded design can quickly move from an idea to a working piece of hardware. At the heart of this change is MicroPython—a clear, interactive, and beginner-friendly way to program microcontrollers while still remaining closely connected to the underlying electronics.
This book introduces embedded programming through MicroPython on popular platforms such as the Raspberry Pi Pico and the ESP32. You will discover how to use microcontrollers for reading inputs, processing data, and controlling outputs in a predictable, real-time loop. With just a few lines of code, you can blink LEDs, read sensors, drive motors, and communicate with the outside world. The interactive REPL programming interface encourages experimentation and fast learning, making concepts tangible from the very first chapter.
While different boards offer different capabilities, they all share the same core principles. Timers, GPIO, analog I/O, PWM, interrupts, and communication interfaces form the foundation of every embedded system.
By focusing on these universal building blocks, this book helps you build skills that transfer across platforms and scale naturally toward more advanced development. Whether you are a beginner or an experienced programmer entering embedded systems, you will find that working with MicroPython is both practical and genuinely enjoyable.
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
Accelerating IoT Innovation
A Color E-Ink Wi-Fi Picture Frame
ESP-Launchpad TutorialFrom Zero to Flashing in Minutes
ESP32 and ChatGPTOn the Way to a Self-Programming System…
Walkie-Talkie with ESP-NOWNot Quite Wi-Fi, Not Quite Bluetooth!
From Idea to Circuit with the ESP32-S3A Guide to Prototyping with Espressif Chips
AIoT Chip InnovationAn Interview With Espressif CEO Teo Swee-Ann
Simulate ESP32 with WokwiYour Project’s Virtual Twin
Trying Out the ESP32-S3-BOX-3A Comprehensive AIoT Development Platform
Electronics Workspace EssentialsInsights and Tips From Espressif Engineers
The ESP RainMaker StoryHow We Built “Your” IoT Cloud
Assembling the Elektor Cloc 2.0 KitAn Elektor Product Unboxed by Espressif
Unleashing the ESP32-P4The Next Era of Microcontrollers
Rust + EmbeddedA Development Power Duo
Who Are the Rust-Dacious Embedded Developers?How Espressif is Cultivating Embedded Rust for the ESP32
Espressif’s Series of SoCs
Building a PLC with Espressif SolutionsWith the Capabilities and Functionality of the ISOBUS Protocol
The ESP32-S3 VGA BoardBitluni’s Exciting Journey Into Product Design
Acoustic Fingerprinting on ESP32Song Recognition With Open-Source Project Olaf
Circular Christmas Tree 2023A High-Tech Way to Celebrate the Holiday Season
A Simpler and More Convenient LifeAn Amateur Project Based on the Espressif ESP8266 Module
How to Build IoT Apps without Software ExpertiseWith Blynk IoT Platform and Espressif Hardware
Building a Smart User Interface on ESP32
Quick & Easy IoT Development with M5Stack
Prototyping an ESP32-Based Energy Meter
A Value-Added Distributor for IoT and More
In-Depth Insights: Interview With Arduino on the Nano ESP32Alessandro Ranellucci and Martino Facchin Discuss Espressif Collaboration
Your AIoT Solution ProviderInsights From Espressif
Streamlining MCU Development With ESP-IDF Privilege Separation
An Open-Source Speech Recognition Server……and the ESP BOX
The Thinking EyeFacial Recognition and More Using the ESP32-S3-EYE
ESP32-C2-Based Coin Cell SwitchDesign and Performance Evaluation
The Smart Home Leaps Forward with MatterUnlocking Smart Home IoT Potential
Tech the Future: Where Is Smart Home IoT Headed?
Ce cours complet de programmation de microcontrôleurs STM32 comprend un manuel, un kit de composants, des projets pratiques et une formation en ligne approfondie. Il est idéal pour apprendre étape par étape la programmation de systèmes embarqués en MicroPython grâce à une approche pratique.
Une introduction pratique aux systèmes embarqués avec le STM32
Ce cours s'adresse aux débutants dans le domaine des systèmes embarqués qui recherchent une méthode structurée et basée sur des exemples pour se lancer. Un kit de composants est inclus ; il contient notamment des LED, des résistances, des interrupteurs, des capteurs, des actionneurs, des afficheurs, une plaque d'essai (breadboard) et des fils de connexion. Ces éléments sont utilisés tout au long du cours pour illustrer des exemples d'applications.
Aucune expérience préalable de MicroPython ou du développement de systèmes embarqués 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. À l'issue de la formation, vous serez capable non seulement de reproduire les exemples présentés, mais aussi de les enrichir grâce à vos propres idées et applications.
Que allez-vous apprendre ?
Programmation de microcontrôleurs en MicroPython sur STM32 via l'IDE Thonny
Utilisation des entrées/sorties numériques, lecture de boutons et encodeurs, commande de LED et relais
Lecture des entrées analogiques, tensions et capteurs analogiques
Génération de signaux analogiques et PWM
Utilisation des communications série comme UART, I²C et SPI pour piloter des afficheurs et lire des capteurs numériques et cartes SD
Gestion du temps
Utilisation des interruptions
Entrées capteurs en temps réel et contrôle via boutons, LED et afficheurs
Commande d’actionneurs comme relais et servomoteurs
À qui s’adresse ce cours ?
Étudiants et autodidactes explorant les systèmes embarqués
Makers et passionnés d’IoT souhaitant améliorer leurs compétences en hardware
Formateurs et enseignants à la recherche de matériel pédagogique prêt à l’emploi
Contenu de la boîte
Accès au cours complet sur la plateforme Elektor Academy Pro
Carte microcontrôleur STM32 NUCLEO-F411RE
Livre : MicroPython for STM32
Fichiers de projet téléchargeables pour chaque module
Boîte de composants :
2× LED, rouge, 5 mm
LED, verte, 5 mm
3× résistance, 470 Ω, 0,25 W
LDR
Potentiomètre, 10 kΩ, linéaire
Bouton-poussoir
Module encodeur rotatif
Module relais
Capteur DHT22 (température & humidité)
Afficheur 7 segments 4 digits compatible TM1637
MPU-6050 IMU avec connecteurs
Afficheur OLED I²C compatible SSD1306
Adaptateur carte micro SD avec connecteur
Buzzer
Micro servo SG90
Écran TFT SPI 240×320 compatible ILI9341
20× fils jumper
Breadboard
Eerste stappen met een ESP32-C3 en het IoTWiFi-knop en -relais IoT Cloud à la Arduino
Arduino-shield met dubbele Geiger-Müller buisuiterst gevoelige en zeer zuinige stralingssensor
CO2-wachterluchtkwaliteit bewaken – doe het zelf!
MonkMakes Air Quality Kit voor de Raspberry Pimeet temperatuur en eCO2
Alle begin......verwelkomt de diode
Tips & trucs voor het testen van componentenzonder kostbare apparatuur
Reduceer het stroomverbruik van uw mollenverjagerATtiny13 in plaats van 555
Lichtschakelaar DeLuxuiterst nauwkeurig lichtgestuurd schakelen
Uitdagingen bij het op de markt brengen van IoT-oplossingenzorgen over veiligheid, schaalbaarheid en de concurrentie Elektor Infographics
Toch beter bedraadTips voor het ontwikkelen van een 1 Gbit/s interface in de industriële omgeving
Edge Impulse FOMOreal-time objectdetectie voor MCU’s
Lopende-golfbuisVreemde onderdelen, de serie
Smalband-Internet of Thingsstandaarden, dekking, overeenkomsten en modules
Dragino LPS8 indoor-gatewayLoRaWAN-gateway snel geïnstalleerd
Ontdek ATtiny-microcontrollers met behulp van C en assemblervoorbeeldhoofdstuk: ATtiny I/O-poorten
Project 2.0correcties, updates en brieven van lezers
LoRa GPS-tracker updateontvang en toon de locatie met een Raspberry Pi
Schakelingen simuleren met TINA Design Suite & TINACloudvoorbeeldhoofdstuk: sinusoscillatoren
Uit het leven gegrepenlopendebandwerk
Het WinUI grafische framework voor Windows-appseen kleine demo-applicatie
GUI's maken met Python's Werelds slechtste GUI
Off-grid PV-systeemelektrische energie onafhankelijk van het net
De 10-jaar-smartphonestel uw verwachtingen bij Hexadoku
Build Smart Applications with Raspberry Pi, Arduino, and ESP32
Discover how easy and exciting mobile app development can be with MIT App Inventor. This hands-on guide takes you from basic concepts to building real-world mobile applications using a simple visual programming approach—no prior coding experience required. You will create IoT and AI-powered apps for Android devices and explore how App Inventor can also be used with iPhones and iPads.
Connect your applications to platforms such as Arduino UNO R4 WiFi, ESP32, Raspberry Pi Pico (2)W and Raspberry Pi 5, enabling you to build smart, connected systems.
Inside the book, you will learn how to:
Build interactive apps using buttons, images, sound, and multimedia
Create text-to-speech and speech-recognition applications
Develop camera-based and location-aware (GPS) apps
Design useful tools such as calculators and educational apps
Work with smartphone sensors like accelerometers and light sensors
Build AI-powered applications, including voice assistants and image-generation features
Send and receive messages, and create communication-based apps
Connect mobile apps to hardware using Wi-Fi and Bluetooth
Control real devices such as LEDs, motors, and sensors
Designed for beginners, students, and hobbyists, this book focuses on learning by doing. By the end, you will have the skills and confidence to create your own innovative applications that interact with both the digital and physical worlds.
Start building and turning your ideas into reality.
Entwicklung intelligenter Sensorknoten, Diagnoseempfänger und LoRa-Zentralen
LoRa ist eine Funktechnik, die weltweit für die Übertragung kleiner Datenmengen über große Entfernungen eingesetzt wird. Ob Sensornetzwerke, industrielle Überwachung, Gebäudeautomation, Landwirtschaft oder andere IoT-Anwendungen – LoRa ermöglicht energiearme Funkverbindungen auch dort, wo große Reichweiten erforderlich sind.
Im Mittelpunkt dieses Buches steht der SX1262, ein moderner LoRa-Transceiver, der zusammen mit dem ESP32-S3 die Grundlage für die entwickelten Sensorknoten bildet. Dabei wird nicht nur die Funktechnik erklärt, sondern vor allem gezeigt, wie der SX1262 praktisch eingesetzt und programmiert wird.
Von der ersten Funkübertragung über die Wahl von Frequenz, Bandbreite, Spreading Factor, Coding Rate und Sendeleistung bis zum vollständigen LoRa-Telegramm entsteht Schritt für Schritt ein funktionsfähiges System. Der ESP32-S3 übernimmt dabei die eigentliche Intelligenz. Er erfasst Sensorsignale, berechnet Messwerte, überwacht Versorgung und Sensor, erkennt Fehler, bestimmt Status und Trend und entscheidet, wann eine Übertragung über LoRa notwendig ist.
Ein besonderer Schwerpunkt liegt auf dem Kommunikationsstandard, dem standardisierten LoRa-Telegramm und der Möglichkeit, neben aufbereiteten Messwerten auch ADC-Rohwerte für die Diagnose zu übertragen. Das Buch führt von den ersten LoRa-Hardware- und Funkversuchen über die Entwicklung intelligenter Sensorknoten bis zum Diagnoseempfänger und zur LoRa-Zentrale. Auch Servicebetrieb und der energiesparende Sleep-Betrieb von ESP32-S3 und SX1262 werden behandelt.
Entwicklung intelligenter Sensorknoten, Diagnoseempfänger und LoRa-Zentralen
LoRa ist eine Funktechnik, die weltweit für die Übertragung kleiner Datenmengen über große Entfernungen eingesetzt wird. Ob Sensornetzwerke, industrielle Überwachung, Gebäudeautomation, Landwirtschaft oder andere IoT-Anwendungen – LoRa ermöglicht energiearme Funkverbindungen auch dort, wo große Reichweiten erforderlich sind.
Im Mittelpunkt dieses Buches steht der SX1262, ein moderner LoRa-Transceiver, der zusammen mit dem ESP32-S3 die Grundlage für die entwickelten Sensorknoten bildet. Dabei wird nicht nur die Funktechnik erklärt, sondern vor allem gezeigt, wie der SX1262 praktisch eingesetzt und programmiert wird.
Von der ersten Funkübertragung über die Wahl von Frequenz, Bandbreite, Spreading Factor, Coding Rate und Sendeleistung bis zum vollständigen LoRa-Telegramm entsteht Schritt für Schritt ein funktionsfähiges System. Der ESP32-S3 übernimmt dabei die eigentliche Intelligenz. Er erfasst Sensorsignale, berechnet Messwerte, überwacht Versorgung und Sensor, erkennt Fehler, bestimmt Status und Trend und entscheidet, wann eine Übertragung über LoRa notwendig ist.
Ein besonderer Schwerpunkt liegt auf dem Kommunikationsstandard, dem standardisierten LoRa-Telegramm und der Möglichkeit, neben aufbereiteten Messwerten auch ADC-Rohwerte für die Diagnose zu übertragen. Das Buch führt von den ersten LoRa-Hardware- und Funkversuchen über die Entwicklung intelligenter Sensorknoten bis zum Diagnoseempfänger und zur LoRa-Zentrale. Auch Servicebetrieb und der energiesparende Sleep-Betrieb von ESP32-S3 und SX1262 werden behandelt.
Kit DIY multilingue (avec 27 LED RGB + Raspberry Pi Pico)
Ajoutez une touche d'ingénierie à votre période de Noël avec le sapin de Noël LED « lumineux » d'Elektor. Ce sapin de Noël 3D au design raffiné combine onze circuits imprimés, un Raspberry Pi Pico et 27 LED RVB adressables pour faire briller des messages festifs en sept langues : danois, néerlandais, anglais, français, allemand, italien et espagnol.
Contrairement aux sapins LED classiques, chaque mot à l'intérieur du sapin possède sa propre chambre lumineuse, créant un éclairage raffiné et doux, sans son ni scintillement. Les LED sont entièrement compatibles WS2812 et pilotées par la bibliothèque Adafruit NeoPixel, ce qui facilite la création d'animations personnalisées et d'effets de couleur.
Idéal pour les makers, les bricoleurs et les passionnés d'électronique festive, ce kit offre à la fois un montage agréable et une décoration originale qui ne manquera pas de susciter la conversation. Le sapin de Noël LED Elektor est le projet de bricolage idéal pour les fêtes !
Caractéristiques
Messages d'accueil multilingues (7 langues) gravés sur le panneau avant
Construction 3D à partir de 11 circuits imprimés emboîtables
Alimenté par Raspberry Pi Pico
27 LED RGB adressables individuellement (pré-montées)
Animations d'apparition et de disparition fluides
Entièrement programmable avec l'IDE Arduino
Une alimentation 5 V (avec connecteur micro-USB) capable de fournir au moins 1 A est recommandée pour une luminosité maximale (non fournie)
Dimensions (H x L x P) : 130 x 115 x 75 mm
Inclus
Toutes les cartes de circuits imprimés nécessaires avec LED et autres composants CMS montés
Raspberry Pi Pico (à souder et programmer par l'utilisateur)
Connecteur à 3 broches (à souder par l'utilisateur)
Support à 3 broches (à souder par l'utilisateur)
4x Tampons en caoutchouc autocollants
Page du projet
Elektor Labs
Hands-on in more than 50 projects
STM32 Nucleo family of processors are manufactured by STMicroelectronics. These are low-cost ARM microcontroller development boards. This book is about developing projects using the popular STM32CubeIDE software with the Nucleo-L476RG development board. In the early Chapters of the book the architecture of the Nucleo family is briefly described.
The book covers many projects using most features of the Nucleo-L476RG development board where the full software listings for the STM32CubeIDE are given for each project together with extensive descriptions. The projects range from simple flashing LEDs to more complex projects using modules, devices, and libraries such as GPIO, ADC, DAC, I²C, SPI, LCD, DMA, analogue inputs, power management, X-CUBE-MEMS1 library, DEBUGGING, and others. In addition, several projects are given using the popular Nucleo Expansion Boards. These Expansion Boards plug on top of the Nucleo development boards and provide sensors, relays, accelerometers, gyroscopes, Wi-Fi, and many others. Using an expansion board together with the X-CUBE-MEMS1 library simplifies the task of project development considerably.
All the projects in the book have been tested and are working. The following sub-headings are given for each project: Project Title, Description, Aim, Block Diagram, Circuit Diagram, and Program Listing for the STM32CubeIDE.
In this book you will learn about
STM32 microcontroller architecture;
the Nucleo-L476RG development board in projects using the STM32CubeIDE integrated software development tool;
external and internal interrupts and DMA;
DEBUG, a program developed using the STM32CubeIDE;
the MCU in Sleep, Stop, and in Standby modes;
Nucleo Expansion Boards with the Nucleo development boards.
What you need
a PC with Internet connection and a USB port;
STM32CubeIDE software (available at STMicroelectronics website free of charge)
the project source files, available from the book’s webpage hosted by Elektor;
Nucleo-L476RG development board;
simple electronic devices such as LEDs, temperature sensor, I²C and SPI chips, and a few more;
Nucleo Expansion Boards (optional).
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sie sind noch kein Mitglied? Hier klicken!
Der ESP-BLASTEine Mini-Raketendrohne mit ESP32, die über 100 km/h erreicht
Wireless Workshop (1)Freigeschaltetes Funkmodul: 433-MHz-CC1101-Sub-GHz-Transceiver
AM-Sendermit Rechteck-/Sinuswellengenerator auf Raspberry Pi Pico
STM32Cube Innovations ChallengeTreten Sie mit Ihrem besten STM32C5-Design an
CoffeeCallerWie ein langer Flur zu einer maßgefertigten Mesh-Netzwerk-Platine führte
AudiotronicsKlirrfaktor
Elektor ist 65Projekte aus früheren September/Oktober-Ausgaben
Geräteortung durch Bluetooth Channel SoundingZentimetergenaue Entfernungsmessung im IoT der nächsten Generation
2026: Eine KI-OdysseeQuantencomputing ist nicht die nächste GPU
Cloud-Schutz durch Edge-Sicherheit
Erste Erfahrungen mit dem HackRF ProPraktische Tests mit der neuen SDR-Hardware
Herausforderung ElektromobilitätEffiziente Lötlösungen für moderne Fahrzeugtechnik
Modem-Update von GPRS/2G auf LTE/4Gam Beispiel einer Funk-Alarmzentrale
Loop-Antenne mit RF BricksTeil 1: Kurzwellen-Antenne mit einstellbarer Richtwirkung im Selbstbau
Internetradio-zu-AM-KonverterVerwendung eines ESP32-S3 als Sender
Projekt 2.0
mioty – ein ÜberblickLPWAN à la Fraunhofer
Werkbank-WeisheitPraktische Tipps von Experten
Walter, das kompakte IoT-ModulTeil 2: Zugriff auf Wetter- und Datendienste
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
Rotary Dial Phone as Remote ControlTo Switch On the Lights, Dial 1; For the Coffee Maker, Dial 2
GPS-Based Speed MonitorNo More Speeding Tickets
RGB Stroboscope with ArduinoA Colorful Adaptation of a Useful Instrument
Wireless Emergency Push ButtonEnhanced Safety with LoRa
Starting Out in ElectronicsFollow the Emitter
Arbitrary, Independent Hysteresis Levels for Comparatorswith Simulations, Spreadsheets and Algebra
ESP32-Based Impedance AnalyzerSimple, Low-Part-Count, and Inexpensive!
HomeLab ToursEncouraging DIY
The MCCAB Arduino Nano Training BoardAll-in-One Hardware for the “Microcontrollers Hands-On Course”
From Life’s ExperienceModern Luddism
Sensor 101: The DS18B20 Temperature SensorConnection to the 1-Wire Bus
Is Matter the Thread to Save the Smart Home?New Standards to Simplify the Smart Home
A Matter of CollaborationDeveloping with the Thing Plus Matter Board and Simplicity Studio
Infographics: IoT and Sensors
Matter, ExpressLink, Rainmaker — What Is This All About?Q&A with Amey Inamdar, Technical Marketing Director at Espressif
Selecting Microcontroller Dev Kits for IoT and IIoT ApplicationsAn Introductory Guide
Capacitors Do Not Always Behave Capacitively!
An NTP Clock with CircuitPythonWhy Should You Use This Programming Language?
Build a Cool IoT DisplayWith the Phambili Newt
The HB100 Doppler Motion SensorTheory and Practice
A Bare-Metal Programming Guide (Part 1)For STM32 and Other Controllers
Siglent SDM3045X Multimeter
Microprocessors for Embedded SystemsPeculiar Parts, the Series
Microcontroller Documentation Explained (Part 3)Block Diagrams and More
Low-Power LoRa Weather StationBuild a long-range weather station by yourself
Transverter for the 70 cm Band
Climate Calling EngineersMove Fast and Fix Things
Hexadoku
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