How to detect a Type-2 EVSE connection
- johu
- Site Admin
- Posts: 6087
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 215 times
- Been thanked: 1214 times
- Contact:
How to detect a Type-2 EVSE connection
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?
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
- muehlpower
- Posts: 625
- Joined: Fri Oct 11, 2019 10:51 am
- Location: Germany Fürstenfeldbruck
- Has thanked: 12 times
- Been thanked: 112 times
Re: How to detect a Type-2 EVSE connection
A simple option is to build a mechanical switch in the fuel filler flap or in the type 2 socket.
-
- Posts: 1621
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 133 times
- Been thanked: 305 times
-
- Posts: 3378
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 93 times
- Been thanked: 278 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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...
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...
- johu
- Site Admin
- Posts: 6087
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 215 times
- Been thanked: 1214 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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: 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.
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: 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
- bexander
- Posts: 848
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 65 times
- Been thanked: 94 times
Re: How to detect a Type-2 EVSE connection
Looking at this picture
I think this might work
Should make the charging station output 230V/400V AC and then use a relay, as before.- johu
- Site Admin
- Posts: 6087
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 215 times
- Been thanked: 1214 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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
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
-
- Posts: 1621
- Joined: Fri Mar 01, 2019 9:15 pm
- Location: Bristol
- Has thanked: 133 times
- Been thanked: 305 times
Re: How to detect a Type-2 EVSE connection
So if you just want to wake up on CP.
Quite a simple circuit, has worked will for me so far in most applications.
Quite a simple circuit, has worked will for me so far in most applications.
- johu
- Site Admin
- Posts: 6087
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 215 times
- Been thanked: 1214 times
- Contact:
Re: How to detect a Type-2 EVSE connection
Awesome, thanks!
Just one question: how does it disengage? I mean how is C7 getting discharged?
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
-
- Posts: 3378
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 93 times
- Been thanked: 278 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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.
- johu
- Site Admin
- Posts: 6087
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 215 times
- Been thanked: 1214 times
- Contact:
Re: How to detect a Type-2 EVSE connection
Alright, poor mans CP detector
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- Bigpie
- Posts: 1677
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 77 times
- Been thanked: 354 times
Re: How to detect a Type-2 EVSE connection
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.
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
- johu
- Site Admin
- Posts: 6087
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 215 times
- Been thanked: 1214 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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,...)
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
- Bigpie
- Posts: 1677
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 77 times
- Been thanked: 354 times
Re: How to detect a Type-2 EVSE connection
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.
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 upBMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
-
- Posts: 3378
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 93 times
- Been thanked: 278 times
- Contact:
Re: How to detect a Type-2 EVSE connection
Like i said i use PP to pull down IC pin x and signal EVSE is conneceted.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
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...
- Bigpie
- Posts: 1677
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 77 times
- Been thanked: 354 times
Re: How to detect a Type-2 EVSE connection
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.
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
-
- Posts: 3378
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 93 times
- Been thanked: 278 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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.
- Bigpie
- Posts: 1677
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 77 times
- Been thanked: 354 times
Re: How to detect a Type-2 EVSE connection
manual switch it is for now then
BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
- muehlpower
- Posts: 625
- Joined: Fri Oct 11, 2019 10:51 am
- Location: Germany Fürstenfeldbruck
- Has thanked: 12 times
- Been thanked: 112 times
Re: How to detect a Type-2 EVSE connection
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
- EV_Builder
- Posts: 1200
- Joined: Tue Apr 28, 2020 3:50 pm
- Location: The Netherlands
- Has thanked: 17 times
- Been thanked: 34 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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..
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.
see http://www.wdrautomatisering.nl for bespoke BMS modules.
-
- Posts: 3378
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 93 times
- Been thanked: 278 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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.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.
- johu
- Site Admin
- Posts: 6087
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 215 times
- Been thanked: 1214 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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
Here's a picture. Red cable not yet soldered to the correct pins, should be on the two bottom ones
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- catphish
- Posts: 956
- Joined: Fri Oct 08, 2021 11:02 pm
- Location: Dorset, UK
- Has thanked: 95 times
- Been thanked: 183 times
Re: How to detect a Type-2 EVSE connection
Just for anyone interested, this is my setup for type 2.
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.
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.
- johu
- Site Admin
- Posts: 6087
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 215 times
- Been thanked: 1214 times
- Contact:
Re: How to detect a Type-2 EVSE connection
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