Lately, we got an old arduino uno donated from a friend and have been trying to get it to work with servos. We have been having very perplexing results. We have tried many different "stock" code and servo combinations with our servos, but here is the behavior:
- 180 Servos automatically move to right max as soon as power is applied.
- Sail Winch servo moves a tiny amount and then stops. If power wire is removed and then reapplied, the servo moves another tiny amount.
The code is very simple. First we call the
servo.attach(pin), and confirm the pin. We have also tried doing the manual uSec definition:
servo.attach(pin, 600, 2400). In our loop() we have tried
servo.write(*value from 0-180*) and
servo.writeMicroseconds(*value in PWM range*)
Power is being supplied by a 9v battery, the sensor (yellow) is directly in digital pwm pin, while red (power) is in + and black (ground) is in -.
I'm trying to decide whether I should invest in another arduino system.