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.
STmicroelectronics’ wireless IoT & wearable sensor development kit
‘SensorTile.box’ is a portable multi-sensor circuit board housed in a plastic box and developed by STMicroelectronics. It is equipped with a high-performance 32-bit ARM Cortex-M4 processor with DSP and FPU, and various sensor modules, such as accelerometer, gyroscope, temperature sensor, humidity sensor, atmospheric pressure sensor, microphone, and so on. SensorTile.box is ready to use with wireless IoT and Bluetooth connectivity that can easily be used with an iOS or Android compatible smartphone, regardless of the level of expertise of the users. SensorTile.box is shipped with a long-life battery and all the user has to do is connect the battery to the circuit to start using the box.
The SensorTile.box can be operated in three modes: Basic mode, Expert mode, and Pro mode. Basic mode is the easiest way of using the box since it is pre-loaded with demo apps and all the user has to do is choose the required apps and display or plot the measured data on a smartphone using an app called STE BLE Sensor. In Expert mode users can develop simple apps using a graphical wizard provided with the STE BLE Sensor. Pro mode is the most complex mode allowing users to develop programs and upload them to the SensorTile.box.
This book is an introduction to the SensorTile.box and includes the following:
Brief specifications of the SensorTile.box; description of how to install the STE BLE Sensor app on an iOS or Android compatible smartphone required to communicate with the box.
Operation of the SensorTile.box in Basic mode is described in detail by going through all of the pre-loaded demo apps, explaining how to run these apps through a smartphone.
An introduction to the Expert mode with many example apps developed and explained in detail enabling users to develop their own apps in this mode. Again, the STE BLE Sensor app is used on the smartphone to communicate with the SensorTile.box and to run the developed apps.
The book then describes in detail how to upload the sensor data to the cloud. This is an important topic since it allows the sensor measurements to be accessed from anywhere with an Internet connection, at any time.
Finally, Pro mode is described in detail where more experienced people can use the SensorTile.box to develop, debug, and test their own apps using the STM32 open development environment (STM32 ODE). The Chapter explains how to upload the developed firmware to the SensorTile.box using several methods. Additionally, the installation and use of the Unicleo-GUI package is described with reference to the SensorTile.box. This PC software package enables all of the SensorTile.box sensor measurements to be displayed or plotted in real time on the PC.
Practical Multitasking Fundamentals
Programming embedded systems is difficult because of resource constraints and limited debugging facilities. Why develop your own Real-Time Operating System (RTOS) as well as your application when the proven FreeRTOS software is freely available? Why not start with a validated foundation?
Every software developer knows that you must divide a difficult problem into smaller ones to conquer it. Using separate preemptive tasks and FreeRTOS communication mechanisms, a clean separation of functions is achieved within the entire application. This results in safe and maintainable designs.
Practicing engineers and students alike can use this book and the ESP32 Arduino environment to wade into FreeRTOS concepts at a comfortable pace. The well-organized text enables you to master each concept before starting the next chapter. Practical breadboard experiments and schematics are included to bring the lessons home. Experience is the best teacher.
Each chapter includes exercises to test your knowledge. The coverage of the FreeRTOS Application Programming Interface (API) is complete for the ESP32 Arduino environment. You can apply what you learn to other FreeRTOS environments, including Espressif’s ESP-IDF. The source code is available from GitHub. All of these resources put you in the driver’s seat when it is time to develop your next uber-cool ESP32 project.
What you will learn:
How preemptive scheduling works within FreeRTOS
The Arduino startup “loopTask”
Message queues
FreeRTOS timers and the IDLE task
The semaphore, mutex, and their differences
The mailbox and its application
Real-time task priorities and its effect
Interrupt interaction and use with FreeRTOS
Queue sets
Notifying tasks with events
Event groups
Critical sections
Task local storage
The gatekeeper task
Elektor GREEN en GOLD leden kunnen deze uitgave hier downloaden.
Nog geen lid? Klik hier om een lidmaatschap af te sluiten.
AI-tools voor hardwareprototypingWat helpt, wat niet, en waar de technicus nog steeds nodig is
ZSWatch, van idee tot productDeel 1: Een volledig open smartwatch
Drieweg toonregelingHigh-end, voor net dat beetje extra
electronica Fast Forward 202610 jaar innovatie
Microcontroller prototypingEen overzicht van populaire boards
Prototype-breadboardsVreemde onderdelen, de serie
Ontwerpen voor de ruimteEen makers-gids voor COTS-selectie, stralingsbestendigheid en missie-architectuur
Thermisch beheer voor betrouwbare elektronicaWanneer elke graad telt
Van concept naar gadgetHet ontwikkelen van embedded systemen die daadwerkelijk op de markt worden gebracht
EMI-ferriet voor DCF77-antennesEen alternatief voor traditionele ferriet-antennekernen
Een robotarm leren zien en bewegenAI-gestuurde manipulatie met een 3D-geprinte robotarm
Elektor op 65-jarige leeftijdProjecten uit november en december van vroeger
Lusantenne met RF-bouwstenenDeel 2: Signaalverwerking
Van prototype tot productiePraktische lessen van de Elektor-community
Project updatesFeedback, ideeën, correcties
Draagbare audiogeneratorEen referentiesignaalbron voor een snelle installatie van audiosystemen
AudiotronicaMeer vervorming en een versterker met niveauaanpassing
2026: Een AI-odysseeWanneer AI begint met het bouwen van AI
Wireless Workshop (2)Radio Modules Ontsluierd: 2,4 GHz nRF24L01P Transceiver
Het digitale pad
De Ontwikkeling van een Open-Source SmartwatchDaniel Kampert over ZSWatch, Open Hardware en Engineering Trade-offs
Hoe u zich voorbereidt op professionele SMD-assemblage
Engineering weg van de WerkbankSysteemintegratie, probleemoplossing en praktijktesten
Avionica instrument simulatorOp basis van de ESP32-S3, met rond HMI-scherm
Der Raspberry Pi 5 verfügt über zwei vierspurige MIPI-Anschlüsse, von denen jeder entweder eine Kamera oder ein Display unterstützen kann. Diese Anschlüsse verwenden dasselbe 22-polige "Mini"-FPC-Format mit 0,5 mm Raster wie das Compute Module Development Kit und erfordern Adapterkabel für den Anschluss an die 15-poligen "Standard"-Anschlüsse mit 1 mm Raster an aktuellen Raspberry Pi Kamera- und Display-Produkten.
Diese Mini-zu-Standard-Adapterkabel für Kameras und Displays (beachten Sie, dass ein Kamerakabel nicht mit einem Display verwendet werden sollte und umgekehrt) sind in den Längen 200 mm, 300 mm und 500 mm erhältlich.
ELEKTOR AIDE L'électronique dans des temps difficiles
AFFICHAGE D'INFORMATION POUR LA MAISON avec Windows sur le Raspberry Pi
DÉMARRER AVEC NODE-RED un outil de programmation open source basé sur des blocs visuels
LA tombola d'ÉTÉ d'ELEKTOR
GREATSCOTT ! CONSTRUIRE UN SYSTÈME D'ALARME LORA
REVUE : ALIMENTATION DE LABORATOIRE JOY-IT RD6006 (KIT)
REVUE : INTERFACEBOARD GREATFET ONE
QUI N'HONNE PAS LES PETITS – XXL de la boîte à suggestions d'Elektor
ANTENNE WIFI EXTERNE 2,4 GHZ POORLUIS
CONTRÔLE FACILE DE LA TEMPÉRATURE MARCHE/ARRÊT AVEC CHAPEAU RASPBERRY PI
COMMENT PRENDRE DE (BONNES) PHOTOS DÈS L'IMPRESSION... ...et les composants électroniques ?
REVUE : NOYAU I2CDRIVER
ÉCRAN TACTILE JOY-VIEW 13 DE JOY-IT
BOOSTER LED POUR MICROCONTRÔLEURS avec un seul composant !
MACHINE À LAVER À ULTRASONS EXPÉRIMENTALE
REVUE : GÉNÉRATEUR DE SIGNAUX JOY-IT JDS2915 générateur de signaux doubles avec compteur de fréquence dans un boîtier métallique
PROGRAMMATION DES FEUX DE SIGNALISATION EN LANGAGE PIC ASSEMBLY
LED CLIGNOTANT PERMANENT
CAPTEUR DE HALL EXPÉRIMENTAL
DÉTECTER LES COURT-CIRCUITS AVEC UN MILLIOHM OU ESR MÈTRE
KIT PRATIQUE ÉLECTRIQUE SDR
PIPELINE DE LABORATOIRES ÉLECTRIQUES
KICK-STARTER ÉLECTRIQUE ....eh bien, vous voyez ce que nous voulons dire.
AVEZ-VOUS VRAIMENT BESOIN DE TOUT ÇA ??? ici, je passe de nombreuses heures sur des projets électroniques...
LABORATOIRE EST OUEST MEILLEUR un aperçu du plus saint des saints, où naissent des projets intéressants
BONJOUR LE MONDE! NOUS SOMMES ELEKTOR ET NOUS SOMMES SOCIAUX
M4 + A7 + GPU : UNE ÉQUIPE DE RÊVE INÉGALE le nouveau SoC STM32MP1 pour les travaux plus lourds
CONFIGURATION DE TEST POUR LE 16F18877 ET AUTRES GRANDES PHOTOS
COMMUNICATION INTER-ΜC AVEC LE BUS SPI ET ATMEGA328P
SIX VARIANTES DE L'OSCILLATEUR LF/AF (et la capacité de M. Miller)
BBC MICRO:BIT oscilloscope absolument minimaliste avec affichage LED
FEU DE RUNNING À LED 'KNIGHT RIDER' AVEC ESP32
GÉNÉRATEUR DE SIGNAUX AM LW/MW AVEC ATTINY13
DIPMÈTRE ABSOLUMENT MINIMALISTE
SCOOTERS ÉLECTRIQUES BON MARCHÉ quelle est la qualité d'un scooter électrique « homologué » à 300 euros de Lidl ?
AIDE AU STATIONNEMENT À ULTRASONS AVEC ARDUINO UNO
PÉDALE DE DISTORSION AVEC AMPLI OP ET TUBES DE CHARGE SPATIALE
INDISPENSABLE POUR CHAQUE LABORATOIRE D'ÉLECTRONIQUE
HEXADOKU
IA POUR DÉBUTANTS (2) réseaux de neurones avec Linux et Python
The XIAO ESP32-C3 board combines the ultra-compact form factor of the XIAO series with the full capabilities of the ESP32-C3 chip, including integrated Wi-Fi and Bluetooth 5.0. This book is a comprehensive, hands-on guide to getting the most out of this powerful yet affordable development board.
The author takes readers from the fundamentals to advanced projects. Starting with LED blinking and dimming, the book progresses to ADC and PWM for precise sensor interfacing and PWM-controlled lighting effects before moving on to building practical, real-world applications, including:
A Wi-Fi weather station with an OLED display and real-time online weather data
An ultrasonic parking assistant with audible feedback
A refrigerator monitoring probe with climate sensing and Deep Sleep for years of battery operation
A retro Pong game controlled by a touch-free sensor
A microphone-based party app that responds to claps
And much more: lighting control, reaction-time measurement, mains frequency analysis, soil moisture sensing, ambient LED lighting, and 7-segment displays
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sie sind noch kein Mitglied? Hier klicken!
DIY-SolarakkusÜber den Selbstbau von Energiespeichern für Solaranlagen
Solarmodul-SimulatorFür Test und Optimierung von MPP-Trackern und Invertern
Der STM32-Edge-KI-WettbewerbEntdecken Sie den neuen STM32N6 und nehmen Sie am Wettbewerb um 5.000 € teil!
Erweiterung der BandlückeWarum gibt es so viel Interesse an SiC und GaN?
Power-Bank für NotebooksVerlängern Sie das Leben Ihres alten Laptops!
Medizinische RoboterÜberwindung technischer und regulatorischer Hürden
Frostwächter für ObstpflanzenMit Temperatur-Datenlogger
Das analoge DingDer Arduino des Analog-Computings?
Sparsames NetzrelaisMit über 90% Leistungsreduzierung
Verbesserung der DC-Last ET5410A+Keep cool and be quiet!
electronica 2024 im Rückblick
Elektromagnetische VerträglichkeitEMV kurz und bündig!
Aller Anfang......muss nicht schwer sein: Aktive Filter
Verlustleistung reduzieren mit AbleitkondensatorenEin cleverer Einsatz von kapazitiver Reaktanz
Preiswerter 12-Bit-Digital-Analog-Wandler MCP4725Mit EEPROM-Feature für sicheres Einschaltverhalten
Fnirsi LCR-ST1, die intelligente LCR-SMD-Pinzette
Test- und Messlabor mit Raspberry PiDas Wichtigste zuerst: Der ADC
Elektronischer LastwiderstandEin Projekt aus der Kiste
2025: Eine Odyssee in die KIEinige Projekte für das neue Jahr
Projekt-Update: Modulares DC-Leistungsmessgerät AmpVolt v2.0100 Ampere und mehr!
Projekt 2.0
Ethische Transparenz sichtbar gemachtErgebnisse der Umfrage 2024 von Ethics in Electronics
Elektor Audio-DSP FX-Prozessor-BoardTeil 2: Anwendungen erstellen
De mens is van nature uitgerust met sensoren voor geluid, licht, geur, smaak en gevoel. Zintuigen die met elektronica slechts ten dele gekopieerd kunnen worden. Met de Elektor sensorkit kunnen we wel aardig in de buurt komen.
Sensoren kunnen elektronica aansturen, maar ze kunnen ons ook van informatie voorzien. Daarom vormt niet alleen het meten van grootheden, maar ook het zichtbaar maken ervan via de Arduino seriële monitor een niet onbelangrijk deel van dit boek.
De microprocessor ATtiny85 die de Arduino-taal begrijpt, maakt het experimenteren met sensoren gemakkelijk en goedkoop. We zullen niet snel een Arduino-kaartje vast solderen in een permanente opstelling. Bij een achtpotige ATtiny zal dat geen schuldgevoel opleveren. Dat neemt niet weg dat alle sketches gewoon op elk Arduino-board draaien met mogelijk hier en daar een aanpassing van pennummers omdat die kunnen verschillen met reguliere Arduino-boards.
We zullen uitgebreid aandacht besteden aan het programmeren van de ATtiny. Veel schakelingen zijn bruikbaar in het natuurkundepracticum op school of voor bedrijfsmatige toepassingen. Maar de nadruk ligt toch wel op de (beginnende) elektronicahobbyist die zijn vrije tijd op een leuke maar vooral ook nuttige manier wil besteden. Want meer dan ooit tevoren heeft techniek de toekomst.
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sie sind noch kein Mitglied? Hier klicken!
Stromquelle zum Testen von (Z-)DiodenPrüfen von Z-Dioden von 1 bis 54 V bei 1 bis 50 mA
ESD-Armband-TesterEin Tool zur Funktionsprüfung von Erdungsarmbändern
Transientenmesser für LabornetzteileEin reproduzierbarer Lastsprung-Generator für Labornetzteile
3D-Viewer für HTML-SeitenEinfach und fast ohne Code
LED-Blinkleuchte für Tore und mehr mit akustischem Alarm
Benötigen Sie Leiterplatten? Der Elektor-Leiterplattenservice ist für Sie da.
Zahnbürsten-TimerMit einem kleinen PIC
Ein berührungsloses magnetisches Kombinationsschlossmit dem AS5600-Drehpositionssensor
Rauscharmer, batteriebetriebener Vorverstärkerfür dynamische Mikrofone
Das Arduino Nano TestLabMessen, Steuern, Regeln
Rhythmische BassleuchteBetonen Sie den Rhythmus Ihrer Musik
Low-cut-FilterKein Risiko von Audio-Rückkopplungen in Ihrem System
Präziser 1-Hz-Rechteckwellengenerator für SteckbrettEine zuverlässige CMOS-basierte Taktquelle
555 auf den Kopf gestelltTastverhältnisse bis hinunter auf Null
Vom „Halfgeleidergids“ zu Circuit Specials65 Jahre Elektronik-Innovation
Galvanische TrennungCAN-Schnittstelle mit Digitalisolator und Powermodul
SpongillatorEin schwammbasierter Oszillator
Echter Zufallszahlengeneratormit integriertem Chi-Quadrat-Test
Euklidischer Sequencer ohne MikrocontrollerTrigger-Pattern und CV-Sequenzen mit einfacher CMOS-Logik
Programmieren mit TLScriptEine Skriptsprache zum Messen, Testen und Steuern
Schaltungsdesign: Tipps von Experten
RückkopplungWas ist das und warum ist sie wichtig?
Ein Board, endlose Ideen: Arduino UNO QVon Retro-Gaming zur Echtzeit-Umweltüberwachung
So bringen Sie eine Donut-Antenne in Ordnung
Standby-KillerEin echter Ein-/Ausschalter für den Fernseher
Akkus im TestAkkus vermessen mit dem Arduino Nano
Stromversorgung für Audio-EndstufenEin gutes Netzteil ohne Netzbrummen
Lochrasterplatinen für HFSchnelle Aufbauten mit DIY-Prototyping-Boards
T3-ÜberspannungsschutzEin Typ-3-Schutzmodul für empfindliche Geräte
IoT-Raumthermostat-Platinemit dem Xiao-MCU-Modul auf Basis des ESP32-C3/S3
Von starr zu smartFlexible und gedruckte Elektronik – zwischen Vision und industrieller Realität
Build your own AI microcontroller applications from scratch
The MAX78000FTHR from Maxim Integrated is a small development board based on the MAX78000 MCU. The main usage of this board is in artificial intelligence applications (AI) which generally require large amounts of processing power and memory. It marries an Arm Cortex-M4 processor with a floating-point unit (FPU), convolutional neural network (CNN) accelerator, and RISC-V core into a single device. It is designed for ultra-low power consumption, making it ideal for many portable AI-based applications.
This book is project-based and aims to teach the basic features of the MAX78000FTHR. It demonstrates how it can be used in various classical and AI-based projects. Each project is described in detail and complete program listings are provided. Readers should be able to use the projects as they are, or modify them to suit their applications. This book covers the following features of the MAX78000FTHR microcontroller development board:
Onboard LEDs and buttons
External LEDs and buttons
Using analog-to-digital converters
I²C projects
SPI projects
UART projects
External interrupts and timer interrupts
Using the onboard microphone
Using the onboard camera
Convolutional Neural Network