Shop OBEX P1 Docs P2 Docs Learn Events
what up/ hb-25 — Parallax Forums

what up/ hb-25

Brian_BBrian_B Posts: 841
edited 2007-02-08 13:36 in Propeller 1
Been on vacation mike ? does anybody now if I have to do anything difernt than normal to interface the hb-25 motor controller with the propeller ?


Brian

Post Edited (Brian Beckius) : 1/28/2007 1:40:09 PM GMT

Comments

  • Beau SchwabeBeau Schwabe Posts: 6,547
    edited 2007-01-28 15:53
    Here is something I was playing with a few months ago... It's not complete, I was wanting to implement inverse ramping functions
    that work opposite of the current ramping implementation. As the existing program is, it allows you implement linear or exponential
    ramping if you wish or you can set an immediate mode to set a specific speed.


    Note:
    A negative Width value indicates Ramp mode
    A positive Width value indicates Immediate mode
    A "Zero" Width value deselects Motor2 - Only allowed for Motor2
    A negative Rate value will cause the motor to exponentially ramp
    A positive Rate value will cause the motor to linearly ramp

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Brian_BBrian_B Posts: 841
    edited 2007-01-28 16:08
    Thank's Beau,
    I won't have time untill tonight to try it , I will let you know how it goes.

    Brian
  • Brian_BBrian_B Posts: 841
    edited 2007-01-29 01:46
    Beau,
    PERFECT ! , just what I was looking for. latter this week i'm going to try it with 2 controllers & motors.

    Thanks, Brian


    PS. You can get the motor to react so fast it will flip over or it will ramp in slow,COOL !

    Post Edited (Brian Beckius) : 1/29/2007 2:15:31 AM GMT
    2160 x 1440 - 884K
  • Beau SchwabeBeau Schwabe Posts: 6,547
    edited 2007-01-29 02:36
    Brian,

    I'm glad that works for you. As it is for the ramp function it is basically "FAST to start, SLOW to finish" approach. This is beneficial if you want controlled stops without much overshoot.
    I wanted to implement just the opposite where it would be "SLOW to start, FAST to finish", but I have been busy with work doing layout for the next Propeller Chip. The inverse ramping
    would be beneficial to getting large loads up to operating speed where inertia plays a big role.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.

    Post Edited (Beau Schwabe (Parallax)) : 1/29/2007 5:43:57 AM GMT
  • Brian_BBrian_B Posts: 841
    edited 2007-01-29 02:43
    Beau,
    I got it to ramp up slow and to ramp down slow.

    PUB Demo
    HB25.SetMotorS(1500,1500)
    HB25.SetRamp(-5,5)
    HB25.start(0)
    HB25.Pause(4000000)

    Thanks, Brian

    updated: oh after messing with it a little more ,I see what you mean.

    Post Edited (Brian Beckius) : 1/29/2007 3:02:44 AM GMT
  • Brian_BBrian_B Posts: 841
    edited 2007-01-29 13:43
    Beau,
    In your code it looks like you set it up for two controllers , are they both using one pin with a jumper or two pins ?


    Thanks ,Brian
  • Beau SchwabeBeau Schwabe Posts: 6,547
    edited 2007-01-29 16:35
    Brian Beckius,

    Yes, that is correct.... One pin with a jumper.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Brian_BBrian_B Posts: 841
    edited 2007-02-08 13:36
    Hi,
    Heres a striped down version of Beau's driver to show you how little code it takes to run the HB-25.

    Brian
Sign In or Register to comment.