Contact Switches
The schematic below shows the circuit configuration for one of the four contact switches. When the switch is pressed, the signal to Arduino changes to high (5 V). Otherwise, the 100 ohm pull-down resistor produces low signal (0 V) to the Arduino. This circuit was replicated four times for the four bumper switches (2 on the front, 2 on the rear) on the final robot design.