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
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.
There are many so-called 'Arduino compatible' platforms on the market. The ESP8266 – in the form of the WeMos D1 Mini Pro – is one that really stands out. This device includes WiFi Internet access and the option of a flash file system using up to 16 MB of external flash memory. Furthermore, there are ample in/output pins (though only one analogue input), PWM, I²C, and one-wire. Needless to say, you are easily able to construct many small IoT devices!
This book contains the following builds:
A colourful smart home accessory
refrigerator controller
230 V power monitor
door lock monitor
and some further spin-off devices.
All builds are documented together with relevant background information for further study. For your convenience, there is a small PCB for most of the designs; you can also use a perf board. You don’t need to be an expert but the minimum recommended essentials include basic experience with a PC, software, and hardware, including the ability to surf the Internet and assemble PCBs.
And of course: A handle was kept on development costs. All custom software for the IoT devices and PCB layouts are available for free download from at Elektor.com.
L'horloge Ulanzi TC001 est une horloge pixel constituée d'un ensemble de 256 LED RGB adressables constituant une matrice de 8x32 pixels. Elle est dotée d'une batterie intégrée, d'un buzzer, de capteurs de luminosité, température et humidité. La batterie interne rechargeable offre une autonomie pouvant atteindre 5 heures. La connexion WiFi de l'horloge est réalisée par un chip ESP32. L'horloge Ulanzi TC001 utilise un module ESP32-WROOM-32D.CaractéristiquesAffichage matricielAffichage simultané du nombre de suiveurs (Followers) : La progression du nombre de fans est immédiatement visible pour YouTube, Bilibili, and Weibo.Conception Pomodoro de l'horloge : permet de contrôler votre propre timing de façon scientifique.Explorez les possibilités illimitées : Une multitude de programmes apportant davantage de fonctions peuvent être installés sur le serveur de contrôle.Horloge connectée Awtrix : Le simulateur Awtrix du micrologiciel TC001's permet de simuler une matrice Awtrix et de contrôler l'horloge en utilisant le serveur Awtrix.Superbe apparence et haute technologie : écran de pixels à LED multicolores pour une meilleure apparence et une ambiance reposante.Batterie de capacité 4400 mAh intégrée assurant une autonomie pouvant atteindre 5 heures.SpécificationsNombre de LED : 256 (8x32)Tension de fonctionnement : 3,7 VPuissance : 3 WCapacité de la batterie : 4400 mAhInterface : USB-CDimensions : 200,6 x 70,3 x 31,9 mmPoids : 283 gInclusHorloge Pixel intelligente Ulanzi TC001Câble USBNoticeTéléchargementsFirmware