diff --git a/content/Education and Kits/CTC 101 and CTC UNO/Troubleshoot-servo-motors.md b/content/Education and Kits/CTC 101 and CTC UNO/Troubleshoot-servo-motors.md new file mode 100644 index 00000000..c6372746 --- /dev/null +++ b/content/Education and Kits/CTC 101 and CTC UNO/Troubleshoot-servo-motors.md @@ -0,0 +1,22 @@ +--- +title: "Troubleshoot servo motors" +id: 360017053760 +--- + +Learn how to troubleshoot servos that are not moving or moving erratically. + +--- + +## Quick checks + +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. + +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. + +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: + + ![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) + +## Further reading + +* Servo library reference diff --git a/content/Education and Kits/CTC 101 and CTC UNO/Why-are-the-servos-not-moving-or-moving-erratically.md b/content/Education and Kits/CTC 101 and CTC UNO/Why-are-the-servos-not-moving-or-moving-erratically.md deleted file mode 100644 index a31c4063..00000000 --- a/content/Education and Kits/CTC 101 and CTC UNO/Why-are-the-servos-not-moving-or-moving-erratically.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Why are the servos not moving or moving erratically" -id: 360017053760 ---- - -The boards are made for controlling, so if there is more than 1 servo connected and trying to move at the same time, the board will not be able to supply enough energy. This can be avoided connecting a battery. You have more information about how to implement it in the [continuous servo reference](https://create.arduino.cc/ctc/101/course/view.php?id=250§ion=7). diff --git a/content/Education and Kits/CTC 101 and CTC UNO/img/2-servos-set-up-diagram.png b/content/Education and Kits/CTC 101 and CTC UNO/img/2-servos-set-up-diagram.png new file mode 100644 index 00000000..ca55c85f Binary files /dev/null and b/content/Education and Kits/CTC 101 and CTC UNO/img/2-servos-set-up-diagram.png differ