Show Posts
Pages: [1]
1  Topics / Robotics / Robotic Car using Potentiometer PROGRAM? on: January 21, 2013, 04:15:11 pm
Hey Arduino users! I am new to this forum so please be easy on me as I am also an amateur.

I have been working on this car robot for a while and Its almost complete except for my program. Basically its just suppose to control it self. When it hits a wall, it will back up and move a different direction.

So basically my robot car is basically 2 motors at the back with wheels attached to it. I got my breadboard and Aduino hooked up. I have a potentiometer up at the front. Basically what I am trying to do is

When the knob is set at the middle, both motors are moving forward. But once

i turn the knob left > Both motors go off except The right motor goes backward for 2 seconds and then both motors go on Forward.
i turn the knob right > Both motors go off except The left motor goes backward for 2 seconds and then both motors go on Forward.

How would I do this.

Much appreciated.


Pages: [1]