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).
Elektor GREEN en GOLD leden kunnen deze uitgave hier downloaden.
Nog geen lid? Klik hier om een lidmaatschap af te sluiten.
Kleine warmtebeeldcameraeen op Arduino UNO gebaseerde DHZ-oplossing
Project-update #3: ESP32-gebaseerde energiemeterintegratie en test met Home Assistant
2024: een AI-odysseeobjectdetectie verbeteren met verfijnde technieken
De Raspberry Pi gaat AInieuwe kit bevat M.2 HAT+ met AI-versneller
Sensoren voor weerstationswat is de beste keuze?
Lees uw analoge watermeter uit met AI (1)koppel uw oude watermeter met het IoT!
GSM-alarmdraadloze garagebeveiliging
Low-power Thread-devices geoptimaliseerd en onder de loep genomenweinig vermogen... weinig inspanning?
Uit het leven gegrepende genderkloof
Zelfbouw-nevelkamermaak onzichtbare straling zichtbaar
SparkFun Thing Plus Mattereen veelzijdig Matter-gebaseerd IoT development board
IoT-retrofittenRS232-apparaten klaarstomen voor Industry 4.0
Stimuleer het IoT met 8-bit MCU’s
Technologie stimuleert duurzaamheidvooruitgang leidt in veel toepassingen tot efficiënter energiegebruik
AWS voor Arduino en co. (1)AWS IoT ExpressLink in de praktijk
Luchtstroomdetector met alleen een Arduinozonder externe sensoren!
Lekdetectorverbonden met de Arduino-cloud
Kristallenvreemde onderdelen
Universele logger voor de tuinAI-tuinieren komt een stapje dichterbij
Analoge 1kHz-generatorsinussen met geringe vervorming
Miletus: webapps offline gebruikeninclusief toegang tot het systeem en het apparaat!
Van 4G naar 5Gis het echt zo eenvoudig?
Alle begin......gaat symmetrisch
Le téléchargement intégral de ce numéro est disponible pour nos membres GOLD et GREEN sur le site Elektor Magazine !
Pas encore membre ? Cliquez ici.
PbMonitor v1.0Un système de surveillance des batteries pour les applications à onduleurs et de stockage d'énergie
contrôleur de charge solaire avec MPPT (1)Principes de base d'un contrôleur de charge solaire pour les systèmes autonomes
magnétomètre à intégration du champ et capteurs artisanaux
exactitude, ou précision ?vos appareils doivent posséder les deux !
AD7124 : un C/AN de précision en pratiqueFeatures for Sensor Signal Conditioning
outil de contrôle PIDOptimisez facilement vos paramètres
embedded world 2025
démarrer en électronique...…contrôle de la tonalité
Academy Pro BoxLivre + cours en ligne + matériel
adaptateur Milliohm-mètreUtilisant la précision de votre multimètre
Un nouveau jalon dans le domaine des semi-conducteursEn route vers le 1,4 nm
Connecteurs à technologie traversanteLe meilleur des deux mondes : THR
fréquencemètrePortable et auto-calibré par GPS
compteurs analogiquesDrôles de composants, la série
testeur de quartz autonomeQuelle est la précision de votre source d'horloge ?
testeur I²C peu couteuxconnecter des appareils I²C directement à votre PC
sur le vifbienvenue chez les Pt’tites
2025 : une odyssée de l'IAL'impact transformateur sur le développement de logiciels
projet 2.0Corrections, mises à jour, et courrier des lecteurs
synthétiseur MIDI autonome Raspberry Pi (2)Améliorons notre configuration avec l’Intelligence
oscillateur à pont de Wien "nortonisé"Petite cause, grand effet
tester un microcontrôleur à 0,10 $Le microcontrôleur CH32V003 RISC-V et MounRiver Studio en pratique
un lecteur audio avec égaliseur basé sur un FPGA (2)Ajout d'un réglage du volume, d'un mixage avancé et d'une interface Web
The Arduino Uno is an open-source microcontroller development system encompassing hardware, an Integrated Development Environment (IDE), and a vast number of libraries. It is supported by an enormous community of programmers, electronic engineers, enthusiasts, and academics. The libraries in particular really smooth Arduino programming and reduce programming time. What’s more, the libraries greatly facilitate testing your programs since most come fully tested and working.
The Raspberry Pi 4 can be used in many applications such as audio and video media devices. It also works in industrial controllers, robotics, games, and in many domestic and commercial applications. The Raspberry Pi 4 also offers Wi-Fi and Bluetooth capability which makes it great for remote and Internet-based control and monitoring applications.
This book is about using both the Raspberry Pi 4 and the Arduino Uno in PID-based automatic control applications. The book starts with basic theory of the control systems and feedback control. Working and tested projects are given for controlling real-life systems using PID controllers. The open-loop step time response, tuning the PID parameters, and the closed-loop time response of the developed systems are discussed together with the block diagrams, circuit diagrams, PID controller algorithms, and the full program listings for both the Raspberry Pi and the Arduino Uno.
The projects given in the book aim to teach the theory and applications of PID controllers and can be modified easily as desired for other applications. The projects given for the Raspberry Pi 4 should work with all other models of Raspberry Pi family.
The book covers the following topics:
Open-loop and closed-loop control systems
Analog and digital sensors
Transfer functions and continuous-time systems
First-order and second-order system time responses
Discrete-time digital systems
Continuous-time PID controllers
Discrete-time PID controllers
ON-OFF temperature control with Raspberry Pi and Arduino Uno
PID-based temperature control with Raspberry Pi and Arduino Uno
PID-based DC motor control with Raspberry Pi and Arduino Uno
PID-based water level control with Raspberry Pi and Arduino Uno
PID-based LED-LDR brightness control with Raspberry Pi and Arduino Uno
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
MultiRF Dev BoardA Platform for Evaluating Short- and Long-Range Wireless Protocols
Elektor at 65Disrupting Electronics Since 1961
Wi-Fi-Based Person Detection on an ESP32When Your Router Becomes a Motion Sensor
Wireless ScalesFour Small Scales = One Big Scale
Walter, the Compact IoT ModuleESP32-S3 SoC, LTE-M/NB-IoT 5G Modem, and GNSS Receiver
3- and 4-Wire RTD Sensors ConditioningWith Full-Scale Adjustment and Cable Compensation
3-in-1 2-Channel Oscilloscope/Generator/MultimeterA Review of The Fnirsi 2D15P
electronica Fast Forward 2026 Invites Startups and Industry Partners
EcologgingA Modular Environmental IoT Station for Field Research
Wireless Connectivity in Medical ApplicationsAlways on the Pulse with Bluetooth LE
AudiotronicsHum Reduction
Increasing Agricultural Efficiency with AI Modeling and SensorsBoosting Agricultural Productivity
OPC UA — An OverviewPlatform-Independent Data Exchange
Redox Meter
Instrumentation Amplifier for Physics and Engineering Experiments
Active Differential Audio FiltersFor Professional Crossovers and More
Elektor Community Perspectives on IoT & Sensors
Telegram-Controlled Water Heater Interface ModuleA Solution Based on an ESP32 and Arduino Software
2026: An AI OdysseyWhatever Happened to Fuzzy Logic?
Err-lectronics
Alarm Signal Injector Plus PowerTools for Finding Broken Wires
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
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sie sind noch kein Mitglied? Hier klicken!
Die Open-Source-Prozessorarchitektur RISC-V16 Boards und MCUs, die Sie kennen sollten
Audio-Player mit FPGA und EqualizerTeil 1. Digitale Audiosignale mischen mit einem MKR Vidor 4000 von Arduino
Laserkopf für Pico-basierte SanduhrZeichnen mit Licht
Nehmen Sie teil am STM32 Edge AI Contest!
Umweltüberwachung von Pflanzen mit mehreren SensorenDrahtlose Messung der Wasserversorgung und Lichtverhältnisse
Maixduino: Automatischer KI-TüröffnerGesichtserkennung mit einer Kamera
Embedded-Elektronik 2024KI wird die Branche neu definieren
Ladungsbasiertes In-Memory Compute bei EnCharge AI
KI-Inferencing bei 10-fach geringerer Leistungsaufnahme zu 20-fach geringeren Kosten
Click-Board hilft bei der Entwicklung und dem Training von ML-Modellen für die Schwingungsanalyse
Der Elektor Mini-WheelieEin Bausatz für einen selbstbalancierenden Roboter
MCU, ich sehe dich!MCUViewer, ein Open-Source-Multiplattform-Debugging-Werkzeug
USB-2.0-IsolatorGeräte galvanisch isoliert per USB verbinden
Eingriff vor dem SchadenPredictive Maintenance in der Praxis
SPoE - Elektromagnetische VerträglichkeitSingle-Pair mit Power-over-Ethernet im EMV-Fokus
Retro-TechnikWie das Farbfernsehen eine neue Welt schuf
EKG-MonitorMit Hexabitz-Modulen und einem STM32CubeMonitor
Der Kampf um KI at the Edge
HaLow erreicht Rekorddistanz von 16 km für WLAN bei 900 MHz
Erster CHERI RISC-V-Embedded Chip und Early Access Programm
Die dritte Generation der Waldbrandfrüherkennung nutzt Satellitenverbindungen
Aus dem Leben gegriffenDie Qual der Wahl
Aller Anfang......ist nicht schwer: Wir setzen die Filterung und Klangregelung fort.
Riesen-LED-UhrNeuauflage eines Elektor-Klassikers
Ein modularer Ansatz für die SensorprüfungDas Sensor Evaluation Board mit ESP32-S3
2025: Eine Odyssee in die KIDer Aufstieg der Basismodelle und ihre Rolle bei der Demokratisierung der KImocratizing AI
Standalone MIDI-Synthesizer mit Raspberry PTeil 1: Eine Plattform für Edge-KI-Experimente vorbereiten
Projekt 2.0Korrekturen, Updates und Leserbriefe
CPU, GPU, DSP, FPGA; ein universeller KI-RISC-V-Prozessor kann alles!
CEO-Interview: Ventivas dünne und kühle Technologie
Dual-Core-Programmierung beim Raspberry Pi PicoEinstieg in die Welt der parallelen Programmierung
DIY LiPo Supercharger KitFrom Handcrafted to Mass Market
Elektor @ 60Reflections on Six Decades of Electronics
Siglent Bench Multimeter SDM3045X
DC Current-Sense ClampHall Sensor + Ferrite Core + Arduino
Soldering Station 2021Easy to build!
Hands On the Parallax Propeller 2Part 2: The Development Environment and Code
Wi-Fi for LoRa SwitchIntegrated in Home Assistant with ESPHome
Do Not Fear the Cellular Module!
Tracking Time with ESP32 and TogglWorking with the M5Stack
Get to Know the Raspberry Pi Pico Board and RP2040
MicroPython for MicrocontrollersSmall-Format Screens
12-to-200-V DC/DC Converter for Valve Amplifiers
Heat SeekerThe Seek Shot Pro Thermal Imaging Camera
Object-Oriented Programming: A Short Primer Using C++
HomeLab ToursHome Lab and an Analogue Synthesiser by Kurt Diedrich
Java on the Raspberry PiPart 1: GPIOs
DIP SwitchesPeculiar Parts, the series
Project 2.0Corrections, Updates and Readers’ Letters
Whose Product Is It Anyway?Right to Repair Gains Momentum
From Life's ExperienceThe Great Book of Blunders
Micro-ProfessorLearning Assembly Language on a Z80
Starting out in ElectronicsEasier Than Imagined! Even When It Is About Capacitors
HexadokuThe Original Elektorized Sudoku
This kit includes iFixit's widest assortment of bits, complete with every driver head you’ll need to tackle any repair or DIY project. It includes standard bits like Phillips and Flathead in a full range of sizes to handle everything from precision electronics repair to home DIY projects. And it wouldn’t be an iFixit bit set if it didn’t include all the exotic bits from Pentalobes for Apple iPhone and MacBook repair to Gamebits for your vintage Nintendo consoles.
All of the next-gen bit sets have been re-designed in order to maximize convenience and usability. The bit set lid is held in place with magnets to increase product lifespan (no more broken hinges or clasps) and also mounts to the back of the bit set case to keep it out of the way while you do your work. If you need help keeping your screws and parts organized, you can use the lid’s integrated sorting tray. The 4 mm bits have been adjusted and have now a longer neck for a deeper and more precise reach.
Toolkit bevat
Easy-to-Open Magnetized Case
Lid with Built-in Sorting Tray
4 mm Aluminum Bit Driver
1/4' Aluminum Bit Driver
4 mm Screwdriver Bits
Phillips - 000, 00, 0
Flathead - 1, 1.5, 2, 2.5, 3, 3.5 mm
Torx - T2, T3, T4, T5
Torx Security - TR6, TR7, TR8
Pentalobe - P2, P5, P6
JIS - 000, 00, 0, 1
Hex - 0.7, 0.9, 1.3, 1.5 mm
Hex Security - 2, 2.5, 3, 3.5 mm
Tri-point - Y000, Y00, Y0, Y1
Nut driver - 2.5, 3, 3.5, 4, 4.5, 5, 5.5 mm
Gamebit - 3.8, 4.5 mm
Spanner - 4, 6
Triangle - 2, 2.2, 2.6, 3 mm
Oval Bit
iPhone Standoff Bit
Sim Eject Bit
Magnetic Pickup Bit
1/4' Screwdriver Bits
Phillips - 1, 2, 3
Flathead - 4, 5, 6, 7, 8 mm
Hex Security - 4, 5, 6, 7, 8 mm
Hex Security SAE - 1/8, 9/64, 5/32, 3/16, 7/32, 1/4
Pozidriv - PZ0, PZ1, PZ2, PZ3
Torq-set - 6, 8, 10
Spanner - 8, 10, 12
Square - 0, 1, 2, 3
Spline - M5, M6, M8
Torx Security - TR9, TR10, TR15, TR20, TR25, TR27, TR30, TR35, TR40
Tri-wing 1, 2, 3, 4
Clutch 1, 2, 3
Schrader Valve
Hook Drive
1/4' to 4 mm Adapter
1/4' Driver to 1/4' Socket
1/4' Driver to 3/8' Socket
1/4' Socket to 1/4' Driver
Specificaties
Bit Metal: 6150 Steel
Driver Material: Anodized Aluminum
Case Material: ABS
Foam: EVA
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.
Elektor GREEN en GOLD leden kunnen deze uitgave hier downloaden.
Nog geen lid? Klik hier om een lidmaatschap af te sluiten.
OBD2-sensordashboardOude meters vormden het startpunt van een zoektocht naar echte gegevens
OBD2: voeg een toerenteller en schakelindicator toe aan je autoRetro, maar uiterst nuttig
LiDAR- en Visiesensoren voor Robotica
Sensor+Test 2025 en PCIM 2025
Contactloze E-Veldmetingen (1)Een Trillende Membraan voor het Detecteren van Gelijkspanningen of Statische Elektrische Velden
Draadloze brievenbusmeldervan optische sensoren tot radar: enkele mogelijkheden
Elektor Mini-Wheelieeen zelfbalancerende robot
ZonnecellenVreemde onderdelen, de serie
Aan de slag met een moderne radarsensorStaat een nauwkeurige meting op uw radar?
Uit het leven gegrepenpapierfabriek
CybersecurityZware tijden voor hackers
Infographics: IoT en sensoren 2025
Bluetooth 6.0 brengt verbeterde toepassingen voor afstandsbepalingNieuwe versie biedt betere apparaatpositionerings- en -locatieservices
Draadloze communicatie verkennen met BeagleY-AI
Err-lectronicsCorrecties, updates en lezerspost
Alle begin......sluit het thema opamps af
Een krachtige AI-codeerassistentsneller ontwikkelen met Continue en Visual Studio Code
Zonne-laadregelaar met MPPT (2)Het schema
Ultrasone obstakeldetectoreen eenvoudig project om slechtzienden te helpen
2025: Een AI-odysseeHalfjaaroverzicht
Raspberry Pi Standalone MIDI-synthesizer (3)Het slimmer maken en een gebruikersinterface toevoegen
Meshtastic: een demonstratieprojectEen slim netwerk van LoRa-radio's
Analoge audio-frequentiegeneratorHoogwaardige sinusgenerator met instelbare frequentie
Clever Tricks with ATmega328 Pro Mini Boards
With a simple Pro Mini board and a few other components, projects that 20 or 30 years ago were unthinkable (or would have cost a small fortune) are realized easily and affordably in this book: From simple LED effects to a full battery charging and testing station that will put a rechargeable through its paces, there’s something for everyone.
All the projects are based on the ATmega328 microcontroller, which offers endless measuring, switching, and control options with its 20 input and output lines. For example, with a 7-segment display and a few resistors, you can build a voltmeter or an NTC-based thermometer. The Arduino platform offers the perfect development environment for programming this range of boards.
Besides these very practical projects, the book also provides the necessary knowledge for you to create projects based on your own ideas. How to measure, and what? Which transistor is suitable for switching a certain load? When is it better to use an IC? How do you switch mains voltage? Even LilyPad-based battery-operated projects are discussed in detail, as well as many different motors, from simple DC motors to stepper motors.
Sensors are another exciting topic: For example, a simple infrared receiver that can give disused remote controls a new lease on life controlling your home, and a tiny component that can actually measure the difference in air pressure between floor and table height!