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.
Replica of robot |
- Arduino UNO Board
- PC/Laptop
- L293D Motor Driver IC
- 2 Motor
- Serial Bluetooth Module
- 2 wheels
- Chassis
- Castor wheel
- Software (serial port software on your PC/laptop)
Block Diagram:
Block Diagram |
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 |
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.
Arduino Code |
We can control the robot using the following instruction
'8' = Forward
'2' = Backward
'4' = Move Left
'6' = Move Right
'5' = Stop
Download:
Nice blog thanks for sharing useful information. For more robotics tutorials and learning visit Robotics tutorials
ReplyDeleteThanks manish Keep visiting :)
DeleteThank 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?
ReplyDeleteAny help would be so kind.
Thank you
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?
ReplyDeleteAny help would be so kind.
Thank you
hello armenvegas,
Deletethanks 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.
Hello sir can u say me the code for making a bluetooth robot using l293d motor shield
ReplyDeleteHello sir can u say me the code for making a bluetooth robot using l293d motor shield
ReplyDeleteThanks for the information. This is very nice blog. Keep posting these kind of posts. All the best.
ReplyDeleteSERVOMAX LIMITED
Stabilizers
Servo Voltage Stabilizers
Servo Stabilizers Manufacturers
Leading Stabilizers Manufacturers in Hyderabad
Top Stabilizers Manufacturers in Hyderabad
Thanks for the information.This is very nice blog.Keep posting these kind of posts.All the best.
ReplyDeleteTransformers
Power Transformers
Leading Transformer Manufacturers in Hyderabad
Top Transformers Manufacturers in Hyderabad