How To Make a PC Control Robot

By
Advertisement
Do you ever tried to control your robot using your PC or laptop? Controlling a robot using PC or laptop is often being a fun for the student or hobbyist. Thus during this article you will be tend to learn how to control your robot using your PC or laptop. Here it is assumed that you know How To Send Serial Data From Arduino To Laptop or PC and How To Receive and Send Serial Data Using Arduino Board. Thus lets begin to making this awesome DIY hack today with us.
controling a robot via PC using arduino board
Replica of robot

Component Required:

  1. Arduino UNO Board
  2. PC/Laptop
  3. L293D Motor Driver IC
  4. 2 Motor
  5. Serial Bluetooth Module
  6. 2 wheels
  7. Chassis
  8. Castor wheel
  9. Software (serial port software on your PC/laptop) 
Click here to see more projects on Arduino

Block Diagram:
Block diagram PC control robot using arduino
Block Diagram
Setup Connection For Robot:
circuit diagram of Pc control robot
Circuit Diagram
Here we use a L293D motor driver IC which is used for the controlling the rotation of the two motor connected to robot. Pin no 2,7,10,15 of L293D motor driver IC is connected to the pin no 9,8,7,6 of arduino board. Output pin 3,6,11,14  of the L293D motor driver IC is connected with the motor as shown within the Circuit Diagram Image.
L293D motor driver IC
L293D Motor Driver IC
For the connection of RX and TX read this article How To Receive and Send Serial Data Using Arduino Board 
NOTE:- Bluetooth Module should be removed while uploading the code from PC to Arduino board.

Code for PC Controlled Robot:

If you are beginner to arduino then download Arduino IDE from here How To Install Arduino Software On Windows. We use 9600 baud rate for the transmission of the data from PC/Laptop to Robot.Click here to Download the source code for PC controlled robot. 
code for the pc controlled robot
Arduino Code
We can control the robot using the following instruction 
'8' = Forward
'2' = Backward
'4' = Move Left
'6' = Move Right
'5' = Stop

Download:


Video:

  

If You have got any problem then be happy to comment in comment box or you can contact us at Facebook or Google+

9 comments:

  1. Nice blog thanks for sharing useful information. For more robotics tutorials and learning visit Robotics tutorials

    ReplyDelete
  2. Thank you so much for posting. If i wanted to use a different motor control like a sabertooth 2x60 from dimensionengineering.com instead of the L293d , how would i change the code to make this work?
    Any help would be so kind.
    Thank you

    ReplyDelete
  3. Thank you so much for posting. If i wanted to use a different motor control like a sabertooth 2x60 from dimensionengineering.com instead of the L293d , how would i change the code to make this work?
    Any help would be so kind.
    Thank you

    ReplyDelete
    Replies
    1. hello armenvegas,
      thanks for reading my post. you can use sabertooth in your project in place of L293D IC. I would suggest you refer to its datasheet and then tried to make circuit.Then according to that circuit do some changes in source code.
      Let me know if you have problem. Keep visitng and learning.

      Delete
  4. Hello sir can u say me the code for making a bluetooth robot using l293d motor shield

    ReplyDelete
  5. Hello sir can u say me the code for making a bluetooth robot using l293d motor shield

    ReplyDelete