Arduino Robot

by NL1_CS in Circuits > Arduino

25043 Views, 142 Favorites, 0 Comments

Arduino Robot

IMG_0136.JPG
IMG_0135.JPG
IMG_0134.JPG

first of all, i am sorry if i have grammar mistakes, i am asian and i am 13 years old, i study arduino by my self (mostly my self) and this is my first project and also my first instructables. this is the robot that i used to compete with my friends in soccer robot. i did some modifications when i used it but it is broken now, so what i show you here is just a smartphone control robot. i will upload the improved, actual soccer robot soon. Thank you to Phan Hoang Anh- my tutor, he helped me alot with the code

Materials

479_1231-1400727929-0-arduinounosmd450px1.jpg
download (2).jpg
b71cd02e-4be8-433b-8006-26e61649287c.jpg
download.jpg
download (1).jpg
Free-Shipping-Smart-2WD-Robot-Car-Chassis-With-2-Motors-Magician-Robotics-Platform-for-Arduino.jpg

here is what you're going to need

-Arduino uno r3

-hc-05 (bluetooth module)

-l298n motor control module

-2 motor

-android phone( i don't know how to control with ios) or a laptop with Bluestacks

-small bread board

-wires

- 3.7v ultra fire batteries x 2

- battery holder ( yes, i don't know what it is called)

-robot platform(picture 6)

Hard-ware

gdjd.jpg
Untitled.png

arduino pin 6->in1 or a (of l298n module)

arduino pin 7->in2 or b (of l298n module)

arduino pin 8->in3 or c (of l298n module)

arduino pin 9->in4 or d (of l298n module)

l298n pin +5-> arduino pin 5v ->

l298n pin gnd-> power source (-)-> arduino power plug(-) (arduino power plug is the first picture )

l298n pin vcc->power source (+) ->arduino power plug(+)

arduino pin gnd -> hc-05 gnd

arduino pin tx-> hc-05 rxd

arduino pin rx-> hc-05 txd

(note: i am very sorry for the bad image that i made in 'paint', the circuit simulator does not have an icon for l298n motor driver)

Software

here is the code, you can just copy and paste it into the arduino software

(note: when you upload the code, plug of tx and the rx of the arduino, if you don't, it will not work, i know why but it is very hard to explain it in english)

this is the app inventor code:

go to gallery in app inventor 2 and search for 'robot project' with this robot's picture

Link: https://gallery.appinventor.mit.edu/?galleryid=6349163018584064

Downloads

Finishing Step

put every thing on a platform, put on the motor and the wheels like this and you're ready