I'm actually developing a bot that topples 360 degrees when it hits an obstacle(wall). So I've used IR sensors to do the same. When the bot hits the obstacle the motors should rotate in the same direction with its max speed .Two IR is used ,one I the front and one in the back. when both is detecting ground, motor rotates clockwise. After toppling, both is against the ground. Now the motors must reverse its direction. Can I get a code for this..
Can I get a code for this..
If you want someone to write it for you then you should ask a moderator to move this thread to Gigs and Collaborations. If that is what you want then click "Report to Moderator" on your first post and ask them to move it.
If you write the program yourself you will get plenty of help in this forum but don't expect to find a program that meets your needs already written.
Read your original post thoroughly as someone not knowing anything about your project. It makes no sense.