This is a post I put on the OI forum and got a couple of pointers what to do.
"Hi guys
I'm joining this thread because I'm currently trying to figure out a way to automate charging when I plug in the charger cable and at the same time figure out how to start charging at 2am when my electricity is half price.
I'm using an old Nissan Leaf J1772 socket as it came free with the Leaf I stripped.
I do not have a Zombieverter, I'm using a VCU very similar to Gregs 450h VCU from Damien but mine is for a Gen1 Leaf inverter and motor.
I spent a couple of hours messing about yesterday trying to figure out how PP works and managed to confuse myself completely by stupidly having two multimeters connected at the same time. I'd been metering under the bonnet then went to the connector at the back of the car with a different multimeter to check there and didn't disconnect the first meter.
TOP TIP. Never have two multimeters on the same circuit at the same time!!!
Anyway once I realised my mistake it was simple to meter the cable, first without a charger cable plugged in, with it plugged in and for a bonus with the release latch pushed and the results are as below.
These are without the 220R resistor I normally have connected.
2.68k - No cable plugged in (the 2.68k is in the J1772 socket)
140R - Cable plugged in but not charging
145R - As above but charging
400R - Latch pushed on the J1772 handle.
405R - As above but charging
With the PP line connected to ground through a 220R resistor. This is required to charge at a public charger.
205R - No cable plugged in but not charging
85R - Cable plugged in and ready
60R - As above but charging. (This bounced around a bit but settled at 60R)
143R - Latch pushed on the J1772 handle.
93R - As above but charging.
So now I have this data I need to implement it in my car and I plan to use an Aduino Uno for this. I know it would make more sense to use the Due I use to control the charging but when I checked, an Arduino Due draws 120mA whereas an Uno draws 20mA so to save the battery I plan to try and use an Uno. I'm totally hopeless at writing code so mostly copy the work of others or use AI but when I get something working I'll come back."
One of the guys got back and advised I use a LM393 comparator so I have parts on order.
This was also shared so I should be able to sort something next week.