O'Reilly logo

Internet of Things Programming with JavaScript by Ruben Oliva Ramos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

Hardware requirements

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required