Step 3: The Electronics

Picture of the Electronics
the electronics are really simple so i haven't drawn a circuit diagram,the red battery lead is soldered into the RAW pin through the switch,the black lead to the ground pin. the white wire of the servo goes to a digital pin ( i used pin 9), the red lead goes to the vcc pin and the back lead to ground, i soldered all three wires to a male header that connects to the servo. the tilt sensor is soldered into pin 2 on the arduino and the ground pin right next to it, be careful when soldering not to hold the soldering iron on too long as you can damage the board