Arduino: Servo Resources

Servo wiring to a breadboard:

There are two types of servos – standard and continuous.  They are programmed differently but wired in the same way.

Servo wiring:
black to ground
white to output (pin)
red to 5v
no resistor needed for a servo

Continuous servos vs standard servos
Continuous servos rotate 360 degrees backwards or forwards.  They ideal for powering robots.  They cannot be easily programmed to go to a specific position.  Note: while the code below references 90 to stop a continuous servo you have find a range between 85-95 to bring a servo to full stop.

Standard servos (also known as hobby servos or positional servos) can rotate 180 degrees – 90 degrees in each direction.  They can be programmed to sweep to a specific angle position.  They are great for steering robots, opening doors, anything where positions matters.

Standard servo reference code -click image to zoom in:
Screen Shot 2018-10-30 at 11.24.51 AM

Continuous servo reference code-click image to zoom in:
Screen Shot 2018-10-30 at 11.24.18 AM