In the Accelerometer Controlled Ball Maze we control maze with 2 servos controlled by a accelerometer. The accelerometer moves the servos by mapping a value recorded by the accelerometer of -16384 to 16384 to an angle of 0-180. The accelerometer has records values in the x, y, and z directions but for this project we are putting the x value to one servo, and the y value to another servo. When we the move the accelerometer it records the movement in the respective directions, these values then move the respective servo. All of these then move the maze to shift a ball around.

Here is a video of the maze working: