Projects with Arduino, ESPHome, Home Assistant, and Raspberry Pi & Co.
This e-book contains various example projects, beginning with an introduction to electronics. It also explains how to install Home Assistant on a Raspberry Pi, how to use indoor climate sensors for temperature and humidity, how to implement the MQTT protocol and other interfaces, and how to use ESPHome to integrate sensors and actuators into Home Assistant. Numerous video tutorials complement the book.
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
35 projecten met Raspberry Pi en wireless Arduino
Internet of Things (alles aan het internet) is een trend die zich niet meer laat keren. We willen alles in huis met onze mobiel of tablet doen, van Facebook tot TV kijken, van lichten bedienen tot de temperatuur in de gaten houden.
In dit boek laten we in 35 leuke en handige projecten zien hoe u op eenvoudige wijze zelf een Internet of Things systeem kunt aanleggen. We gaan in op de hardware (de perfecte combinatie van Raspberry Pi en Arduino) en de software om bediening via internet mogelijk te maken.
We maken gebruik van Wi-Fi en radioverbindingen zodat er geen kabels dwars door uw huis hoeven. Wanneer u deze projecten maakt heeft u een compleet Internet of Things systeem waarmee u van alles in uw huis kunt bedienen en bekijken. Bijvoorbeeld of er post in de brievenbus ligt en of de auto in de garage staat. U kunt op vanaf de bank het licht aandoen en het alarm bedienen. Door de heldere uitleg kunt u de projecten eenvoudig aanpassen om bijvoorbeeld uw koffiezetautomaat of tv op afstand aan te zetten. Via de index vindt u gemakkelijk creatieve projecten die als voorbeeld kunnen dienen, zodat u zelfstandig alles met het internet kunt verbinden.
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.
petite caméra thermiqueréalisée avec un Arduino UNO
mise à jour du projet #3 : compteur d'énergie basé sur l'ESP32intégration et test avec Home Assistant
2024 : l'odyssée de l'IAaméliorer la détection d'objets : intégration de techniques avancées
Raspberry Pi se met à l'IAun nouveau kit comprenant un accélérateur IA matériel et un adaptateur M.2 HAT+
capteurs de stations météorologiqueslequel choisir ?
Relevé des compteurs d'eau basé sur l'IA (1)intégrez votre ancien compteur dans l'IdO !
une alarme GSMun module GSM protège votre garage à distance
optimisation et contrôle des appareils Thread à faible consommation d'énergiefaible consommation... peu d’effort ?
sur le vifmontrez-moi là où ça fait mâle
chambre à brouillard à faire soi-mêmevisualiser les rayonnements invisibles
SparkFun Thing Plus Mattercarte de développement IdO polyvalente basée sur Matter
Rétroéquipement IoTAdaptation des machines à interface RS232 à l'industrie 4.0
ajouter l’IoT grâce aux microcontrôleurs 8 bits
la technologie au service du développement durableles avancées technologiques favorisent une utilisation plus efficace de l’énergie dans de nombreuses applications
AWS pour Arduino et Cie. (1)utiliser AWS IoT ExpressLink en pratique
détecteur de flux d'air Arduinoaucun capteur externe n'est nécessaire !
détecteur de fuite d'eauconnecté à l’Arduino Cloud
le quartzdrôle de composant, la série
enregistreur universel de données de jardinageun pas vers l’Intelligence Artificielle au Jardin.
un générateur analogique 1 kHzondes sinusoïdales à faible distorsion
Miletus : utiliser les applications Web hors ligneaccès aux fonctions de l’appareil et du système
de la 4G à la 5Gest-ce une étape si facile à franchir ?
démarrer en électronique…connexions symétriques
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
Touch-GUI voor ESP32 en Raspberry & cografische gebruikersinterface met de LittlevGL-bibliotheek
“Niet zomaar een project”vraaggesprek met Gábor Kiss-Vámosi, ontwikkelaar van LittlevGL
Capaci-metermet tweecijferig LED-display in dekatron-stijl
Hoe... een mechanisch contact of schakelaar ontdendereneen schakelaar is open of gesloten – toch?
Developer's Zonetips & trucs, vakkunstigheden en andere nuttige informatie
Uitbreidbaar milieumonitorsysteempubliceert gegevens op IoT-platforms
Multitasking met de ESP32Multitasking met de ESP32 taakgeoriënteerd programmeren met FreeRTOS en de Arduino IDE
Interactiefcorrecties & updates || vragen & antwoorden
Autoverlichting tunenlegaal, illegaal – maakt wél uit!
Review Toolcraft digitaal soldeerstation
Arduino Pro IDEeen eerste indruk
Twee warmtebeeldcamera’s vergeleken
Uit het leven gegrepende inrichting van een lab en werkplaats
Monsanto MAN1 LED-displayvreemde onderdelen
Theetimereen experiment met energy harvesting
Eenfase 1 kW AC-motorsturingdrie bedrijfsmodi: perioderegeling, fase-afsnijding en fase-aansnijding
Snel 3,5'-touchscreen voor de Raspberry Pipresteert beter voor hetzelfde geld
Oost West Lab Besteen blik in het allerheiligste, waar onbevoegden geen toegang hebben...
Eerste stappen met RISC-Vhet LoFive-board onder de loep
LoRa-Tracker: een uitdaging voor het labproblemen en oplossingen bij de ontwikkeling van elektronica
Met de vos in het IoT (2)aanmelden in het Sigfox-netwerk
Alle begin......hoeft niet zo moeilijk te zijn
Analoge elektronica ontwerpencase-study #1 – deel 1: MEMS-microfoon... test-een-twee-drie
Wie het kleine niet eertuit de ideeënbus van Elektor
In het kort: teksten voor microcontrollersspaar geheugen met compressie
In de schijnwerpers: de autonome autooverzicht van de stand van de techniek
Leidende start-ups en innovatoren over “Innovation 4.0” in München
Lego Electronic anno 1968elektronisch speelgoed fascineert na 50 jaar nog steeds
Beyond ElectronicsThe MX3D Bridge Senses the City
Hexadoku
Mein eigener RISC-V-ControllerErste Schritte mit dem NEORV32 RISC-V Softcore für preiswerte FPGAs
Wie man den Seriellen Plotter der Arduino-IDE nutztEinfaches Plotten von Kurven mit Arduino
CLUE - ein Clou von Adafruit?Angriff auf den micro:bit
Puffer-Board für den Raspberry Pi 400Schützen Sie die I/Os!
FrühjahrskollektionInteressante Raspberry Pi RP2040 Boards
Ein DIY-Handbuch zu elektronischer Sicherheit und E-SpionageSRAM erhitzt oder tiefgefroren
Identifizierung von BauteilenTipps & Tricks, Best Practices und andere nützliche Informationen
Ein Touch-Schalter ohne TouchKonzeption und Umsetzung eines berührungslosen Lichtschalters
Aller Anfang...ist gar nicht schwer: Anpassen und Transformieren
Was gibt's Neues in der Embedded-Entwicklung?Rust und die Aktualisierung von IoT-Implementierungen
Infografiken Elektor Industry
Neue Wege für Industrie und Automobilbranche mit 5G
DrehspulrelaisBemerkenswerte Bauteile
Zutritt für Unbefugte verbotenAlles dreht sich um die Werkzeuge...
Die Neuronen in neuronalen Netzen verstehenTeil 4: Eingebettete Neuronen
Magnetische Levitation auf die sehr sehr einfache ArtDie dritte und kompakteste Version
SPS-Programmierung mit dem Raspberry Pi und dem OpenPLC-ProjektVisualisierung von SPS-Programmen mit AdvancedHMI
Aus dem Leben gegriffenEinpacken und weg damit
Unter dem RadarUnbekannte Mikrocontroller, über die Sie Bescheid wissen sollten
Drahtloses Monitoring und DebuggenSerielle Funk-Schnittstelle für Arduino, ESP32 und Co.
Tragbares Temperatur- und FeuchtemessgerätGebaut mit vorgefertigten Modulen
Lithium-Akkus reparierenGeld sparen + mehr Power!
GUIs mit PythonMeme-Generator
Die drei FragezeichenWarum? Was? Wer?
Hexadoku
Learn programming for Alexa devices, extend it to smart home devices and control the Raspberry Pi
The book is split into two parts: the first part covers creating Alexa skills and the second part, designing Internet of Things and Smart Home devices using a Raspberry Pi.
The first chapters describe the process of Alexa communication, opening an Amazon account and creating a skill for free. The operation of an Alexa skill and terminology such as utterances, intents, slots, and conversations are explained. Debugging your code, saving user data between sessions, S3 data storage and Dynamo DB database are discussed.
In-skill purchasing, enabling users to buy items for your skill as well as certification and publication is outlined. Creating skills using AWS Lambda and ASK CLI is covered, along with the Visual Studio code editor and local debugging. Also covered is the process of designing skills for visual displays and interactive touch designs using Alexa Presentation Language.
The second half of the book starts by creating a Raspberry Pi IoT 'thing' to control a robot from your Alexa device. This covers security issues and methods of sending and receiving MQTT messages between an Alexa device and the Raspberry Pi.
Creating a smart home device is described including forming a security profile, linking with Amazon, and writing a Lambda function that gets triggered by an Alexa skill. Device discovery and on/off control is demonstrated.
Next, readers discover how to control a smart home Raspberry Pi display from an Alexa skill using Simple Queue Service (SQS) messaging to switch the display on and off or change the color.
A node-RED design is discussed from the basic user interface right up to configuring MQTT nodes. MQTT messages sent from a user are displayed on a Raspberry Pi.
A chapter discusses sending a proactive notification such as a weather alert from a Raspberry Pi to an Alexa device. The book concludes by explaining how to create Raspberry Pi as a stand-alone Alexa device.
Diese Ausgabe steht allen GOLD- und GREEN-Mitgliedern auf der ElektorMagazine-Website zum Download bereit!
Sie sind noch kein Mitglied? Hier klicken!
PbMonitor v1.0Ein Batterieüberwachungssystem für USV und Energiespeicher
Solarladeregler mit MPP-TrackingTeil 1: Grundlagen eines Solarreglers für Insel-Anlagen
B-Feld-Integrationsmagnetometer mit selbstgebauten Sensoren
Präzise, richtig oder genau?Ihre Messgeräte müssen alles sein!
AD7124 – Ein Präzisions-ADC in der PraxisHinweise für die Sensor-Signalaufbereitung
PID-RegelungswerkzeugOptimieren Sie ganz einfach Ihre Parameter
embedded world 2025
Aller Anfang ......muss nicht schwer sein: Klangeinstellung!
Academy Pro BoxBook + Online Course + Hardware
Milliohmmeter-AdapterNutzen Sie die Präzision Ihres Multimeters!
Der nächste Meilenstein bei HalbleiternWeiter in Richtung 1,4 nm
Steckverbinder in DurchstecktechnikDas Beste aus zwei Welten: THR
FrequenzzählerPortabel und mit automatischer GPS-Kalibrierung
Analoge MessgeräteBemerkenswerte Bauteile
Stand-alone-QuarztesterWie genau ist Ihre Taktquelle?
Preiswerter I²C-TesterSchließen Sie I²C-Chips direkt an Ihren PC an
Aus dem Leben gegriffenWer das Kleine nicht ehrt...
2025: Eine Odyssee in die KIDie transformativen Auswirkungen auf die Softwareentwicklung
Projekt 2.0Korrekturen, Updates und Leserbriefe
Standalone-MIDI-Synthesizer mit Raspberry PiTeil 2: Setup mit Intelligenz aufwerten
Nortonisierter Wien-Brücken-OszillatorKleine Änderungen führen zu bedeutenden Verbesserungen
10-Cent-Controller in der PraxisRISC-V-Mikrocontroller CH32V003 und MounRiver Studio ausprobiert
Audio-Player mit FPGA und EqualizerTeil 2: Lautstärkeregelung, erweitertes Mischen und ein Web-Interface
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
Dieses Buch beschäftigt sich mit DC-Elektromotoren und deren Einsatz in Arduino und Raspberry Pi Zero W-Projekten. Das Buch enthält zahlreiche Motorsteuerungsprojekte, wobei jedes Projekt denselben Aufbau besitzt:
Projekttitel
Beschreibung des Projekts
Blockschaltbild
Schaltplan
Zusammenbau
Vollständiges Programmlisting
Umfassende Erläuterung des Programms
Die Projekte im Buch umfassen die Standard-DC-Motoren, Schrittmotoren, Servomotoren und mobile Roboter. Das Buch richtet sich an Elektronik-Bastler, die Projekte mit dem Arduino Uno oder dem Raspberry Pi Zero W entwickeln und dabei Motoren einsetzen möchten.
Ein besonders reizvolles Projekt dieses Buches ist die Fernsteuerung eines mobilen Roboters von einem Mobiltelefon aus mit dem Arduino Uno sowie dem Raspberry Pi Zero W. Dieses Projekt wird sowohl über Wi-Fi als auch über Bluetooth mit dem Handy gesteuert. Die Leser sollten in der Lage sein, einen Roboter vorwärts, rückwärts, links oder rechts zu bewegen, indem sie einfache Befehle vom Mobiltelefon aus senden.
Die vollständigen Programmlistings aller Projekte sowie die detaillierten Programmbeschreibungen finden Sie im Buch. Der Leser kann die Projekte Schritt für Schritt nachbauen oder sie an die eigenen Bedürfnisse anpassen.
The Elektor Arduino Nano MCCAB Training Board contains all the components (incl. Arduino Nano) required for the exercises in the "Microcontrollers Hands-on Course for Arduino Starters", such as light-emitting diodes, switches, pushbuttons, acoustic signal transmitters, etc. External sensors, motors or assemblies can also be queried or controlled with this microcontroller training system.
Specifications (Arduino Nano MCCAB Training Board)
Power Supply
Via the USB connection of the connected PC or an external power supply unit (not included)
Operating Voltage
+5 Vcc
Input Voltage
All inputs
0 V to +5 V
VX1 and VX2
+8 V to +12 V (only when using an external power supply)
Hardware periphery
LCD
2x16 characters
Potentiometer P1 & P2
JP3: selection of operating voltage of P1 & P2
Distributor
SV4: Distributor for the operating voltagesSV5, SV6: Distributor for the inputs/outputs of the microcontroller
Switches and buttons
RESET button on the Arduino Nano module 6x pushbutton switches K1 ... K6 6x slide switches S1 ... S6 JP2: Connection of the switches with the inputs of the microcontroller
Buzzer
Piezo buzzer Buzzer1 with jumper on JP6
Indicator lights
11 x LED: Status indicator for the inputs/outputs LED L on the Arduino Nano module, connected to GPIO D13 JP6: Connection of LEDs LD10 ... LD20 with GPIOs D2 ... D12
Serial interfacesSPI & I²C
JP4: Selection of the signal at pin X of the SPI connector SV12 SV9 to SV12: SPI interface (3.3 V/5 V) or I²C interface
Switching output for external devices
SV1, SV7: Switching output (maximum +24 V/160 mA, externally supplied) SV2: 2x13 pins for connection of external modules
3x3 LED matrix(9 red LEDs)
SV3: Columns of the 3x3 LED matrix (outputs D6 ... D8) JP1: Connection of the rows with the GPIOs D3 ... D5
Software
Library MCCABLib
Control of hardware components (switches, buttons, LEDs, 3x3 LED matrix, buzzer) on the MCCAB Training Board
Operating Temperature
Up to +40 °C
Dimensions
100 x 100 x 20 mm
Specifications (Arduino Nano)
Microcontroller
ATmega328P
Architecture
AVR
Operating Voltage
5 V
Flash Memory
32 KB, of which 2 KB used by bootloader
SRAM
2 KB
Clock Speed
16 MHz
Analog IN Pins
8
EEPROM
1 KB
DC Current per I/O Pins
40 mA on one I/O pin, total maximum 200 mA on all pins together
Input Voltage
7-12 V
Digital I/O Pins
22 (6 of which are PWM)
PWM Output
6
Power Consumption
19 mA
Dimensions
18 x 45 mm
Weight
7 g
Included
1x Elektor Arduino Nano Training Board MCCAB
1x Arduino Nano