This bot uses bump sensors to navigate around objects.
The bump sensor works by connecting two wires together when the bot bumps into something. These kind of trigger sensors are used for object detection.
Parts
Arduino
Makerbotted base
Makerbotted servo holders
Makerbotted caster wheel
Makerbotted battery clip
Makerbotted wheels
Protoshield
2 continuous rotation servo motors
3 SPST switches
nuts and bolts
1/2 inch chrome ball
12ft copper bare wire 18awg
9 Volt battery
2 LEDs
5k potentiometer
2 rubber bands
2 SPST power switches
Bump Sensors
The robot wanders around autonomously until it bumps into something. You need to place the sensors in strategic locations so that the bot always detects the obstacles.
It is important also that there is enough time between sensing and reacting.
Antennae
The front antennae sensors are wires connected to coiled wires which are connected to the Arduino digital pins and and a bolt connected to GND. The bolt is inside the coil so when the wire connected to the coil hits something, the coil makes an electrical connection with the bolt and closes the circuit. When the sensor is triggered, the bot stops and reverses direction, then stops and turns and proceeds in a new direction.
Take 4-6 feet of 18 awg wire. Wrap the wire around a 3/4 inch cylinder
Repeat for the second antennae
Unwrap 6 inches from the coil. This will be the antennae.
Solder a wire to the bottom of the coil and attach the wire to the Arduino digital pins
Solder a wire to the bolt and connect that wire to GND.
Thread the bolt through the base of the bot
Hot glue the base of the coil to the bot base. Don't get glue on the spirals above the bottom spiral.
SPST Switches
The SPST switches act the same way the antennae switches do. When contact is made, the circuit is closed.
If you have a minimum of two sensors on the front and three on the back, the bot should be able to navigate.
Attach the three switches to bumpers on the back of the bot. And connect the leads to the Arduino digital pins and GND.
SPST switches
One is used for power:
Cut the red wire of the power supply. Solder each lead to a lead of the toggle switch.
One is used to toggle the mode of the robot. Connect the two leads of the switch to Arduino digital 4 and to GND.