Toyota Prius Gen 2 Inverter Controller
- ZooKeeper
- Posts: 526
- Joined: Mon Mar 30, 2020 10:23 pm
- Location: USA
- Has thanked: 8 times
- Been thanked: 5 times
Re: Toyota Prius Gen 2 Inverter Controller
post deleted
Time for ICE Melt
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
- konstantin8818
- Posts: 290
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Has thanked: 2 times
- Been thanked: 10 times
Re: Toyota Prius Gen 2 Inverter Controller
Well, that's me, who don't like to read carefully
Really, there are two current sensor inputs on the v3 board.
-
arber333
- Posts: 3796
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 166 times
- Been thanked: 413 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Well then you provide 1.6V to both of them... At least for testing with ACIM motor it should run in manual mode.konstantin8818 wrote: ↑Thu Apr 09, 2020 8:04 pm Well, that's me, who don't like to read carefully![]()
Really, there are two current sensor inputs on the v3 board.
But honestly i ran Mazda with both phase cables out of sensor loops. You just have to have a sane slip value setup so your motor does not task IGBTs too much.
- konstantin8818
- Posts: 290
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Has thanked: 2 times
- Been thanked: 10 times
Re: Toyota Prius Gen 2 Inverter Controller
I've got some SS49E sensors. If I feed them with 3.3V will I get need signal without any dividers?
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1918 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
If you're running the "sine" software i.e. induction motor you can indeed do away with the current sensors. They'll only serve informational purpose and overload protection is done by Toyotas hardware.konstantin8818 wrote: ↑Thu Apr 09, 2020 7:29 pmAre those sensors mondatory for board to control inverter? Or they needed just for operator to see what currents are go thrue inverter? For that particular case you could use some third party hardware like PowerWatcher or something like that.SciroccoEV wrote: ↑Thu Apr 09, 2020 7:18 pm The Gen 2 IPM current sensors are bipolar output, so with both boards, you need an interface circuit.
If you want to run FOC you'll need current sensors of course.
It seems it always centers at 2.5V? So better 5V and divide down.konstantin8818 wrote: ↑Thu Apr 09, 2020 8:27 pm I've got some SS49E sensors. If I feed them with 3.3V will I get need signal without any dividers?
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
arber333
- Posts: 3796
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 166 times
- Been thanked: 413 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
I am not sure. From datasheet it looks like they are centered at 2.5V. I think you will still need a divider. What kind of line resistor do you have on your board? You can solder one pulldown resistor next to it 2x the size. E.g. if line is 3K3 than use 6K8 or if line is 10K use 20K resistor etc.konstantin8818 wrote: ↑Thu Apr 09, 2020 8:27 pm I've got some SS49E sensors. If I feed them with 3.3V will I get need signal without any dividers?
EDIT: Damien uses 1K resistors with some caps on Bluepill board. You could replace both resistors and use your sensors with 3K3/6K8 divider and 1nF cap.
- SciroccoEV
- Posts: 370
- Joined: Thu Oct 10, 2019 1:50 pm
- Location: Luton UK
- Been thanked: 16 times
Re: Toyota Prius Gen 2 Inverter Controller
A non-inverting summing amplifier with a gain of less than unity will do the job in one go.
Gen3 uses unipolar current sensors centred on 5V.
-
arber333
- Posts: 3796
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 166 times
- Been thanked: 413 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
I see now yes... but what does Gen2 use for sensors? Are thay also split voltage with 0V center?
- SciroccoEV
- Posts: 370
- Joined: Thu Oct 10, 2019 1:50 pm
- Location: Luton UK
- Been thanked: 16 times
Re: Toyota Prius Gen 2 Inverter Controller
Once again; Bipolar, ie voltage output is both positive and negative, 25mv per amp.
And just to try and keep the length of this thread down; https://daycounter.com/Circuits/OpAmp-L ... fter.phtml
- konstantin8818
- Posts: 290
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Has thanked: 2 times
- Been thanked: 10 times
Re: Toyota Prius Gen 2 Inverter Controller
Yep, the plan is to use Damien's board with my induction motor and your board with Lexus MGR.
And about simple divider: Is this correct scheme I draw based on your sensor board but with SS49E insteard of MLX91205?
-
kiwifiat
- Posts: 101
- Joined: Sat Dec 22, 2018 9:39 pm
- Location: Vancouver, Canada
- Been thanked: 12 times
Re: Toyota Prius Gen 2 Inverter Controller
And the gen2 current sensors are 15Vpp so you would need to change R2 and R4 in the daycounter schematic to 22k and it would be preferable to use a 1.65V reference. Cheapest option is to use a 3.3V reference followed by a precision 50:50 resistor divider as 1.65V references seem ridiculously expensive.SciroccoEV wrote: ↑Thu Apr 09, 2020 9:09 pmOnce again; Bipolar, ie voltage output is both positive and negative, 25mv per amp.
And just to try and keep the length of this thread down; https://daycounter.com/Circuits/OpAmp-L ... fter.phtml
Re: Toyota Prius Gen 2 Inverter Controller
My board has arrived
Thank you, Damien! Now just need to wait when contactors make it to Belarus, as they seems to stuck in Israel for over two weeks already...
Good time and health to everyone !! Konstantin Congratulations on your purchase .. !! May I contact you?

Good time and health to everyone !! Konstantin Congratulations on your purchase .. !! May I contact you?
-
RetroZero
- Posts: 947
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 645 times
- Been thanked: 64 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Thanks for the info, awesome job getting it connected. Must be a good feeling seeing those LED 's flashingkonstantin8818 wrote: ↑Thu Apr 09, 2020 7:12 pmCorrect.RetroZero wrote: ↑Thu Apr 09, 2020 5:58 pm To control the Gen 2 inverter, there is either the non populated Damien board (at present) , and order parts according to BOM, or Rev 3 Inverter kit from Johannes (populated), with wifi included? Starting to get a little overwhelming with everything to anticipate and order, but so exciting too.![]()
I want to point out that populated board was sent to me as act of kindness from Damien. (or just to end my whining)As in my black hole country you must to go inside out to find some of the components, and still will not find some of them. I was looking forward to spent few evenings with soldering iron but kind man spared me from that misery
![]()
BTW I've started the board from power supply and connected to it via wifi. It survived our postal service and works fine.
-
RetroZero
- Posts: 947
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 645 times
- Been thanked: 64 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Well the plan is Prius Gen 2 and 3 transaxles with the present board set up. I will go wiki hunting instead of asking the obvious question... (give a man a fishSciroccoEV wrote: ↑Thu Apr 09, 2020 7:18 pmNeither board alone will result in a finalised inverter you can install in a vehicle. The Gen 2 IPM current sensors are bipolar output, so with both boards, you need an interface circuit. With the Blue Pill board you're limited to motors with a quadrature encoder.RetroZero wrote: ↑Thu Apr 09, 2020 5:58 pm Sorry if this is a stupid question....( Been trying to find the info this afternoon),
To control the Gen 2 inverter, there is either the non populated Damien board (at present) , and order parts according to BOM, or Rev 3 Inverter kit from Johannes (populated), with wifi included? Starting to get a little overwhelming with everything to anticipate and order, but so exciting too.![]()
- SciroccoEV
- Posts: 370
- Joined: Thu Oct 10, 2019 1:50 pm
- Location: Luton UK
- Been thanked: 16 times
Re: Toyota Prius Gen 2 Inverter Controller
The ADC uses the 3V3 supply rail as its reference and the current inputs are assumed (in the code) to be zero at pwm startup.kiwifiat wrote: ↑Fri Apr 10, 2020 1:54 am And the gen2 current sensors are 15Vpp so you would need to change R2 and R4 in the daycounter schematic to 22k and it would be preferable to use a 1.65V reference. Cheapest option is to use a 3.3V reference followed by a precision 50:50 resistor divider as 1.65V references seem ridiculously expensive.
The offset voltage source need be no more complicated than a 1/2 supply rail divider followed by a buffer amp.
-
MattsAwesomeStuff
- Posts: 1084
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 479 times
- Been thanked: 314 times
Re: Toyota Prius Gen 2 Inverter Controller
I wrote 95% of the wiki and all of this current sensor stuff is over my head and not something I'd gotten to in my build yet. You won't find your answer there, or, far as I know, written down anywhere else. This thread contains all the info I've ever seen where it's mentioned. I'm happy to update the wiki if/when I can understand more of a procedure on what to do.
-
RetroZero
- Posts: 947
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 645 times
- Been thanked: 64 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
I feel the same - way out of my depth with current sensor stuff. Glad there are some professors of electronics to work on them.
-
RetroZero
- Posts: 947
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 645 times
- Been thanked: 64 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
So found out that the resolver is made by Singlsyn - variable reluctance brushless resolver. Doesn't help with knowing if it is linked to a quadrature encoder. If anyone has the answer, I bow in humble gratitude.MattsAwesomeStuff wrote: ↑Fri Apr 10, 2020 8:45 amI wrote 95% of the wiki and all of this current sensor stuff is over my head and not something I'd gotten to in my build yet. You won't find your answer there, or, far as I know, written down anywhere else. This thread contains all the info I've ever seen where it's mentioned. I'm happy to update the wiki if/when I can understand more of a procedure on what to do.
-
arber333
- Posts: 3796
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 166 times
- Been thanked: 413 times
- Contact:
- ZooKeeper
- Posts: 526
- Joined: Mon Mar 30, 2020 10:23 pm
- Location: USA
- Has thanked: 8 times
- Been thanked: 5 times
Re: Toyota Prius Gen 2 Inverter Controller
I'll take that as gospel and continue!johu wrote: ↑Thu Apr 09, 2020 8:31 pm If you're running the "sine" software i.e. induction motor you can indeed do away with the current sensors. They'll only serve informational purpose and overload protection is done by Toyotas hardware.
If you want to run FOC you'll need current sensors of course.
Thanks!
Time for ICE Melt
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
-
RetroZero
- Posts: 947
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 645 times
- Been thanked: 64 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
So just to make sure I understand, Prius has Permanent Magnet Synchronous Motor, thus NOT induction. So need FOC and current sensors to run the Gen 2 inverter and transaxle?
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1918 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Yes indeed. Didn't read all messages so didn't know you were using the Transaxle
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- jnsaff
- Posts: 179
- Joined: Fri Oct 18, 2019 7:42 am
- Location: Tallinn, Estonia
- Has thanked: 3 times
- Been thanked: 8 times
Re: Toyota Prius Gen 2 Inverter Controller
Would either of these be suitable as the current sensors?
I’ve been offered them at a fairly reasonable price.
https://www.lem.com/sites/default/files ... w_sd02.pdf
https://www.lem.com/sites/default/files ... _s_124.pdf
I’ve been offered them at a fairly reasonable price.
https://www.lem.com/sites/default/files ... w_sd02.pdf
https://www.lem.com/sites/default/files ... _s_124.pdf
- SciroccoEV
- Posts: 370
- Joined: Thu Oct 10, 2019 1:50 pm
- Location: Luton UK
- Been thanked: 16 times