Zombiverter not switching to charge mode with Leaf PDM
Zombiverter not switching to charge mode with Leaf PDM
Apologies for all the questions below.
I have the Leaf drive unit working well and can read the Orion BMS but can't get the Zombiverter board to sense a Type 2 plug in the charge port.
The resistors are correct and I'm seeing the PPVal ADC counts change and have set the ppthresh between the no plug and plug in receptacle but opmode doesn't change.
Is there something I haven't set. What is required for opmode and chgtyp to register PPVal is below ppthresh?
Cell voltages are read correctly and between BMS_Vmin and Vmax but are these required to indicate the charge plug is inserted as the BMS is only powered when the ignition is turned on.
Does the BMS need to be running before the plug is inserted and when ign is on, does that stop the plug being sensed but tried it with BMS powered as well.
Can I assume the HV contactors close to allow charging to commence when the plug is detected.
I have the Leaf drive unit working well and can read the Orion BMS but can't get the Zombiverter board to sense a Type 2 plug in the charge port.
The resistors are correct and I'm seeing the PPVal ADC counts change and have set the ppthresh between the no plug and plug in receptacle but opmode doesn't change.
Is there something I haven't set. What is required for opmode and chgtyp to register PPVal is below ppthresh?
Cell voltages are read correctly and between BMS_Vmin and Vmax but are these required to indicate the charge plug is inserted as the BMS is only powered when the ignition is turned on.
Does the BMS need to be running before the plug is inserted and when ign is on, does that stop the plug being sensed but tried it with BMS powered as well.
Can I assume the HV contactors close to allow charging to commence when the plug is detected.
- Attachments
-
- params.json
- (2.14 KiB) Downloaded 328 times
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
Why is the charge port not fully connected to the PDM? The PDM will tell the Zombie via CAN that a plug is inserted and its ready to charge.
Have you wired the PDM with a permanent power and a switched ignition via the Zombie controlled relay?
Try setting charge interface to Chademo, there is a known bug that needs resolving when using PP detect.
Here is Damiens truck with leaf drivetrain params:
https://github.com/damienmaguire/Stm32- ... k220a.json
Have you wired the PDM with a permanent power and a switched ignition via the Zombie controlled relay?
Try setting charge interface to Chademo, there is a known bug that needs resolving when using PP detect.
Here is Damiens truck with leaf drivetrain params:
https://github.com/damienmaguire/Stm32- ... k220a.json
Re: Zombiverter not switching to charge mode with Leaf PDM
The charge port and wiring is correctly connected to the PDM as the drive unit operates correctly.tom91 wrote: ↑Sun Dec 15, 2024 1:25 pm Why is the charge port not fully connected to the PDM? The PDM will tell the Zombie via CAN that a plug is inserted and its ready to charge.
Have you wired the PDM with a permanent power and a switched ignition via the Zombie controlled relay?
Try setting charge interface to Chademo, there is a known bug that needs resolving when using PP detect.
I just set the charge interface to Chademo and thought all was working but the contactors dropped out at precharge with volts lower than udcsw. Also did when keying ignition.
Somehow setting Chademo must throw in 450v in to udcsw so set it back to 200 which is my lowest battery volts when discharged but the plug is not detected again.
Is there a minimum udcsw when Chademo is set?
Also noted that the PPVal ADC counts are higher when the ignition is on. The 5v doesn't change.
Is this so that the plug is not sensed with ignition on?
Edit:- If I key the ignition on then off and then insert the plug, the plug is correctly sensed, displays Charge and AC for a second and pre-charge commences but a second later an error udcsw too low is displayed.
To reset and try again I have to key the ign on and off. The contactors work correctly with ignition but with plug detection, it only seems to wait a second as Charge and AC are only displayed for an instant before udcsw too low is displayed.
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
Why are you looking at this then? PP should be to the PDM NOT the Zombie.
What shunt are you using?
Also UDCsw is not impacted by anything unless the BMS type Kangoo or Leaf is selected or the Shunt BMW S-Box or VAG
Having the UDCsw change is very strange behaviour that I have not heard of before.
Re: Zombiverter not switching to charge mode with Leaf PDM
Thanks for replying.tom91 wrote: ↑Sun Dec 15, 2024 4:21 pm Why are you looking at this then? PP should be to the PDM NOT the Zombie.
What shunt are you using?
Also UDCsw is not impacted by anything unless the BMS type Kangoo or Leaf is selected or the Shunt BMW S-Box or VAG
Having the UDCsw change is very strange behaviour that I have not heard of before.
As per the instructions, PP is connected to term 29 and CP term 30 of the PDM connector and in the Zombie notes, an analogue input is used to detect the plug using two resistors, one from PP to ground (4.7K) and a 330R from 12v to the Analogue input.
Are you saying this isn't required using the Leaf PDM?
Using the Isabellenhutte shunt which is working well.
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
So yes the chargeport is ONLY to the PDM.
Re: Zombiverter not switching to charge mode with Leaf PDM
I disconnected the resistors and analogue input so the wires are clean from the socket to the PDM terminals 29 and 30 but now nothing happens when the plug is in the socket.
Have disabled PP detect from the Analogue input but getting no-where.
Problem is knowing what all the parameters actually mean and if I can get my head around them all, will update the wiki with a description and when to use each one as the info is very fragmented.
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
What version of the PDM do you have?
Also what information have you used the wire up the PDM 12V supplies?
The parameter that the Nissan PDM should update is : PlugDet - Based on it seeing the right signals at the the port with plug inserted.
These two need to be set like this, So interface to none/unused and chargemodes needs to be nissan leaf pdm.
Do you have the ability to capture CAN logs?
Also what information have you used the wire up the PDM 12V supplies?
The parameter that the Nissan PDM should update is : PlugDet - Based on it seeing the right signals at the the port with plug inserted.
Code: Select all
"interface": 0,
"chargemodes": 3,
Do you have the ability to capture CAN logs?
Re: Zombiverter not switching to charge mode with Leaf PDM
The Leaf drive unit is a 2015 unit. Not sure if that's Gen 1 or 2 but guess 2.
Followed the general info in the wiki for using the Leaf drive unit as attached.
I did have interface selected to Chademo but will try setting it off tomoz.
Chargemodes is set to Leaf_PDM.
Yes I can capture CAN messages using Kvaser CanKing.
Followed the general info in the wiki for using the Leaf drive unit as attached.
I did have interface selected to Chademo but will try setting it off tomoz.
Chargemodes is set to Leaf_PDM.
Yes I can capture CAN messages using Kvaser CanKing.
Re: Zombiverter not switching to charge mode with Leaf PDM
With interface set to 0 and chargemode set to Leaf_PDM, the plug is not detected when inserted. PlugDet is still not detected.
If I key the ignition though, my EVSE connects and the car signals for a charge but with 0 amps.
Surprisingly the car stays in drive mode which is not good anyway with plug inserted.
Is the power on relay supply to PDM pin 16 required to be on when charging?
Which scenario does the Zombiverter require the resistors and analogue input to detect the plug insertion as the diagram is on the Leaf PDM wiki pages.
If I key the ignition though, my EVSE connects and the car signals for a charge but with 0 amps.
Surprisingly the car stays in drive mode which is not good anyway with plug inserted.
Is the power on relay supply to PDM pin 16 required to be on when charging?
Which scenario does the Zombiverter require the resistors and analogue input to detect the plug insertion as the diagram is on the Leaf PDM wiki pages.
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
Please log the bus for me, start log then insert plug.
That is the current zombie logic, drive mode wont change to charge mode to keep you from getting stranded.
Not sure, might need some tweaking of logic to get it working. Will ask Damien about his wiring in his truck.
None, where is this shown?!? if its on the Zombieverter page it is because thats the page about all Zombieverter functions. It would be nice if people made diagrams and the posted parameter configuration for them per application.
Re: Zombiverter not switching to charge mode with Leaf PDM
Re logging the CAN bus. I just looked at the bus using the Orion software.
Plug out frame 0x390 0 = 44 1 = 00 2 = 00 3 = 02 4 = 00 5 = 8C 6 = 00 7 = 0A
Plug in frame 0x390 0 = 44 1 = 00 2 = 00 3 = B2 4 = 00 5 = 84 6 = 00 7 = 2F
This was with the ignition on.
Regarding the resistor circuit, you are correct it is on the generic Zombie wiki pages and will take your hint and add my project using the whole Leaf drive unit when operational.
Plug out frame 0x390 0 = 44 1 = 00 2 = 00 3 = 02 4 = 00 5 = 8C 6 = 00 7 = 0A
Plug in frame 0x390 0 = 44 1 = 00 2 = 00 3 = B2 4 = 00 5 = 84 6 = 00 7 = 2F
This was with the ignition on.
Regarding the resistor circuit, you are correct it is on the generic Zombie wiki pages and will take your hint and add my project using the whole Leaf drive unit when operational.
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
Plug out frame 0x390 0 = 44 1 = 00 2 = 00 3 = 02 4 = 00 5 = 8C 6 = 00 7 = 0A
Plug in frame 0x390 0 = 44 1 = 00 2 = 00 3 = B2 4 = 00 5 = 84 6 = 00 7 = 2F
Okay so there is a difference between what I seen on other leaf logs.
Code from zombie, so it looks for this, which is different from your findings.
With zombie on does the PlugDet value change?
What socket have you wired up to your PDM?
Plug in frame 0x390 0 = 44 1 = 00 2 = 00 3 = B2 4 = 00 5 = 84 6 = 00 7 = 2F
Okay so there is a difference between what I seen on other leaf logs.
Code: Select all
PlugStat = bytes[5] & 0x0F;
if(PlugStat == 0x08) PPStat = true; //plug inserted
if(PlugStat == 0x00) PPStat = false; //plug not inserted
With zombie on does the PlugDet value change?
What socket have you wired up to your PDM?
Re: Zombiverter not switching to charge mode with Leaf PDM
No change to any plug in/out data with Zombie ign off.
I did isolate the ignition on 12v to PDM term 16 and inverter term 42.
Still need ign on for the EVSE to power up with plug inserted but again no amps so only constant 12v required on PDM and ign on for Plug to be sensed.
Odd why ign needs to be on though.
I did isolate the ignition on 12v to PDM term 16 and inverter term 42.
Still need ign on for the EVSE to power up with plug inserted but again no amps so only constant 12v required on PDM and ign on for Plug to be sensed.
Odd why ign needs to be on though.
Re: Zombiverter not switching to charge mode with Leaf PDM
With Zombie on parameter PlugDet does not update with plug inserted.
I have a Type 2 socket
Possibly blown the PP sense by connecting 12v via the resistors to it!
Are you saying the Plug detect is on CAN ID 0x0F as I do not see this ID.
PlugStat = bytes[5] & 0x0F;
if(PlugStat == 0x08) PPStat = true; //plug inserted
if(PlugStat == 0x00) PPStat = false; //plug not inserted
The only change is byte 5 on 0x790 when plug is in or out
I attach a screen grab of all CAN messages using Orion as they helpfully highlight data changes.
I have a Type 2 socket
Possibly blown the PP sense by connecting 12v via the resistors to it!

Are you saying the Plug detect is on CAN ID 0x0F as I do not see this ID.
PlugStat = bytes[5] & 0x0F;
if(PlugStat == 0x08) PPStat = true; //plug inserted
if(PlugStat == 0x00) PPStat = false; //plug not inserted
The only change is byte 5 on 0x790 when plug is in or out
I attach a screen grab of all CAN messages using Orion as they helpfully highlight data changes.
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
Please check if there is a resistance between Proximity and ground in the socket.I have a Type 2 socket
Please also ensure everything is propperly grounded.
Plug detection and other charging related info comes from 0x390 from the PDM. Byte 5 first 4 bits are used to check if Plug detect is being sent.
Re: Zombiverter not switching to charge mode with Leaf PDM
No resistance in the socket PP to ground.
All grounds are heavy flexible cable to the 12v controls and the Leaf drive unit has a heavy copper braid.
Have now tried every combination of Ign off, Ign on, start keyed, power to PDM pin 16 and Inverter pin 42 with and without ign on or keyed.
No change just 0x390 byte 5 changing from 8C to 84 plug out/in but requires Ign on but not started as no 0x390 data if ign is off.
I noticed that the inverter runs without ign on relay supply to PDM 16 and Inv 42 pins.
It works with just the constant supply to PDM pin 18 and Inf 46, 48. Odd that as what is the relay power for otherwise?
All grounds are heavy flexible cable to the 12v controls and the Leaf drive unit has a heavy copper braid.
Have now tried every combination of Ign off, Ign on, start keyed, power to PDM pin 16 and Inverter pin 42 with and without ign on or keyed.
No change just 0x390 byte 5 changing from 8C to 84 plug out/in but requires Ign on but not started as no 0x390 data if ign is off.
I noticed that the inverter runs without ign on relay supply to PDM 16 and Inv 42 pins.
It works with just the constant supply to PDM pin 18 and Inf 46, 48. Odd that as what is the relay power for otherwise?
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
You are describing functionality that does not seem correct. There is something going on.
I have yet to see a log with 0x390 showing 0x8C or 0x84 as byte 5.
I am guessing there are mistakes in that wiring diagram. No idea where the info came from.
I have yet to see a log with 0x390 showing 0x8C or 0x84 as byte 5.
I am guessing there are mistakes in that wiring diagram. No idea where the info came from.
- J0hannes
- Posts: 109
- Joined: Sat Nov 11, 2023 10:29 am
- Location: Finland
- Has thanked: 13 times
- Been thanked: 109 times
Re: Zombiverter not switching to charge mode with Leaf PDM
A 2015 Leaf PDM wants to see a Type1 connetor, so since you have a Type2 plug as you stated above, I believe you need the 2.7k resistor if you want to have the Leaf PDM fire up and send the 0x390. Otherwise it won't detect a plug in

I don't know how the inlet resistor is in Type 2 inlets typically, but the Leaf Type1 inlet has the resistor inside the rubber bellow, so it is not obvious that it is there.

I don't know how the inlet resistor is in Type 2 inlets typically, but the Leaf Type1 inlet has the resistor inside the rubber bellow, so it is not obvious that it is there.
So you should have a resistor in the vehicle inlet proximity
- J0hannes
- Posts: 109
- Joined: Sat Nov 11, 2023 10:29 am
- Location: Finland
- Has thanked: 13 times
- Been thanked: 109 times
Re: Zombiverter not switching to charge mode with Leaf PDM
Maybe it is time to post some clear pictures of how you've connected things.
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
Just had a dive and it seems the wiring diagrams are correct for the inverter stack with the square connectors. You must have done something weird along the way with wiring.
Re: Zombiverter not switching to charge mode with Leaf PDM
I checked the wiring and the constant supplies are on the correct pins and switched from the relay are also on the correct pins.
I had changed it slightly to try to reduce the constant drain on the battery as the constant supply to the inverter is around 500mA and PDM around 250mA.
These were connected to the ignition on switch but are now back on the 12v battery supply for now with a maintenance charger permanently connected.
Checked again and the inverter still runs under Zombie command without the 12v ignition on relay supply to terminal 42.
The PDM is sensing the plug inserted as the mA rises slightly on the PDM constant 12v and drops when removed but still no indication on PlugDet but PilotLim does flicker slightly and I assume that displays the amps limit detected when operating correctly.
- tom91
- Posts: 2293
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 199 times
- Been thanked: 524 times
Re: Zombiverter not switching to charge mode with Leaf PDM
Not sure how as I have checked wire to pin on both the Inverter and PDM plug. With only two supply wires on the PDM plug and three plus two ground on the inverter its hard to get them wrong as the CAN wires must be correct.