I've got a little zipzap rc car with a 08m hooked up to control it, unfortunately this takes up 4 outputs and I am left with one input. The input is currently a micro switch on the front to have it backup on collision. Here is a picture of it, it's being powered by the small internal battery and a 1F capacitor.
http://www.jonathanbarclay.com/img//Cam-20090410-215924.png
I would like to add a sharp ir distance sensor and turn it into a wall following robot, but if it gets into a corner it's going to be useless without the front bump switch.
What I'd like to know is if it would be possible to have the input, pin 3, reading the analog input from the sensor, but also have a loop in my code to check for that pin going low when the front switch is closed?
http://www.jonathanbarclay.com/img//Cam-20090410-215924.png
I would like to add a sharp ir distance sensor and turn it into a wall following robot, but if it gets into a corner it's going to be useless without the front bump switch.
What I'd like to know is if it would be possible to have the input, pin 3, reading the analog input from the sensor, but also have a loop in my code to check for that pin going low when the front switch is closed?