Shop OBEX P1 Docs P2 Docs Learn Events
Motor precision stopping — Parallax Forums

Motor precision stopping

ArchiverArchiver Posts: 46,084
edited 2003-08-12 04:30 in General Discussion
I will be getting a motor with a built in tacometer and gear box to
slow it to 25RPM, but I don't know the gear ratio or motor RPM
before the gearbox. I was wondering if it was possible to make the
motor stop at a precision of 1 degrees or less usign a basic stamp?

The motor would have a preset number of revolutions to make (17 624
for example) and it would have to stop exactly at 17 624, I was
thinking of making it slow down as slow as possible when it's about
100 revolutions from the destination to allow it to stop at exactly
the preset number.

Would this be possible?

Thanks

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-08-11 20:14
    Depends on how you do it.... Faced with your challenge I'd probably
    install a PWMPAL to do the counting in the background. Still, your idea
    about slowing is a good one. When you get close you can stop talking to
    the PWMPAL and start monitoring the input pin manually so that you can
    stop dead on. By using the PWMPAL to work in the background while the
    motor is turning fast, your program can do other things.

    -- Jon Williams
    -- Parallax


    Original Message
    From: ch2surf [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=mt4Wg5_JY00vdMtYQzLNndtV1JgaxCfEJZK9B-V_iUJIH4uPWtRhIy3I89PDidnEZgE7TMPT8VggM953U2CU3yUNwg]sachacrompton@v...[/url
    Sent: Monday, August 11, 2003 1:16 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Motor precision stopping


    I will be getting a motor with a built in tacometer and gear box to
    slow it to 25RPM, but I don't know the gear ratio or motor RPM
    before the gearbox. I was wondering if it was possible to make the
    motor stop at a precision of 1 degrees or less usign a basic stamp?

    The motor would have a preset number of revolutions to make (17 624
    for example) and it would have to stop exactly at 17 624, I was
    thinking of making it slow down as slow as possible when it's about
    100 revolutions from the destination to allow it to stop at exactly
    the preset number.

    Would this be possible?

    Thanks




    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 01:36
    What's PWMPAL?

    Thanks

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Depends on how you do it.... Faced with your challenge I'd
    probably
    > install a PWMPAL to do the counting in the background. Still,
    your idea
    > about slowing is a good one. When you get close you can stop
    talking to
    > the PWMPAL and start monitoring the input pin manually so that you
    can
    > stop dead on. By using the PWMPAL to work in the background while
    the
    > motor is turning fast, your program can do other things.
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 01:51
    I found what the PWMPAL is but it doesnt seem to be compatible with
    the BASIC Stamp 2p40, is it? Can the BASIC Stamp 2p40 do the
    counting by itself?

    Thanks

    --- In basicstamps@yahoogroups.com, "ch2surf" <sachacrompton@v...>
    wrote:
    > What's PWMPAL?
    >
    > Thanks
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams"
    <jwilliams@p...>
    > wrote:
    > > Depends on how you do it.... Faced with your challenge I'd
    > probably
    > > install a PWMPAL to do the counting in the background. Still,
    > your idea
    > > about slowing is a good one. When you get close you can stop
    > talking to
    > > the PWMPAL and start monitoring the input pin manually so that
    you
    > can
    > > stop dead on. By using the PWMPAL to work in the background
    while
    > the
    > > motor is turning fast, your program can do other things.
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 04:29
    It's a PWM pulse controller and pulse counter that mounts under a 24-pin
    Stamp. You can find it on our web site.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: ch2surf [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=LNCViikSIIP0F8HaX6o0kPjfngQByfnyCjkIslqi5-WD2_DGkd6NVV4oZq-RKmuB8HS7EoIni4sc_Zv8wQ_ia-U6]sachacrompton@v...[/url
    Sent: Monday, August 11, 2003 7:37 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Motor precision stopping


    What's PWMPAL?

    Thanks

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > Depends on how you do it.... Faced with your challenge I'd
    probably
    > install a PWMPAL to do the counting in the background. Still,
    your idea
    > about slowing is a good one. When you get close you can stop
    talking to
    > the PWMPAL and start monitoring the input pin manually so that you
    can
    > stop dead on. By using the PWMPAL to work in the background while
    the
    > motor is turning fast, your program can do other things.



    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 04:30
    Depends on the rate and what you would like to do -- if anything --
    while counting. One could, create an adaptor that would allow the
    PWMPAL to fit under a BS2p-40.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: ch2surf [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=56Sb3v4K6EotFS2IpkleRpQ06-Us6btanuMnvIj8osxQSKymYfH6Ku96Ra6hvT0Xeu6BIW894QICcedDZD9Oje35Yw]sachacrompton@v...[/url
    Sent: Monday, August 11, 2003 7:52 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Motor precision stopping


    I found what the PWMPAL is but it doesnt seem to be compatible with
    the BASIC Stamp 2p40, is it? Can the BASIC Stamp 2p40 do the
    counting by itself?

    Thanks

    --- In basicstamps@yahoogroups.com, "ch2surf" <sachacrompton@v...>
    wrote:
    > What's PWMPAL?
    >
    > Thanks
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams"
    <jwilliams@p...>
    > wrote:
    > > Depends on how you do it.... Faced with your challenge I'd
    > probably
    > > install a PWMPAL to do the counting in the background. Still,
    > your idea
    > > about slowing is a good one. When you get close you can stop
    > talking to
    > > the PWMPAL and start monitoring the input pin manually so that
    you
    > can
    > > stop dead on. By using the PWMPAL to work in the background
    while
    > the
    > > motor is turning fast, your program can do other things.


    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
Sign In or Register to comment.