Joystick Bump Sensor
Here a little tip i use to put on all of my robots:
It is a revisited bump sensor, just using one or two pins, one pin to have just an axe, two pins to have X and Y axes.
A kind of 3D bump sensor.
You need just a joystick from any analog console or pc controller and some paperclips, obviously soldering skills and tools are needed.
Why to use this kind of sensor?
Take apart your old controller to scavenge the joystick
Desolder from PCB and see what we have here: cener pin is signal,as you can see the joystick is made of two separate potentiometers, so treat them as that.
Here is the schematized single axe of the joystick and how to wire it.
Make your PCB or just "flying" cables.
Now it's the time for the whisker:
Take away the gum from this piece, so we can use glue.
Build your whisker. I suggest to use carbon fiber rod, but paperclips are more reliable.
Make your whisker as you think is better, feel free to experiment.
Just remember to make a frontal deflector so we won't stuck into front obstacles!
Mine looks like this.
Now everithing is ready to be wired up to our robot:
So, here it is!
I hope this helps.