Introduction: Make Your First Arduino Robot - the Best Tutorial!

Picture of Make Your First Arduino Robot - the Best Tutorial!

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.

Step 1: Materials and Tools.

Picture of Materials and Tools.


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.


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

Step 2: Making the Chasis.

Picture of Making the Chasis.

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.

Step 3: Connecting Battery

Picture of Connecting Battery

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.

Step 4: Connecting the Arduino and Motor Shield

Picture of Connecting the Arduino and Motor Shield

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

Step 5: Make Two Holes and Power the Arduino.

Picture of Make Two Holes and Power the Arduino.

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.

Step 6: Connecting Bluetooth Module and Switch.

Picture of Connecting Bluetooth Module and Switch.

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.

Step 7: Circuit Diagram. Connecting Ultrasonic Sensor and Finishing.

Picture of Circuit Diagram. Connecting Ultrasonic Sensor and Finishing.

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.

Step 8: Last Step - Arduino Codes and Bluetooth App Editing

Picture of Last Step - Arduino Codes and Bluetooth App Editing

First download the ARDUINO IDE from 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.


macrossmaniac (author)2017-08-17

Hi there. Awesome job!! I was wondering if you could help me. everything went well, code loaded, all connections made, my phone pairs with "HC-05" but the app is giving me a message that " cannot connect to HC-05, check that it is powered and in range." Any help would be appreciated

Q-Kid (author)2017-05-17

Made, this but I'm having lots of issues. I've successfully loaded the Object Avoiding code into the arduino but it doesn't move. Does this require a phone to start the robot, or should it start on it's own?

RobotechMaker (author)Q-Kid2017-06-15

It is according to the code you are uploaded to it. Pls give more details.

AnirudhS33 (author)2017-02-07

Can i use some kind of chasis and bo moters instead of gear motors

RobotechMaker (author)AnirudhS332017-03-30

Yes you can use any type of gear motors.

AnirudhS33 (author)2017-02-15

Is there any alternate for dc connector

AnirudhS33 (author)2017-02-04

Can u tell if i can upload all the codes at same time?please eply

RobotechMaker (author)AnirudhS332017-02-04

You can only upload one code at a time in an arduino. For working all the functions at same time you want to make the robot as per the last circuit diagram in step 7 and only need to upload the first code in the last step (8) named "Final _code.ino" to the arduino. The other codes are fore separate functions.

Alex khan (author)2016-08-09

do we have to upload all the code at a time?, i am about to making it please tell me.

RobotechMaker (author)Alex khan2016-08-09

You only need to upload the first code (final_code.ino) shown in the last step to work all the functions togather.

AnirudhS33 (author)RobotechMaker2017-02-04

Does applying will work for all the functions?

rajatk16 (author)2016-08-31

I am trying to remake this amazing project. but i read in a few articles that ultrasound sensor should be connected to the digital side and not analog. could you please clarify?

Alex khan (author)2016-08-09

what you are writing at bluetooth control app ,i did get it

chimeranzl (author)2016-08-01

Nice work!

ROBO HUB (author)2016-07-31

Awesome come up with come with cool great stuffs......

RobotechMaker (author)ROBO HUB2016-08-01

Thank you.

About This Instructable




Bio: I am Azhar living in India. I am a blogger, maker, hacker and more :) to see my more projects visit my blog I ... More »
Add instructable to: