Shop OBEX P1 Docs P2 Docs Learn Events
servo issue — Parallax Forums

servo issue

edited 2006-05-16 12:49 in General Discussion
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

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2006-05-15 13:31
    Could this be a power issue?
    Please post (attach) entire code.

    regards peter
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2006-05-15 21:08
    650 and 850 are counter rotation instructions...they should move. Not sure why they are going slowly, however. What are you using for power? What is your connection scheme?

    Ryan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ryan Clarke
    Parallax Tech Support

    RClarke@Parallax.com
  • edited 2006-05-16 12:29
    Tryed a different code; same result :

    [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.
    ·
  • edited 2006-05-16 12:49
    I think its the Adapter wich is only 500mA and low battery's
Sign In or Register to comment.