Advanced Home Automation Using Raspberry Pi: Building Custom Hardware, Voice Assistants, and Wireless Nodes
Book information
Description
Build a versatile home automation system from scratch. There are many ways of controlling home appliances with your smartphones, voice, gestures, etc. This book dives into the many options for for communicating with appliances wirelessly and we’ll discuss and implement the leading protocols in the field. In first few chapters, you will develop a basic understanding of the Raspberry Pi and how one can control it wirelessly from anywhere in the world. Then you’ll get to know about the local server for your home automation projects and control the Raspberry Pi GPIOs using smartphone and web apps. Every appliance will be able to talk to each other, as well, with the help of mesh networking, which you’ll learn to implement. The user interface is also an important aspect of handling all the appliances, so you’ll create your own user dashboard using OpenHAB. From there, you can monitor all the appliances and sensor data in one environment. Next, implement your own custom voice assistant to control your appliances and perform basic tasks like playing music, checking weather, etc. You’ll also integrate a smart door bell into your system using image processing so that you can restrict an unknown person’s entry. Finally, we’ll combine all the knowledge that we have learned to make a fully versatile home automation project controlled using voice, gestures, and image processing. Throughout this whole project, Raspberry Pi will be your master server or node and other devices will be connected wirelessly using wi-fi/Bluetooth modules. Create a smart home with fully custom interfaces to do exactly what you need! What You'll LearnCreate a user interface using openHAB Implement the MQTT protocol Install Alexa and Google Home API to control appliances wirelessly Who This Book Is For Enthusiasts with a working knowledge of the Raspberry Pi, electronic engineering, and Python programming. This book will also interest hobbyists and students from Computer Science or related disciplines. Table of Contents About the Author About the Technical Reviewer Acknowledgments Introduction Chapter 1: Introduction to Raspberry Pi Raspberry Pi Inside the Raspberry Pi Board Hardware Requirements A Power Supply A microSD Card Mouse, Keyboard, and HDMI Cable Software Requirements How to Install the OS in an SD card First Time Boot Using raspi-config Headless Setup for the Pi Accessing the Remote Desktop Summary Chapter 2: Controlling Raspberry Pi GPIO Raspberry Pi GPIO Raspberry Pi Pin Numbering GPIO Programming Importing a Python Module Pin Scheme Declaration Pin Mode Declaration Outputs Inputs Delays Python Program: Blinking an LED PWM: LED Dimming GPIO Input: Button Using Interrupts Analog Input Automating Scripts and Tasks Summary Chapter 3: Getting Started with Web Automation Web-Based Home Automation Hardware Requirements Software Requirements What Is Flask? Installing Flask Creating a Simple Web Server Creating a Home Automation Web Server Understanding IoT Protocols MQTT (Message Queue Telemetry Transport) Subscribe and Publish Messages Topics MQTT Broker XMPP (Extensible Messaging and Presence Protocol) DDS (Data Distribution Service) Installing Mosquitto MQTT Broker Testing Mosquitto Broker Controlling GPIOs Using MQTT Summary Chapter 4: Mesh Networking Using ESP and RPi What Is Mesh Networking? How Does a Mesh Network Work? Types of Mesh Networks Mesh Networking Using ESP Modules About ESP Dev Modules Installing and Setup Arduino IDE Problem Statement ESP-MESH Hardware Requirements and Connection Diagram Coding and Testing Communication Between ESP-MESH and Raspberry Pi MQTT Communication Between ESP and Raspberry Pi Coding and Testing Cloud-Based MQTT Setup Blynk: An IoT Platform Local Blynk Server Setup on Raspberry Pi Blynk App Setup Coding and Testing Summary Chapter 5: Designing Smart Controller Circuits Component Selection Designing the Printed Circuit Board (PCB) Schematic Design Layout Design Gerber Generation Enclosure Design Relay Module Power Supply 5V SMPS Circuit Design WiFi-Enabled Smart Switch/Plug AC Fan and Bulb Dimmer Circuit Zero-Crossing Detection Method All-in-One Smart Switch Energy Monitoring Circuit Electric/Capacitive Switch Connections Sensor Connections Summary Chapter 6: Getting Started with Home Assistant Home Automation Platforms Installing Home Assistant Setting Up Home Assistant Installing Add-Ons Configuration.yaml Controlling Raspberry Pi GPIO Using Home Assistant Creating Automation in Home Assistant Controlling a Smart Switchboard Using Home Assistant ESPHome Creating an ESP Node YAML File for Smart Switchboard Flashing Binary File in the ESP Module ESPHome Automation ESP32-CAM Integration with Home Assistant ESPHome and ESP32-CAM Arduino IDE and ESP32-CAM Editing the Dashboard Home Assistant and MQTT Device Interfacing Summary Chapter 7: Getting Started with Voice Assistant What Is a Voice Assistant? How Does a Voice Assistant Work? Controlling the Raspberry Pi Using an Amazon Echo Speaker Controlling a Smart Switchboard Using an Amazon Echo Speaker Raspberry Pi Google Assistant and Alexa AlexaPi Setup and Installation Amazon Alexa and Home Assistant Integration Creating Custom Assistants with Platypush Troubleshooting the Audio Voice Automation Controlling the Assistant Programmatically Installing Offline Voice Assistants Setting Up and Installing the Almond Add-on Jasper: A Custom Offline Voice Assistant Choosing an STT and TTS Engine Speech to Text Engines Text to Speech Engines Configuring Jasper Using Jasper Creating Jasper Modules Controlling the ESP Module Using a Jasper MQTT Module Summary Chapter 8: Getting Started with OpenCV Computer Vision OpenCV Installing OpenCV OpenCV Basics Opening and Displaying an Image Capturing and Reading a Video File Image Transformations Color Spaces Door Locking Using Face Recognition Gathering Data Training the Recognizer Using Face Recognition Using Gesture Recognition Sensors Summary Conclusion Index
Similar books
Advanced Home Automation Using Raspberry Pi: Building Custom Hardware, Voice Assistants, and Wireless Nodes
2021 · EPUB
Physics Wallah MedEd Notes Radiology
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF