Skip to content

Commit ea5eb87

Browse files
Merge pull request #302 from arduino/update-servos-article
troubleshoot servos [HC-1401]
2 parents 43b4c58 + 50d26c5 commit ea5eb87

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: "Troubleshoot servo motors"
3+
id: 360017053760
4+
---
5+
6+
Learn how to troubleshoot servos that are not moving or moving erratically.
7+
8+
---
9+
10+
## Quick checks
11+
12+
1. **Check connections:** Make sure the connection between the servo and the board is correct. Check the [Basic servo control tutorial](https://docs.arduino.cc/tutorials/generic/basic-servo-control) for a circuit diagram example.
13+
14+
2. **Verify pin configuration:** Confirm that you've connected the servo to the same pin referenced in the code. For example, if you are using the [servo library](https://www.arduino.cc/reference/en/libraries/servo/), the code might inlcude a line such as `myservo.attach(9)` to link the servo to a specific pin on the board. In this case, the **signal** input on the servo should be connected to the pin 9 on the board.
15+
16+
3. **Power considerations:** Servo motors draw significant power, and the board might not supply enough energy. If you need to drive more than one or two servos, you may need to power them from a separate supply (i.e. not the 5V pin on your Arduino). Make sure the grounds of the Arduino and the external power supply are connected. Check the diagram below for an example circuit:
17+
18+
![Two servo motors connected to the digital pins of an Arduino board, powered through a external battery connected to a breadboard.](img/2-servos-set-up-diagram.png)
19+
20+
## Further reading
21+
22+
* <a class="link-external" href="https://www.arduino.cc/reference/en/libraries/servo/">Servo library reference</a>

content/Education and Kits/CTC 101 and CTC UNO/Why-are-the-servos-not-moving-or-moving-erratically.md

Lines changed: 0 additions & 6 deletions
This file was deleted.
50.6 KB
Loading

0 commit comments

Comments
 (0)