Prius Gen 3 Inverter Logic Board Support Thread
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
-
- Posts: 22
- Joined: Mon Apr 13, 2020 5:17 am
- Location: Geelong, Australia
Re: Prius Gen 3 Inverter Logic Board Support Thread
So as I understand it, this board currently uses MG2 for traction motor and MG1 for charging. Is there any plans to have both MG1+2 be available for the traction motor? Or how hard would it be to add the necessary components myself into another board or something? Have a Gen2 transaxle in the mail and will be ordering my gen3 Prius C inverter (Yaris hybrid is known as Prius C in Australia) and was hoping to use both motors. I was also brainstorming and was wondering if it would be possible to allow use of both MG1 for traction and charging through some contactors and stuff, obviously not at the same time 

- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Please see attached schematic for new rev of prius gen 3 logic board.
Changes :
1- Boost converter based charger atmega328 pinout now as requested by celeron55. Includes evse control and can bus connections.
2- added optional resistors to allow parallel drive of MG1 and MG2 power stages for experiments with dual motor and / or increased current output.
3 -Changed resolver exciter to TDA2822 (ripped of Johannes design yet again)
4 - added resistors to allow setting of dcdc converter 12v output voltage
5 - i/o pins via 34 way idc header. A separate board to be mounted on the case connects via a short ribbon cable to an Ampseal 35 way header.
So hopefully this puts us a step nearer an integrated inverter / charger / dcdc converter module. I will leave this schematic out there for a week to allow for comments before starting pcb layout and prototype order. The same design will then be applied to the Yaris / Auris board design.
Changes :
1- Boost converter based charger atmega328 pinout now as requested by celeron55. Includes evse control and can bus connections.
2- added optional resistors to allow parallel drive of MG1 and MG2 power stages for experiments with dual motor and / or increased current output.
3 -Changed resolver exciter to TDA2822 (ripped of Johannes design yet again)
4 - added resistors to allow setting of dcdc converter 12v output voltage
5 - i/o pins via 34 way idc header. A separate board to be mounted on the case connects via a short ribbon cable to an Ampseal 35 way header.
So hopefully this puts us a step nearer an integrated inverter / charger / dcdc converter module. I will leave this schematic out there for a week to allow for comments before starting pcb layout and prototype order. The same design will then be applied to the Yaris / Auris board design.
- Attachments
-
PriusG3_V1c - Schematic.pdf
- (565.59 KiB) Downloaded 481 times
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
In production at JLC.
I'm going to need a hacksaw
- mdrobnak
- Posts: 692
- Joined: Thu Mar 05, 2020 5:08 pm
- Location: Colorado, United States
- Has thanked: 1 time
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
I love it. Hubner Synergy Drive indeed. And a nice logo too.

-Matt
-
- Posts: 3555
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 131 times
- Been thanked: 331 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
You can still use Prius inverter asa a 1kW DCDC converter and really good 3phase charger.
BTW JB do you have TX/RX lines for the charger chip expressed on the board? Dima made Wifi interface for my EMW charger and i love it. Hardware power limit is in code the rest you can setup yourself.
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Yes the Tx Rx are on a standard 2.54mm ftdi header.
I'm going to need a hacksaw
-
- Posts: 3555
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 131 times
- Been thanked: 331 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Also as kiwifiat told us in Volt inverter thread Lebowski is sensing voltage from 0V to 5V. If I remember correctly gen 3 driver section measures both voltages in that range, just different gains. One could use that and run Prius gen3 on Lebowski brain FOC.
Re: Prius Gen 3 Inverter Logic Board Support Thread
Newby
quick questions
1) Can I feed high voltage DC in to MG1 or MG2 to charge the battery of a Prius or do I need a Solar Pump inverter to make 3 ph AC first, then connect to the inverter MG1/2 as D. did in the video clip with single phase, charging the Prius battery?
2) Can the Prius inverter with logic board handle using MG1 and MG2 simultaneously with input and output, one for charging from solar (DC or AC) and the other as 3 phase output to run the workshop ( 200cc induction furnace 7.5 KW, CNC, 3 ph welder, screw compressor, 3 kw kiln)
My aim is to create low power Solar panel charging into a Prius inverter and battery pack (in the workshop) and then use the DC/DC inverter to have 12V LED lighting, MG1 or MG2 output to get high power 3 phase in the workshop (short intervals), and single phase for the rest of the house.
Drip feeding high voltage DC or (AC via the solar pump inverter) to the inverter/battery combo.
Found some PWM controlled solar pump inverters online: High voltage DC in // 3 ph AC out to the inverter input, but not sure this is a way forward. My solar panels can work in series up to 1000 Volts, output 2 to 4 KW.
Eventually hope to charge our two Gen 2 Prius cars and perhaps increase battery capacity to run in EV mode all the time.
I've got some facilities (scopes, soldering etc) at work for the project and possibly get some help form our radar engineers/programmers if I get stuck, just need some info in to what is possible and some idea what the limitations are.
Thanks

1) Can I feed high voltage DC in to MG1 or MG2 to charge the battery of a Prius or do I need a Solar Pump inverter to make 3 ph AC first, then connect to the inverter MG1/2 as D. did in the video clip with single phase, charging the Prius battery?
2) Can the Prius inverter with logic board handle using MG1 and MG2 simultaneously with input and output, one for charging from solar (DC or AC) and the other as 3 phase output to run the workshop ( 200cc induction furnace 7.5 KW, CNC, 3 ph welder, screw compressor, 3 kw kiln)
My aim is to create low power Solar panel charging into a Prius inverter and battery pack (in the workshop) and then use the DC/DC inverter to have 12V LED lighting, MG1 or MG2 output to get high power 3 phase in the workshop (short intervals), and single phase for the rest of the house.
Drip feeding high voltage DC or (AC via the solar pump inverter) to the inverter/battery combo.
Found some PWM controlled solar pump inverters online: High voltage DC in // 3 ph AC out to the inverter input, but not sure this is a way forward. My solar panels can work in series up to 1000 Volts, output 2 to 4 KW.
Eventually hope to charge our two Gen 2 Prius cars and perhaps increase battery capacity to run in EV mode all the time.
I've got some facilities (scopes, soldering etc) at work for the project and possibly get some help form our radar engineers/programmers if I get stuck, just need some info in to what is possible and some idea what the limitations are.
Thanks
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
New boards arrived from JLCPCB. Once I get back working I'll test and update the webshop.
I'm going to need a hacksaw
-
- Posts: 3555
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 131 times
- Been thanked: 331 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Hah! Wicked looking connection plate there.Jack Bauer wrote: ↑Tue May 12, 2020 11:23 am New boards arrived from JLCPCB. Once I get back working I'll test and update the webshop.
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Getting some relief from the back pain so did a little work on the prius board. Powered up and tested the inverter section. Also tested the atmega328 and the mcp2515 can. All working perfectly. Will see if I can get it in the inverter tomorrow.
I'm going to need a hacksaw
-
- Posts: 43
- Joined: Fri Nov 01, 2019 9:39 pm
- Location: Ochtrup Germany
Re: Prius Gen 3 Inverter Logic Board Support Thread
Today I got the Yaris Inverter running with Damian's board and I can turn the engine.
I have Damian's partially populated board and had some difficulty getting it to work with the FOC software and a Lexus MGR. Not perfect yet, but it works.
There are a few points that almost drove me crazy and will definitely help others.
PIN 15 on the STM32 is open and mostly, but not always, caused me an error as soon as I started the inverter. The error did not appear in the error list, it was only displayed in the parameter list in run mode. After pull up to VCC with 10kOhm, it's OK.
Now I could let the engine spin, but not as it should in the syncofs calibration script. Tested with a 36 V battery, the engine jumps at start-up and turns, or stops at 120 A current. After playing with Pinswap, the motor turns quickly with about 50 A current consumption.
Yesterday I had the idea to change the phases between the STM32 and the connector, since the Prius has its current sensors in phases 1 and 3 and not as in Johannes circuit diagram in 1 and 2. I crossed the resistors R51 and R52 as well as R54 and R55 and now the engine is running.
I try to create a description for the WIKI with the other bugs I found, but it can take a few more days.
The picture shows the current provisional status of the board.
Martin

I have Damian's partially populated board and had some difficulty getting it to work with the FOC software and a Lexus MGR. Not perfect yet, but it works.
There are a few points that almost drove me crazy and will definitely help others.
PIN 15 on the STM32 is open and mostly, but not always, caused me an error as soon as I started the inverter. The error did not appear in the error list, it was only displayed in the parameter list in run mode. After pull up to VCC with 10kOhm, it's OK.
Now I could let the engine spin, but not as it should in the syncofs calibration script. Tested with a 36 V battery, the engine jumps at start-up and turns, or stops at 120 A current. After playing with Pinswap, the motor turns quickly with about 50 A current consumption.
Yesterday I had the idea to change the phases between the STM32 and the connector, since the Prius has its current sensors in phases 1 and 3 and not as in Johannes circuit diagram in 1 and 2. I crossed the resistors R51 and R52 as well as R54 and R55 and now the engine is running.
I try to create a description for the WIKI with the other bugs I found, but it can take a few more days.
The picture shows the current provisional status of the board.
Martin
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Nice work Martin. Do please document this as I can incorporate the mods into the next build.
I'm going to need a hacksaw
- Bigpie
- Posts: 1757
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 80 times
- Been thanked: 410 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Is there a WIP repo of the buck/boost as a charger?
Is the idea to use the MG1 current sensor to calculate to output current or are we to add a sensor?
Please don't include any paperwork with my board, the wife might intercept the parcel
Is the idea to use the MG1 current sensor to calculate to output current or are we to add a sensor?
Please don't include any paperwork with my board, the wife might intercept the parcel

BMW E91 2006
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
FOCCCI CCS
ZombieVerter
GS450h
Outlander Charger DC/DC
Renault Kangoo 36kWh battery
FOCCCI CCS
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Draft pinout for the ampseal 35 way connector.
- Attachments
-
ampseal_pinout_v1c.pdf
- (13.64 KiB) Downloaded 472 times
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
New board fitted to an inverter today. All seems to be working including parallel operation of MG1 and MG2 power stages. Will be fitting to the E39 soon for actual motor testing.
I have another unopened inverter here and my plan (back pain willing) over the weekend is to make a super long and boring video showing the board build up, programming and fitting to an inverter. This will serve as an installation manual. Board kits will then be for sale on the webshop.
I have another unopened inverter here and my plan (back pain willing) over the weekend is to make a super long and boring video showing the board build up, programming and fitting to an inverter. This will serve as an installation manual. Board kits will then be for sale on the webshop.
I'm going to need a hacksaw
-
- Posts: 395
- Joined: Sun Aug 25, 2019 12:39 pm
- Location: Finland
- Has thanked: 55 times
- Been thanked: 14 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Looking great!
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
-
- Posts: 861
- Joined: Tue Oct 29, 2019 2:48 pm
- Location: France
- Has thanked: 514 times
- Been thanked: 49 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Hope to add this to the collection after Gen2 is up and running...Get well and take it easy 'Damien style'.
Re: Prius Gen 3 Inverter Logic Board Support Thread
I love the long, detailed, (not) boring videos. Lots of detail please!!
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
In relation to the Pin 15 issue from a few posts back it worth noting that this just affects the DINOCUR flag not the actual status. If its high DINOCUR will read OK and if low will read ERROR but this will not stop the inverter from working.
I'm going to need a hacksaw
-
- Posts: 22
- Joined: Mon Apr 13, 2020 5:17 am
- Location: Geelong, Australia
Re: Prius Gen 3 Inverter Logic Board Support Thread
Will this run MG1 at the same power levels as MG2 or simply max out MG1?Jack Bauer wrote: ↑Thu May 14, 2020 2:46 pm All seems to be working including parallel operation of MG1 and MG2 power stages.
-
- Posts: 43
- Joined: Fri Nov 01, 2019 9:39 pm
- Location: Ochtrup Germany
Re: Prius Gen 3 Inverter Logic Board Support Thread
For the PIN15 issue, is it possible that it is a spezific problem with the FOC software?
Each time when I press the start button I get PWM Signal for a few ms and then it stops, the inverter stayed in run mode, and got no error message, only in the parameter list it says ocurr error.
It make no difference it the powerstage had power and deliver current or not.
One time after flashing different software versions it runs, but then when testing the next day after power off from the board it was the same problem.
So I look for a reason, and after pull up PIN15 the board runs with ocurr OK and PWM Signals.
Each time when I press the start button I get PWM Signal for a few ms and then it stops, the inverter stayed in run mode, and got no error message, only in the parameter list it says ocurr error.
It make no difference it the powerstage had power and deliver current or not.
One time after flashing different software versions it runs, but then when testing the next day after power off from the board it was the same problem.
So I look for a reason, and after pull up PIN15 the board runs with ocurr OK and PWM Signals.
- Jack Bauer
- Posts: 3639
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 9 times
- Been thanked: 280 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Installation and setup manual part one :
I'm going to need a hacksaw
-
- Posts: 3555
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 131 times
- Been thanked: 331 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
Great video D!
I must agree with magnifier glasses. I use them extensively for couple of months now and i cant imagine working without them.
Looking forward to seeing the board in action.
I must agree with magnifier glasses. I use them extensively for couple of months now and i cant imagine working without them.
Looking forward to seeing the board in action.