Doing useful things with the Prius Gen2 buck/boost converter
Posted: Tue Jan 30, 2024 3:26 pm
by johu
Many hybrid inverters feature a buck/boost converter. It can step down the voltage from the motor to the battery side to charge the battery with a fast spinning motor. And it can boost the voltage from the battery to the motor side to make the motor spin fast from the battery. Battery voltage in hybrids is typically about 200V.
In addition they feature a DC/DC converter from HV to 12V to run the "car" systems. It sits on the battery side of the converter.
The Prius Gen2 inverter features this and due to its not too integrated design we can faff around with it.
First of all, when using the Prius inverter to power an actual EV we will find that the converter is "in the way" as it sits between the battery and motor side and is a bit of a weak link, limiting battery current to about 100A.
Secondly we will find that when using a regular 400V style battery salvaged from a PHEV or EV the voltage exceeds the rated input voltage of the DC/DC converter.
With a simple mod we can fix both these problems
We disconnect the positive battery cable from the boost converter input and reconnect it to the boost converter output i.e. the motor side of the converter. This has 2 consequences
1. The inverter bus is now straight connected to our HV battery and can draw as much power as it can handle
2. The DC/DC converter still sits on the buck converter output and by running the latter at, say, 50% duty cycle will feed it with the 200V it expects
With the Gen2 inverter this has a 3rd consequence: in parallel with the DC/DC converter there is an auxiliary inverter. If we replace its output IGBTs with a bridge rectifier and feed 120 or 230V AC to it we will have a rectified DC voltage of 150 to 300V on the boost converter input. So now when we run the boost converter it will feed current into out HV battery - we have created a simple mains charger.
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Tue Jan 30, 2024 3:33 pm
by Jacobsmess
This is exciting
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Wed Jan 31, 2024 4:50 am
by MattsAwesomeStuff
johu wrote: ↑Tue Jan 30, 2024 3:26 pmWith a simple mod we can fix both these problems
I have a second inverter with its top off I will try to take pictures of if I can figure out exactly what to do based on your diagram.
Also, does any of what you described require using new pins or telling the buck/boost what to do? Any code or software? Or does it just happen by being connected?
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Fri Apr 12, 2024 3:35 pm
by Keo
I assume the same can be done with the gs450h inverter? Does it also have the auxiliary inverter to run the same setup as with this?
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Fri Apr 12, 2024 3:46 pm
by johu
MattsAwesomeStuff wrote: ↑Wed Jan 31, 2024 4:50 am
Also, does any of what you described require using new pins or telling the buck/boost what to do? Any code or software? Or does it just happen by being connected?
Sorry, just found this. With the SMT version of the Prius controller this is integrated. In drive mode the "user PWM" pin runs the boost converter at a fixed rate. In charge mode the regular PWM runs it in current control mode.
Here we do indeed need additional hardware: an extra current sensor that measures current delivered by the AC/DC.
Keo wrote: ↑Fri Apr 12, 2024 3:35 pm
I assume the same can be done with the gs450h inverter? Does it also have the auxiliary inverter to run the same setup as with this?
There is no replacement logic board for Lexus inverters. I don't know if the buck/boost converter can be controlled with the Serial protocol? And I'm pretty sure it has no aux inverter.
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Fri Apr 12, 2024 4:06 pm
by Keo
Ok thanks. I'll moving forward with the gen2 Prius since it's relatively cheap where I live. I'm thinking of running a 100v 100ah to the boost converter to get anything around 25kw to run the motor. I don't need much power since there's no traffic where I stay and 60kmph top speed is enough. Between running via the boost converter vs direct to inverter I don't know which is best since I can't get a high voltage battery pack here in Africa without importing and that will more than double my costs
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Fri Apr 12, 2024 6:42 pm
by johu
The booster is limited to 100A, so this will get you 10 kW
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Fri Apr 12, 2024 9:45 pm
by MattsAwesomeStuff
johu wrote: ↑Fri Apr 12, 2024 3:46 pmWith the SMT version of the Prius controller this is integrated.
Good news, I also bought one of those 2nd hand from someone who went a different way. So I have both hardwares.
In drive mode the "user PWM" pin runs the boost converter at a fixed rate. In charge mode the regular PWM runs it in current control mode.
Here we do indeed need additional hardware: an extra current sensor that measures current delivered by the AC/DC.
Stupid question, how does it know whether it's in charge mode, and is charge mode also what happens during regen?
Do I need to install an extra current sensor, or does the SMT board come with a way to interface with one built into the inverter?
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Sat Apr 13, 2024 8:54 am
by johu
MattsAwesomeStuff wrote: ↑Fri Apr 12, 2024 9:45 pm
Good news, I also bought one of those 2nd hand from someone who went a different way. So I have both hardwares.
Is it version 1.3? Early versions don't have the user PWM connection.
MattsAwesomeStuff wrote: ↑Fri Apr 12, 2024 9:45 pm
Stupid question, how does it know whether it's in charge mode, and is charge mode also what happens during regen?
MattsAwesomeStuff wrote: ↑Fri Apr 12, 2024 9:45 pm
Do I need to install an extra current sensor, or does the SMT board come with a way to interface with one built into the inverter?
Yes. The board has 4 inputs. You use two inputs for ONE inverter power stage and one for the extra sensor. You need to juggle a bit to have the same current to voltage ratio as the built in ones. You could regard the latter as cosmetic. Say the extra sensor outputs 50 mV/A and the built-in ones 25 mv/A it just means you need to command double the charge current.
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Sat Apr 13, 2024 9:38 am
by MattsAwesomeStuff
johu wrote: ↑Sat Apr 13, 2024 8:54 amIs it version 1.3? Early versions don't have the user PWM connection.
*checks*
V1.1
Whelp, nevermind I guess.
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Sat Apr 13, 2024 10:07 am
by johu
So charging feature would work but not powering the dcdc converter while driving.
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Sat Apr 13, 2024 10:25 am
by MattsAwesomeStuff
johu wrote: ↑Sat Apr 13, 2024 10:07 am
So charging feature would work but not powering the dcdc converter while driving.
Oh, I misunderstood.
In the video you shared, you say it uses the A/C inverter to do this? I was somewhat planning on using my A/C inverter to run the A/C. Though that said, I also have the A/C off of a Gen3 which only needs PWM fed to it as the inverter is onboard the compressor.
Does the charging feature both buck and boost too? Or is that feature lost on earlier versions?
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Sat Apr 13, 2024 10:46 am
by johu
Via the A/C inverter it will just boost
Via MG1 it will just buck. You need an additional relay to connect the battery to the buck side while charging. At least then you don't need the extra current sensor because it will use the MG1 ones
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Fri May 24, 2024 5:57 am
by MattsAwesomeStuff
johu wrote: ↑Sat Apr 13, 2024 10:46 am Via the A/C inverter it will just boost. Via MG1 it will just buck. You need an additional relay to connect the battery to the buck side while charging. At least then you don't need the extra current sensor because it will use the MG1 ones
I think I mostly understand this, but not sure I'd apply it correctly.
Could you diagram the change like you did in the first post, so this is idiot(me)-proof?
I'm stepping closer and closer to hooking up a battery and driving here eventually.
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Mon Sep 09, 2024 11:37 pm
by jrbe
So these are the 2004-2009 Prius inverters right?
Has anyone figured out what year / serial the split to v1.3 is?
Could this potentially boost a 48v solar panel (500-2500 watts) up to 400v to directly charge a traction battery?
Edit,
Is it possible with the gen 2 v1.3 to pull 48v out of the 400v battery if needed?
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Tue Sep 10, 2024 4:53 am
by johu
Yes and yes. Of course that will loose the DCDC converter because that doesn't run at 48V.
MPP tracking won't be possible as you can measure input or output current.
Re: Doing useful things with the Prius Gen2 buck/boost converter
Posted: Tue Dec 10, 2024 3:22 pm
by imwoody36
MattsAwesomeStuff wrote: ↑Fri May 24, 2024 5:57 am
I think I mostly understand this, but not sure I'd apply it correctly.
Could you diagram the change like you did in the first post, so this is idiot(me)-proof?
I'm stepping closer and closer to hooking up a battery and driving here eventually.
Im also looking for a diagram for grids charging with the gen2 inverter, and im unclear if it can be stand alone. because my application is a harsh marine environment where there is zero support and in remote locations. target voltage 160 to 220 vdc. but gen 2 inverters are agreeably cheap and rugged. i had difficulty following johu's german language youtube on that even with text enabled.