Secure, Modular, Open-Source and Self-Sufficient
Ever since the Raspberry Pi was introduced, it has been used by enthusiasts to automate their homes. The Raspberry Pi is a powerful computer in a small package, with lots of interfacing options to control various devices. This book shows you how you can automate your home with a Raspberry Pi. You’ll learn how to use various wireless protocols for home automation, such as Bluetooth, 433.92 MHz radio waves, Z-Wave, and Zigbee. Soon you’ll automate your home with Python, Node-RED, and Home Assistant, and you’ll even be able to speak to your home automation system. All this is done securely, with a modular system, completely open-source, without relying on third-party services. You’re in control of your home, and no one else.
At the end of this book, you can install and configure your Raspberry Pi as a highly flexible home automation gateway for protocols of your choice, and link various services with MQTT to make it your own system. This DIY (do it yourself) approach is a bit more laborious than just installing an off-the-shelf home automation system, but in the process, you can learn a lot, and in the end, you know exactly what’s running your house and how to tweak it. This is why you were interested in the Raspberry Pi in the first place, right?
Turn your Raspberry Pi into a reliable gateway for various home automation protocols.
Make your home automation setup reproducible with Docker Compose.
Secure all your network communication with TLS.
Create a video surveillance system for your home.
Automate your home with Python, Node-RED, Home Assistant and AppDaemon.
Securely access your home automation dashboard from remote locations.
Use fully offline voice commands in your own language.
Downloads
Errata on GitHub
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.
LoRaWAN s'est remarquablement développé en tant que solution de communication dans l'IdO. The Things Network (TTN) y a contribué. The Things Network a été mis à niveau vers The Things Stack Community Edition (TTS (CE)). Les clusters TTN V2 ont été fermés vers la fin de l'année 2021.
Ce livre vous explique les étapes nécessaires pour exploiter les n?uds LoRaWAN à l'aide de TTS (CE) et peut-être étendre le réseau de passerelles avec votre propre passerelle. Entre-temps, il existe même des passerelles LoRaWAN adaptées à une utilisation mobile avec lesquelles vous pouvez vous connecter au serveur TTN via votre téléphone portable.
L'auteur présente plusieurs n?uds LoRaWAN commerciaux et un nouveau matériel peu coûteux et alimenté par batterie pour construire des n?uds LoRaWAN autonomes. L'enregistrement des n?uds et des passerelles LoRaWAN dans le TTS (CE), la transmission des données collectées via MQTT et la visualisation via Node-RED, Cayenne, Thingspeak et Datacake permettent de réaliser des projets IdO complexes et des applications inédites à très faible coût.
Ce livre vous permettra de fournir et de visualiser les données collectées avec des capteurs alimentés par batterie (n?uds LoRaWAN) sans fil sur Internet. Vous apprendrez les bases des applications de villes intelligentes et d'IdO qui permettent, entre autres, de mesurer la qualité de l'air, le niveau de l'eau, l'épaisseur de la neige, de déterminer les places de stationnement libres (smart parking) et de contrôler intelligemment l'éclairage public.
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
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.
Votre maison plus intelligente grâce à la domotique !
Voici une solution technique bon marché et facile à mettre en œuvre, dans votre logement, pour automatiser l’éclairage, piloter le chauffage, optimiser la consommation d'électricité ou encore pour vous protéger contre les intrusions : un petit automate programmable.
Ce livre montre comment exploiter le module programmable compact Zelio Logic de SCHNEIDER, ses 12 entrées/sorties (4 entrées logiques, 4 entrées analogiques ou logiques et 4 sorties à contact). Le logiciel pour PC Zelio Soft 2 fourni avec ce module est un outil de programmation graphique en LADDER ou FBD. Le premier projet décrit, une station de pompage domestique, permet au lecteur de s’initier à ces deux langages. Les électrotechniciens seront à l’aise avec LADDER (langage « à contacts »), les électroniciens préféreront FBD (blocs de fonction comparables à des circuits intégrés).
15 projets faciles à reproduire et à adapter à vos besoins :
station de pompage domestique
gestion multi-mode de l’éclairage d’une habitation
gestion centralisée de l’éclairage d’une habitation
gestionnaire de chauffage pour convecteurs
centrale de chauffage biénergie à accumulation
optimisation de la gestion du chauffage et de l'énergie
alimentation secourue de circuits spécialisés
centrale d'alarme filaire
Le dernier chapitre intéressera particulièrement les collégiens et leurs professeurs. Les 7 projets présentés correspondent au thème « Domotique et confort » du nouveau programme de l’Éducation Nationale et sont complétés par des propositions d’activités pédagogiques :
accès contrôlé à un local
éclairage d’un salon
éclairage d’un hall d’entrée
éclairage d’une cage d’escalier d’un immeuble
motorisation de volets roulants
fonctionnement d’un projecteur extérieur
fonctionnement optimisé de convecteurs électriques
History and Future in the Internet of Things
This book thoroughly reviews the history of the development of embedded Operating Systems, covers the technical characteristics, historic facts, as well as background business stories of mainstream embedded Operating Systems, and analyzes the technical evolution, market development, and new opportunities of embedded Operating Systems in the age of the Internet of Things.
From the perspective of time, the book examines the evolution of critical technical aspects, including real-time and Power Management of embedded Operating Systems and Linux, Internet of Things security, communication, and cloud computing.
The book looks into applications of embedded Operating Systems with important markets of mobile phones, communication equipment, automobile, and wearable devices, and also discusses business model and the issue of intellectual property of embedded Operating Systems.
In addition, the book walks through the status quo, technical features, product evaluation and background of the Internet of Things Operating Systems in the second half of the book.