CCS charging using Prius buck-boost converter
Re: CCS charging using Prius buck-boost converter
Thanks to @MattsAwesomeStuff I've been able to edit the wiki and add more flesh to what I've been doing.
Link is here https://openinverter.org/wiki/Operating ... pplication.
Updates to follow, apologies as progress is a bit slow at my end.
Link is here https://openinverter.org/wiki/Operating ... pplication.
Updates to follow, apologies as progress is a bit slow at my end.
-
- Posts: 937
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 345 times
- Been thanked: 207 times
Re: CCS charging using Prius buck-boost converter
Hmm, not sure if you intended to do this, but...
You didn't use the page I created. You created a really long page called "Operating the buck/boost converter for a low voltage CCS charging application"
And as a standalone article, it's not clear what "the" buck/boost converter is, as there's no Prius context in the title or early in the page.
Content-wise, otherwise, great research.
You didn't use the page I created. You created a really long page called "Operating the buck/boost converter for a low voltage CCS charging application"
And as a standalone article, it's not clear what "the" buck/boost converter is, as there's no Prius context in the title or early in the page.
Content-wise, otherwise, great research.
Re: CCS charging using Prius buck-boost converter
Hi Matt - I sent you a PM on this. You are correct, I didn't mean to do that, so I can either leave as is or move the content to your page which I think is currently orphaned. I apologise ...
-
- Posts: 937
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 345 times
- Been thanked: 207 times
Re: CCS charging using Prius buck-boost converter
*checks*
... You, did not.
And no worries. Just copy/paste the code into the page I linked above. It'll be done.
Re: CCS charging using Prius buck-boost converter
I have been trying to get an accurate measure of the DC bus voltage.
The buck/boost converter outputs 'VL' which I thought was a 100:1 scaled voltage measurement of whatever the orange sense wire is connected to. By default, it's connected to the positve post of the battery input and hence measures battery voltage. According to Johannes' charger video, he saw 0.9ish volts when applying 90ish volts in. I already know the battery voltage being input, so I wanted to try using the sense wire to measure output, boosted voltage on the DC bus, but I am not getting a simple 100:1 reading.
When the sense wire is not connected, the VL line is about 0.54V. When it is connected to a range of DC bus voltages from 10-100V, I get a linear relationship between DC bus voltage on my meter and the voltage on VL but it's not 100:1. I can plot and correlate the two, and get an equation for the line but I'm not happy about this - small errors lead to big differences (c.10%) in predicted vs measured voltage.
I'd like to find some information on how the VL value is officially interpreted. Does anyone know? Maybe it's not supposed to be very accurate?
The buck/boost converter outputs 'VL' which I thought was a 100:1 scaled voltage measurement of whatever the orange sense wire is connected to. By default, it's connected to the positve post of the battery input and hence measures battery voltage. According to Johannes' charger video, he saw 0.9ish volts when applying 90ish volts in. I already know the battery voltage being input, so I wanted to try using the sense wire to measure output, boosted voltage on the DC bus, but I am not getting a simple 100:1 reading.
When the sense wire is not connected, the VL line is about 0.54V. When it is connected to a range of DC bus voltages from 10-100V, I get a linear relationship between DC bus voltage on my meter and the voltage on VL but it's not 100:1. I can plot and correlate the two, and get an equation for the line but I'm not happy about this - small errors lead to big differences (c.10%) in predicted vs measured voltage.
I'd like to find some information on how the VL value is officially interpreted. Does anyone know? Maybe it's not supposed to be very accurate?
- uhi22
- Posts: 934
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 135 times
- Been thanked: 529 times
Re: CCS charging using Prius buck-boost converter
Or it is intentionally with an offset. To make it possible that the controller can distinguish between the cases "sense circuit broken" (0V) and "no HV" (0.54V). Just find the equation, and find out whether the result is stable enough.
I had a look to the wiki, quite well described
I think you need two contactors, between the converter and the CCS inlet. Because during the cableCheck phase, the EVSE will apply 500V to the DC pins, and expects that nothing is connected in this case. Without the contactors, there would be the capacitors, the discharge resistor, this may make the cableCheck fail. And even if not, could the 500V kill something?
For a first test, you could just boost to 230V, and configure clara to use standalone mode with 235V, this should give a first charge experience. And in a second step to measure the boosted voltage and feed this via CAN to clara as battery voltage, together with a 250V voltage limit, and a charge current of some amps. The charger will provide this current, so you do not need to care for adjusting the PWM ratio.
I had a look to the wiki, quite well described
I think you need two contactors, between the converter and the CCS inlet. Because during the cableCheck phase, the EVSE will apply 500V to the DC pins, and expects that nothing is connected in this case. Without the contactors, there would be the capacitors, the discharge resistor, this may make the cableCheck fail. And even if not, could the 500V kill something?
For a first test, you could just boost to 230V, and configure clara to use standalone mode with 235V, this should give a first charge experience. And in a second step to measure the boosted voltage and feed this via CAN to clara as battery voltage, together with a 250V voltage limit, and a charge current of some amps. The charger will provide this current, so you do not need to care for adjusting the PWM ratio.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: CCS charging using Prius buck-boost converter
I think the problem was a poor ground reference for the measurement which was giving an offset. It's to do with poor prototype board development. If I correct for that, I can get pretty close to 1:100 with zero intercept. Close, but not exact, and the more I boost the less accurate it is. I have decided that I will use an ISA shunt, so I've ordered a cheap used one off Fleabay and will see if it works.
Thanks. I hope to have some progress to add to it.
Completely agree, and the contactors are part of the plan. I don't think they would need to be able to pre-charge the DC bus, it would only be if I could not reliably put boost voltage on the DC bus, hence the ISA shunt to be sure of the voltage first!uhi22 wrote: ↑Thu Mar 14, 2024 5:40 pm I think you need two contactors, between the converter and the CCS inlet. Because during the cableCheck phase, the EVSE will apply 500V to the DC pins, and expects that nothing is connected in this case. Without the contactors, there would be the capacitors, the discharge resistor, this may make the cableCheck fail. And even if not, could the 500V kill something?
This is really helpful, thank you. I assume that in the second step you describe, the charger will hold the voltage at 250V and a constant current?uhi22 wrote: ↑Thu Mar 14, 2024 5:40 pm For a first test, you could just boost to 230V, and configure clara to use standalone mode with 235V, this should give a first charge experience. And in a second step to measure the boosted voltage and feed this via CAN to clara as battery voltage, together with a 250V voltage limit, and a charge current of some amps. The charger will provide this current, so you do not need to care for adjusting the PWM ratio.
- uhi22
- Posts: 934
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 135 times
- Been thanked: 529 times
Re: CCS charging using Prius buck-boost converter
The charger will limit both, the current and the voltage, to the values we request. This means, if we request 5A and 300V, the 5A will be consumed by the buck converter, it will feed eg 10A into the battery, the battery voltage will rise from 120V to 121V, and the voltage on the CCS from 240V to 242V. (just assuming 50%PWM for the example). The voltage on battery and charger will slowly further increase, until the 300V are reached, 150 on battery. Now the charger is in constant voltage mode.
So the goal is to send a healthy current limit (to not overstress the battery, cables and inductor), and a voltage limit to not overshoot the 4.1V cell voltage. Both values could be fix.
So the goal is to send a healthy current limit (to not overstress the battery, cables and inductor), and a voltage limit to not overshoot the 4.1V cell voltage. Both values could be fix.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: CCS charging using Prius buck-boost converter
I decided not to use the isolated voltage level that the buck/boost module can supply as I wasn't confident I could read it accurately. It's normally connected to the Prius battery input voltage. There is a high voltage signal available which measures the boosted DC bus voltage, but for that you need to power the inverter stage electronics which I am going to ditch, and I had similar inability to decode it accurately.
So I opted for an Isabellenhutte ISA shunt as used by others here. They are expensive to buy new so I cut a corner and ordered one from Ebay which was shipped internationally to me and cost 200 EUR and took a fortnight. They sent me the wrong one, so I had to wait another week for the right one to come but they did not request the other one back so I now have two, happy days. It took me a full week to get them working and I will link to my solution below, but in a nutshell, don't trust cheap CAN transceivers from Amazon, and read other people's code fully before you decide to use it.
My plan is to use the ISA shunt to measure both input voltage (my pack voltage) and boosted voltage (which I will 'present' to the EVSE). I can already measure the current into the pack with an existing current sensor. I will probably use the second ISA shunt to measure current from the EVSE at boosted voltage. This may not be needed in the future but given I have the bonus sensor, I'll probably use it.
Link to my sensor initialisation solution viewtopic.php?t=2117&start=35
So I opted for an Isabellenhutte ISA shunt as used by others here. They are expensive to buy new so I cut a corner and ordered one from Ebay which was shipped internationally to me and cost 200 EUR and took a fortnight. They sent me the wrong one, so I had to wait another week for the right one to come but they did not request the other one back so I now have two, happy days. It took me a full week to get them working and I will link to my solution below, but in a nutshell, don't trust cheap CAN transceivers from Amazon, and read other people's code fully before you decide to use it.
My plan is to use the ISA shunt to measure both input voltage (my pack voltage) and boosted voltage (which I will 'present' to the EVSE). I can already measure the current into the pack with an existing current sensor. I will probably use the second ISA shunt to measure current from the EVSE at boosted voltage. This may not be needed in the future but given I have the bonus sensor, I'll probably use it.
Link to my sensor initialisation solution viewtopic.php?t=2117&start=35
Re: CCS charging using Prius buck-boost converter
I emailed Mitsubishi Electric asking for the datasheet on the PM400DJA120, and while I didn't receive a datasheet, I did get a response saying, "The PM400DJA120 is an obsolete part. I’d be happy to help you find another device that suits your needs.
That device was a 400A / 1200V dual rated for automotive use. It included built in gate drive and protective functions as well."
Hopefully this information is helpful.
That device was a 400A / 1200V dual rated for automotive use. It included built in gate drive and protective functions as well."
Hopefully this information is helpful.
Re: CCS charging using Prius buck-boost converter
Thanks, that confirms my guesswork detailed here viewtopic.php?p=68199#p68199.
The power handling limitations of the buck/boost part of the controller seem to be elsewhere - Johu says above the inductor is limited to 100A, and the internal busbars in the Gen2 inverter/controller don't seem beefy enough for much more than that - certainly not 400A.
I'd be pretty happy if I could get 200A continuous out of the buck/boost stage, at my battery voltage of c. 100V that would be a decent charge rate.
The power handling limitations of the buck/boost part of the controller seem to be elsewhere - Johu says above the inductor is limited to 100A, and the internal busbars in the Gen2 inverter/controller don't seem beefy enough for much more than that - certainly not 400A.
I'd be pretty happy if I could get 200A continuous out of the buck/boost stage, at my battery voltage of c. 100V that would be a decent charge rate.
- moebelschmitt
- Posts: 13
- Joined: Sun Jan 23, 2022 8:10 am
- Location: Germany
- Has thanked: 13 times
- Been thanked: 5 times
- Contact:
Re: CCS charging using Prius buck-boost converter
Hello everyone,
I've been racking my brains for some time about how I can use Yaris inverter. The options for both driving and charging are documented separately. But before someone has documented a functioning system with all the functions in the wiki, the herd has moved on. Also because the power output of the inverter is comparatively low, especially if it is to supply larger vehicles. However, it probably suits my weak requirements quite well.
When I recently bought Johu's old Leaf battery from the Touran, he advised me not to try this combined driving and charging system because I don't have the electrical engineering training. Good advice, and he talked about galvanic isolation and residual current protection and that I should use a normal charger (Outlander, Tesla etc.) first. I take that really seriously!
But now I'm reading here that others are also thinking about it and want to use the potential of the Prius/Yaris inverter. And that's why I want to put my amateur ideas up for discussion here.
And this is what the circuits looks like:
Nominal system voltage 266V (72s)
Driving and ReGen with max 35kW via MG2:
DC charging with 300VDC via CCS2:
AC charging with 1-phase 240VAC via MG1 to 340VDC and buck mode to 300VDC:
AC charging with 3-phase 380VAC via MG1 to 600VDC and buck mode to 300VDC:
DC/AC charging with 96VDC via tie grid inverter to 240VAC and via Inverter MG1 to 300VDC:
DC charging with 96VDC via boost mode to 300VDC:
What do you think about these possibilities?
Regards Peter
I've been racking my brains for some time about how I can use Yaris inverter. The options for both driving and charging are documented separately. But before someone has documented a functioning system with all the functions in the wiki, the herd has moved on. Also because the power output of the inverter is comparatively low, especially if it is to supply larger vehicles. However, it probably suits my weak requirements quite well.
When I recently bought Johu's old Leaf battery from the Touran, he advised me not to try this combined driving and charging system because I don't have the electrical engineering training. Good advice, and he talked about galvanic isolation and residual current protection and that I should use a normal charger (Outlander, Tesla etc.) first. I take that really seriously!
But now I'm reading here that others are also thinking about it and want to use the potential of the Prius/Yaris inverter. And that's why I want to put my amateur ideas up for discussion here.
And this is what the circuits looks like:
Nominal system voltage 266V (72s)
Driving and ReGen with max 35kW via MG2:
DC charging with 300VDC via CCS2:
AC charging with 1-phase 240VAC via MG1 to 340VDC and buck mode to 300VDC:
AC charging with 3-phase 380VAC via MG1 to 600VDC and buck mode to 300VDC:
DC/AC charging with 96VDC via tie grid inverter to 240VAC and via Inverter MG1 to 300VDC:
DC charging with 96VDC via boost mode to 300VDC:
What do you think about these possibilities?
Regards Peter
- moebelschmitt
- Posts: 13
- Joined: Sun Jan 23, 2022 8:10 am
- Location: Germany
- Has thanked: 13 times
- Been thanked: 5 times
- Contact:
Re: CCS charging using Prius buck-boost converter
Hi again,
I hope my overview of the possibilities is helpful. There might be mistakes or misunderstandings or my whole understanding is wrong. So please give me a STOP if I’m making horrible mistakes!
I still have questions anyway like: Where to connect Neutral to when charge with 1-ph or 3-ph AC?
And: Should BAT- be connected to the negative bus bar when using DC/DC boost mode?
I hope my overview of the possibilities is helpful. There might be mistakes or misunderstandings or my whole understanding is wrong. So please give me a STOP if I’m making horrible mistakes!
I still have questions anyway like: Where to connect Neutral to when charge with 1-ph or 3-ph AC?
And: Should BAT- be connected to the negative bus bar when using DC/DC boost mode?
-
- Posts: 937
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 345 times
- Been thanked: 207 times
Re: CCS charging using Prius buck-boost converter
As one of the people most likely to benefit from your effort, I wish I could be helpful. But, all I can do is cheerlead from the sidelines.