Touching on it in an earlier topic it's advised that I include both ultrasonic and infrared sensors for distance/collision detection.
I know there is a mention of the Sharp GP2D12 in the tutorials but it seems I cannot source this in the UK. I can find the Sharp GP2Y0A41SK0F though, would this work?
To save looking it up the basics are;
As distance increases the voltage (Vo) decreases from +3v to around +0.3v
The three pins are Vcc, Vo and Ground, I assume Vcc is +5v, Vo is the signal wire and Ground obviously Ground? Plugged in to an analogue port?
It measures distances from 4cm to 30cm, which is fine for what I need it for, it only needs to know if it gets within around 3 or 4 inches (7.5-10cm)