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

Detecting who can get in the house with a fingerprint sensor


In this section, we will create a project that can help us make a complete security system. In this project, the fingerprint access will be addressed by reading the fingerprint using a fingerprint sensor as shown in the following image:

In this part, we will see how to connect and configure our hardware in order to activate our relay.

Hardware configuration:

As usual, we will use an Arduino Uno board as the brain of the project. The most important part of this project is the fingerprint sensor.

We are first going to see how to assemble the different parts of this project. Let's start by connecting the power supply. Connect the 5V pin from the Arduino board to the red power rail and the GND from Arduino to the blue power rail on the breadboard.

Now, let's connect the fingerprint sensor. First, connect the power by connecting the cables to their respective color on the breadboard. Then, connect the white wire from the sensor to Arduino...