Hi everyone,
I'm Chris and I'm an electronics dilletante. Self-taught, but a science degree and PhD (in plant biochemistry) helped a bit too. I live in hot and sunny Perth, Western Australia. I've got a huge range of interests, including building my own electric motorcycles, and converting cars to electric. I'm into solar and off-grid energy stuff too, and for all my sins I'm a teacher at TAFE (it's like a technical college).
Now, my specific questions.
I've been working on my Honda CRX conversion over the last 3 years. The motor is in, the inverter is in, and the 12 V wiring is working now. I can drive down the road and back on a jury-rigged battery but I haven't tightened every nut or bolt yet, so I mustn't get too carried away. Apart from the battery build, I've also got the onboard charging equipment to manage. If you'd like to know more about the project, I suggest you read my build log on the AEVA forum: https://forums.aeva.asn.au/viewtopic.php?p=100326#p100326
My car will have three 6.6 kW on-board battery chargers in parallel. They are supplied with mains power between all three phases and neutral. Not just any plug though - it has to go via an EVSE, or electric vehicle supply equipment (aka, charge point). The clever thing about these glorified power points is that they have a control pilot signal which can be used to inform the on-board chargers to dial up or down the charging power. Nice if you're on solar and want to make the most of a sunny day, or if you want to avoid overloading the circuit.
This control pilot follows the J1772 protocol.
https://en.wikipedia.org/wiki/SAE_J1772#Signaling
You can read up on Wikipedia, but in short, it's a 1 kHz PWM signal from -12 V to +12 V, with diodes and resistors to regulate the forward voltages according to the conditions. However once the vehicle is ready to start charging, the duty cycle of the PWM dictates how much power the charger can draw. 25% duty means half power (16 A at 230 V ac) while 10% means 6 A. Similarly, running the chargers at max chickens (over 50% duty) will draw 32 A. Per phase. For each charger. That's 22 kW, which is pretty quick for a 30 kWh battery.
Now the chargers have a control pilot input, but it seems they can't all be controlled by this signal. The manufacturer must have thought nobody would ever run them in parallel from each phase. I've not actually tried this yet, but the company said it can't be done (could be a translation thing).
But, the chargers are able to be controlled using a product called the CAN Charge controller from EV-Power (Rod is probably on in this forum too). This sends signals to the chargers over CAN Bus to tell them what maximum voltage and current to run at. Which is good - because the EVSE has something to say at 1 kHz.
As it turns out, the CAN Charge has an enable line that may be used to externally vary the charge power, but it seems to work best when those two pins have a variable resistor across them. So 5kΩ+ means no charge current, and under 100 Ω means maximum current. It can apparently also work if the enable pins are shorted and opened at 1 kHz with a duty cycle matching the desired charge power. This sounds like a good match for the EVSE, but the relationship is far from linear.
So finally my question - Is there a way of converting a 1 kHz PWM signal from -12 V to +9 V (when charging) into a variable resistance? The only thing I can think of which would deliver a fairly linear range is a bright LED paired with an LDR. The LED would need a capacitor to take out the pulses and deliver a fairly smooth DC voltage which should give the LDR (with some tuning) a full range of resistances capable of changing the charge power. Something like this:

Other options include an optocoupler for the 1 kHz idea (I've got some testing videos) and maybe a digital potentiometer, however this needs an SPI input and that's too complicated...
Again, more details, including video links and photos can be found on the forum:
https://forums.aeva.asn.au/viewtopic.php?p=113166#p113166
Thanks!
Chris
I'm Chris and I'm an electronics dilletante. Self-taught, but a science degree and PhD (in plant biochemistry) helped a bit too. I live in hot and sunny Perth, Western Australia. I've got a huge range of interests, including building my own electric motorcycles, and converting cars to electric. I'm into solar and off-grid energy stuff too, and for all my sins I'm a teacher at TAFE (it's like a technical college).
Now, my specific questions.
I've been working on my Honda CRX conversion over the last 3 years. The motor is in, the inverter is in, and the 12 V wiring is working now. I can drive down the road and back on a jury-rigged battery but I haven't tightened every nut or bolt yet, so I mustn't get too carried away. Apart from the battery build, I've also got the onboard charging equipment to manage. If you'd like to know more about the project, I suggest you read my build log on the AEVA forum: https://forums.aeva.asn.au/viewtopic.php?p=100326#p100326
My car will have three 6.6 kW on-board battery chargers in parallel. They are supplied with mains power between all three phases and neutral. Not just any plug though - it has to go via an EVSE, or electric vehicle supply equipment (aka, charge point). The clever thing about these glorified power points is that they have a control pilot signal which can be used to inform the on-board chargers to dial up or down the charging power. Nice if you're on solar and want to make the most of a sunny day, or if you want to avoid overloading the circuit.
This control pilot follows the J1772 protocol.
https://en.wikipedia.org/wiki/SAE_J1772#Signaling
You can read up on Wikipedia, but in short, it's a 1 kHz PWM signal from -12 V to +12 V, with diodes and resistors to regulate the forward voltages according to the conditions. However once the vehicle is ready to start charging, the duty cycle of the PWM dictates how much power the charger can draw. 25% duty means half power (16 A at 230 V ac) while 10% means 6 A. Similarly, running the chargers at max chickens (over 50% duty) will draw 32 A. Per phase. For each charger. That's 22 kW, which is pretty quick for a 30 kWh battery.
Now the chargers have a control pilot input, but it seems they can't all be controlled by this signal. The manufacturer must have thought nobody would ever run them in parallel from each phase. I've not actually tried this yet, but the company said it can't be done (could be a translation thing).
But, the chargers are able to be controlled using a product called the CAN Charge controller from EV-Power (Rod is probably on in this forum too). This sends signals to the chargers over CAN Bus to tell them what maximum voltage and current to run at. Which is good - because the EVSE has something to say at 1 kHz.
As it turns out, the CAN Charge has an enable line that may be used to externally vary the charge power, but it seems to work best when those two pins have a variable resistor across them. So 5kΩ+ means no charge current, and under 100 Ω means maximum current. It can apparently also work if the enable pins are shorted and opened at 1 kHz with a duty cycle matching the desired charge power. This sounds like a good match for the EVSE, but the relationship is far from linear.
So finally my question - Is there a way of converting a 1 kHz PWM signal from -12 V to +9 V (when charging) into a variable resistance? The only thing I can think of which would deliver a fairly linear range is a bright LED paired with an LDR. The LED would need a capacitor to take out the pulses and deliver a fairly smooth DC voltage which should give the LDR (with some tuning) a full range of resistances capable of changing the charge power. Something like this:

Other options include an optocoupler for the 1 kHz idea (I've got some testing videos) and maybe a digital potentiometer, however this needs an SPI input and that's too complicated...
Again, more details, including video links and photos can be found on the forum:
https://forums.aeva.asn.au/viewtopic.php?p=113166#p113166
Thanks!
Chris