With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
We have a be nice comment policy. Please be positive and constructive.
We noticed you attached photosto your comment.
I have a feeling there is more to your question than your saying.
You can make your robot avoid objects but to make it run a strait line you need to be able to sense the position - with a compass, or an accelerometer or by monitoring the rotation of each wheel. Your SR04 isn't going to help you drive a direct line.
So, how could be the code to make my robot run strait using an encoder?Using PID, I'm searching things about PID but I until don't found a site that explained me it.
Don't need that to make a robot drive straight. You need that if you want the robot to see objects in front of it so it can either stop or avoid the object.
Wall-E's Anti-Social Cousin: Object Avoiding Arduino Controlled Robot!
eyeRobot - The Robotic White Cane
Robot vacuum floor cleaner
How to Make a Obstacle Avoiding Robot
Programmable Robot [Qu-Bot]
Making a Modular Differential Drive Robot
Autonomous Autonavigation Robot (Arduino)
Arduino Hexapod Avoider Robot
Avoidance Robot Arduino
Robot 3: Autonomous Sensor Platform 'Jimbo'
Posted:Jun 11, 2014
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.