Learn how to use the ESP32 Microcontroller and MicroPython programming in your future projects!
The project book, written by well-known Elektor author Dogan Ibrahim, holds many software- and hardware-based projects especially developed for the MakePython ESP32 Development Kit. The kit comes with several LEDs, sensors, and actuators. The kit will help you acquire the basic knowledge to create IoT projects.
The book’s fully evaluated projects feature all the supplied components. Each project includes a block diagram, a circuit diagram, a full program listing, and a complete program description.
Included in the kit
1x MakePython ESP32 development board with LCD
1x Ultrasonic ranging module
1x Temperature and humidity sensor
1x Buzzer module
1x DS18B20 module
1x Infrared module
1x Potentiometer
1x WS2812 module
1x Sound sensor
1x Vibration sensor
1x Photosensitive resistance module
1x Pulse sensor
1x Servo motor
1x USB cable
2x Button
2x Breadboard
45x Jumper wire
10x Resistor 330R
10x LED (Red)
10x LED (Green)
1x Project book (206 pages)
46 Projects in the Book
LED Projects
Blinking LED
Flashing SOS
Blinking LED – using a timer
Alternately flashing LEDs
Button control
Changing the LED flashing rate using pushbutton interrupts
Chasing-LEDs
Binary-counting LEDs
Christmas lights (random-flashing 8 LEDs)
Electronic dice
Lucky day of the week
Pulsewidth Modulation (PWM) Projects
Generate a 1000-Hz PWM waveform with 50% duty cycle
LED brightness control
Measuring the frequency and duty cycle of a PWM waveform
Melody maker
Simple electronic organ
Servo motor control
Servo motor DS18B20 thermometer
Analog To Digital Converter (ADC) Projects
Voltmeter
Plotting the analog input voltage
ESP32 internal temperature sensor
Ohmmeter
Photosensitive resistance module
Digital To Analog Converter (DAC) Projects
Generating fixed voltages
Generating a sawtooth-wave signal
Generating a triangular-wave signal
Arbitrary periodic waveform
Generating a sinewave signal
Generating accurate sinewave signal using timer interrupts
Using The OLED Display
Seconds counter
Event counter
DS18B20 OLED based digital thermometer
ON-OFF temperature controller
Measuring the temperature and humidity
Ultrasonic distance measurement
Height of a person (stadiometer)
Heart rate (pulse) measurement
Other Sensors Supplied with the Kit
Theft alarm
Sound-activated light
Infrared obstacle avoidance with buzzer
WS2812 RGB LED ring
Timestamping temperature and humidity readings
Network Programming
Wi-Fi scanner
Remote control from the Internet browser (using a smartphone or PC) – Web Server
Storing temperature and humidity data in the Cloud
Low-Power Operation
Using a timer to wake up the processor
Tout sur les protocoles et leur mise en œuvre avec Arduino
Initialement destiné aux véhicules routiers, le réseau CAN (« Controller Area Network ») et son successeur le réseau CAN FD (« Flexible Data ») ont vu leurs champs d’application s’élargir à de nouveaux domaines. L’industrie propose de nombreux modules microcontrôleurs dotés d’une interface CAN et/ou CAN FD. L’environnement de développement Arduino a démocratisé la programmation de ces modules et il existe des bibliothèques qui implémentent un pilote CAN et/ou un pilote CAN FD.
La première partie dresse un rapide historique des réseaux CAN et CAN FD et expose la problématique des lignes de transmission en abordant succinctement leur théorie et présentant des résultats de simulation Spice.
La deuxième partie est consacrée au réseau CAN, en détaillant successivement la fonction logique du réseau, les transcepteurs, les contrôleurs, la topologie la plus classique (le bus) et d’autres moins courantes, les répéteurs et les passerelles. Les aspects particuliers du protocole, tels que le bit stuffing, l’arbitrage, les trames d’erreur, la détection des erreurs sont exposés. La discussion de la fiabilité du protocole est illustrée par des exemples mettant en évidence ses faiblesses.
La troisième partie présente le protocole CAN FD, ses deux variantes CAN FD ISO et CAN FD non ISO, leurs fiabilités, leurs faiblesses, mises en évidence par des exemples. Différents transcepteurs et contrôleurs CAN FD sont décrits.
La quatrième partie est dédiée aux applications : comment utiliser les services d’un pilote, concevoir une messagerie, utiliser un analyseur logique. Deux exemples d’application terminent cette partie.
Ce livre s’adresse aux amateurs et aux ingénieurs non spécialistes pour comprendre les possibilités qu’offre un réseau CAN et comment on le met en œuvre. Un enseignant trouvera des informations pour approfondir ses connaissances et pour concevoir des travaux pratiques. Une connaissance des microcontrôleurs, de leur programmation, de l’électronique numérique aidera à la lecture des schémas. La connaissance du langage C++ et du langage de simulation électronique Spice facilitera la compréhension des programmes qui sont décrits dans le livre. Tous les codes source sont disponibles sur le dépôt GitHub de l’auteur.
Téléchargements
GitHub
Die WiFi-Module der chinesischen Firma Espressif haben schon längst die Maker-Community erobert, bieten sie doch zu einem konkurrenzlosen Preis MCU- und WiFi-Funktionalität. Mit einfachen Mitteln lässt sich ein Arduino mit einem ESP-Modul um WiFi erweitern. Die globale Bastler-Gemeinde ersetzte schon bald die integrierte Firmware mit eigener Firmware, sodass Entwickler ESP-Boards wie Arduino-Boards programmieren können. Der neue ESP32 geht einen Schritt weiter und ist in jeder Beziehung leistungsfähiger als der ESP8266. Zudem besitzt er nun Bluetooth-Funktionalität.
Der ESP32 verfügt über einen 240-MHz-Zweikern-Mikroprozessor mit einer Performanz von 600 DMIPS. Neben 520 KByte SRAM befinden sich 16 MByte Flashspeicher an Board. Zur Kommunikation mit der Außenwelt enthält das System-on-a-Chip die 802.11-b/g/n-WiFi-Komponente HT40 und Bluetooth-Funktionalität. Als Sensoren bietet der ESP32 einen Hall-Sensor, eine zehnfache, kapazitive Touch-Schnittstelle, einen analogen Verstärker für niedrige Signale und einen 32-kHz-Kristallquartz.
Der Bestseller-Autor Erik Bartmann hat sich ausführlich mit dem ESP32 beschäftigt. Heraus gekommen ist dabei Das ESP32-Praxisbuch, in dem er die Leser Schritt für Schritt in die Arbeit mit diesem preiswerten WiFi-Mikrocontroller einführt.
Developing CoAP applications for Thread networks with Zephyr
This book will guide you through the operation of Thread, the setup of a Thread network, and the creation of your own Zephyr-based OpenThread applications to use it. You’ll acquire knowledge on:
The capture of network packets on Thread networks using Wireshark and the nRF Sniffer for 802.15.4.
Network simulation with the OpenThread Network Simulator.
Connecting a Thread network to a non-Thread network using a Thread Border Router.
The basics of Thread networking, including device roles and types, as well as the diverse types of unicast and multicast IPv6 addresses used in a Thread network.
The mechanisms behind network discovery, DNS queries, NAT64, and multicast addresses.
The process of joining a Thread network using network commissioning.
CoAP servers and clients and their OpenThread API.
Service registration and discovery.
Securing CoAP messages with DTLS, using a pre-shared key or X.509 certificates.
Investigating and optimizing a Thread device’s power consumption.
Once you‘ve set up a Thread network with some devices and tried connecting and disconnecting them, you’ll have gained a good insight into the functionality of a Thread network, including its self-healing capabilities. After you’ve experimented with all code examples in this book, you’ll also have gained useful programming experience using the OpenThread API and CoAP.
Practical Low-Cost Methods for Reliable PCB Production
This book explains how to carry out reliable SMD assembly using affordable tools and small-scale equipment. It follows the complete workflow step by step, including tool selection, solder paste handling, stencil use, component placement, reflow methods, inspection, and rework.
The focus is on bench-level and small-lab production rather than industrial assembly lines. It shows practical methods for building single and double-sided SMD boards with repeatable results.
Topics include solder paste and flux, temperature profiles, hot air and hotplate techniques, small reflow ovens, inspection methods, and defect correction. Checklists and example workflows are included to help reduce errors and improve consistency.
Key features:
Tools and supplies for SMD assembly and rework
Solder paste types, storage, and handling
Stencils and paste application methods
Pick and place workflow and component orientation
Temperature profiles and reflow methods
Hot air, hotplate, and reflow oven processes
Inspection and quality control
Common defects such as tombstoning and solder bridges
Practical rework and component replacement
Bench-level professional workflows and checklists
This book is designed as a practical bench reference for anyone who wants to assemble and troubleshoot their own SMD boards with reliable results.
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.
Architecture, Programming and Applications
The MSP430 is a popular family of microcontrollers from Texas Instruments. In this book we will work with the smallest type, which is the powerful MSP430G2553. We will look at the capabilities of this microcontroller in detail, as it is well-suited for self-made projects because it is available in a P-DIP20 package.
We will take a closer look at the microcontroller and then build, step by step, some interesting applications, including a 'Hello World' blinking LED and a nice clock application, which can calculate the day of the week based on the date.
You also will learn how to create code for the MSP microcontroller in assembler. In addition to that, we will work with the MSP-Arduino IDE, which makes it quite easy to create fast applications without special in-depth knowledge of the microcontrollers.
All the code used in the book is available for download from the Elektor website.
The State of Hollow State Audio in the Second Decade of the 21st Century
Vacuum-tube (or valve, depending upon which side of the pond you live on) technology spawned the Age of Electronics early in the 20th Century. Until the advent of solid-state electronics near mid-century, hollow-state devices were the only choice. But following the invention of the transistor (after their process fell to reasonable levels), within a couple of decades, the death of vacuum tubes was widely heralded. Yet here we are some five decades later, and hollow-state equipment is enjoying something of a comeback, especially in the music and high-end audio industries.
Many issues surround hollow-state audio:
Does it produce—as some claim—better sound? If so, is there science to back up these claims?
How do hollow-state circuits work?
How do you design hollow-state audio circuits?
If hollow-state equipment fails, how do you go about troubleshooting and repairing it?
Can we recreate some of the classic hollow-state audio devices for modern listening rooms and recording studios?
How can we intelligently modify hollow-state amplifiers to our taste?
These and other topics are covered in The State of Hollow State Audio.
For Speed, Area, Power, and Reliability
This book teaches the fundamentals of FPGA operation, covering basic CMOS transistor theory to designing digital FPGA chips using LUTs, flip-flops, and embedded memories. Ideal for electrical engineers aiming to design large digital chips using FPGA technology.
Discover:
The inner workings of FPGA architecture and functionality.
Hardware Description Languages (HDL) like Verilog and VHDL.
The EDA tool flow for converting HDL source into a functional FPGA chip design.
Insider tips for reliable, low power, and high performance FPGA designs.
Example designs include:
Computer-to-FPGA UART serial communication.
An open-source Sump3 logic analyzer implementation.
A fully functional graphics controller.
What you need:
Digilent BASYS3 or similar FPGA eval board with an AMD/Xilinx FPGA.
Vivado EDA tool suite (available for download from AMD website free of charge).
Project source files available from author’s GitHub site.
Dieser komplette Programmierkurs für STM32-Mikrocontroller umfasst ein Begleitbuch, ein Komponenten-Kit, praxisorientierte Projekte sowie einen ausführlichen Online-Kurs. Er eignet sich ideal für das schrittweise Erlernen der Programmierung von Embedded Systems mit MicroPython anhand eines praxisnahen Ansatzes.
Praxisorientierte Einführung in Embedded Systems mit dem STM32
Dieser Kurs richtet sich an Einsteiger im Bereich Embedded Systems, die einen strukturierten und praxisnahen Einstieg suchen. Im Lieferumfang enthalten ist ein Komponenten-Kit, das unter anderem LEDs, Widerstände, Schalter, Sensoren, Aktoren, Displays, ein Breadboard sowie Verbindungskabel umfasst. Diese Komponenten kommen im Kurs zum Einsatz, um die Beispielanwendungen zu veranschaulichen.
Es sind keine Vorkenntnisse in MicroPython oder der Entwicklung von Embedded-Systemen erforderlich. Jeder Abschnitt enthält praktische Beispiele und Miniprojekte, die dazu dienen, die wichtigsten Konzepte zu festigen und zu weiterführenden Experimenten anzuregen. Am Ende des Kurses sind Sie in der Lage, nicht nur die Beispiele nachzuvollziehen, sondern diese auch mit eigenen Ideen und Anwendungen zu erweitern.
Was werden Sie lernen?
Programmierung von Mikrocontrollern in MicroPython auf dem STM32 unter Verwendung der Thonny IDE
Arbeiten mit digitalen Ein- und Ausgängen, Auslesen von Tastern und Encodern, Steuern von LEDs und Relais
Auslesen analoger Eingänge, Spannungen und analoger Sensoren
Erzeugung analoger Ausgangssignale und PWM
Verwendung serieller Kommunikation wie UART, I²C und SPI zur Steuerung von Displays und zum Auslesen digitaler Sensoren und SD-Karten
Zeitmanagement
Arbeiten mit Interrupts
Echtzeit-Sensordatenerfassung und Steuerung über Taster, LEDs und Displays
Steuerung von Aktoren wie Relais und Servomotoren
Für wen ist dieser Kurs geeignet?
Studierende und Selbstlerner im Bereich Embedded Systems
Makers und IoT-Enthusiasten, die ihre Hardware-Kenntnisse verbessern möchten
Lehrkräfte und Trainer, die sofort einsetzbares Unterrichtsmaterial suchen
Was ist im Lieferumfang enthalten?
Zugang zum vollständigen Kurs auf der Elektor Academy Pro-Lernplattform
STM32 NUCLEO-F411RE Mikrocontroller-Board
Buch: MicroPython for STM32
Downloadbare Projektdateien für jedes Modul
Komponenten-Set:
2× LED, rot, 5 mm
LED, grün, 5 mm
3× Widerstand, 470 Ω, 0,25 W
LDR
Potentiometer, 10 kΩ, linear
Taster
Drehencoder-Modul
Relaismodul
DHT22 Feuchtigkeits- und Temperatursensor
TM1637-kompatibles 4-stelliges 7-Segment-Display
MPU-6050 IMU mit Stiftleisten
SSD1306-kompatibles I²C OLED-Display
Micro-SD-Kartenadapter mit Stiftleiste
Buzzer
SG90 Mikro-Servo
ILI9341-kompatibles SPI 240×320 TFT-Display
20× Jumperkabel
Breadboard
Dit praktijkboek richt zich tot iedereen die geïnteresseerd is in de techniek, de planning, de opbouw en het mogelijke rendement van zonnestroominstallaties. Het boek bevat veel nuttige informatie, van de principes van het genereren van stroom uit zonlicht via de dimensionering van leidingen, de werking van omvormers, laadregelaars en accuʻs tot en met de beschrijving van complete autonome of netgekoppelde fotovoltaïsche generatoren. Zowel de leek als de (meer of minder ervaren) elektrotechnicus kan dit boek ook als leidraad gebruiken bij de aansluiting van een generator op het elektriciteitsnet conform de voorschriften van de netbeheerder.
Het boek bevat bovendien wetenswaardigheden over veiligheids bepalingen en over de belasting door en deugdelijke constructie van fotovoltaïsche generatoren. Ontwerp, planning en montage worden aan de hand van een groot aantal illustraties gedetailleerd en op een ook voor leken begrijpelijke wijze behandeld; bovendien geeft het boek waardevolle informatie over de kosten en eventuele opbrengst van zonnestroomgeneratoren.
Het boek bevat ook een overzicht van belangrijke internet-sites waar gratis software kan worden gedownload voor het ontwerp en de dimensionering van netgekoppelde en autonome fotovol taïsche installaties, zodat geen kostbare PC-programmatuur hoeft te worden aangeschaft.
Das Programmpaket Laboratory Virtual Instrument Engineering Workbench (oder kurz LabVIEW) ist ein international anerkannter Standard zur Entwicklung und Gestaltung von Messgeräten und Prozesssteueroberflächen. Seine Universalität konfrontiert den LabVIEW-Einsteiger allerdings mit einer unübersichtlichen Vielfalt von Funktionen, die er ohne fundierte Anleitung kaum überblicken kann.
Hier setzt diese neue mehrteilige Lehrbuchreihe an: Von Grund auf werden in einfach nachvollziehbaren Schritten der Aufbau, die Struktur und die Verwendung von LabVIEW erklärt, in praktischen Beispielen dargestellt und mit Übungen vertieft. Die notwendigen Vorkenntnisse sind äußerst gering, die erreichbaren Ergebnisse dagegen äußerst sehenswert.
Der erste Band erläutert die Grunddatentypen und die zugehörigen numerischen Grundfunktionen ebenso ausführlich wie die elementaren Programmstrukturen.
Im folgenden Band liegt der Schwerpunkt bei der Kopplung beliebiger Mikrocontrollersysteme über die serielle (USB-)Schnittstelle an den PC und an LabVIEW.
Im dritten Band stehen Entwurf und Betrieb kompletter MSR-Systeme mit Hard- und Softwarekomponenten der wichtigsten Messtechnikhersteller im Vordergrund, einschließlich Fernsteuerung, -überwachung und -diagnose über das Internet oder WLAN-Systeme.
Diese Lehrbuchreihe richtet sich an Schüler/Auszubildende technischer Bildungseinrichtungen, an Studenten von Fachhochschulen/Universitäten und an den engagierten Praktiker in der Industrie oder im privaten Bereich.