May 27, 2016

How To Make An Android Controlled Robot

How To Make An Android Controlled Robot

How To Make An Android Controlled Robot

An Android Controlled robot is a simple robot which is operated by an arduino Board,L298N Motor Controller,Bluetooth Moduler(HC-05) and It Can Be Controlled By and Bluetooth Device we are using an Android SmartPhone for controlling it .Attached Bluetooth Module receive the given command which is given by The Android SmartPhone and the connected Arduino Detects the command and then it controls the Motor rotation with a Motor Driver Board (L298n Motor Driver).
An Android Controlled Robot can be used as a Multi functional bot i mean it can be used in many tasks and Operations like Simple Rover,Spying Bot etc.Just we have to attach sensors and equipment on it.
You can Make An Android Controlled Robot In Less Then 10 Minutes with the help of the video we are uploaded it to Youtube link is below just watch it and you can watch Our Android controlled Robot in action and all the steps and procedure in the same video.
Video:- 

How To Make An Android Controlled Bot in 10 min




So lets start with our 3rd robotics Project of Andro Root.


 Components Required to Make an Android Controlled Robot using arduino:-


How To Make An Android Controlled Robot




How To Make An Android Controlled Robot1xArduino Uno R3
1xBluetooth Module (HC-05)

1xL298N Motor driver
1xRobot chassis or Platform
2xWheels
2x Gear Motor
1x Castor wheel
2x9v Battery With Battery Holder
1x MiniBreadBoard
Connecting wires
Double sided foam tape


✒ Links for all Components to Make An Android Controlled Robot In Less Then 10 minutes

1.Chassis
2.Geared Motor
3. Arduino Uno R3

4.L298N Motor Driver


5.Bluetooth Module





  DESCRIPTION OF Component Used-


 

1.ARDUINO UNO R3

How To Make An Android Controlled Robot

The Uno R3 now uses an ATmega16U2 instead of the 8U2 found on the Uno (or the FTDI found on previous generations). This allows for faster transfer rates and more memory. No drivers needed for Linux or Mac (inf file for Windows is needed and included in the Arduino IDE), and the ability to have the Uno show up as a keyboard, mouse, joystick, etc.The Uno R3 also adds SDA and SCL pins next to the AREF. In addition, there are two new pins placed near the RESET pin. One is the IOREF that allow the shields to adapt to the voltage provided from the board. The other is a not connected and is reserved for future purposes. The Uno R3 works with all existing shields but can adapt to new shields which use these additional pins.Arduino is an open-source physical computing platform based on a simple i/o board and a development environment that implements the Processing/Wiring language. Arduino can be used to develop stand-alone interactive objects or can be connected to software on your computer (e.g. Flash, Processing, Max MSP). The open-source IDE can be downloaded for free (currently for Mac OS X, Windows, and Linux).Note:The Arduino Uno R3 requires the Arduino 1.0 drivers folder in order to install properly on some computers.
 FEATURES OF ARDUINO UNO R3:-
#ATmega328 microcontroller
#Input voltage - 7-12V
#14 Digital I/O Pins (6 PWM outputs)
#6 Analog Inputs
#32k Flash Memory
#16Mhz Clock Speed


2.L298N Motor Driver

How To Make An Android Controlled Robot

Internally the L298N consists of four independent power amps with 5-volt digital inputs and four high current, high voltage power amplifiers capable of driving single DC motors, and both unipolar and bi-polar stepper motors.
The four amplifiers are usually used in pairs forming an H-bridge to switch polarity for to control the direction of a single DC motor or as two pairs of H-bridges a bi-polar stepper motor. This part seems to be the favorite of hobby robot builders.




3.HC-05 Bluetooth Module

How To Make An Android Controlled Robot

Pin Configuration of HC-05 Bluetooth module
HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for transparent wireless serial connection setup.
Serial port Bluetooth module is fully qualified Bluetooth V2.0+EDR (Enhanced Data Rate) 3Mbps Modulation with complete 2.4GHz radio transceiver and baseband. It uses CSR Bluecore 04-External single chip Bluetooth system with CMOS technology and with AFH(Adaptive Frequency Hopping Feature)

Hardware Features

  • Typical -80dBm sensitivity
  • Up to +4dBm RF transmit power
  • Low Power 1.8V Operation ,1.8 to 3.6V I/O
  • PIO control
  • UART interface with programmable baud rate
  • With integrated antenna
  • With edge connector




  Circuit Diagram to make an Android controlled robot using arduino:-



How To Make An Android Controlled Robot

  Steps to make an Android Controlled robot using arduino:-


Watch The Video You will Understand all Steps and Connections


Make the chassis ready and find a good place to fix arduino, bread board & L298 motor driver,bluetooth module and 2x 9v battery a on the chassis with the help of Double sided tape . And arrange everything on it. Now Follow these steps:-

✔   L298n Motor Driver 
How To Make An Android Controlled Robot


 See the above image and connect the 9v battery holder's red wire to +12v of Motor driver and gnd to gnd and connect motor at Motor A and Motor B pins shown above.


✔  L298n Motor Driver  -  Arduino Uno

                            IN1   -     5 ( Digital pin)
                           IN2    -     6 (Digital Pin)
                           IN3    -    10 (Digital Pin)
                          IN4    -     11 (Digital Pin)

✔                     HC-05 - Arduino
How To Make An Android Controlled Robot

Pin Configuration of HC-05 Bluetooth module

                         VCC   -  5V
                         GND  -   GND
                            RX  -   TX
                            TX  -   RX


✔                            Power       -   Arduino Uno
9v's Battery holders Red       -   Vin of Arduino
9v's battery Holders Black    - Gnd of Arduino

✔                            Power       -   L298n Motor Driver
9v's Battery holders Red       -   12v of Motor Driver

9v's battery Holders Black                -   Gnd of Motor Driver 





Now The circuit is assembled and its time for coding/Programing



 Required Softwares and codes to Make an Android Controlled Robot using arduino:-



1.ARDUINO 1.6.9


The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing and other open-source software.
This software can be used with any Arduino board.
Refer to the Getting Started page for Installation instructions.



How To Make An Android Controlled Robot

The application allows you to control an Arduino based RC car over Bluetooth. This is done using a Bluetooth enabled Android phone. Visit this site https://sites.google.com/site/bluetoothrccar/ for the Arduino code and control circuit. The app lets you control the car with either buttons or the phone's accelerometer. A slider bar allows you to control your car's velocity if the car's control circuit has this feature. There are also two buttons for front and back lights. A flashing light lets you know when the phone is connected to the car, and arrows light up letting you know the car's driving direction.

3.Android Controlled Robot.ino

This is the Program file for the Arduino Board.Download it and store it on hard disk.

  • Steps to burn the program On Arduino by The IDE

How To Make An Android Controlled Robot

Download the Arduino Ide Software From The above given link.Then Install it, now Connect the Arduino with Computer through the cable.open the Arduino software on pc .Click on "File"(Right Top) from the new opened Drop down menu,click on "Open" Now from the newly opened window go to the location location where you have saved the Android Controlled Robot.ino and select it.
Now the software will open it in new window so close the previous window(otherwise you will face an error at burning time)  .
After Loading the .ino File click on Upload button (At right top side under the File Option)
Wait Till the uploading complete. it will take 1 or 2 minutes.

  • Connect the Bot With Android
How To Make An Android Controlled Robot

After the uploading completed disconnect the bot, And install the Arduino Bluetooth RC Car app from the play store and open it now tap on Setting icon and click on "Connect to Car".A new windows will be open with Available Devices ,in it click on HC-05. It will ask you a pair Key Use  1234  as  Pair Key.After pairing The Red Circle(Right Top) will converted to Green.So Now Android Smart Phone is connected to the Bot. Enjoy  The Android Controlled Robot.


I hope Our Step by step guide and Video will help you to make an Android Controlled Robot without any problem.This is a simple bot you can modify it with some codes and components so just share your idea through the comment section.I will modify it latter by adding a camera,front back Led,Temperature sensor, Ultrasonic sensor and a display.

Keep sharing Keep visiting.

Also Read

4 comments:

  1. When I try to open the file it says Error: could not create the sketcy..... What should I do??

    ReplyDelete
    Replies
    1. i am extremely Sorry for the problem.i am uploading again.Now if you have downloaded that file then open it with notepad and copy the code.
      then paste the code in ide.or give me 1 hour i will replace the file.

      Delete
    2. Link updated.download and enjoy.
      thanks for informing us.and keep sharing and visiting.

      Delete
    3. I dint get any link releated to codeing file.I it is possible mail me the files gonemadatala.hari@gmail.com. It's urgent I want to submit my project

      Delete

Join Us on Facebook