top of page

Digital Servo 

We use two buttons, 2 resistors, and a servo to test out our Arduino.

1.

We power up the bread board to start.

AnalogInputToServo_bbBreadBoard.png

2.

We now connect the two buttons and resistors to the Arduino. We use 10k ohm resistors.

DigitalInputToServo_bbButton.png
ButtonConnections

3.

We now connect the 3 wires for the servo. 

DigitalInputToServo_bbDone.png
ServoConnections

4.

Software:

We read the value of the potentiometer on pin A2. It will give a value between 0-1023. The Servo will move left or right to follow the buttons, or no button pressed is in the middle. 

Github.png

Note:

clipart1869059.png

You need to open the serial monitor and see if the value of the switches.

Code

More Info coming soon!

bottom of page