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

Controlling a DC motor using  an Android Application


In this section, we will have an application to link our smart phone with the Bluetooth of the phone, it's called Amarino and you can get it from: http://www.amarino-toolkit.net/index.php/home.html. We will also see how to control a DC motor from an Android application, let's dive into it!

Hardware requirements

In the following diagram, we see the following circuit (L293D) is used to control the speed and the turning of the motor:

In the following figure, we have the final connections of the circuit to the Arduino board:

The final interface is shown in the following screenshot:

The final results are shown in the following image with the connections: