HB-25 and communication Timeout Mode
Tony B.
Posts: 356
I am working with a spin stamp on a BOE driving two HB-25 Moter controllers in Mode 1 (jumper installed).· I am using mode one because I want to send one pulse to trigger the motors to run.· Instead I am having to refresh them like a servo and in that case the controllers work and the motors run.· If I don't refresh the contollers like a servo the motors jerk like there trying to start but never do with the single pulse.· According to the documentation they must be in Communication Timeout Mode.· The problem is in trying to understand the proceedure for toggling this mode.· I have included the procedure below.· The real problem is in understanding what is going on between steps 3 and·4 (remove what? and when was I suppose to have turned off the power?)
To toggle the state of the Timeout mode:
1. Disconnect the servo input cable from the HB-25. If there is a daisy-chained cable to a second unit remove it as well. It makes no difference whether the Mode Jumper (J) is installed.
2. Apply power to the HB-25.
3. With the power on change the state of the Mode Jumper by installing the jumper if it is removed or removing it if it is installed.
4. Remove and re-apply power.
The timeout state should now be toggled. To change it back, repeat the above steps.
Any help in understanding this proceedure or other issues unseen by me would be most appreciated.
Thanks,
Tony
To toggle the state of the Timeout mode:
1. Disconnect the servo input cable from the HB-25. If there is a daisy-chained cable to a second unit remove it as well. It makes no difference whether the Mode Jumper (J) is installed.
2. Apply power to the HB-25.
3. With the power on change the state of the Mode Jumper by installing the jumper if it is removed or removing it if it is installed.
4. Remove and re-apply power.
The timeout state should now be toggled. To change it back, repeat the above steps.
Any help in understanding this proceedure or other issues unseen by me would be most appreciated.
Thanks,
Tony
Comments
4. Remove and re-apply power.
Means Remoew POWER CABLE else Switch power off. Then Apply it again (Switch POWER ON)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
The problem is I am still fighting the same problem as above.· Even thogh I have tried to cancel the timeout mode three times.· I still have to keep refreshing the HB-25 motor controllers like a servo instead of one pulse control.
This is getting very frustrating
I have attached the simple test code I am working with.· With the repeat statement in it works remove it and it fails
Still any help would be appreciated.
Tony
Post Edited (T Bill) : 10/24/2009 8:22:04 PM GMT
As I read the documentation, you may not·want to be in Communication Timeout Mode.
"Communication Timeout Mode
The HB-25 has a selectable Timeout mode. When this mode is enabled, the HB-25 will shut off the motor
after 4 seconds if it does not receive pulses from the microcontroller. Once the motor is shut off, if the
HB-25 receives a valid pulse again, it will restart the motor. Timeout mode should always be enabled in
applications where a failure of your microcontroller could cause a dangerous situation or safety risk, or
potentially cause damage to your application.
When this mode is enabled, the HB-25 will require refreshing by the microcontroller like a servo. These
pulses could be 20 ms – 50 ms apart as would be typical with a servo, but may be up to 4 seconds apart."
Are you running Mode 1 to seperate HB-25's on seperate pin's? Looks like it in your code. Pin 14 and 15?
Wish I had some HB-25's to play with, but for now just going by the docs.
Jim
The only way I can make the controllers work right now is by refreshing them like you would servos.
I believe I have not been able to get Timeout mode off even though I have tried numerous times.· Any one have this problem? A solution?
Thanks
Tony
I guess there is no way to know what Mode you are in at any given time. There should be a factory retset, but alas there is not.
Maybe you have tried to do the Mode reset an odd number of times an actually set it back to where you do not want it.
I would try the Mode reset one more time, but once only.
Let's see what happens.
Jim
Tried the shutoff procedure 1 time. No change. Below is a list of testing notes.
1. Still need to refresh to make work
2. Sometimes on reset of Spin stamp (program in EEPROM) only one side will start. Not always the same controller. If I cycle power to HB-25s then both will run.
3. If the Spin stamp is running and both controlers running and I shut off Spin Stamp and leave power on to contollers the wheels stop.
Could the 3.3 volt pin output of the Spin Stamp be the problem?
My robotic project is stopped till I get this solved. I sure appreciate you help
Tony