Book Image

Internet of Things Programming with JavaScript

Book Image

Internet of Things Programming with JavaScript

Overview of this book

The Internet of Things is taking the tech world by storm, and JavaScript is at its helm. This book will get you to grips with this exciting new technology. Where do Node.js, HTML5 and Windows 10 IoT Core come in with JavaScript and IoT? Why Raspberry Pi Zero rather than Arduino? How do you configure and build an IoT network from scratch? All your IoT JavaScript questions are answered in this book.
Table of Contents (15 chapters)
Internet of Things Programming with JavaScript
Credits
About the Author
www.packtpub.com
Customer Feedback
Preface

Integrating the system control with relays and devices


In the following figure, we're integrating important parts of the book. We will show the connections in a house using a relay, and how you will apply and control the real load using a lamp:

Controlling multiple appliances

In real life, we will see the devices connected and controlling the real world. In the following image, we can see the relay module that can control the loads with the electronics part:

The following image shows the final circuit. We see the real connections to the Arduino board, and how they control the real world.

The complete system

In the following figure, we see the final circuit for controlling real devices in a home automation system. This can be used in all areas of the home, in each room we can have a relay module, connected to each module communicating with control system: