Asked — Edited
Resolved Resolved by Rich!

Hb-25 Ramping

I need some help on something.

I have two Parallax HB-25 motor controllers. I have been working on getting them to start and stop smoother. They right now are jerky in starting and stopping. I contacted Parallax customer service with my problem. I am using an EZ-Bv4 microcontroller to drive the HBs.

Here is my question and answer from Parallax:

I am running two HB-25 with your aluminum mount and wheel kit that I purchased from your company I have them connected to an ARC microcontroller. I would like to know if these motors can be ramped. When they start up they jerk. I would like to make them startup easier and smoother. If yes do you have code that you can send me so I can code the software I am now using. By the way the HB-25s are awesome. They are very quiet.Ellis,

Parallax answer:

If they're jerking then that means they're getting a pulse value for a fast speed before they get one for slow speed. If you update the pulse from 1.5 ms toward 1 or 2 ms then the motors will ramp just fine. In fact, the demo code we have for the HB-25 (BASIC Stamp) smooth ramps up in one direction and then back down and does the same in the other direction.

Respectfully, Chris Savage Engineering Tech, Parallax Inc.

My problem is that Parallax always talks in ms when talking about their controller. I guess I am understanding this right that with most servos 1ms is reverse and 1.5ms is stop and 2ms is forward. How would I code this so the EZ-Bv4 could send the right signal to the HBs so they would not jerk when starting and stopping? I think I am right that ARC software does not use ms in their coding like Parallax does.

I am learning so anything you can tell me would be greatly appreciated.



Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

United Kingdom

I believe those controllers work the same way as modified servos. The modified servo controls should work with them as should the ramping script I posted yesterday.

If memory serves me correctly there is an init sequence needed for these too. This was discussed a few weeks ago and Jeremie posted the required ez-script. A quick forum search should find the topic.

FYI: 1ms is servo position 1, 1.5ms is 90 and 2ms is 180.


Rich thank you for the conversion. I already used the info provided earlier for the initialization of the HBs. I will look for the ramping shared earlier.

Thanks Ellis


Thanks for all the help. You really do make a great effort to help people.