/Nissan-LEAF-Battery-Upgrade

Software and guides for upgrading LEAFs to bigger and newer batteries

Primary LanguageCGNU General Public License v3.0GPL-3.0

alt text

Nissan-LEAF-Battery-Upgrade

So you are looking to upgrade the battery in your LEAF? You've come to the right place for information and software/hardware required. Take some time to familiarize with the content.

Read this first

Start by reading all the terminology and info about what a battery upgrade, direct upgrade, paring, CAN-bridges etc. is by following this link to the wiki: https://github.com/dalathegreat/Nissan-LEAF-Battery-Upgrade/wiki

Getting the hardware

The BatteryUpgrade software runs on both the Muxsan 3-port CAN-bridge, and on the 2-port Budget CAN-bridge. This guide focuses on the 2-port since it is the easiest to source at the moment. Here are some purchase links

Note, for 2-port it has to be the BLUE PCB, the other varients are not supported.

Software needed to flash

3-port

  • Atmel Studio 7

2-port

Hardware needed to flash

3-port

  • Atmel AVRisp mkII

2-port

  • ST Link V2 (can be purchased for around 10€ on ebay / amazon / local electronics store)

Flashing instructions

3-port

See this video: https://youtu.be/eLcNSo2Vn6U?t=167

2-port

Flash with BridgeFlasher.exe located in software folder. The compiled .srec files are located in output folder. For ST LINK CLI, point the exe towards the "ST-LINK_CLI.exe" located in the "STM32 ST-LINK Utility" folder that appears after installing it.

This is what the BridgeFlasher.exe should look like. Press Start to flash. alt text

Connect the ST Link V2 to the J1 ports on the PCB. It can be hard to connect dupont wires here, so I recommend getting needle pins.

7 3.3V - J1

Nothing - J2

3 GND - J3

2 SWDIO - J4

6 SWCLK - J5

alt text

Wiring in the hardware

When installing the 2-port into the vehicle, here are the wiring instructions: · Red wire #1 -> +12V constant (fuse with 3A) · Red wire #2 -> +12V constant (fuse with 3A, join together with other red wire) · Purple -> EV-CAN Low, Green wire (battery side) · Green -> EV-CAN High, Blue wire (battery side) · Yellow -> EV-CAN Low, Green wire (vehicle side) · Blue -> EV-CAN High, Blue wire (vehicle side) · Black -> Ground · Black -> Ground

Here is an example on a 2012 LEAF: alt text

Software needed to make changes to code

Incase you want to make changes and actually recompile the code, you will need the following IDE

  • Keil uVision5

Dependencies 📖

This code was made possible with the help of Muxsan and their excellent 3-port hardware. Also massive thanks to my Patreon Glen for introducing me to the 2-port alternative.

Like this project? 💖

Leave a ⭐ If you think this project is useful. Consider hopping onto my Patreon to encourage more open-source projects!