Page 1 of 1
Brake light output via CAN?
Posted: Mon Oct 19, 2020 2:07 pm
by bexander
Is there any way to get brake light output via CAN?
If not, is there any other parameter that might be useful? Thottle pot values would result in brake light on when standing still.
Re: Brake light output via CAN?
Posted: Mon Oct 19, 2020 2:21 pm
by jon volk
EDIT, that wouldnt work, it would just get the brkout threshold value. <facepalm> What you would need to obtain that regen % value and use that as your trigger threshold. I'd have to go digging through, but you could always use the DC current value and trigger the brake light with any negative value
Re: Brake light output via CAN?
Posted: Mon Oct 19, 2020 3:11 pm
by bexander
I agree, so the question is then if there is a way to obtain the actual brk(regen) value?
DC current might work but I think it will vary with motor rpm. Will look into it if there is no easier way.
Re: Brake light output via CAN?
Posted: Mon Oct 19, 2020 3:22 pm
by jon volk
Are you looking to have CAN be the sole trigger of the brake light, or supplement a switch?
Re: Brake light output via CAN?
Posted: Mon Oct 19, 2020 3:30 pm
by johu
The trigger for the onboard brake light output is simply potnom <= brkout
Re: Brake light output via CAN?
Posted: Mon Oct 19, 2020 3:31 pm
by bexander
I will have both. A switch on the brake pedal for mechanical brakes and CAN from the inverter for regen brake.
Re: Brake light output via CAN?
Posted: Mon Oct 19, 2020 3:40 pm
by bexander
johu wrote: ↑Mon Oct 19, 2020 3:30 pm
The trigger for the onboard brake light output is simply potnom <= brkout
Ok, so brake light will be on when at stand still and pedal released or I'm a missing something?
Can of course turn of when rpm is close to 0. I already send rpm for speedometer purposes so should be straight forward.