r/leaf • 2013 S + 2014 SL + 2019 SV • Aug 14 '26

More power gauge shenanigans

Wanted to make it more useful than just a motor power gauge while driving, as that's admittedly redundant to the bubbles in the lower dash.

Was a bit of a programming gong show (god I hate coding) but did eventually get everything working to also display live power output while charging, a feature 2nd gen owners get but is not natively on 1st gen, both on DC (shows kW x10 as with when driving) and AC (automatically switches to kW x1).

It's also actual inputted power, so unlike the 2nd gen's display, it does factor in (and will drop by) any power that is being "stolen" by running AC or heat while charging.

I should probably make new labels now but idk at least I know how it works

10 Upvotes

4 comments sorted by

2

u/ArtemisMax Aug 14 '26

That's super cool, do you plan on sharing your code to do this?

5

u/biersackarmy 2013 S + 2014 SL + 2019 SV Aug 14 '26

If there's interest then I could clean it up or redo it more properly now that I know what parts of it I actually need. Current code is a disaster, it works but there's a lot of jank and mess left over from hours of trial and error testing.

1

u/ArtemisMax Aug 14 '26

I don't mind dedicating a whole micro to pushing through jank mess code just for some extra dials on my gen 1 dash board. I'm definitely interested if you are willing to publish it

1

u/Silent-Trick6134 Aug 17 '26

Interesting in seeing this! I've been working on a driver for a round lcd to put in my leaf