Introduction: Obstacle Avoiding and Manual Controllable Robot Using Android Phone

Picture of Obstacle Avoiding and Manual Controllable Robot Using Android Phone

Hi everyone :)

in this instructable im going to show you a simple way to make your own obstacle avoiding robot using ARDUINO and ANDROID phone to control it so follow the steps below one by one and i hope its gonna be helpful

Step 1: Some Advices Before We Go Forward

Picture of Some Advices Before We Go Forward

* i highly recommend to enroll to this awesome robots class https://www.instructables.com/class/Robots-Class/

Step 2: Parts You Need to Make This Robot

Picture of Parts You Need to Make This Robot

* Robot Chassis LINK https://goo.gl/3iW1CJ

* Arduino(i`m using uno) LINK https://goo.gl/2HhrW1

* L298N motor driver LINK https://goo.gl/yTgruL

* HC-SR04 ultrasonic sensor LINK https://goo.gl/uDsKTD

* HC-06 bluetooth module LINK https://goo.gl/UNVN2r

* Mini Breadboard LINK https://goo.gl/XM9cSu

* Jumper cables (male to male & female to male ) LINK https://goo.gl/wk57B5

Step 3: Some Information About the Parts We Are Using

Picture of Some Information About the Parts We Are Using

* Arduino Uno is a microcontroller board based on the ATmega328P It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs as i recommend using the UNO as a beginner because its easy to use.

* HC-06 its a low cost Bluetooth module and it work perfect with the Arduino and it can work as a slave or master

* HC-sr04 its a ultrasonic sensor and can measure the distance from 2cm up to 4m and its very useful sensor

*L298N motor driver this is a great instructable for the L298N make sure to check it out https://www.instructables.com/id/Arduino-Modules-L...

Step 4: HC Sr04 Ultrasonic Connection

Picture of HC Sr04 Ultrasonic Connection

* connect the sensor VCC pin to pin 5V in the arduino

* connect the sensor GND pin to pin GND in the arduino

* connect the sensor TRIG pin to pin number 11 in the arduino

*connect the sensor ECHO pin to pin number 12 in the arduino

Step 5: Bluetooth Connections

Picture of Bluetooth Connections

* connect the module`s VCC pin to 5V pin in the arduino

* connect the module`s GND pin to GND pin in the arduino

* connect the module`s TX pin to the RX pin in the arduino which is the pin number 0

* connect the module`s RX pin to the TX pin in the arduino which is the pin number 1

Step 6: L298N Connection

Picture of L298N Connection

* first remove the jumper from the ENA and ENB pins in the motor driver

* connect both your motors to the OUTPUT A and OUTPUT B

* connect ENA to pin number 9 and ENB to pin numer 3

* connect pins IN1 IN2 IN3 IN4 to pins number 7 6 5 4 as shown in the pictures

* connect you battery to the module and make sure to connect the module GND with the arduino GND

* note that if your gonna use 9v battery it may not work especially if it old or it been used before

so i highly recommend using AA batteries instead it work better with robots

Step 7: Final Connection

Picture of Final Connection

connect everything together and use hot glue gun or screws to put everything on the chassis

Step 8: The Android App

Picture of The Android App

* i made the app using http://ai2.appinventor.mit.edu its very simple

* i made a few comments in the picture to help you building your own app

* the app include a (LISTPICKER _ Bluetooth client _ timer _ 6 bottoms that sending characters from 0 to 5 _ labels)

Step 9: The Arduino Code

* i made everything clear in the code by writing comments and the code is very simple

* feel free to edit the code and inform me if you have upgrade or a better way

Step 10: Testing the Robot

unfortunately my batteries died and i couldn't test the robot using battery so i used 12V adapter

and everything works fine here is a short videos

Comments

doladola (author)2017-12-08

the code is big it can not be uploded

Sketch uses 3,462 bytes (10%) of program storage space. Maximum is 32,256 bytes.

Global variables use 184 bytes (8%) of dynamic memory, leaving 1,864 bytes for local variables. Maximum is 2,048 bytes.

i downloaded the code again and uploaded it to my Arduino

contact me and i will help you with the problem

Farah Suliman (author)2017-12-07

Cool!! Thank you for sharing!

thank you xD

Swansong (author)2017-12-07

That's a neat setup, thanks for sharing :)

Thanks :)

About This Instructable

242views

7favorites

License:

Bio: name \ abdulrahman from \ iraq age \ 21 im an mechatronics engineering student
More by abdulrahman_rijabo:Obstacle Avoiding and Manual Controllable Robot Using Android Phone
Add instructable to: