Re: Want help on making Ultrasonic obstacleavoiding Arduino
There are many, many possibilities for creating a code that will do this, most of which will depend on the specific set up of your robot, which pins are being used for which devices, what type of steering you are using, what else the robot will be doing, etc.
To get started, I suggest taking a look through the ROBOTC wiki's sections on using sonar sensors with the Arduino (http://www.robotc.net/wiki/Tutorials/Ar ... nic_Sensor
). There's also many other useful pages in that section of the wiki that you may want to look through; for instance, the Robot Motion
section utilizes code that may be transferable to your motor controller (depending on the input it requires).
On a side note, I see you have another thread open in another section of the forum asking similar questions; if we keep the discussion in this thread, it will help eliminate any confusion later on and will help with the accuracy and speed of answers to questions you may have. Thank you in advance!
Check out our Blog
! And our Facebook page
Need help? Take a look at our updated help documentation
and the ROBOTC Forums.