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.
Toyota Prius Gen 2 Inverter Controller
-
- Posts: 1017
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 403 times
- Been thanked: 260 times
Re: Toyota Prius Gen 2 Inverter Controller
-
- Posts: 882
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 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.
-
- Posts: 882
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 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.
-
- Posts: 3563
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 134 times
- Been thanked: 335 times
- Contact:
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!
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 882
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 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: 6713
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 369 times
- Been thanked: 1543 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: 15 times
- 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
Is that what they’re worth or is this the benchmark for other solutions?
-
- Posts: 882
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
I have yet to find a complete build with Gen 2 transaxle to understand all the additional parts . Will look into current sensors this weekend and try to understand FOC.
- SciroccoEV
- Posts: 370
- Joined: Thu Oct 10, 2019 1:50 pm
- Location: Luton UK
- Been thanked: 15 times
Re: Toyota Prius Gen 2 Inverter Controller
You already have built in current sensors. All you need is to make their output compatible with the input of your chosen control board. That's about £1 worth of op-amp circuit.
- konstantin8818
- Posts: 290
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Has thanked: 2 times
- Been thanked: 8 times
Re: Toyota Prius Gen 2 Inverter Controller
They are low frequency - 70Hz. Does current sensor need to operate at frecuency of phase it sitting on for correct measuring?jnsaff wrote: ↑Fri Apr 10, 2020 8:30 pm 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
- johu
- Site Admin
- Posts: 6713
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 369 times
- Been thanked: 1543 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Yes bandwidth should be a multiple of control loop frequency which is 8.8kHz
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
- Posts: 1017
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 403 times
- Been thanked: 260 times
Re: Toyota Prius Gen 2 Inverter Controller
I have a meta question. To be clear, it's not a complaint or criticism, I'm just trying to understand the big picture.
Correct me if I'm wrong with my understanding too.
So, the Prius Gen 2 inverter has 3 current sensors on the inverter.
Johannes' Open Inverter software is designed for, and somewhat needs (or in some cases can be workarounded) some form of current sensor. As probably any inverter would.
Damien then built these Prius Gen 2 Blue Pill logic boards, hoping to help beginners by avoiding avoid the SMT parts like the early Gen 3 boards had because the Blue Pill has an integrated STM32 chip rather than having to solder the STM32 directly. But the Blue Pill is kind of limited, but maybe not in ways that matter that much. And is a dead-end for development anyway.
The Prius Gen 2 logic boards are not compatible with the Prius Gen 2 inverter. My question is... why?
I had some ideas:
1 - This was an early development board, and that's an advanced thing he was going to update in the future.
2 - There are some technical reasons he didn't want those things on this board. They would always be handled elsewhere.
3 - He made a mistake or just didn't know enough details about the board when he built these.
4 - There are limitations with this board/Blue Pill/whatever that didn't allow it.
5 - I'm sure many other possibilities.
Regardless, this is back to black magic for me, so to be useful, a procedural solution would be best. Something those of us with limited knowledge can just follow without having to know anything.
... and I know that this whole Blue Pill thing is a dead-end development, so, it's not worth a lot of effort, but now that there's 4(?) of us working on it, us all being on the same page would be helpful so each of us knows what to expect.
Correct me if I'm wrong with my understanding too.
So, the Prius Gen 2 inverter has 3 current sensors on the inverter.
Johannes' Open Inverter software is designed for, and somewhat needs (or in some cases can be workarounded) some form of current sensor. As probably any inverter would.
Damien then built these Prius Gen 2 Blue Pill logic boards, hoping to help beginners by avoiding avoid the SMT parts like the early Gen 3 boards had because the Blue Pill has an integrated STM32 chip rather than having to solder the STM32 directly. But the Blue Pill is kind of limited, but maybe not in ways that matter that much. And is a dead-end for development anyway.
The Prius Gen 2 logic boards are not compatible with the Prius Gen 2 inverter. My question is... why?
I had some ideas:
1 - This was an early development board, and that's an advanced thing he was going to update in the future.
2 - There are some technical reasons he didn't want those things on this board. They would always be handled elsewhere.
3 - He made a mistake or just didn't know enough details about the board when he built these.
4 - There are limitations with this board/Blue Pill/whatever that didn't allow it.
5 - I'm sure many other possibilities.
Regardless, this is back to black magic for me, so to be useful, a procedural solution would be best. Something those of us with limited knowledge can just follow without having to know anything.
... and I know that this whole Blue Pill thing is a dead-end development, so, it's not worth a lot of effort, but now that there's 4(?) of us working on it, us all being on the same page would be helpful so each of us knows what to expect.
- SciroccoEV
- Posts: 370
- Joined: Thu Oct 10, 2019 1:50 pm
- Location: Luton UK
- Been thanked: 15 times
Re: Toyota Prius Gen 2 Inverter Controller
Just for starters, there are TWO sensors per inverter (MG1 & MG2)MattsAwesomeStuff wrote: ↑Fri Apr 10, 2020 11:12 pm So, the Prius Gen 2 inverter has 3 current sensors on the inverter.
-
- Posts: 1017
- Joined: Fri Apr 26, 2019 5:40 pm
- Has thanked: 403 times
- Been thanked: 260 times
Re: Toyota Prius Gen 2 Inverter Controller
Why only 2? Because you can infer the 3rd from knowing the 2?SciroccoEV wrote: ↑Sat Apr 11, 2020 9:46 amJust for starters, there are TWO sensors per inverter (MG1 & MG2)
-
- Posts: 3563
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 134 times
- Been thanked: 335 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Generaly yes, but this means you need to allocate more processing power to this task.MattsAwesomeStuff wrote: ↑Sat Apr 11, 2020 12:02 pmWhy only 2? Because you can infer the 3rd from knowing the 2?SciroccoEV wrote: ↑Sat Apr 11, 2020 9:46 amJust for starters, there are TWO sensors per inverter (MG1 & MG2)
Lebowski says his controler could run on two sensors, but any ground noise or emi echo is added on the missing sensor phase.
With three sensors start is much smoother.
A
Re: Toyota Prius Gen 2 Inverter Controller
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
- Kevin Sharpe
- Posts: 1339
- Joined: Fri Dec 14, 2018 9:24 pm
- Location: Ireland and US
- Been thanked: 8 times
Re: Toyota Prius Gen 2 Inverter Controller
This is great

This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
-
- Posts: 882
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Thanks for the questions MattsAwesomeStuff, it's blurry for me too. Probably because I am not from an electrical backround, so 'simple mans' langauge from you is helping me understand.
-
- Posts: 882
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Here is a link to Prius resolver manufacturer. They mention sine/cosine signal to converter smartcoder. Is this the encoder then?
http://www.garnet.it/en/toyota-prius-hy ... pTSa_gzZPY
I'm confused, Gen 2 MG2 requires FOC and current sensors additional circuits, or modify the outputs to match the inputs on Analog to Digital Converter?
http://www.garnet.it/en/toyota-prius-hy ... pTSa_gzZPY
I'm confused, Gen 2 MG2 requires FOC and current sensors additional circuits, or modify the outputs to match the inputs on Analog to Digital Converter?
-
- Posts: 3563
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 134 times
- Been thanked: 335 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
Well i am not sure why, but Prius inverter uses 2x AU6802 chips under the main board. I like them because they can provide signal from resolver and convert it either to ABZ signal or UVW commutation signal. Nice all around chip.
http://www.garnet.it/en/products/motion ... pTgl_0zaUn
Johannes inverter uses signal from resolver directly. No need to convert it again...
Re: Toyota Prius Gen 2 Inverter Controller
post deleted
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
-
- Posts: 882
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 550 times
- Been thanked: 53 times
- Contact:
Re: Toyota Prius Gen 2 Inverter Controller
1. So Resolver signal is sorted by 'Brainboard Rev 3' , that's awesome news siroccoEV.
2. For the current sensors, < bandwidth should be a multiple of control loop frequency which is 8.8kHz>?
Trying to keep up with the posts, hope this is not related to the resolver and that it is the modification to carry out on the Brainboard to use the existing Inverter Current sensors.
If these 2 statements are correct I will attempt to update the wiki (seems a few more hands on deck could help)
Since we are officially confined untill 11 May, I hope to get this transaxle spinning, and more importantly, understand how
2. For the current sensors, < bandwidth should be a multiple of control loop frequency which is 8.8kHz>?
Trying to keep up with the posts, hope this is not related to the resolver and that it is the modification to carry out on the Brainboard to use the existing Inverter Current sensors.
If these 2 statements are correct I will attempt to update the wiki (seems a few more hands on deck could help)
Since we are officially confined untill 11 May, I hope to get this transaxle spinning, and more importantly, understand how
