servo issue
David van der Tuijn
Posts: 5
Hi,
When i test one servo at a time it goes perfect; but when i connect them both they "rotate" very slowly.
[noparse][[/noparse]code]
CPU.pulseOut(650, CPU.pins[noparse][[/noparse]12]);
CPU.pulseOut(850, CPU.pins[noparse][[/noparse]13]);
CPU.delay(20);
[noparse][[/noparse]/code]
Can it be programmed so it will "rotate" faster ?
David
When i test one servo at a time it goes perfect; but when i connect them both they "rotate" very slowly.
[noparse][[/noparse]code]
CPU.pulseOut(650, CPU.pins[noparse][[/noparse]12]);
CPU.pulseOut(850, CPU.pins[noparse][[/noparse]13]);
CPU.delay(20);
[noparse][[/noparse]/code]
Can it be programmed so it will "rotate" faster ?
David
Comments
Please post (attach) entire code.
regards peter
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
[noparse][[/noparse]code]
import stamp.core.*;
public class BoeBot
{
· static PWM pwmL = new PWM(CPU.pin12,173,2304);
· static PWM pwmR = new PWM(CPU.pin13,173,2304);
· public static void main()
· {
··· pwmL.update (220, 2304);
··· pwmR.update (126, 2304);
· }
}
[noparse][[/noparse]/code]
The servo's are directly connected to P12 and P13 (Carrier Board)
Using different power sources (adapter 6V, 9V, 4x 1.5V battery's) does not change the situation.
·