Skip to content

Commit 332ab69

Browse files
committed
update servo example
1 parent ba98c97 commit 332ab69

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Loading

content/learn/04.electronics/05.servo-motors/servo-motors.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ You can also visit the [Servo GitHub repository](https://github.com/arduino-libr
2020

2121
## Circuit
2222

23-
Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the 5V pin on the Arduino board. The ground wire is typically black or brown and should be connected to a ground pin on the board. The signal pin is typically yellow or orange and should be connected to PWM pin on the board. In these examples, it is pin number 9.
23+
Servo motors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to positive pole (+) of your power source. The ground wire is typically black or brown and should be connected to the negative pole (-) of your power source.
24+
25+
The signal pin is typically yellow or orange and should be connected to PWM pin on the board. In these examples, it is pin number 9.
2426

2527
***Always make sure to power your servo motor with a external power source. Connecting a servo directly to your board will cause your board to behave erratically and can damage your board***
2628

2729
### Knob Circuit
2830

29-
For the **Knob** example, wire the potentiometer so that its two outer pins are connected to power (+5V) and ground, and its middle pin is connected to `A0` on the board. Then, connect the servo motor to +5V, GND and pin 9.
31+
For the **Knob** example, wire the potentiometer so that its two outer pins are connected to power (+5V) and ground, and its middle pin is connected to `A0` on the board. Then, connect the servo motor as shown in the circuit below.
3032

3133
![The Knob Circuit.](assets/servo_circuit_knob.png)
3234

3335
### Sweep Circuit
3436

35-
For the **Sweep** example, connect the servo motor to +5V, GND and pin 9.
37+
For the **Sweep** example, connect the servo motor as shown in the circuit below.
3638

3739
![The Sweep Circuit.](./assets/servo_circuit.png)
3840

0 commit comments

Comments
 (0)