Drive hobby servos for grippers, pan-tilt heads, and small robot joints.
Open in compiler →Source code and build tools are available in the protected platform workspace.
How it works
Move a hobby servo smoothly across its angle range.
- Connect servo signal to servoPin.
- Power the servo from a suitable supply and share GND.
- Attach the Servo object to the pin.
- Write a new angle every loop.
Connections
| Pin | Connect to | Note |
|---|---|---|
| D5 | Servo signal wire | Power the servo from a suitable 5V supply and share GND with Arduino. |