Make Your First Arduino Robot - the Best Tutorial!

by RobotechMaker in Circuits > Arduino

35406 Views, 150 Favorites, 0 Comments

Make Your First Arduino Robot - the Best Tutorial!

1..Make your first arduino robot.jpg
1.12 (1024x768).jpg
1.13 (1024x768).jpg
1.14 (1024x768).jpg

Smartphone controlled , obstacle avoiding and wall follower robot.

Are you a beginner in arduino and have a plan to make your first robot then follow this instructbles.

Are you not yet used an arduino then-have a familiar of this by feeling it.

What about making your own robots. It's really cool thing?.But don't know where to start. Then this instructable is (best) for you. In this tutorial I am going to show how to make an arduino robot with different functionalities. We can learn the use of different programs for different functions, mainly a smart phone controlled robot with Obstacle avoid er, wall follower or maze solver robot etc or You can also make it for a single function.


Watch this video to see it's final working.


Watch this video to see it's autonomous function.


Visit last step to learn editing the Bluetooth app - 'Bluetooth Electronics'

Download the Bluetooth app from here

Here download all the files - Arduino codes and circuit diagram.

Downloads

Materials and Tools.

1Mechanical parts (1024x819).jpg
1A plastic Box (1024x808).jpg
1Electronic parts (1024x717).jpg
1Jumpuer wire and hc0506 bluetooth module (1024x819).jpg
1Jumpur wire and hcsr04 ultrasonic sensor (1024x751).jpg

Meterials-

Why choosing the l293d motor shield?

It's low cost device and easy to use, using commonly available motor shield which does not require any previous skills . It can be also programmed easily using adafruit library.

Tools-

  • Screw driver
  • Soldering iron
  • Hot glue gun
  • Driller


Making the Chasis.

1-Make two holes for motor (1024x768).jpg
2-on both side (1024x830).jpg
3-Connect the motors (1024x820).jpg
4-Then connect the bolts (1024x871).jpg
5-Make 3 holes for caster wheel (1024x768).jpg
6-Connect the caster wheel (1024x768).jpg
7-Connect the wheels and screew it (1024x768).jpg

Make two holes on either side of the box for connecting the motors and three holes on the down side for connecting the caster wheel after measuring and marking the correct diameter. Then connect the motor after soldering the wire to motor shield and connect the caster wheel.

Connecting Battery

8-Place two 9volt battery inside the box (1024x768).jpg
9-Connect the battery clip and connec the bettery togther in parallel mode (1024x768).jpg
9-Connect the switch also (1024x768).jpg
.Bttery and switch scematic.png

Then place two 9 volt battery inside the box above the caster wheel. Then wire this battery in parallel mode and connect a switch as shown in above diagram . This is the batteries that giving power to motor shield.

Connecting the Arduino and Motor Shield

10-Connect arduino and  l293d motor shield together (1024x768).jpg
11-Place the arduino and motor sheild above the battery.jpg
13-Connect the wire from battery to pwer (1024x576).jpg
.battery moto motor shield schematic.jpg
.remove the jumper.jpg

Connect the motor shield above the arduino and place it above the battery. Then connect the wires from the motors and battery to the motor shield. Look out the connection diagram before connecting, as it is very important .

Wiring Instructions -

- Connect the left motor to "M1" of motor shield

- Connect the right motor to "M3" of motor shield

- Connect the the wire from battery to "ext pwr " of motor shield

Don't forget to remove the jumper from the "pwr" of motor shield

Make Two Holes and Power the Arduino.

14-Mark two parts  to cut two holes to acces the usb port and dc port of arduino.jpg
14-w Cut the parts.jpg
15-Connect battery clip to dc male jack converter to 9volt battery.jpg
.bettery clip.jpg
16- Place the battery inside the box between arduino and motors..jpg

Make two holes for accessing the USB port and DC input port of arduino. Take another 9 volt battery and connect battery clip to dc male jack adaptor ,then connect the DC male jack to arduino DC input port, to power the arduino. Then place the battery between the motors and arduino inside the box.

Connecting Bluetooth Module and Switch.

18-Connect the hc-05 bluetooth shield to arduino (1024x768).jpg
18-d (1024x768).jpg
19-Place bluetooth shield inside the box (1024x768).jpg
.hc-05 motor shield schematic.jpg
20-Make a hol for connecting the switch (1024x768).jpg
21-Connect the switch (1024x548).jpg
22-Close the box with it cap- Now this is a bluetooth controlled robot. (1024x768).jpg

Connect the Bluetooth module to arduino as shown in the connection diagram and place it inside the box. Then make hole to connect the switch on the back side of the box and connect the switch (here I have changed the switch which is used earlier because of some soldering problem).

Wiring Instruction of bluetooth module -

- "TX of Bluetooth Module" goes to "RX of Arduino"

- "RX of Bluetooth Module" goes to "TXof Arduino"

- "VCC of Bluetooth Module" goes to "5v of Arduino"

- "GND of Bluetooth Module" goes to "GND of Arduino"

- The State & Key pins of the BT modules are kept unused.

Circuit Diagram. Connecting Ultrasonic Sensor and Finishing.

compleat circuit digrem of arduino bluetooth obstacle avoider robot.jpg
.compleat circuit digrem of arduino bluetooth obstacle avoider robot..jpg
23-Adding ultra sonic sensor (1024x752).jpg
23-b (1024x768).jpg
24-Making a hole on the cap for taking in the wire from ultrasonic sensor (1024x768).jpg
25-Connecting the ultra sonic sensor on the box (1024x768).jpg
26-Conect the wire fro ultrasonic to arduino (1024x768).jpg
27-Finished (1024x768).jpg

Take the ultrasonic sensor and glue a small 'L' shaped plastic piece to it and glue it over the plastic box(or if not having a glue stick use double sided tape ). Then connect the jumper wires to as shown in the circuit diagram above.

Wiring Instruction of ultrasonic sensor -
- "VCC of Ultra sonic sensor" goes to "5 volt of Arduino"

- "GND of Ultra sonic sensor" goes to "GND of Arduino"

- "Trig pin of Ultra sonic sensor" goes to "Analog pin 1 volt of Arduino"

- "Echo pin of Ultra sonic sensor" goes to "Analog pin 0 of Arduino"

Now we finished the all the connections and it's the time to program.

Last Step - Arduino Codes and Bluetooth App Editing

28-Last step coding the robot.jpg

First download the ARDUINO IDE from arduino.cc(here) and install on your PC. Download the above files and Upload it. thus we learned how to program a Arduino easily. I have shown here some programs to work this robot as a obstacle avoiding robot, Wall follower, and Bluetooth controlled. and at last i have combined this three functions together. Watch the video for more details and information

You can use the wall follower robot code to function it as a maze solver robot.


Install the 'AFmotor' library before compiling the program. Copy paste the AFmotor folder to to arduino libraries folder. Download from here.


Autonomous robot - Obstacle avoiding robot and Wall follower robot code - Video


The Final code- Video


Editing Bluetooth electronics app for the robot - Video


If you have any doubts or any suggestions please comment below.