Implementing e-brake switches on HBL2360

8 years 7 months ago #29529702 by bennyt
I was wondering if anyone can point me in the right direction, I have two dual channel Roboteq HBL2360 controllers in a lightweight 4WD Electric Vehicle. I have front and real mechanical disc brakes via 2x standard bicycle levers being split to 4 disc brakes(split front/rear), but need to implement e-brake switches to activate first before the mechanical discs using some hall switches in my levers. I will have the controllers running in Torque Mode via a single twist throttle and a momentary reversing switch.

Can I use a standard digital input on each controller to switch on the e-brake for both channels? To effectively give me front and rear e-brakes which activate before the mechanical? How do I configure this on the controller? Is it something to do with a "0" throttle command to the motors? Current config attached if its of any use.

I appreciate any help or guidance on this.

Cheers,
Ben


File Attachment:

File Name: Controller...1830.zip
File Size:2 KB
Attachments:

Please Log in or Create an account to join the conversation.

8 years 7 months ago #29529704 by TechSupport
If you are referring to our controllers logic braking[e-brake] (safety stop, or deadmans switch) then you can use a switch on a digital input that applies the e-brake.

Please Log in or Create an account to join the conversation.

8 years 7 months ago #29529706 by bennyt
Oh ok thanks, I wasn't 100% sure on the behavior of these options. As I need it to act the same way as a brake would on any other vehicle. Although it does seem the Deadmans Switch may be the answer as it doesn't require the motor command to be reset to 0. Is the Deadmans switch affected by the programmable deceleration?

Please Log in or Create an account to join the conversation.

8 years 7 months ago #29529708 by TechSupport
It send the motor a command of 0, and then when it is unlatched, it will resume the current motor command. Yes, the deceleration will be affected. I tested.

So if the deceleration is slow, then when the deadmans switch activates, it will slow down in the same rate that it would normally if you were to go from go to stop.

So if it takes 6 seconds to go from full speed to stop normally via a command, then the same amount of time would occur if you were using a deadmans switch.
The following user(s) said Thank You: bennyt

Please Log in or Create an account to join the conversation.

8 years 7 months ago #29529711 by bennyt
Awesome thanks, easier than I thought!

Please Log in or Create an account to join the conversation.

8 years 6 months ago #29529726 by bennyt
Just following up on this after some testing.

The Deadmans Switch seems to work OK in Open Loop mode, it functions just the same as sending the command back to 0 from the throttle (releasing the throttle in my case) and is affected by deceleration as you mentioned, and it allows you to resume throttle position after releasing the switch (brake lever in my setup). So all is great, apart from the fact that Open Loop Mode does not allow Motor "coasting".

However in Torque Mode (which I would rather use to get coasting) the Deadmans Switch does send a 0 command, but does not actively brake the motor, instead the motor just continues to "coast" with natural deceleration until you release the switch/lever at which stage the throttle resumes. So not much of a brake, more just a throttle on/off switch.

A Safety Stop in Torque Mode does cause the motor to brake suddenly but this is not affected by deceleration and does not allow the throttle to be resumed once the brake lever is released (throttle must be released to get the 0 command before throttling up again).

Is there another way to get this braking affect? Ideally I want the vehicle to accelerate via the throttle and coast when released. When brake lever is pulled the motor will brake/decelerate at desired setting until the brake lever is released or the motor is stopped. If the lever is released, throttle position will resume command as per usual.

Maybe scripting is the way to go?

Please Log in or Create an account to join the conversation.

8 years 6 months ago #29529727 by TechSupport
For what you are wanting would require a script, unless you are connected via serial to issue commands. to get the coasting to a brake would require the emergency stop function. Serial command !EX. Then to release completely from the emergency stop would require either a cycle of power (which you don't want), or serial command !MG.

Please Log in or Create an account to join the conversation.

8 years 6 months ago #29529728 by bennyt
Ok that makes sense. Will put it to my scripting guys to fiqure something out. Also do you know what the deceleration value is of the Emergency Stop?

Please Log in or Create an account to join the conversation.

8 years 6 months ago #29529729 by TechSupport
None. The fets are shut off.

Please Log in or Create an account to join the conversation.

8 years 6 months ago #29529730 by bennyt
Cool, and there's no long term affect of using this repeatedly as a brake?

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.078 seconds