Projets avec Arduino, ESPHome, Home Assistant, et Raspberry Pi & Co.
Ce livre électronique contient plusieurs exemples de projets, en commençant par une introduction à l'électronique. Il explique également comment installer Home Assistant sur un Raspberry Pi, comment utiliser des capteurs de climat intérieur pour la température et l'humidité, comment mettre en œuvre le protocole MQTT et d'autres interfaces, et comment utiliser ESPHome pour intégrer des capteurs et des actionneurs dans Home Assistant. De nombreux tutoriels vidéo complètent le livre.
Fundamentals of electrical engineering
The book begins with an introduction to electrical engineering. You will learn the basics of voltage, current, resistors, diodes and transistors.
Arduino and microcontrollers
A complete section is dedicated to the Arduino Uno. You will get to know the structure, write your first programs and work on practical examples.
Home Assistant and automation
You will learn how to set up Home Assistant on a Raspberry Pi and how to use automations, scenes and devices. In addition, Zigbee, MQTT and ESP-NOW – important technologies for home automation – will be discussed.
ESP8266, ESP32 and ESP32-CAM
The popular ESP microcontrollers are covered in detail. A theoretical introduction is followed by practical projects that show you how to get the most out of these devices.
Sensors and actuators
The book explains the functionality and application of numerous sensors such as temperature and humidity sensors, motion detectors and RFID readers. For actuators, stepper motors, e-ink displays, servo motors and much more are covered. There are practical application examples for all devices.
ESPHome
This chapter shows you how to integrate sensors and actuators into Home Assistant without any programming effort. You will be guided step by step through the setup with ESPHome.
LEDs and lighting technology
In this chapter, you will learn about different types of LEDs and how they can be used. The basics of lighting technology are also explained.
Node-RED
A whole chapter is dedicated to Node-RED. You will learn the basics of this powerful tool and be guided step by step through its setup and use.
Integrated Circuits (ICs)
In electronics, there are numerous ICs that make our lives easier. You will get to know the most important ones and apply your knowledge in practical projects.
Professional programming
Advanced topics such as the correct use of buttons, the use of interrupts and the use of an NTP server for time synchronisation are covered in detail in this chapter.
Downloads
GitHub
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.
accélérer l'innovation IdO
cadre photo couleur à encre électronique Wi-Fi
tutoriel ESP-Launchpadflashage des micrologiciels en quelques minutes
ESP32 et ChatGPTvers un système d'autoprogrammation...
Talkie-walkie avec ESP-NOWPas tout à fait Wi-Fi, pas tout à fait Bluetooth non plus...
de l'idée au circuit avec l'ESP32-S3construire un prototype avec les puces Espressif
innovation des puces AIoTentretien avec Teo Swee-Ann, PDG d'Espressif
simuler l'ESP32 avec Wokwile jumeau numérique de votre projet
essai de l'ESP32-S3-BOX-3une plateforme de développement AIoT complète
bien s?équiper pour mieux travaillerconseils et astuces des ingénieurs d?Espressif
l'histoire de l'ESP RainMakerComment nous avons construit « votre » nuage IdO
assemblage du kit du Cloc 2.0 d?Elektorun produit Elektor déballé par Espressif
le lancement de l'ESP32-P4la nouvelle ère des microcontrôleurs
Rust et les systèmes embarquésdeux outils puissants pour le développement
qui sont les développeurs de solutions embarquées Rust ?comment Espressif développe le langage Rust embarqué pour l'ESP32
Série de SoC Espressif
une API avec les Solutions d'Espressifavec les capacités et les fonctionnalités du protocole ISOBUS
la carte VGA ESP32-S3le voyage passionnant de Bitluni dans la conception de produits
empreinte acoustique sur ESP32identification de chansons avec le projet open source Olaf
arbre de Noël circulaire 2023célébration high-tech des fêtes de fin d'année
une vie plus confortable et plus facileun projet amateur basé sur le module ESP8266 Espressif
comment construire des applications IoT Sans Expertise Logicielle Avec la plateforme IoTavec la plateforme IoT Blynk et le matériel Espressif
concevoir une Interface Graphique sur ESP32
développement IoT rapide et facile avec M5Stack
prototypage d'un compteur d'énergie basé sur l'ESP32
un distributeur à valeur ajoutée de solutions IdO et plus encore
En détail : entretien avec Arduino sur le Nano ESP32Alessandro Ranellucci et Martino Facchin abordent la collaboration avec Espressif
innovation des puces IdOles idées d'Espressif
simplifier le développement des microcontrôleurs avec ESP-IDF Privilege Separation
un serveur de reconnaissance de la parole open-source......et l'ESP BOX
l??il qui réfléchitreconnaissance faciale et plus encore, utilisant l?ESP32-S3-EYE
commutateur alimenté par pile bouton, basé sur un ESP32-C2évaluation de la conception et des performances
la maison intelligente évolue avec Matterlibérer le potentiel de l'IdO pour les maisons intelligentes
l'essor de la maison intelligente connectée
Bauen Sie Ihre perfekte Wetterstation oder forschen Sie zusammen mit der ganzen Welt an Umweltdaten. Mit vielen praktischen Projekten für Arduino, Raspberry Pi, NodeMCU, ESP32 und weiteren Developmentboards.
Wetterstationen erfreuen sich seit Jahrzehnten großer Beliebtheit. Ob in aktuellen oder längst eingestellten Elektronik-Magazinen – regelmäßig finden sich Beiträge zum Eigenbau einer Wetterstation. Im Laufe der Jahre wurden diese Systeme immer ausgefeilter und können heute nahtlos in das Smart Home integriert werden. Allerdings erfordert dies oft die Bindung an einen (teuren) Markenhersteller, der sämtliche Komponenten abdeckt.
Mit Ihrer eigenen Wetterstation können Sie jedoch mühelos mithalten – und sogar Messwerte erfassen, die kommerzielle Geräte nicht bieten. Dabei kommt der Spaß nicht zu kurz: Sie erweitern spielerisch Ihr Wissen über Elektronik, moderne Mikrocontroller-Developmentboards und Programmiersprachen. Schon für weniger als zehn Euro können Sie erste Umweltdaten erfassen und Ihr System Schritt für Schritt mit wachsendem Interesse weiter ausbauen.
Aus dem Inhalt:
Wind und Wetter auf der Spur
Wetterdisplay mit OpenWeatherMap und Vakuum-Fluoreszenzanzeige
Flüchtige organische Verbindungen in der Atemluft
Mit MQ-Sensoren arbeiten: Kohlenmonoxid messen – geruchlos aber extrem giftig
CO2-Ampel mit ThingSpeak-IoT-Anbindung
Ein Gießautomat für Ihre Pflanzen
Gutes Raumklima: Temperatur und Luftfeuchtigkeit sind wichtige Kriterien
Schickes Thermometer mit alter Röhrentechnik
Nostalgisches Wetterhäuschen für die ganze Familie
Luftdruck und Temperatur genau messen
Sonnenbrand-Warngerät
DIY-Sensor für die Sonnenscheindauer
Das Smartphone zeigt’s an: Nebel oder klare Sicht?
Erdbeben erkennen
Pegelstände von Gewässern und Behältern
pH-Wert von Gewässern bestimmen
Radioaktive Strahlung erkennen
Mit GPS wissen Sie weltweit, wo ihr Sensor ist
Logdateien mit Zeitstempel auf SD-Karten speichern
LoRaWAN, The Things Network und ThingSpeak
LoRaWAN-Gateway für TTN betreiben
Mega-Display mit Wettervorhersage
Affordable solutions with the ESP8266 and 3D printing
If you are looking for a small yet powerful IoT device, you are likely to come across the ESP8266 and compatible products on the market today. One of these, the Wemos/Lolin D1 Mini Pro board strikes a remarkable balance between cost and performance. A small and very affordable prototype board, the D1 Mini Pro stands out with its WiFi functionality and a 16-Mbytes flash memory for easy creation of a flash file system. In addition, there are sufficient input and output pins (only one analog input though) to support PWM, I²C, and One-Wire systems to mention but a few. The book describes the operation, modding, construction, and programming of home appliances including a colorful smart home accessory, a refrigerator/greenhouse controller, an AC powerline monitor, a door lock monitor, and an IKEA Trådfri controller.
As a benefit, all firmware developed for these DIY, "IoT-ized" devices can be updated over-the-air (OTA).
For most of the designs in the book, a small printed circuit board (PCB) and an enclosure are presented so readers can have a finished and attractive-looking product. Readers having – or with access to! – a 3D printer can "print" the suggested enclosures at home or in a shop.
Some of the constructions benefit from a Raspberry Pi configured as a gateway or cms server. This is also described in detail with all the necessary configuring.
You don’t need to be an expert but the prerequisites to successful replication of the projects include basic skills with PC software including the ability to surf the Internet. In terms of hardware, you should be comfortable with soldering and generally assembling the PCBs presented in the book.
All custom software written for the IoT devices, the PCB layouts, and 3D print files described in the book are available for free downloading.
Open-netwerk weerstation mk2deel 1: inleiding en hardware-elementen
AI voor beginners (1)objectherkenning met het Maixduino-board
Universele triac-stuurmodule met ATmegaschakelen en dimmen van verschillende belastingen
Hoe... iets van GitHub downloadenGitHub Voor Dummies
My IoT-Button: de knop voor het netdeel 2: prototyping met board en cloud
TMS0280 spraaksynthesizervreemde onderdelen
Interactiefcorrecties & updates | vragen & antwoorden
BASIC voor ESP32/ESP8266 (2)zandloper met ESP8266 en Annex WiFi RDS
Developer’s Zonetips & trucs, vakkunstigheden en andere nuttige informatie
BalBot: een zelfbalancerende robotmoderne versnellingssensoren vergemakkelijken de bouw
Alle begin......hoeft niet zo moeilijk te zijn
Wie het kleine niet eertuit de ideeënbus van Elektor
Verzendbox met manipulatie-indicatiegegevens veilig met de post verzenden
Nieuwe Nauwkeurige Nixie-klok: verbeteringentechnisch nieuwsbulletin voor nieuwe en bestaande enthousiaste gebruikers
Multitasking met de ESP32 (3)software-timers
Met de vos in het IoT (4)inrichten van het dashboard
Start-up update: het Elektor Investment Program
Review: Elektronische USB-belasting Joy-IT HD35test de belastbaarheid van USB-poorten
CAN-bus + Arduino houden zonnepanelen in de gatenlokaliseer panelen in grote arrays die onderhoud nodig hebben
Analoge elektronica ontwerpencase-study #1 – deel 3: optimalisatie van de responsie van de voorversterker en compromissen
Sound Blinkdraagbare zelfbouwspeaker met LED-lichtshow
USB-stroombewakingintelligente bescherming voor USB-poorten
Oost West Lab Besteen blik in het allerheiligste, waar onbevoegden geen toegang hebben...
Review: Labvoeding PeakTech 6080 Aveel voeding voor weinig geld
Een grote uitdagingveilige producten in het IoT-tijdperk
Elektor 1,2-GHz-universeelteller (1992/93)voorbij de magische 1GHz-grens
Hexadoku
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.
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 and GOLD members can download their digital edition here.
Not a member yet? Click here.
For Eyes and Ears
Video Output with Microcontrollers (1)Composite Video
electronica 2022News from the world’s leading electronics trade show
ESP32 CameraSo Simple, It Doesn’t Even Have to Use Wi-Fi
ATX Power Supply for Raspberry Pi
32 Ω Headphone AmplifierSimple But High-Quality 3-Chip Solution
SDR Radio-Controlled clocksFive Time Signals, Six Displays
Starting Out in ElectronicsSpecial Diodes
From Life's ExperienceMusings on the Quality of Things
Reverse-Engineering a Bluetooth Low Energy LED BadgeHow to Control a BLE Device with a Python Script
MakePython ESP32 Development KitEverything in a Box
THD Measurement with an Oscilloscope and FFTEasily Calculate the Distortion Factor
All-Seeing MachinesThe Technology Behind Today’s Industrial Vision Systems
Infographics
The Evolution of Voice and Audio Control for Electronic Devices
WEEF 2022 in Review
FFWD electronica 2022 in ReviewInnovators Did Not Fail to Impress
The TubeAn Unusual Tube Amplifier
Biomaterial in Electronics: Ready or Not
Opera Cake Antenna Switch for HackRF OneConnect Up To Eight Antennas To Your SDR
Engineering with Arduino and MoreAn Interview with Author Ashwin Pajankar
LiDAR Precision GaugeMeasure up to 12 Meters
Audio Signals and the ESP32The ESP-ADF Environment in Practice
Elektor Fortissimo-100 Power Amplifier Kit
Using Light for Sound EffectsLDR-Based Voltage-Controlled 24 dB/oct Synthesizer Filter
Elektor High-Power AF AmplifierThe Loudest of Them All!
HomeLab ToursA Volumetric Display Made in Canada
Err-lectronicsCorrections, Updates and Readers’ Letters
Hexadoku
Build your textbook weather station or conduct environmental research together with the whole world. With many practical projects for Arduino, Raspberry Pi, NodeMCU, ESP32, and other development boards.
Weather stations have enjoyed great popularity for decades. Every current and even every long discontinued electronics magazine has regularly featured articles on building your own weather station. Over the years, they have become increasingly sophisticated and can now be fully integrated into an automated home — although this often requires loyalty to an (expensive) brand manufacturer across all components.
With your own weather and environmental data, you can keep up and measure things that no commercial station can. It’s also fun: expand your knowledge of electronics, current microcontroller development boards and programming languages in a fun and meaningful way. For less than 10 euros you can get started and record your first environmental data — with time and growing interest, you will continue to expand your system.
In this Edition
Which Microcontroller Fits My Project?
The Right Development Environment
Tracking Wind and Weather
Weather Display with OpenWeatherMap and Vacuum Fluorescent Display
Volatile Organic Compounds in the Air We Breathe
Working with MQ Sensors: Measuring Carbon Monoxide — Odorless but Toxic
CO2 Traffic Light with ThingSpeak IoT Connection
An Automatic Plant Watering System
Good Indoor Climate: Temperature and Humidity are Important criteria
Classy Thermometer with Vintage Tube Technology
Nostalgic Weather House for the Whole Family
Measuring Air Pressure and Temperature Accurately
Sunburn Warning Device
DIY Sensor for Sunshine Duration
Simple Smartphone Says: Fog or Clear View?
Identifying Earthquakes
Liquid Level Measurement for Vessels and Reservoirs
Water pH Value Measurement
Detecting Radioactive Radiation
GPS: Sensor Location Service Across the Globe
Saving and Timestamping Log Files on SD Cards
LoRaWAN, The Things Network, and ThingSpeak
Operating a LoRaWAN Gateway for TTN
Defying "Wind and Weather"
Mega Display with Weather Forecasz
Example projects with Node-RED, MQTT, WinCC SCADA, Blynk, and ThingSpeak
This comprehensive guide unlocks the power of Modbus TCP/IP communication with Arduino. From the basics of the Modbus protocol right up to full implementation in Arduino projects, the book walks you through the complete process with lucid explanations and practical examples.
Learn how to set up Modbus TCP/IP communication with Arduino for seamless data exchange between devices over a network. Explore different Modbus functions and master reading and writing registers to control your devices remotely. Create Modbus client and server applications to integrate into your Arduino projects, boosting their connectivity and automation level.
With detailed code snippets and illustrations, this guide is perfect for beginners and experienced Arduino enthusiasts alike. Whether you‘re a hobbyist looking to expand your skills or a professional seeking to implement Modbus TCP/IP communication in your projects, this book provides all the knowledge you need to harness the full potential of Modbus with Arduino.
Projects covered in the book:
TCP/IP communication between two Arduino Uno boards
Modbus TCP/IP communication within the Node-RED environment
Combining Arduino, Node-RED, and Blynk IoT cloud
Interfacing Modbus TCP/IP with WinCC SCADA to control sensors
Using MQTT protocol with Ethernet/ESP8266
Connecting to ThingSpeak IoT cloud using Ethernet/ESP8266
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.