Nissan Leaf Gen 3 (2018 up EM57): Difference between revisions
Line 14: | Line 14: | ||
** J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors has only a .3mm trace to ground which likely won't last or work well. If this ground is required there is a large ground via right next to position 20 to solder to for a good ground. Will need to correct this in the next version once understood. | ** J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors has only a .3mm trace to ground which likely won't last or work well. If this ground is required there is a large ground via right next to position 20 to solder to for a good ground. Will need to correct this in the next version once understood. | ||
* R13 is a pull down resistor for the T_SINK input. This is at 3K3 in V0.0.1 but unsure if this is ideal. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier. | * R13 is a pull down resistor for the T_SINK input. This is at 3K3 in V0.0.1 but unsure if this is ideal. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier. | ||
* '''What connector options to use for the Open Inverter connections to get out of the inverter.''' | |||
Line 74: | Line 75: | ||
!Abbreviation | !Abbreviation | ||
!Description | !Description | ||
!AKA | |||
!Capabilities | !Capabilities | ||
! | ! | ||
Line 79: | Line 81: | ||
!Abbreviation | !Abbreviation | ||
!Description | !Description | ||
!AKA | |||
!Capabilities | !Capabilities | ||
|- | |- | ||
Line 84: | Line 87: | ||
| +12VSW | | +12VSW | ||
|Switched +12v | |Switched +12v | ||
| | |||
| | | | ||
| | | | ||
Line 89: | Line 93: | ||
| +12VSW | | +12VSW | ||
|Switched +12v | |Switched +12v | ||
| | |||
| | | | ||
|- | |- | ||
Line 94: | Line 99: | ||
|PRE□ | |PRE□ | ||
|Precharge contactor switched ground | |Precharge contactor switched ground | ||
| | |||
|4.5 amps recommended to use an economizer | |4.5 amps recommended to use an economizer | ||
| | | | ||
Line 99: | Line 105: | ||
|DCSW□ | |DCSW□ | ||
|EV battery contactor switched ground | |EV battery contactor switched ground | ||
| | |||
|4.5A recommended to use an economizer | |4.5A recommended to use an economizer | ||
|- | |- | ||
Line 104: | Line 111: | ||
|GND | |GND | ||
|Ground | |Ground | ||
| | |||
| | | | ||
| | | | ||
Line 109: | Line 117: | ||
|GND | |GND | ||
|Ground | |Ground | ||
| | |||
| | | | ||
|- | |- | ||
Line 114: | Line 123: | ||
|GND | |GND | ||
|Ground | |Ground | ||
| | |||
| | | | ||
| | | | ||
Line 119: | Line 129: | ||
|GND | |GND | ||
|Ground | |Ground | ||
| | |||
| | | | ||
|- | |- | ||
Line 124: | Line 135: | ||
|oERR□ | |oERR□ | ||
|Output - Error signal, switched ground | |Output - Error signal, switched ground | ||
| | |||
|1 amp | |1 amp | ||
| | | | ||
Line 129: | Line 141: | ||
|CRUISE * ° | |CRUISE * ° | ||
|Cruise control signal 12v / MOSI 3.3v | |Cruise control signal 12v / MOSI 3.3v | ||
| | |||
| | | | ||
|- | |- | ||
Line 134: | Line 147: | ||
|sSTRT* | |sSTRT* | ||
|Input, 12v start signal pulse | |Input, 12v start signal pulse | ||
| | |||
| | | | ||
| | | | ||
Line 139: | Line 153: | ||
|empty | |empty | ||
|empty | |empty | ||
| | |||
| | | | ||
|- | |- | ||
Line 144: | Line 159: | ||
|sFWD* | |sFWD* | ||
|Input, 12v forward | |Input, 12v forward | ||
| | |||
| | | | ||
| | | | ||
Line 149: | Line 165: | ||
|sBRAKE* | |sBRAKE* | ||
|Brake light input 12v | |Brake light input 12v | ||
| | |||
| | | | ||
|- | |- | ||
Line 154: | Line 171: | ||
|sREV* | |sREV* | ||
|Input, 12v reverse | |Input, 12v reverse | ||
| | |||
| | | | ||
| | | | ||
Line 159: | Line 177: | ||
|MTEMP+ | |MTEMP+ | ||
|Motor temp senor + | |Motor temp senor + | ||
| | |||
| | | | ||
|- | |- | ||
Line 164: | Line 183: | ||
|empty | |empty | ||
|empty | |empty | ||
| | |||
| | | | ||
| | | | ||
Line 169: | Line 189: | ||
|sBMS* | |sBMS* | ||
|Battery Management System error +12 signal | |Battery Management System error +12 signal | ||
| | |||
| | | | ||
|- | |- | ||
Line 174: | Line 195: | ||
|oBRK▲ | |oBRK▲ | ||
|Output, brake +12v (see SJ4) | |Output, brake +12v (see SJ4) | ||
| | |||
|1.5 amps | |1.5 amps | ||
| | | | ||
Line 179: | Line 201: | ||
|MTEMP- | |MTEMP- | ||
|Motor temp sensor - | |Motor temp sensor - | ||
| | |||
| | | | ||
|- | |- | ||
Line 184: | Line 207: | ||
|empty | |empty | ||
|empty | |empty | ||
| | |||
| | | | ||
| | | | ||
Line 189: | Line 213: | ||
|sBMS* | |sBMS* | ||
|Battery Management System error +12 signal | |Battery Management System error +12 signal | ||
| | |||
| | | | ||
|- | |- | ||
Line 194: | Line 219: | ||
|CANH | |CANH | ||
|CAN high signal (see SJH1) | |CAN high signal (see SJH1) | ||
| | |||
|120 ohm termination resistor solder jumpers | |120 ohm termination resistor solder jumpers | ||
| | | | ||
Line 199: | Line 225: | ||
|MTEMP- | |MTEMP- | ||
|Motor temp sensor - | |Motor temp sensor - | ||
| | |||
| | | | ||
|- | |- | ||
Line 204: | Line 231: | ||
|CANL | |CANL | ||
|CAN low signal (see SJL1) | |CAN low signal (see SJL1) | ||
| | |||
|120 ohm termination resistor solder jumpers | |120 ohm termination resistor solder jumpers | ||
| | | | ||
Line 209: | Line 237: | ||
|empty | |empty | ||
|empty | |empty | ||
| | |||
| | | | ||
|- | |- | ||
Line 214: | Line 243: | ||
|oUVTG□ | |oUVTG□ | ||
|optional output? 1amp max switched ground | |optional output? 1amp max switched ground | ||
| | |||
|1 amp | |1 amp | ||
| | | | ||
Line 219: | Line 249: | ||
|empty | |empty | ||
|empty | |empty | ||
| | |||
| | | | ||
|- | |- | ||
Line 224: | Line 255: | ||
|empty | |empty | ||
|empty | |empty | ||
| | |||
| | | | ||
| | | | ||
Line 229: | Line 261: | ||
|S1 | |S1 | ||
|Encoder S1 wire | |Encoder S1 wire | ||
| | |||
| | | | ||
|- | |- | ||
Line 234: | Line 267: | ||
|S3 | |S3 | ||
|Encoder S3 wire | |Encoder S3 wire | ||
| | |||
| | | | ||
| | | | ||
Line 239: | Line 273: | ||
|empty | |empty | ||
|empty | |empty | ||
| | |||
| | | | ||
|- | |- | ||
Line 244: | Line 279: | ||
| +5V | | +5V | ||
| +5V for sensors (like throttle) | | +5V for sensors (like throttle) | ||
| | |||
| | | | ||
| | | | ||
Line 249: | Line 285: | ||
|S4 | |S4 | ||
|Encoder S4 wire | |Encoder S4 wire | ||
| | |||
| | | | ||
|- | |- | ||
Line 254: | Line 291: | ||
|S2 | |S2 | ||
|Encoder S2 wire | |Encoder S2 wire | ||
| | |||
| | | | ||
| | | | ||
Line 259: | Line 297: | ||
| +5V | | +5V | ||
| +5V for sensors (like throttle) | | +5V for sensors (like throttle) | ||
| | |||
| | | | ||
|- | |- | ||
Line 264: | Line 303: | ||
|oTEMP□ | |oTEMP□ | ||
|over temp signal, switched ground, 1 amp max | |over temp signal, switched ground, 1 amp max | ||
| | |||
|1 amp, has EMI filter capacitor (C11) for PWM | |1 amp, has EMI filter capacitor (C11) for PWM | ||
| | | | ||
Line 269: | Line 309: | ||
|R2 | |R2 | ||
|Encoder R2 wire | |Encoder R2 wire | ||
| | |||
| | | | ||
|- | |- | ||
Line 274: | Line 315: | ||
|R1 | |R1 | ||
|Encoder R1 wire | |Encoder R1 wire | ||
| | |||
| | | | ||
| | | | ||
Line 279: | Line 321: | ||
|sE-STOP | |sE-STOP | ||
|Optional Emergency stop switch (see SJ5) | |Optional Emergency stop switch (see SJ5) | ||
| | |||
|Can add an E-Stop switch to 12v. | |Can add an E-Stop switch to 12v. | ||
|} | |} | ||
Line 321: | Line 364: | ||
'''**add economizer circuit if not in contactor**''' | '''**add economizer circuit if not in contactor**''' | ||
<nowiki>**</nowiki>"debounce" capacitors on each gate. Required? Need to change? | <nowiki>**</nowiki>100nF "debounce" capacitors on each gate. Required? Need to change? Contactor chatter issues?** |
Revision as of 23:59, 21 October 2023
If you scanned the QR code on your adapter board you should be in the right place to help set it up!
This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the open inverter mini main board
This is a work in progress...
Things to verify
Some of the info was not completely clear for the development of this board. Things that need to be verified:
- The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.) Need to verify this does not skew the address voltage and change the address. There are vias to measure the voltage in the board address block to help.
- The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights. Above about 2.7v the brake lights should go on. This depends on if the STM32 can push enough power to overcome a few components. Trying to give a wider range of available addresses and still have the brake light output trigger in regen. The high side switch turns on at around 1.2v on the enable line, that's what the zener blocking diode is for.
- R3 and R9 are setup as 0R (jumper) resistors as Nissan had them. These should not be populated for now.
- R2 & R4 are unclear grounds. Need to figure out if these are in fact required grounds.
- J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors has only a .3mm trace to ground which likely won't last or work well. If this ground is required there is a large ground via right next to position 20 to solder to for a good ground. Will need to correct this in the next version once understood.
- R13 is a pull down resistor for the T_SINK input. This is at 3K3 in V0.0.1 but unsure if this is ideal. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.
- What connector options to use for the Open Inverter connections to get out of the inverter.
There are optional jumpers on both the adapter board and the mini mainboard.
Setting up the mini mainboard jumpers
SJ1 (mini mainboard back) enables a 500 ohm pull-up resistor that is needed for open collector encoders. In the case of the EM57 motor it **is / is not required**.
SJ3 (mini mainboard) soldered to the left is setup for cruise control 12v input. Soldered to the right is 3.3v MOSI for SPI communications. Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result. In this case the 3 position solder jumper should be connected middle and the left and should arrive with a small copper trace between the 2.
Setting up the 3rd generation Leaf adapter board jumpers
SJ4 Leaf adapter board lower right side is a shorted jumper. This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.) This line is shared between a board address and a brake light output. Once this is proven out there should be no need to change this jumper.
SJ5 Is an Emergency Stop (E-Stop) input to quickly, non-destructively, and safely shut down the inverter. To use an E-Stop function, cut the SJ5 jumper. To ignore the E-Stop functionality just leave the SJ5 jumper closed / shorted.
SJH1 & SJL1 connects the CAN high line to a resistor pair to provide a 120 ohm termination resistor if desired. These should be either both soldered or open only, not one open one closed. There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines. There is also a TVS diode (D6) right next to the 40pos. connector for static protection.
Soldering on the Nissan connectors
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter's internal Nissan board to wire connectors.
**Add different connector images**
**add different connector part numbers**
**add female plug housing part numbers**
**add female terminal part numbers**
**add wire size ranges for terminals**
**add crimper options**
40 position Leaf connector modifications
If you are using the factory Leaf 40 position connector there are some open inverter specific wires that need to be added.
40 position connector pin out:
Pos. | Abbreviation | Description | AKA | Capabilities | Pos. | Abbreviation | Description | AKA | Capabilities | |
---|---|---|---|---|---|---|---|---|---|---|
1 | +12VSW | Switched +12v | 21 | +12VSW | Switched +12v | |||||
2 | PRE□ | Precharge contactor switched ground | 4.5 amps recommended to use an economizer | 22 | DCSW□ | EV battery contactor switched ground | 4.5A recommended to use an economizer | |||
3 | GND | Ground | 23 | GND | Ground | |||||
4 | GND | Ground | 24 | GND | Ground | |||||
5 | oERR□ | Output - Error signal, switched ground | 1 amp | 25 | CRUISE * ° | Cruise control signal 12v / MOSI 3.3v | ||||
6 | sSTRT* | Input, 12v start signal pulse | 26 | empty | empty | |||||
7 | sFWD* | Input, 12v forward | 27 | sBRAKE* | Brake light input 12v | |||||
8 | sREV* | Input, 12v reverse | 28 | MTEMP+ | Motor temp senor + | |||||
9 | empty | empty | 29 | sBMS* | Battery Management System error +12 signal | |||||
10 | oBRK▲ | Output, brake +12v (see SJ4) | 1.5 amps | 30 | MTEMP- | Motor temp sensor - | ||||
11 | empty | empty | 31 | sBMS* | Battery Management System error +12 signal | |||||
12 | CANH | CAN high signal (see SJH1) | 120 ohm termination resistor solder jumpers | 32 | MTEMP- | Motor temp sensor - | ||||
13 | CANL | CAN low signal (see SJL1) | 120 ohm termination resistor solder jumpers | 33 | empty | empty | ||||
14 | oUVTG□ | optional output? 1amp max switched ground | 1 amp | 34 | empty | empty | ||||
15 | empty | empty | 35 | S1 | Encoder S1 wire | |||||
16 | S3 | Encoder S3 wire | 36 | empty | empty | |||||
17 | +5V | +5V for sensors (like throttle) | 37 | S4 | Encoder S4 wire | |||||
18 | S2 | Encoder S2 wire | 38 | +5V | +5V for sensors (like throttle) | |||||
19 | oTEMP□ | over temp signal, switched ground, 1 amp max | 1 amp, has EMI filter capacitor (C11) for PWM | 39 | R2 | Encoder R2 wire | ||||
20 | R1 | Encoder R1 wire | 40 | sE-STOP | Optional Emergency stop switch (see SJ5) | Can add an E-Stop switch to 12v. |
KEY |
* = 12v Signal |
° - 0-3.3v Signal |
□ = Switched ground |
▲ = Switched +12v |
32 position connector
This connector and harness should not need any modifications.
Programming the ESP32 Wi-Fi module
Solder jumper JP8 & J8 set the programming header voltage to either 5.3v or 3.3v. Use only 1 header to set the voltage to your programmer.
Follow instructions here **add link*
**add info about programming with the STM32 processor programmed already**
**add info about the boot delay** ESP32 boot delay R & C is set to the commonly recommended 10k resistor & 1uF in V0.0.1. Not sure how / why 4k7 / .1uF was chosen but can easily switch back.
Programming the STM32
Add info on programming the STM32 processor.
**settings info** link..
**options** link..
Extra header J3
**add info about the extra header** what's the use case?
Contactor outputs, PRE & DCSW
**4.5 amps max**
**add economizer circuit if not in contactor**
**100nF "debounce" capacitors on each gate. Required? Need to change? Contactor chatter issues?**