Shop OBEX P1 Docs P2 Docs Learn Events
HB25 MOTOR CONTROL documenatation question — Parallax Forums

HB25 MOTOR CONTROL documenatation question

garyggaryg Posts: 420
edited 2013-02-25 16:50 in General Discussion
Hi
I just ordered a HB25 Motor Controller and am wondering if I've found all of the available documentation.
I've downloaded the HB-25 Motor Controller Documentation V1.2.PDF and the sample program for BS2.
I'll be testing this controller on a windshield wiper motor and if all works out well, I'll be ordering another one.

I'm just curious if I missed some available documentation.
I've been checking and really don't see anything like schematic drawings or information concerning
access to the error signals that the drive generates if there is a problem.

I'll run my tests based on any and all documenatation available.

After my testing is complete, I'm planning on possibly switching from BS2 to Propeller, but for now BS2 should do.

Thanks

Comments

  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-02-25 15:09
    I think you pretty much have everything that is available. If you run in to issues just ask here and someone will be able to help you out. I do not think you will have any issues with the windshield wiper motor. I like the fact that you can run two of them together and just use code for one with a quick pause after the first one starts to kick in the second one. I am running a couple 12V 7 Amp pump motors and they work great. I have some code I wrote to test them using a couple of push buttons. I will be happy to post it if you like.
  • garyggaryg Posts: 420
    edited 2013-02-25 15:44
    Thanks NWCCTV
    I would appreciate looking over your simple testing code.
    The concern I have, which I will confirm as soon as my HB25 arrives is that there is no good information available
    concerning the exact construction of these wiper motors. I'm thinking they will work out, but I will need to bypass the
    Wiper motor control board. I have a plan for the wiper control board bypass test circuit.
    I'll be confirming operation of the HB25 controller on a small brushed motor that I use for testing before connecting my
    1998 Chevy Tahoe wiper motors to the HB25.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-02-25 16:10
    OK. Let me dig up the code and I will post it here. Also, are you aware that you need an HB-25 for each motor? I originally thought that one would work for 2 motors because of the way it is worded. However, I soon found out that was not the case. You can control 2 motors simultaneously with two controllers.

    Edit: Here's the code. Let me know if you need further assistance. I think I have a slimmed down version of this also but I am not sure where I put it. This works great for testing one or two motors though.
    ' =========================================================================
    '   File...... HB-25 Motor PushbuttonTest.bs2
    '   Purpose... Tests One Or Two HB-25's Connected To P15
    '   Author.... Andy North
    '   E-mail.... [EMAIL="andyn@nwupgradesplus.com"]andyn@nwupgradesplus.com[/EMAIL]
    '   Updated... 10/13/12
    '
    '   {$STAMP BS2}
    '   {$PBASIC 2.5}
    ' -----[ Program Description ]---------------------------------------------
    ' This is a simple pushboutton test for one or two HB-25's. There are 2
    ' Pushbuttons connected to pins 3 and 4. HB-25 is connected to Pin 15. Pin
    ' 3 controls forward and pin 4 controls reverse. Future updates for various
    ' speeds planned.
     
    
       ' -----[ I/O Definitions ]----------------------------------
    HB25            PIN     15              ' I/O Pin For HB-25
    
    ' -----[ SUB Routines ]--------------------------------------------------
    ' -----[ Initialization ]--------------------------------------------------
    DO : LOOP UNTIL HB25 = 1                ' Wait For HB-25 Power Up
    LOW HB25                                ' Make I/O Pin Output/Low
    PAUSE 5                                 ' Wait For HB-25 To Initialize
    PULSOUT HB25, 750                       ' Stop Motor 1
    PAUSE 1                                 ' 1 mS Delay
    PULSOUT HB25, 750                       ' Stop Motor 2 (If Connected)
                                            ' The Above 2 Lines May Be Removed
                                            ' if using only 1 motor
    ' -----[ Program Code ]-----------------------------------------
      DO
                              ' Start DO Loop
    IF (IN3 = 1)  THEN        ' Checks if Pushbutton on IN3 is pressed,
                              ' If Yes then send pulseout command to Pin
        PULSOUT HB25, 500     ' 15  to rotate motor 1 forward.
        PAUSE 1               ' 1 mS Delay For Motor 2 Pulse
        PULSOUT HB25, 1000    ' send pulsout command to pin 15
                              ' to rotate motor 2 reverse.
        PAUSE 10                ' wait 10 ms
    ELSE
                              ' If no then
        PULSOUT HB25, 750     ' send pulsout stop command equivelent
                              ' to motor 1.
        PAUSE 1               ' 1 mS Delay For Motor 2 Pulse
        PULSOUT HB25, 750     ' send pulsout stop command equivelent
                              ' to motor 2.
        PAUSE 10              ' wait 10 ms
    IF (IN4 = 1)  THEN        ' Checks if Pushbutton on IN4 is pressed,
                              ' If Yes then send pulseout command to Pin
        PULSOUT HB25, 1000      ' 15  to rotate motor 1 reverse.
        PAUSE 1               ' 1 mS Delay For Motor 2 Pulse
        PULSOUT HB25, 500     ' send pulseout command to Pin 15 to
                              ' rotate motor 2 forward.
        PAUSE 10              ' wait 10 ms
    ELSE
                              ' If no then
        PULSOUT HB25, 750     ' send pulsout stop command equivelent
                              ' to motor 1.
        PAUSE 1               ' 1 mS Delay For Motor 2 Pulse
        PULSOUT HB25, 750     ' send pulsout stop command equivelent
                              ' to motor 2.
        PAUSE 10              ' wait 10 ms
     ENDIF                    ' Since there are 2 IF statements there
     ENDIF                    ' needs TO be 2 ENNDIF's.
     LOOP                     ' Continuous loop.
    
  • garyggaryg Posts: 420
    edited 2013-02-25 16:50
    Thanks
    The code will be helpful.
    I do realize that I will need two HB25s to control two motors individually, However
    as a part of my test, I think I'll end up connecting both of my wiper motors to one controller, just to see how much speed
    variation I get on two motors connected in parallel.
    Since my new platform will be driven using differential drive with two motors running in opposite directions, It will be
    very interesting to see the result.
    If my tests work out the way I'm expecting, I'll keep checking the clasifieds section for when I'll be needing another HB25.
    Sometimes these experiments take quite a bit of time because, once in a while, Life gets in the way.
Sign In or Register to comment.