Shop OBEX P1 Docs P2 Docs Learn Events
URGENT-Need some help with HB-25 motor controller — Parallax Forums

URGENT-Need some help with HB-25 motor controller

b0ib0i07b0ib0i07 Posts: 33
edited 2010-09-25 07:15 in BASIC Stamp
I am trying to program a dc motor using the HB-25.
At first, i tried the sample program found on parallax website under the HB-25 product documentation.
The motor move smoothly forward and backwards.
Afterwards, i tried to program PWM.
The motor works fine but after a few tries, the motor would not move.
I re-ran the sample program found in the HB-25 documentation and this time round, the motor would not move either.

*12V dc motor used

*12V dc, 1.5A supplied to the HB-25

May i know what is the fault that had occured?

Comments

  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2010-09-24 06:55
    What do you mean by "Afterwards, i tried to program PWM."?? Do you have the example code you used for this?

    To help you we need some more details:

    - What controller are you using? (BS2, BS2SX, BS2PX, etc)

    - How is it wired up?

    - You have a 12v motor but how big is it and is a 1.5A supply enough?

    - The example code that was originally working.

    - The code and procedures you used for trying the PWM mode (whatever that is).

    With some more details we may be able to help.

    Robert
  • W9GFOW9GFO Posts: 4,010
    edited 2010-09-24 12:51
    There is a little quirk with the HB-25s. If you power them on at the same time as powering on your microcontroller there will be a fair chance that they will not respond. Sometimes they work fine, other times they don't.

    The solution is to power them on a moment after the microcontroller.

    Rich H
  • b0ib0i07b0ib0i07 Posts: 33
    edited 2010-09-24 21:32
    I got it up and working again. Think is my wiring fault. Thank you guys for the intention to help:lol:
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-09-25 07:15
    W9GFO wrote: »
    There is a little quirk with the HB-25s. If you power them on at the same time as powering on your microcontroller there will be a fair chance that they will not respond. Sometimes they work fine, other times they don't.

    The solution is to power them on a moment after the microcontroller.

    Rich H


    Thanks for pointing this out

    I have seen this on my Gate Opener that some time when you turn on the power switch some time it will not work
Sign In or Register to comment.