Anyway, got them, got the SERVO sketch and tried one.
External power added.
NOTHING.
It uses pin 9 as the output.... So that is the second pin (from the right) on the second row (from the left) looking at the arduino with the USB to the LEFT.
Correct?
The 3 wires are RED, BROWN and ORANGE.
Lovely how they aren't explained what is what.
From what I gather:
BROWN - Power, NEGATIVE.
RED - Power, POSITIVE. (5 volts)
YELLOW - Signal.
Hi,
I don't think that is pin 9! But again you don't say which Arduino your using?? Don't seem to be a Uno or Nano, with a pin-9 in that position.
It uses pin 9 as the output.... So that is the second pin (from the right) on the second row (from the left) looking at the arduino with the USB to the LEFT. Correct?
All Arduino pins are usually very clearly marked and numbered, no need to guess!! The 3 cables are usually BLK/BWN for GND, RED for 5v, and the signal Orange/Yellow.
If you code is OK? and we can't see it, then the pin number is wrong, or you have a wiring problem?
Do not power the servo from the Arduino, use a seperate power supply or batteries, do connect both GND's
(Strange, I am not getting notifications of replies.)
It seems there's a fault with the system, no one is getting any notifications at the moment, or so I'm told...
RParker:
It might be the pulses should be in the range of
0 to 1 or 2 ms.
so,,
repeating 50 to 100 times per second may be something like right.
Not quite: 1 to 2ms, with 1.5 as "neutral" or 90 degrees, and yes 50Hz is the normal repeat. You can change the repeat by changing the value of REFRESH_INTERVAL in servo.h from its standard 20ms. Pic attached is a scope trace from a servo attached with the default pulse of 1.5ms at 50Hz.