Projects with Thonny-IDE, uPyCraft-IDE, and ESP32
The 'Python' programming language has enjoyed an enormous upswing in recent years. Not least, various single-board systems such as the Raspberry Pi have contributed to its popularity. But Python has also found widespread use in other fields, such as artificial intelligence (AI) or machine learning (ML). It is obvious, therefore, to use Python or the 'MicroPython' variant for use in SoCs (Systems on Chip) as well.
Powerful controllers such as the ESP32 from Espressif Systems offer excellent performance as well as Wi-Fi and Bluetooth functionality at an affordable price. With these features, the Maker scene has been taken by storm. Compared to other controllers, the ESP32 has a significantly larger flash and SRAM memory, as well as a much higher CPU speed. Due to these characteristics, the chip is not only suitable for classic C applications, but also for programming with MicroPython.
This book introduces the application of modern one-chip systems. In addition to the technical background, the focus is on MicroPython itself. After the introduction to the language, the programming skills learned are immediately put into practice. The individual projects are suitable for use in the laboratory as well as for everyday applications. So, in addition to the actual learning effect, the focus is also on the joy of building complete and useful devices. By using laboratory breadboards, circuits of all kinds can be realized with little effort, turning the testing and debugging of the 100% homebrew projects into an instructive pleasure.
The various applications, such as weather stations, digital voltmeters, ultrasound range finders, RFID card readers or function generators, make the projects presented ideally suited for practical courses or subject and study work in the natural sciences, or in science and technology classes.
Projects Using Arduino IDE and the LVGL Graphics Library
The ESP32 is probably one of the most popular microcontrollers used by many people, including students, hobbyists, and professional engineers. Its low cost, coupled with rich features makes it a popular device to use in many projects. Recently, a board called the ESP32 Cheap Yellow Display (CYD for short) is available from its manufacturers. The board includes a standard ESP32 microcontroller together with a 320x240 pixel TFT display. Additionally, the board provides several connectors for interfaces such as GPIO, serial port (TX/RX), power and Ground. The inclusion of a TFT display is a real advantage as it enables users to design complex graphics-based projects without resorting to an external LCD or graphics displays.
The book describes the basic hardware of the ESP32 CYD board and provides details of its on-board connectors. Many basic, simple, and intermediate-level projects are given in the book based on the ESP32 CYD, using the highly popular Arduino IDE 2.0 integrated development environment. The use of both the basic graphics functions and the use of the popular LVGL graphics library are discussed in the book and projects are given that use both types of approaches.
All the projects given in the book have been tested and are working. The block diagram, circuit diagram, and the complete program listings and program descriptions of all the projects are given with explanations. Readers can use the LVGL graphics library to design highly popular eye-catching full-color graphics projects using widgets such as buttons, labels, calendars, keypads, keyboards, message boxes, spinboxes, sliders, charts, tables, menus, bars, switches, drop-down lists, animations, and many more widgets.
Dit bundel bevat de populaire Elektor zandklok voor Raspberry Pi Pico en de nieuwe Elektor laserkop upgrade, en biedt daarmee nog meer mogelijkheden om de tijd weer te geven. U kunt de actuele tijd nu niet alleen in zand "graveren", maar ook op een lichtgevende folie schrijven of groene tekeningen maken.
Inhoud van de bundel
Elektor Zandklok voor Raspberry Pi Pico (normale prijs: € 50)
Elektor Laserkop Upgrade voor Zandklok (normale prijs: € 35)
Zandklok voor Raspberry Pi (een op de Raspberry Pi Pico gebaseerde Eye Catcher)
Een standaard zandklok laat meestal slechts zien hoe de tijd verstrijkt. Deze door een Raspberry Pi Pico aangestuurde zandklok toont daarentegen de exacte tijd door de vier cijfers voor uren en minuten in een zandlaag te "graveren". Na een vooraf ingestelde periode wordt het zand door twee trilmotoren vlak getrild en begint alles weer van voren af aan.
Het hart van de zandklok wordt gevormd door twee servomotoren, die via een pantograafmechanisme een schrijfpen aandrijven. Een derde servomotor tilt deze pen op en neer. Het zandbakje is voorzien van twee trilmotoren om het zand weer vlak te trillen. Het elektronische deel van de zandklok bestaat uit een Raspberry Pi Pico en een RTC/driverbord met een real-time klok, plus drivercircuits voor de servomotoren.
Een gedetailleerde bouwhandleiding is beschikbaar via download.
Kenmerken
Afmetingen: 135 x 110 x 80 mm
Bouwtijd: ca. 1,5 tot 2 uur
Inbegrepen
3x Voorgesneden acrylaatplaten met alle mechanische onderdelen
3x Mini servomotoren
2x Trilmotoren
1x Raspberry Pi Pico
1x RTC/driverkaart met geassembleerde onderdelen
Moeren, boutjes, afstandhouders en draden voor de montage
Fijnkorrelig wit zand
Elektor Laserkop Upgrade voor Zandklok
De nieuwe Elektor Laserkop transformeert de Elektor Zandklok in een klok die de tijd op glow-in-the-dark-film schrijft in plaats van op zand. Naast het weergeven van de tijd kan het ook worden gebruikt om kortstondige tekeningen te maken. De 5 mW laserpointer, met een golflengte van 405 nm, produceert heldergroene tekeningen op de glow-in-the-dark-film. Voor het beste resultaat gebruikt u de kit in een slecht verlichte kamer. Waarschuwing: Kijk nooit rechtstreeks in de laserstraal!
De kit bevat alle benodigde componenten, maar het solderen van drie draden is vereist.
Opmerking: Deze kit is ook compatibel met de originele Arduino-gebaseerde Zandklok uit 2017. Voor meer details, zie Elektor 1-2/2017 en Elektor 1-2/2018.
Practical Applications and Project with Arduino, ESP32, and RP2040
Immerse yourself in the fascinating world of control engineering with Arduino and ESP32! This book offers you a practical introduction to classic and modern control methods, including PID controllers, fuzzy logic, and sliding-mode controllers.
In the first part, you will learn the basics of the popular Arduino controllers, such as the Arduino Uno and the ESP32, as well as the integration of sensors for temperature and pH measurement (NTC, PT100, PT1000, and pH sensor).
You will learn how to use these sensors in various projects and how to visualize data on a Nextion TFT display. The course continues with an introduction to actuators such as MOSFET switches, H-bridges, and solid-state relays, which are used to control motors and actuators. You will learn to analyze and model controlled systems, including PT1 and PT2 control.
The book focuses on the implementation of fuzzy and PID controllers for controlling temperature and DC motors. Both the Arduino Uno and the ESP32 are used. The sliding-mode controller is also introduced.
In the second-to-last chapter, you will explore the basics of neural networks and learn how machine learning can be used on an Arduino. In the last chapter, there is a practical example of a fuzzy controller for feeding electricity into the household grid.
This book is the perfect choice for engineers, students, and electronics engineers who want to expand their projects with innovative control techniques.
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.
programmation PIO sur le Raspberry Pi PicoNeuf instructions, de multiples possibilités
l'IA en ligne de commandeDéveloppement, compilation et validation de projets embarqués depuis le terminal
le Scrutiny DebuggerDéboguer, visualiser et tester du code C/C++ embarqué
carte breakout Sigfox (1)Développement d’une BoB radio
alimentation à faible bruit (2)Construction, assemblage et mise en œuvre pratique
générateur de signaux simple basé sur le RP2040Signaux analogiques et numériques
à la découverte du futur de la domotique avec Matter et l’IA EdgeLes dernières versions de Matter et l’essor de l’IA en périphérie de réseau (edge) donnent-ils enfin aux ingénieurs les outils nécessaires pour construire les maisons intelligentes et parfaitement intégrées promises aux utilisateurs ?
capteurs de pression différentielleLa maintenance prédictive appliquée aux systèmes CVC
la sécurité dès la conceptionPrincipes d’ingénierie pour limiter les défaillances
la sécurité des systèmes embarqués n’est plus une option
la CRA et la PQC redéfinissent les priorités de la sécurité embarquéePourquoi même les petites entreprises IoT et industrielles doivent prévoir une mise à niveau
embedded world 2026Entretien avec Benedikt Weyerer, directeur d’embedded world
prise en main du bus I3CUtilisation de matériel de ST et Microchip
le projet BLEnkyPrototypage rapide d’applications Bluetooth Low Energy
modulation de largeur d’impulsionDu thermostat tout ou rien à un signal analogique continu filtré
audiotroniqueDes circuits audio agréables à l’écoute, à réaliser soi-même
sur le vifLisez donc le manuel !
carte émetteur-récepteur audio ESP32 (4)Réglage des horloges et une option filaire
2026 : une odyssée de l’IAConséquences du vibe coding
charge CC symétriqueCharge CC symétrique, statique ou dynamique
comptage de visages avec MaixCAMUne méthode simple pour estimer la taille d’un public
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.
adaptateur de mesure USBTest du courant et des signaux des ports USB
sortie boucle de courant 4-20 mA pour Arduino UnoUne interface de boucle de courant fiable et insensible aux interférences électromagnétiques
commande automatique pour aspirateurGardez votre établi propre
générateur DDS avec ATtiny
testeur d'ampli-op V2Nouveau circuit imprimé – désormais compatible avec les CMS
amplificateur audio à tube 550 mWson chaleureux des tubes à vide
surveillance des fusiblesavec une LED clignotante
préamplificateur RIAA HQExploitez tout le potentiel sonore de vos disques vinyles !
Outil de réglage pour platines vinylesGénérateur de lumière stroboscopique 100–120 Hz basé sur Arduino
Elektor Classics : ampli vidéo
gradateur à télécommande infrarougeContrôlez votre éclairage avec confort et précision
comment utiliser switch…case avec des chaînes de caractères en C++/EDI Arduino
détecteur d’aimantsAvec un simple capteur à effet Hall
bouton de mise sous tension intelligent pour Raspberry PiUne solution pour Raspberry Pi jusqu’au modèle 4
astuces clés pour makersDes conseils pros pour vos projets
projets pratiques avec le timer 555Commande de moteur CC et jeux de rapidité
moniteur de charge CA simpleÉconomisez de l'énergie grâce à un appareil simple
batteries externes en parallèleTrois jours d’autonomie
VFO jusqu’à 15 MHzRéalisation avec un Raspberry Pi Pico
accordeur de violon avec ATtiny202
Elektor Classics : ampli vidéo pour TV N&B
capacimètre20 pF à 600 nF
horloge quasi analogique Mk IIDeux anneaux LED pour les heures et les minutes
concevez sans limites(grâce à l’écosystème complet d’Arduino)
dé à lampes néon
Elektor Classics : indicateur d'accord RTTY
solutions matérielles inspirantes pour vos projets ESP
Elektor Classics : alimentation 3 A
LED RGB avec circuit de commande intégréLumière de précision : les ICLED établissent de nouvelles normes
expérience : un Thérémine analogico-numérique ?Combiner des capteurs numériques modernes avec l’intemporel générateur analogique XR2206
carte émetteur-récepteur audio ESP32 (1)Démo : lecture de fichiers WAV depuis une carte SD
infographies : Circuits et conception de circuits 2025
petit mixeur audioUne conception polyvalente et modulable
minuteur intelligent pour éclairage d’escalierÉconomisez encore plus sur votre facture d’énergie !
modernisez vos voletsContrôlez les systèmes Velux avec un ESP32 et MQTT
chauffe-pieds à transistorsConfort économe en énergie
le quadricoptère M5Stamp Fly est-il le prochain drone Tello ? (Revue)
optimiser la portée Wi-Fi de l’ESP32-C3 SuperMiniUne modification d’antenne simple et efficace
station de soudage à air chaud ZD-8968Un outil de travail économique ou uniquement de l'air chaud ?
testeur de radar de reculDétecter les pannes du système d’aide au stationnement d’un véhicule
Praktische Anwendungen und Projekte mit Arduino, ESP32 und RP2040
Tauchen Sie ein in die faszinierende Welt der Regelungstechnik mit Arduino und ESP32! Dieses Buch bietet Ihnen einen praxisnahen Einstieg in die klassischen und modernen Methoden der Regelung, darunter PID-Regler, Fuzzy-Logik und Sliding-Mode-Regler.
Im ersten Teil lernen Sie die Grundlagen der beliebten Arduino-Controller, wie den Arduino Uno und den ESP32, sowie die Integration von Sensoren für Temperatur- und pH-Messung (NTC, PT100, PT1000, pH-Sensor). Sie erfahren, wie diese Sensoren in verschiedenen Projekten eingesetzt werden und wie Sie Daten auf einem Nextion TFT-Display visualisieren.
Weiter geht es mit der Einführung in Stellglieder wie MOSFET-Schalter, H-Brücken und Solid-State-Relais, die zur Steuerung von Motoren und Aktoren verwendet werden. Sie lernen, Regelstrecken zu analysieren und zu modellieren, einschließlich PT1- und PT2-Regelungen.
Der Schwerpunkt des Buches liegt auf der Implementierung von Fuzzy- und PID-Reglern zur Regelung von Temperatur und DC-Motoren. Dabei werden sowohl der Arduino Uno als auch der ESP32 eingesetzt. Zudem wird der Sliding-Mode-Regler vorgestellt.
Im vorletzten Kapitel erkunden Sie die Grundlagen neuronaler Netze und lernen, wie maschinelles Lernen auf einem Arduino eingesetzt werden kann. Im letzten Kapitel gibt es noch ein praktisches Beispiel für einen Fuzzy-Regler zur Stromeinspeisung ins Hausnetz.
Dieses Buch ist die perfekte Wahl für Ingenieure, Studierende und Elektroniker, die ihre Projekte mit innovativen Regelungstechniken erweitern möchten.
Arduino-compatibele, ESP32-aangedreven tweewielige balansrobot
De Elektor Mini-Wheelie is een experimenteel autonoom zelfbalancerend robotplatform. De zelfbalancerende robot is gebaseerd op een ESP32-S3-microcontroller en is volledig programmeerbaar met behulp van de Arduino-omgeving en open-sourcebibliotheken. Dankzij de draadloze mogelijkheden kan hij op afstand worden bediend via Wi-Fi, Bluetooth of ESP-NOW, of kan hij communiceren met een gebruiker of zelfs een andere robot.
Er is een ultrasone transducer beschikbaar voor het detecteren van obstakels. Het kleurendisplay kan worden gebruikt voor het weergeven van schattige gezichtsuitdrukkingen of, voor de meer nuchtere gebruikers, voor cryptische debug-berichten.
De robot wordt geleverd als een compleet bouwpakket met onderdelen die u zelf in elkaar moet zetten. Alles zit erbij, zelfs een schroevendraaier.
Let op: De Mini-Wheelie is een educatief ontwikkelingsplatform bedoeld voor leren, experimenteren en robotica-ontwikkeling. Het is niet geclassificeerd als speelgoed voor kinderen en de functies, documentatie en beoogde doelgroep weerspiegelen dit doel. Het product is gericht op studenten, docenten en ontwikkelaars die robotica, programmeren en hardware-integratie willen verkennen in een educatieve omgeving.
Specificaties
ESP32-S3-microcontroller met Wi-Fi en Bluetooth
MPU6050 6-assige Inertial Measurement Unit (IMU)
Twee onafhankelijk geregelde 12 V elektromotoren met toerenteller
Ultrasone transducer
2,9" TFT-kleurendisplay (320 x 240)
MicroSD-kaartsleuf
Batterijstroommonitor
3S oplaadbare Li-Po-batterij (11,1 V/2200 mAh)
Batterijlader meegeleverd
Op Arduino gebaseerde open source-software
Afmetingen (B x L x H): 23 x 8 x 13 cm
Inbegrepen
1x ESP32-S3 Mainboard + MPU6050 module
1x LCD-board (2,9 inch)
1x Ultrasone-sensor
1x Batterijpakket (2200 mAh)
1x Batterijlader
1x Motorbandenset
1x Kastboard
1x Acrylplaat
1x Schroevendraaier
1x Beschermstrip
1x Flexkabel B (8 cm)
1x Flexkabel A (12 cm)
1x Flexkabel C
4x Koperen kolom A (25 mm)
4x Koperen kolom B (55 mm)
4x Koperen kolom C (5 mm)
2x Kunststof nylon zuil
8x Schroeven A (10 mm)
24x Schroeven B (M3x5)
8x Moeren
24x Metalen ringen
2x Ritssluiting
1x MicroSD-kaart (32 GB)
Downloads
Documentation
Elektor GREEN and GOLD members can download their digital edition here.
Not a member yet? Click here.
USB Measurement AdapterTesting Current and Signal Quality of USB Ports
4...20 mA Current Output for Arduino UnoA Reliable, EMI-Insensitive Current Loop Interface
Vacuum Cleaner Automatic ControlKeep Your Tools’ Work Area Clean
DDS Generator with ATtiny
Opamp-Tester V2New PCB – Now Also Suitable for SMDs
550-mW “Lamp” Audio AmplifierGet the Warm Sound of Vacuum Tubes With Ease
Fuse GuardMonitoring a Fuse with a Flashing LED
HQ RIAA PreamplifierGet the Most Out of Your Vinyl Records!
Turntable Speed CalibratorAn Arduino-Based 100–120 Hz Strobe Light Generator
Elektor Classics: video buffer/repeater
Infrared Remote-Controlled DimmerControl Your Halogen or LED Floor Lamp Effortlessly and With Style
How to Use switch…case on Strings in C++/Arduino IDE
Magnet FinderWith a Simple Hall-Effect Sensor
Raspberry Pi Smart Power ButtonA Solution for Raspberry Pi Up to Model 4
Essential Maker TipsProfessional Insights for Everyday Making
Practical Projects with the 555 TimerDC Motor Control and Fast Reaction Challenges
Basic AC-Load-On MonitorSave Energy with a Simple Device
Power Banks in ParallelA Three-Day Continuous Power Solution
VFO Up to 15 MHzAn Implementation With Raspberry Pi Pico
Violin Tuner with ATtiny202
Elektor Classics: video amplifier for B/W television sets
Capacitance Meter20 pF to 600 nF
Quasi-Analog Clockwork Mk IITwo LED Rings for Hours and Minutes
You Can Do Anything You Want(with the Arduino Ecosystem at Your Side)
Neon Lamp Dice
Elektor Classics: RTTY calibrator indicator
Inspiring Hardware Designs for Your ESPs
Elektor Classics: variable 3 A power supply
RGB LEDs with Integrated Control CircuitLight with Precision: ICLEDs Set Standards
Experiment: Towards a Mixed-Signal Theremin?Blending Modern Time-of-Flight Sensors With the Timeless XR2206 Analog Generator
ESP32 Audio Transceiver Board (Part 1)SD Card WAV File Player Demo
Infographics: Circuits and Circuit Design 2025
Small Audio MixerA Simple and Versatile Scalable Design
Smart Staircase Light TimerSave More Money on the Energy Bill!
Smarten Up Your ShuttersControlling Velux Hardware With an ESP32 and MQTT
Solid-State Foot WarmerEnergy-Efficient Comfort
Is the M5Stamp Fly Quadcopter the Next Tello?
Boosting Wi-Fi Range of the ESP32-C3 SuperMiniA Simple and Effective Antenna Mod
ZD-8968 Hot-Air Soldering StationA Budget-Friendly Workhorse or Just Hot Air?
Parking Sensor TesterFinding Defects in the PDC System of a Car
Elektor GREEN en GOLD leden kunnen deze uitgave hier downloaden.
Nog geen lid? Klik hier om een lidmaatschap af te sluiten.
CaptureCountobjectdetector en -teller op de Raspberry Pi 5
Spanningsreferentie met Arduino Pro Minilineariseer en kalibreer analoge ingangen
FPGA’s voor beginnersvan MCU naar FPGA-programmering
Update: STM32 Wireless Innovation Design Contest 2024
Bluetooth LE met MAUIbesturingsapps voor Android en co.
Port Expander breakout-boardmeer I/O’s op je development board
AI-specialistmachine learning met de Jetson Nano
2024: een AI-odysseeeen eerste verkenning van TensorFlow
262.144 manieren om Game of Life te spelenlezersproject in het kort
Uit het leven gegrepende Chinese draak
Draaien met die (DC-borstel)motor!voorbeeldprojecten uit de Elektor Motor Control Development Bundle
ESP32/RS-232-adapterdraadloze verbinding voor klassieke meetinstrumenten
Alle begin......gaat verder met de opamp
Aanbevolen ESP-bibliotheken
Piëzo-elektrische componentenvreemde onderdelen
Slimme objecttellereenvoudige beeldherkenning met Edge Impulse
Oplossingen voor de lastigste uitdagingen bij embedded ontwikkeling
ESP32 Terminalhandheld met aanraakscherm
Aan de slag met Zephyr RTOSkrachtig – maar lastig...
Bekroonde ethiekeen vraaggesprek met Alexander Gerfer, CTO van Würth Elektronik eiSos, over het faciliteren van innovatie en bewust gedrag
Project 2.0correcties, updates en brieven van lezers
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.