I made some minor modifications to LeafCAN firmware today. First, I added display of remaining KWh in the battery pack, based on Phil Sadow’s formula of GIDs * 80 = Wh. Also, the display was a bit blurry when the values were updating rapidly, so I slowed down the refresh rate of the LCD to 250ms.
In order to make space for the KWh remaining value, I had to take out the % character in the SOC % display. Here is the new display:
The top line, from left to right, contains Battery Pack Remaining KWh, SOC (“GIDs”), SOC % (GIDs/281*100), and Remaining Fuel Bars.
The bottom line is unchanged, and contains Battery Pack Voltage, Battery Pack Current Draw (Amps).
You can download the latest release from github: https://github.com/lincomatic/LeafCAN/downloads. Note that I have added LeafCAN.hex, a precompiled file, for those who don’t have a working Arduino setup for compiling the code.
Previous: AVR CAN Bus Project: Step 4 – LeafCAN: Nissan Leaf SOC Meter
Next: AVR CAN Bus Project: LeafCAN v1.2 Released