PDA

View Full Version : what up/ hb-25



Brian_B
01-28-2007, 12:22 PM
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

Beau Schwabe (Parallax)
01-28-2007, 10:53 PM
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 (mailto:bschwabe@parallax.com)

IC Layout Engineer
Parallax, Inc.

Brian_B
01-28-2007, 11:08 PM
Thank's Beau,
I won't have time untill tonight to try it , I will let you know how it goes.

Brian

Brian_B
01-29-2007, 08:46 AM
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

Beau Schwabe (Parallax)
01-29-2007, 09:36 AM
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 (mailto:bschwabe@parallax.com)

IC Layout Engineer
Parallax, Inc.

Post Edited (Beau Schwabe (Parallax)) : 1/29/2007 5:43:57 AM GMT

Brian_B
01-29-2007, 09:43 AM
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_B
01-29-2007, 08:43 PM
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 Schwabe (Parallax)
01-29-2007, 11:35 PM
Brian Beckius,

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

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe (mailto:bschwabe@parallax.com)

IC Layout Engineer
Parallax, Inc.

Brian_B
02-08-2007, 08:36 PM
Hi,
Heres a striped down version of Beau's driver to show you how little code it takes to run the HB-25.

Brian