Willowfpv said:
I have a Kelly controller that supports regen braking via a 5v signal from a pot. I used a 5v thumb throttle on the left hand of my bars to act as the brake lever. I split the signal wire so that the signal goes to both the kelly controllers 5v analog regen pin and the CA v3 ebk pin.
That's an interesting problem.
Typically you want the CA to know that you are braking so that it can cut motor power. This isn't as big a deal if you are using PassThru throttle, but if you are using one of the feedback versions (Current, Power, Speed) then the CA can start winding up the throttle signal trying to compensate for the braking and when you release the brakes there will be a surprise high throttle level waiting...
The other small glitch is that the CA won't do it's normal throttle ramping trick when you release the brake - which may or may not be good.
Ideally your regen 'throttle' would have a micro switch at ZERO that could be used to signal the CA, but I can't say I've ever seen such a thing on a thumb throttle, so your hookup looks reasonable this what is in hand (I'm guessing from the title the regen throttle is a pot).
You need to set
EBk->SignalLvl = ActiveHigh so that the increased regen throttle voltage will tell the CA you are braking. I'm not exactly sure when the CA EBk input switches states but at some level of regen pot rotation the CA should 'see' the higher ebrake voltage and do the little icon dance on the main screen.
If the Kellys have a configurable voltage range for the regen input (like 1V-5V) you could stick a resistor, common silicon diode, or Schottky diode in series with the regen pot GND wire to bias the output up closer to the CA ebrake signal voltage so the CA would see it with less regen control deflection. Post back if the Kellys have such and adjustment and with the resistance of your pot/regen control and I can get you a resistor value to make that work.
Oh wait - we were talking about 12V braking setup in another thread - I think some extra details are needed here about your setup because of the whole 12V/5V controller/CA thing....