Friday, June 20, 2014

Arduino and Servo Motor (Tower Pro SG 5010)

Hardware List:

1. Arduino and breadboard
2. A servo motor like this:

3. 10k ohm potentiometer


Wiring Details:

1. Output from 10k pot to arduino analog A0
2. The step motor's yellow wire to arduino digital out pwm ~9


Use the "Servo.h" library, create a Servo object. Attach object to ~9.
Read pot, map to 180 degrees and write to this object.

Motor can move 180 degrees. Not a full circle.

No comments:

Post a Comment