How to detect a Type-2 EVSE connection

Development and discussion of fast charging systems eg Chademo , CCS etc
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

How to detect a Type-2 EVSE connection

Post by johu »

I'm currently in the process of describing a classical Tesla charger setup with a Type-2 vehicle side inlet. Now I hit a strange blocker: with my Schuko-setup I would simply switch on a relay with a 230V coil that would in turn switch on all the necessary systems for charging (BMS, charger, possibly coolant pump).

With Type-2 there is no 230V to begin with, that is only activated once CP switches to an appropriate resistance. All I have is some PWMing CP signal and probably some detection voltage on the PP signal. What is the most straight-forward way to, say, switch on a relay upon connection with an EVSE?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
muehlpower
Posts: 570
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 96 times

Re: How to detect a Type-2 EVSE connection

Post by muehlpower »

A simple option is to build a mechanical switch in the fuel filler flap or in the type 2 socket.
tom91
Posts: 1270
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 201 times

Re: How to detect a Type-2 EVSE connection

Post by tom91 »

I have just the thing designed. viewtopic.php?f=13&t=815
Founder Volt Influx https://www.voltinflux.com/
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by arber333 »

I simply USE PP resistance towards GND (220R for me).
1. I setup my DUE with one input pin with a weak pullup
2. When connector is in the vehicle it simply pulls pin to GND.
3. DUE senses this and engages small relay which pulls CP according to prescribed EVSE circuit.
One 2K7 from CP to GND(PE) with 1K3 in parallel ending at relay which pulls it down to result in 860R CP resistance.
4. At the time of active PP connection DUE also starts to spew CAN telegrams...
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by johu »

Thanks all :)

I'm trying to get around a microswitch for reliability reasons. Toms solution is super cool but does a bit too much for my needs. I already have Damiens Tesla charger board handle CP signal conditioning and interpretation.

Using the PP resistance spawned an idea:
PP detection.png
R3 is the resistor in the charging cable which is at most 1k5.

Would work likewise with just a strong P-channel MOSFET and no relay. But somehow I don't trust MOSFETs.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
bexander
Posts: 834
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 63 times
Been thanked: 89 times

Re: How to detect a Type-2 EVSE connection

Post by bexander »

Looking at this picture
J1772_signaling_circuit.gif
I think this might work
EVSE.png
EVSE.png (6.44 KiB) Viewed 5343 times
Should make the charging station output 230V/400V AC and then use a relay, as before.
User avatar
bexander
Posts: 834
Joined: Tue Jun 16, 2020 6:00 pm
Location: Gothenburg, Sweden
Has thanked: 63 times
Been thanked: 89 times

Re: How to detect a Type-2 EVSE connection

Post by bexander »

Updated design with better chance to work.
EVSE.png
EVSE.png (8.08 KiB) Viewed 5333 times
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by johu »

Ah well, that does all the signalling back to the EVSE but that part is already in the charger.
I simply want to switch on a relay as soon as a Type-2 connector is plugged in. To power the charger in the first place.
But yes, low pass filtering CP is also a good approach. So basically your design minus R1 and R2 would actually be a relay with the other end connected to 12V
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
tom91
Posts: 1270
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 201 times

Re: How to detect a Type-2 EVSE connection

Post by tom91 »

So if you just want to wake up on CP.
Cp wake up.JPG
Quite a simple circuit, has worked will for me so far in most applications.
Founder Volt Influx https://www.voltinflux.com/
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by johu »

Awesome, thanks!
Just one question: how does it disengage? I mean how is C7 getting discharged?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by arber333 »

johu wrote: Wed Feb 10, 2021 7:45 pm Awesome, thanks!
Just one question: how does it disengage? I mean how is C7 getting discharged?
This is why i use PP signal instead of CP. If you just remove the plug PP signal gets connected last and disconnected first. So EVSE safely looses CP signal and closes relay. CP signal also needs to be at certain level for EVSE to function. If you connect anything else it will show incorrect voltage and some chargers wont work.

I simply remove the plug on the car side and EVSE disconnects.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by johu »

Alright, poor mans CP detector :)
Attachments
IMG_20210407_211935.jpg
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: How to detect a Type-2 EVSE connection

Post by Bigpie »

How does it work? I was going to go with a door switch in the fuel filler, but might steal the poor man's design.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by johu »

It's Toms design from 5 posts above. Just added a high value (2M7) resistor in parallel to C7.

Feeds the pulsating CP signal through a diode so it can only switch ON the nfet, not off. C7 makes sure it stays on during the off-state of CP. The nfet switches a pfet (could also be a relay) that supplies the loads (pump, charger,...)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: How to detect a Type-2 EVSE connection

Post by Bigpie »

I've made one of these, but this causes the EVSE to close the relay, probably not the end of the world, but I'd rather it didn't but I can't think of a way to achieve this.
Screenshot 2021-08-03 at 2.19.41 pm.png
At the minute I'm using the even poorer mans method of leaving the key in the ignition so the charger/DCDC, BMS etc get powered up
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by arber333 »

Bigpie wrote: Wed Aug 11, 2021 8:16 am I've made one of these, but this causes the EVSE to close the relay, probably not the end of the world, but I'd rather it didn't but I can't think of a way to achieve this.
Screenshot 2021-08-03 at 2.19.41 pm.png
At the minute I'm using the even poorer mans method of leaving the key in the ignition so the charger/DCDC, BMS etc get powered up
Like i said i use PP to pull down IC pin x and signal EVSE is conneceted.
Then i connect CP through diode and R1(2K7) to GND directly. R2(1K3) is connected through relay to GND so it forms a divider on connection. IC is managing the relay. Then i connect small Nmos gate to R2 so IC can sense PWM. I still need to sort out the code for PWM duty sensing but everything else works.

Important difference with using PP signal for sensing is i can use it passively without anything connected to CP pin. I can also delay connect condition and start pumps and DCDC in any order i choose. For example Your circuit wouldnt work well with Outlander charger. There may be other devices also...

I could build RC filter and sense resulting voltage with analog pin too, but then CP result becomes unstable...
Attachments
CamScanner 08-11-2021 13.07.jpg
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: How to detect a Type-2 EVSE connection

Post by Bigpie »

Problem with PP is that if need something powered on to detect it, unless I'm not following. I already detect PP once my BMS is powered. I'd either need to always have the BMS powered or have a switch to turn it on.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by arber333 »

Bigpie wrote: Wed Aug 11, 2021 11:44 am Problem with PP is that if need something powered on to detect it, unless I'm not following. I already detect PP once my BMS is powered. I'd either need to always have the BMS powered or have a switch to turn it on.
Hm... PP is out of the loop when car is unconnected. Inside cable there is 330R from PP to PE which determins power capability of the cable for EVSE. I simply use the fact that it pulls signal to GND. So my IC sense pin is pulled high by more than 10K and 330R on PP can pull it down easily. Arduino DUE (which is my IC) is sensing pin changing its state and stuff happens.

You could use another pin on your IC to signal start for the BMS then. You could also use a DPDT relay to pull R2 resistor down and connect the other side of relay to whatever you want. In fact i power my coolant pump that way when car is not started.

My BMS is allways ON because i want to be sure of cell state at all times.
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: How to detect a Type-2 EVSE connection

Post by Bigpie »

manual switch it is for now then :D
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
muehlpower
Posts: 570
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 96 times

Re: How to detect a Type-2 EVSE connection

Post by muehlpower »

Relais.png
Relais.png (9.48 KiB) Viewed 5027 times
i use three relays and a button behind the fuel filler flap. The button is on D2, B1 is switched by the charge controller and holds the relay. F9 supplies the charge controller, E7 supplies cooling and BMS. D3 is connected to ignition. If no charging takes place for a certain time after pressing the button, the charge controller switches itself off again, just like after the charging process has ended. E8 is the power for forward, and reverse switch and so the car is imobylized during charging, D1 is read by the charge controller (pulled up to 5V) and ends the charging process prematurely. E5 / 6 corresponds to ignition and is not necessary for most
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by EV_Builder »

The button could trigger the startup of the charger.
The charger on boot enables a relais which shorts the button.

After a time-out it let's go it's relais or if the signal is correction starts charging...

When the vehicle is switched on you could permanently switch it on and you add a input so the charger knows it's because the vehicle is on.

Something like this is what I was thinking. It's simple and saves 'messing' with the sensitive signals like PP / CP.

The button also has a RGB LED..
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by arber333 »

EV_Builder wrote: Fri Aug 13, 2021 8:41 am Something like this is what I was thinking. It's simple and saves 'messing' with the sensitive signals like PP / CP.
I agree CP signal is sensitive. But PP just is! I have a 100% success rate on local EVSE connection with PP signaling. On 43kW Fast EVSE however i had a timing issue. But i solved it by synchronising inserting a plug with pressing a button on EVSE. I havent tested it on Tesla L2 EVSE. I think they need about 20s delay between PP and CP pulldown. I think i will get a chance to test one soon.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by johu »

I have integrated above circuit into a Gen2 Tesla charger. So now permanent 12V can be fed in via Pin B12 which is otherwise unused. Its traces are beefy enough to carry the current. CP and GND are stolen from the control board as well. Switched 12V is then send back to what is usually the 12V supply input. So as soon as CP is detected the charger turns on and with it the DC-DC converter, BMS, contactor supply and water pump. In the Volvo conversion 4.5A are consumed and the traces are holding up.

Here's a picture. Red cable not yet soldered to the correct pins, should be on the two bottom ones
Attachments
DSC_0635.jpeg
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

Re: How to detect a Type-2 EVSE connection

Post by catphish »

Just for anyone interested, this is my setup for type 2.
Screenshot at 2022-05-20 12-30-35.png
Screenshot at 2022-05-20 12-30-35.png (11.21 KiB) Viewed 2829 times
It applies 2.7k to the CP line, which wakes up the EVSE. It allows 12V on CP to be detected by a microcontroller, and allows the controller to apply 1.5k to CP which instructs the EVSE to close its contactors.

It works well but obviously relies on a MCU. Without a MCU, it probably wouldn't be appropriate, as the CP line is PWM, so I guess you already reached the conclusion that this would be better achieved using PP.
User avatar
johu
Site Admin
Posts: 5681
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 959 times
Contact:

Re: How to detect a Type-2 EVSE connection

Post by johu »

Alright yes, basically the Tesla charger board pulls down CP and the circuit I added tries to not alter the CP signal at all but just "reads" it
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply