Brake light output via CAN?

Post Reply
User avatar
bexander
Posts: 866
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 71 times
Been thanked: 97 times

Brake light output via CAN?

Post 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.
jon volk
Posts: 574
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Brake light output via CAN?

Post 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
Formerly 92 E30 BMW Cabrio with Tesla power
User avatar
bexander
Posts: 866
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 71 times
Been thanked: 97 times

Re: Brake light output via CAN?

Post 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.
jon volk
Posts: 574
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Brake light output via CAN?

Post by jon volk »

Are you looking to have CAN be the sole trigger of the brake light, or supplement a switch?
Formerly 92 E30 BMW Cabrio with Tesla power
User avatar
johu
Site Admin
Posts: 6738
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 380 times
Been thanked: 1562 times
Contact:

Re: Brake light output via CAN?

Post by johu »

The trigger for the onboard brake light output is simply potnom <= brkout
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
bexander
Posts: 866
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 71 times
Been thanked: 97 times

Re: Brake light output via CAN?

Post by bexander »

I will have both. A switch on the brake pedal for mechanical brakes and CAN from the inverter for regen brake.
User avatar
bexander
Posts: 866
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 71 times
Been thanked: 97 times

Re: Brake light output via CAN?

Post 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.
Post Reply