I am not sure if these motors are the best, and if they aren't I'll buy new ones, but can someone help me with coding Arduino for an ultrasonic motion sensor that move a robot left or right when it is a certain distance away from an item. I know how motors work, but if someone can point me out to an amazingly well done tutorial on Arduino coding, that'd be swell. So far I have been reading the 5-minute Arduino tutorials but they don't give me much, and I don't want some code, because there are other snippets I have to create which will be difficult and cruel if all you guys do is give me code. Can someone just help me or show me to a place that teaches me how to do this stuff?
The IDE itself has worked examples, and libraries typically also have a few examples.
Thank you
Using the ping example on the IDE, how do I code it so it turns right at a certain distance?
The certain distance being the object distance.
Ok I've created a new post in further detail. It's called 8th Grade Science Fair.