Angular Servo Motor
Introduction
An angular servo motor is a little motor that can move to specific angles or positions, kind of like how the hands of a clock move to point at different numbers, and it's really good at holding still in one spot once it gets there. People use them in robots and toys to control things like moving an arm or turning a wheel to an exact spot because the servo can understand and remember specific positions it needs to turn to!
Circuit Assembly
Connect the angular servo to any digital pin. In our example, we're using D5/D14.
The pin that you connect your angular servo to corresponds to a pin value on your code. We're using D5/D4, which corresponds to 5. You can remix yours to look like this:
- D11/D10 → servo_pin = 11;
- D9/D8 → servo_pin = 9;
- D7/D6 → servo_pin = 7;
- D5/D4 → servo_pin = 5;
- D3/D2 → servo_pin = 3;
- D1/D0 → servo_pin = 1;
Code
Other Combinations