Prius Gen2 Adapter Board for CHARGING
-
- Posts: 728
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 328 times
- Been thanked: 44 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
Well, progress slow my side. Trying to understand all parts of the process.
I managed to wire up the AC side in a relay box today. I used Prius HV Relays to switch Live and Neutral seperately.
I will connect the low side tomorrow to the Openinverter Board, with CSDN openning Two seconds after plugging in the AC Plug .
The Inverter will be set to Buck Mode (and be SAVED in settings) prior to connecting.
The HV DC connections will be connected as per the standard setup - NO Jumper wire bypassing the Buck Convertor.
I undertsatnd that as long as CSDN is HIGH (12v), the IGBT's are all OFF, therefore Precharge and Main Contact on AC and DC can be activated at the same time.
I managed to wire up the AC side in a relay box today. I used Prius HV Relays to switch Live and Neutral seperately.
I will connect the low side tomorrow to the Openinverter Board, with CSDN openning Two seconds after plugging in the AC Plug .
The Inverter will be set to Buck Mode (and be SAVED in settings) prior to connecting.
The HV DC connections will be connected as per the standard setup - NO Jumper wire bypassing the Buck Convertor.
I undertsatnd that as long as CSDN is HIGH (12v), the IGBT's are all OFF, therefore Precharge and Main Contact on AC and DC can be activated at the same time.
- johu
- Site Admin
- Posts: 5787
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 157 times
- Been thanked: 1022 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
It may not be the best idea to "blindfold" the charger PI controller. It will try to create a current during those 2 s which it can't because the IGBT is disabled. By the time the IGBT is enabled the controller might have wound up too much. That said, with low chargeki you can make the controller pretty slow.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times
Re: Prius Gen2 Adapter Board for CHARGING
Finally setup the entire battery to attempt to charge. Had one scary moment on the first attempt when a busbar wasn't securely bolted on. A little but of sparking and I think I might have killed a BMS slave board. But all ok now.
When I hook it up to the heater element simulation battery it pulls a steady 3.5 amps and the voltage on the battery inputs sits at whatever pwmmin is.
However with the battery hooked up I am getting charge current into battery go up to around 3 amps to start, then slowly decrease and then invert and start pushing amps into the inverter. The HV Bus was increasing voltage and was at 400v when switched it off.
Not sure what is happening here. I have charge current set to 1.5 amps, kp at 40, ki at 10 and flt at 2 as per my settings before.
Edit: Tried one last time before I went home. This time it started at 3 amps then reduced charge current to 0.5amps and was stable.
When I hook it up to the heater element simulation battery it pulls a steady 3.5 amps and the voltage on the battery inputs sits at whatever pwmmin is.
However with the battery hooked up I am getting charge current into battery go up to around 3 amps to start, then slowly decrease and then invert and start pushing amps into the inverter. The HV Bus was increasing voltage and was at 400v when switched it off.
Not sure what is happening here. I have charge current set to 1.5 amps, kp at 40, ki at 10 and flt at 2 as per my settings before.
Edit: Tried one last time before I went home. This time it started at 3 amps then reduced charge current to 0.5amps and was stable.
- johu
- Site Admin
- Posts: 5787
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 157 times
- Been thanked: 1022 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
If you mix up buck/boost chargemode it will regulate in the wrong direction, maybe that's what happens?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times
Re: Prius Gen2 Adapter Board for CHARGING
I haven't changed the settings from buck all week now.
Just out of interest what do chargekp, chargeki and chargeflt do? I don't feel like I can adjust them much as I don't know what they do.
Just out of interest what do chargekp, chargeki and chargeflt do? I don't feel like I can adjust them much as I don't know what they do.
- johu
- Site Admin
- Posts: 5787
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 157 times
- Been thanked: 1022 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
chargekp - proportional controller gain - how much does the controller counter-act momentary errors between desired and actual current. Mostly important if you want to quickly react to the sinusoidal shape of the grid input current.
chargeki - integral controller gain - how fast does the controller react to long term errors between desired and actual current, i.e. how fast does it ramp up charge current
chargeflt - how much is the measured current low-pass filtered before being fed into the PI-controller. Dampens down noise on the current sensor but also increases reaction time to the grid sinus
chargeki - integral controller gain - how fast does the controller react to long term errors between desired and actual current, i.e. how fast does it ramp up charge current
chargeflt - how much is the measured current low-pass filtered before being fed into the PI-controller. Dampens down noise on the current sensor but also increases reaction time to the grid sinus
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 728
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 328 times
- Been thanked: 44 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
Can someone explain why the precharge resistor should stay in series during charging please?
-
- Posts: 728
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 328 times
- Been thanked: 44 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
I decided to pull CSDN to GND with DCSW signal. Will update my schema.johu wrote: ↑Thu Mar 31, 2022 3:41 pm It may not be the best idea to "blindfold" the charger PI controller. It will try to create a current during those 2 s which it can't because the IGBT is disabled. By the time the IGBT is enabled the controller might have wound up too much. That said, with low chargeki you can make the controller pretty slow.
Do we still require Precharge resistor in AC Circuit to remain ON during CHARGING?
- johu
- Site Admin
- Posts: 5787
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 157 times
- Been thanked: 1022 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
No, who said that? It can be on if that makes it easier but it's certainly not required.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 728
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 328 times
- Been thanked: 44 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
Thanks for the reply.
It was in the discussions at the beginning of this thread, along with your diagram I butchered from Wiki.
Going into the details I picked it up and couldn't understand why it was needed once AC precharge was complete.
It was in the discussions at the beginning of this thread, along with your diagram I butchered from Wiki.
Going into the details I picked it up and couldn't understand why it was needed once AC precharge was complete.
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times
Re: Prius Gen2 Adapter Board for CHARGING
It works! I think the current sensor on the inverter needs to be calibrated a little.
I started to just up the charge current and it had some effect on current going into the battery. Started to adjust the other parameters which also helped.
Settled on this, which was pushing in 4.5 amps.
I started to just up the charge current and it had some effect on current going into the battery. Started to adjust the other parameters which also helped.
Settled on this, which was pushing in 4.5 amps.
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times
Re: Prius Gen2 Adapter Board for CHARGING
The odd thing now is that I can't get anymore than about 4.5 amps. The charge current setting on the inverter VCU has no effect beyond 15 amps.
Increasing chargekp beyond 20 lowers the amps I get into the battery which seems odd.
Whats the max amps you have managed to get into your batteries?
Increasing chargekp beyond 20 lowers the amps I get into the battery which seems odd.
Whats the max amps you have managed to get into your batteries?
- johu
- Site Admin
- Posts: 5787
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 157 times
- Been thanked: 1022 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
Maybe hitting udcmax? Or, less likely, tmphsmax
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 728
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 328 times
- Been thanked: 44 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
Well done LRBen!! I'm at testing with heating element at the moment. Bravo
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times
Re: Prius Gen2 Adapter Board for CHARGING
udcmax was set to 5000, moved it to 500 amps just to make sure.
I thought tmphsmax could have been a good idea, since I have no coolant on the inverter yet. But that's set to 150c and tmphs is sitting at around 57c.
I'll settle for this for now. Already found a dead cell I think, shot up from 3.7 to 4v while the rest of that module are still at 3.8v.
I think I'm going to remove a module anyway now and run 70s1p. I should be able to fit that all in one layer of the battery box and I can actually charge that to 100% through buck charging.
I thought tmphsmax could have been a good idea, since I have no coolant on the inverter yet. But that's set to 150c and tmphs is sitting at around 57c.
I'll settle for this for now. Already found a dead cell I think, shot up from 3.7 to 4v while the rest of that module are still at 3.8v.
I think I'm going to remove a module anyway now and run 70s1p. I should be able to fit that all in one layer of the battery box and I can actually charge that to 100% through buck charging.
- johu
- Site Admin
- Posts: 5787
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 157 times
- Been thanked: 1022 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
70S would be 280V @4V per cell. Maybe you're just running out of voltage to push more amps?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times
Re: Prius Gen2 Adapter Board for CHARGING
I guess so, at the moment its been charging at around 295v which is the current SoC of the battery. I do notice the HVbus is dropping down to 315v though so that does make sense.
Wouldn't I be able to push around the same or more amps as the input amps if I am bucking? Since voltage goes down amps needs to increase to keep the same Wattage. So I would expect around 10-12 amps at least, minus some inefficiencies of charging.
It's also pretty cold right now, around 4'C.
Are the slave boards ok with only 2 cells? If I take away a module I will have an odd number of cells per slave board.
Edit: Sorry we are getting mixed up with the 4 cell BMS details now.
Wouldn't I be able to push around the same or more amps as the input amps if I am bucking? Since voltage goes down amps needs to increase to keep the same Wattage. So I would expect around 10-12 amps at least, minus some inefficiencies of charging.
It's also pretty cold right now, around 4'C.
Are the slave boards ok with only 2 cells? If I take away a module I will have an odd number of cells per slave board.
Edit: Sorry we are getting mixed up with the 4 cell BMS details now.
-
- Posts: 728
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 328 times
- Been thanked: 44 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
So finally wired up Relay Setup as per my scetch.
Updated software as per Johu's update in previous post.
Chargemode is already in BOOST.
No AC or HV-DC connected.
Simulated AC connection, which pulls CPWM and CSDN HIGH (+12v) via 470 OHM resistors on each line, F and R to +12V.
Set time delay switch to Pull CSDN floating after 0.5s.
Inverter (Opmode) remains in OFF Mode
lastterr = HIRESOFS
status = PotPressed
udc (with only +12v to inverter) = 51.46V
Do I need to have START signal as well?
Inverter not going into ChargeMode....
What am I missing?
Updated software as per Johu's update in previous post.
Chargemode is already in BOOST.
No AC or HV-DC connected.
Simulated AC connection, which pulls CPWM and CSDN HIGH (+12v) via 470 OHM resistors on each line, F and R to +12V.
Set time delay switch to Pull CSDN floating after 0.5s.
Inverter (Opmode) remains in OFF Mode
lastterr = HIRESOFS
status = PotPressed
udc (with only +12v to inverter) = 51.46V
Do I need to have START signal as well?
Inverter not going into ChargeMode....
What am I missing?
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times
Re: Prius Gen2 Adapter Board for CHARGING
I use the start signal on startup same as when I want to drive.
- johu
- Site Admin
- Posts: 5787
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 157 times
- Been thanked: 1022 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
Seems like some issue on the analog inputs... HIRESOFS and PotPressed. 51V could also mean wrong udcofs.
You don't need the start signal, just forward+reverse and of course udcsw < udc
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 728
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 328 times
- Been thanked: 44 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
OK, will look into analog inputs again.
Just trying to get start mode initiated before connecting any voltage.
Just trying to get start mode initiated before connecting any voltage.
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times
Re: Prius Gen2 Adapter Board for CHARGING
Dropped the pack down to 60s. Had to change the settings a little again. Found that chargeflt had the most affect this time. Managed to charge at around 8 amps this time, if increased chargeflt anymore the EVSE errored out.
I'm planning to keep the pack at 60s for now since it makes battery install easier.
Next step is to add the additional contactor so I can split the battery positive to the inverter. The charge contactor to battery inputs will be activated by the same signal as the AC contactor, then my main contactor will connect to the HV bus and run as normal.
I'm planning to keep the pack at 60s for now since it makes battery install easier.
Next step is to add the additional contactor so I can split the battery positive to the inverter. The charge contactor to battery inputs will be activated by the same signal as the AC contactor, then my main contactor will connect to the HV bus and run as normal.
-
- Posts: 728
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 328 times
- Been thanked: 44 times
- Contact:
Re: Prius Gen2 Adapter Board for CHARGING
Are you splitting because you will bypass boost inverter when in drive mode to not be limited by 20kW?
-
- Posts: 474
- Joined: Thu Jul 04, 2019 6:35 pm
- Location: Somerset, UK
- Has thanked: 43 times
- Been thanked: 107 times