Shop OBEX P1 Docs P2 Docs Learn Events
ive got a simple servo problem — Parallax Forums

ive got a simple servo problem

ArchiverArchiver Posts: 46,084
edited 2001-11-09 09:39 in General Discussion
hello,
listen - i know im sounding like a complete loser when i ask this - but I
am really just beginning with the BASICX board and servos and am kinda lost.
I have a servo set up with the 5V supply and I am sending a signal to the
servo to move, however, no response is found. But, if i pull the connector
to the servo off then back on then off again, the servo jerks - this leads
me to believe that i have the timer off. here is my code now:

do
Call PulseOut(12,1382,1)
Call Sleep(30)
loop

its suppose to sleep for 30ms so i know that the last sleep call is wrong
but how do i fix it? thanx in advance



The TRUE beginner - Matt

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-11-09 02:33
    Are you using the Board of education? then contact parallax.
    Original Message
    From: Matthew Mangione <mlmangione_elect@s...>
    To: Parallax Basic Discussion <basicstamps@yahoogroups.com>; Basic X
    Discussion Group <basicx@yahoogroups.com>
    Sent: Thursday, November 08, 2001 9:28 PM
    Subject: [noparse][[/noparse]basicstamps] ive got a simple servo problem


    > hello,
    > listen - i know im sounding like a complete loser when i ask this - but I
    > am really just beginning with the BASICX board and servos and am kinda
    lost.
    > I have a servo set up with the 5V supply and I am sending a signal to the
    > servo to move, however, no response is found. But, if i pull the connector
    > to the servo off then back on then off again, the servo jerks - this leads
    > me to believe that i have the timer off. here is my code now:
    >
    > do
    > Call PulseOut(12,1382,1)
    > Call Sleep(30)
    > loop
    >
    > its suppose to sleep for 30ms so i know that the last sleep call is wrong
    > but how do i fix it? thanx in advance
    >
    >
    >
    > The TRUE beginner - Matt
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-11-09 04:08
    Hi Matt

    I dont know if that is your complete code or what your writing it on but
    what are you making a Call to?
    Try
    loop:
    pulsout 12,60000 ' 1 pulse 120 milliseconds in length
    pause 30
    goto loop

    How are you changing motor directions

    On Thu, 8 Nov 2001 21:28:22 -0500 "Matthew Mangione"
    <mlmangione_elect@s...> writes:
    > hello,
    > listen - i know im sounding like a complete loser when i ask
    > this - but I
    > am really just beginning with the BASICX board and servos and am
    > kinda lost.
    > I have a servo set up with the 5V supply and I am sending a signal
    > to the
    > servo to move, however, no response is found. But, if i pull the
    > connector
    > to the servo off then back on then off again, the servo jerks - this
    > leads
    > me to believe that i have the timer off. here is my code now:
    >
    > do
    > Call PulseOut(12,1382,1)
    > Call Sleep(30)
    > loop
    >
    > its suppose to sleep for 30ms so i know that the last sleep call is
    > wrong
    > but how do i fix it? thanx in advance
    >
    >
    >
    > The TRUE beginner - Matt
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-11-09 09:39
    Sounds like you have a basicx not a basic stamp, get a basic stamp and you
    will have heaps of support.
    Chris

    Original Message
    From: Matthew Mangione [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=aNiETEGH7M4A9hJ_WINqdLxxWocJVuNmDZprq8sQLv4vJSQM7D0_FRoKirBopsn1Re55-x4noFrIeL5F7LRVO7yTAPg]mlmangione_elect@s...[/url
    Sent: Friday, 9 November 2001 10:28 AM
    To: Parallax Basic Discussion; Basic X Discussion Group
    Subject: [noparse][[/noparse]basicstamps] ive got a simple servo problem


    hello,
    listen - i know im sounding like a complete loser when i ask this - but I
    am really just beginning with the BASICX board and servos and am kinda lost.
    I have a servo set up with the 5V supply and I am sending a signal to the
    servo to move, however, no response is found. But, if i pull the connector
    to the servo off then back on then off again, the servo jerks - this leads
    me to believe that i have the timer off. here is my code now:

    do
    Call PulseOut(12,1382,1)
    Call Sleep(30)
    loop

    its suppose to sleep for 30ms so i know that the last sleep call is wrong
    but how do i fix it? thanx in advance



    The TRUE beginner - Matt


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.