![Surprised :o](./images/smilies/icon_e_surprised.png)
It only took me two days but I finally got the ac charger working.
![Smile :)](./images/smilies/icon_e_smile.png)
I connected the PP lead from the Leaf charger socket to ground via a 220R resistor
The CP lead goes to the charger pin 9
Hooked up the HV leads to the switched side of the contactors.
Connected the low voltage connector as described.
Plugged in the granny charger and as expected nothing as I hadn't sent any CAN messages yet.
I tried using Arber333's code but couldn't get it to work. I don't have his shield so maybe that was the reason, I'm not sure but decided to try sending the CAN messages mentioned earlier in this thread and after a few hours tweaking someone elses code it's now working.
The messages sent were
msg ID 0x285 data 00 00 B6 00 00 00 00 00 every 100ms
msg ID 0x286 data 28 0F 78 37 00 00 0A 00 every 800ms
A massive thanks to Arber333, Dilbert and bobby_come_lately and all the others for hard their work on this.
I don't have any cooling yet so didn't leave it charging for long but saw the battery pack voltage rising from 350V to 351V.
I still need to confirm it will cut off at 390V as Arber333 said it should but I'm not sure I have everything connected correctly for this to happen.
This is where I found the Due sketch that I adapted. https://github.com/49thdiver/EV-Project ... in/OBC/src
And this is the thread where I found out about it. https://www.mynissanleaf.com/viewtopic. ... &start=200
edit
If anyone is interested, the libraries and sketch required to make this work are here
https://github.com/Alibro53/Outlander-PHEV-AC-Charger
Warning! Read Arber333 last post about the charging voltage. This will charge your batteries up to approx 420V if you do not manually stop it.