We’re going to give textual commands using the Terminal module to control the door. You’ll see that it has blocks for all the different modules of the app such as LED control, Terminal, Gamepad, Motor Control, etc. Now, let’s write the script to control the servo in PictoBlox. Then, click on the Connect button and select the appropriate port.Īctivity: Control Servo with a Smartphone via Dabble Writing the Code.Next, click on the Board button in the toolbar and select Arduino Uno from the drop-down menu.First, open PictoBlox.Then, connect Uno to your computer via a USB cable.Then, connect the orange wire to Uno’s PWM pin 5 using a yellow male-to-male jumper cable.Next, connect the red wire to Uno’s VIN pin using a red male-to-male jumper cable.Connect the servo’s brown wire to Uno’s ground pin using a black male-to-male jumper cable.Then, connect the receive pin to Uno’s PWM pin 3 using a blue male-to-female jumper wire.Now, connect the transmit pin (Tx) to Uno’s digital pin 2 using a green male-to-female jumper cable.Next, connect the ground pin to Uno’s ground pin using a black male-to-female jumper cable.Connect the VCC pin to Uno’s 5V pin using a red male-to-female jumper cable.It will help us pair our Smartphone with the board via Bluetooth. Let’s connect the Bluetooth module(HC05) to Uno.Interfacing the Bluetooth Module and the Servo You can download Dabble from Play Store and PictoBlox from here. Also, the entire process just got easy as you are going to code the entire program in PictoBlox, a graphical programming software that eliminates the need to worry about syntax. In this tutorial, we are going to interface a servo motor to Arduino Uno and control it wirelessly using Smartphone via Bluetooth Module. All of this is possible because of Dabble: a project-making app, that transforms your Smartphone into many virtual shields. By the end of this tutorial, you will be able to open/close the door or any ON/OFF any motor by just typing a few words on your Smartphone. Well, this tutorial is the perfect solution. ![]() Once you are there on the bed or sofa, you hate to get up to open the door.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |