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 - development projects


In the previous chapters, we have seen different projects on home automation and domestic that is control and monitor home appliances. In this chapter, we will give some ideas to develop some projects that they can be done in different areas using electronics, controlling and monitoring.

Getting into the details of light sensor

As its name implies, the Light Dependent Resistor (LDR) is made from a piece of exposed semiconductor material, such as cadmium sulfide, that changes its electrical resistance from several thousand Ohms in the dark to only a few hundred Ohms when light falls upon it, by creating hole-electron pairs in the material. The net effect is an improvement in its conductivity, with a decrease in resistance for an increase in illumination. Also, photosensitive cells have a long response, time requiring many seconds to respond to a change in the light intensity.

In this section, we will look at how to use a light sensor to control different...