<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openinverter.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Konstantin8818</id>
	<title>openinverter.org wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://openinverter.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Konstantin8818"/>
	<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/Special:Contributions/Konstantin8818"/>
	<updated>2026-04-28T22:01:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Using_FOC_Software&amp;diff=1031</id>
		<title>Using FOC Software</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Using_FOC_Software&amp;diff=1031"/>
		<updated>2020-09-30T16:16:33Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: added a link to tutorial video on youtube&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Synchronous motors have turned out only to be well drivable when their stator current is controlled by means of a feedback current loop. Due to this, the existing feed forward control used for induction motors could not be extended for use with synchronous motors. Therefor the well known field oriented control approach was implemented in a separate software.&lt;br /&gt;
&lt;br /&gt;
Here is a video manual, created by Johannes Hubner and Damien Maguire, which describes process of setting up FOC-operated system from the very beginning: https://youtu.be/1SlL6cEoRBgv It is strongly recommended to watch it carefully.&lt;br /&gt;
&lt;br /&gt;
== Hardware requirements ==&lt;br /&gt;
Field oriented control is only implemented for permanent magnet motors. Moreover it is optimized for IPM motors (interior permanent magnet). So it will not drive PMSM or BLDC motors in an efficient manner. It will yield no movement at all with induction motors. &lt;br /&gt;
&lt;br /&gt;
Since the absolute rotor position is a key factor with synchronous motors, said software requires an absolute position feedback device. This can be a resolver or a [https://www.melexis.com/-/media/files/documents/datasheets/mlx91204-datasheet-melexis.pdf sin/cos chip] on top of a small magnet. Resolvers will need a so-called excitation. That is a high frequency (4.4kHz in our case) sine wave. Only V3 main boards generate this excitation signal. sin/cos chips do not need excitation and can also be run with V2 main boards.&lt;br /&gt;
&lt;br /&gt;
Most of Damiens Toyota Designs implement V3 main board circuitry.&lt;br /&gt;
&lt;br /&gt;
So to sum up&lt;br /&gt;
* IPM (Interior Permanent Magnet Synchronous Motor)&lt;br /&gt;
* Resolver or sin/cos chip&lt;br /&gt;
* V3 [https://openinverter.org/shop/index.php?route=product/product&amp;amp;product_id=58 Mainboard]&lt;br /&gt;
&lt;br /&gt;
== Software setup ==&lt;br /&gt;
First of all you need to flash your board with preferable the [https://github.com/jsphuebner/stm32-sine/releases/latest latest] FOC version (stm32_foc.bin or hex). It will identify itself with the version value of &amp;quot;X.YY.R-foc&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If not using a pretuned kit (like Leaf dropin board) do the [[Schematics and Instructions#Connecting the sensor boards|usual current and voltage calibration]]. Be aware that polarity is important. So if current flows &#039;&#039;&#039;from&#039;&#039;&#039; the IGBT &#039;&#039;&#039;to&#039;&#039;&#039; the motor the reading must be positive. Therefor it is possible to set negative gain. When setting negative gain ocurlim must be negative also.&lt;br /&gt;
&lt;br /&gt;
Find out the number of stator pole pairs. Resolver polepairs are either the same as stator pole pairs or 1. sin/cos is always respolepairs=1. Set &amp;quot;encmode&amp;quot; to &amp;quot;Resolver&amp;quot; or &amp;quot;sin/cos&amp;quot;, respectively. Set syncadv=10.&lt;br /&gt;
&lt;br /&gt;
It is important that the PWM channels line up with the current sensors. So current sensor &amp;quot;il1&amp;quot; must sense the phase generated by &amp;quot;PWM1&amp;quot;, same for il2. You don&#039;t need to hardware-swap anything since we have parameter &amp;quot;pinswap&amp;quot;. For example on some inverters current sensors are on phases 1 and 3. (next software revision) has the entry &amp;quot;PWMOutput23&amp;quot; in pinswap. That will essentially make PWM channel 3 responsible for phase 2 and PWM channel 2 becomes phase 3.&lt;br /&gt;
&lt;br /&gt;
Next step is to find out your motors &amp;quot;syncofs&amp;quot;. That is the offset between what the resolver reports as 0° and what actually is 0° alignment between the stator and the rotor magnetic field. To do this, a test mode has been implemented. First start your inverter with the &amp;quot;start&amp;quot; input, then switch to manual mode with the corresponding button on the web interface. &#039;&#039;&#039;Warning&#039;&#039;&#039;: manual mode does not implement any rotor speed limit! When used carelessly you might overspeed your motor to the point were it looses structural integrity - it explodes. So have means to brake your motor externally e.g. by doing this tuning with an already mounted motor and jacked up wheels. Then you can use your cars friction brakes.&lt;br /&gt;
&lt;br /&gt;
Tuning Process:&lt;br /&gt;
# Go into manual mode -&amp;gt; start input, then button on web interface. Select forward direction.&lt;br /&gt;
# Observe value &amp;quot;angle&amp;quot; and turn rotor by hand -&amp;gt; you should see angle changes between 0 to 360°. If not, check resolver connection and excitation signal.&lt;br /&gt;
# Start with syncofs=0&lt;br /&gt;
# enter a positive value for &amp;quot;manualid&amp;quot;. Start low, with respect to motor rating. E.g. 5% of rated current&lt;br /&gt;
# Keep increasing the value until you notice that the motor starts to spin - make sure you hear PWM going&lt;br /&gt;
# If motor spins, change syncofs in 1000 digit increments until it stops spinning. If you need to go below 0, like -1000 enter 64536 (=65536-1000)&lt;br /&gt;
# If manualid is less than about max_motor_current/2 go back to 4. When approaching rated_motor_current/2 make your increments/decrements smaller, like down to 300 digits&lt;br /&gt;
# You have found 1 of 2 possible offsets. Now you can enter a small value for &amp;quot;manualiq&amp;quot; and set &amp;quot;manualid&amp;quot; to 0.1. The motor should spin clockwise.&lt;br /&gt;
# If its spins counter-clockwise, add 32768 to syncofs. If the resulting value is &amp;gt; 65535, subtract 32768 instead (or do modulo addition in the first place)&lt;br /&gt;
Congratulations, the most difficult step is done. The default values or curkp and curki can usually stay untouched, I don&#039;t know a good tuning procedure anyway. Higher curki means faster reaction but also tends to oscillate at low speed. Next set up the &amp;quot;throtcur&amp;quot; parameter. It defines how many motor amps are produced per % of throttle travel.&lt;br /&gt;
&lt;br /&gt;
Internally, this is split into a so-called direct and a quadrature current by means of the &amp;quot;Most Torque Per Amp&amp;quot; algorithm (MTPA). MTPA usually needs setup for the motor that your working with. Right now some typical constants are hard coded in the software. This might be replaced by auto-tuning in the future. But the deviation from optimal should not be too large with most IPM motors out there.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen3_Board&amp;diff=976</id>
		<title>Toyota Prius Gen3 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen3_Board&amp;diff=976"/>
		<updated>2020-08-05T06:51:48Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: Added current consumption note.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[File:Prius Gen3 Inverter Control v2.jpg|thumb|Prius Gen3 Control Board v2]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen3 Board is an open source project to repurpose 2010-2015 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board in the inverter and allows independent control of it without communicating with a Prius ECU.&lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen2 Board]] for the 2004-2009 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability. Priuses have been made in large numbers for 20 years.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and 500+A on MG2. (MG1 unknown, Gen2 had 70% of MG2 on MG1).&lt;br /&gt;
* Ease of repurposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen3 Prius (2010-2015 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v power supply to the automotive systems and accessories.&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen3 Inverter (Timestamp ???? ): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
The current version as of Jan 20, 2020 is v2.&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as both partially populated and fully populated and tested boards on his website: &lt;br /&gt;
&lt;br /&gt;
[https://www.evbmw.com/index.php/evbmw-webshop/toyota-partially-built-boards-copy/prius-gen-3-inverter-logic-board-partial Prius Gen3 Partial]&lt;br /&gt;
&lt;br /&gt;
[https://www.evbmw.com/index.php/evbmw-webshop/toyota-built-and-tested-boards/prius-gen-3-inverter-built-tested Prius Gen3 Prius Gen3 Full &amp;amp; Tested]&lt;br /&gt;
&lt;br /&gt;
The control board is a physical replacement for the OEM Prius Gen3 inverter logic board inside the inverter. Remove the old one and replace it with the new one.&lt;br /&gt;
&lt;br /&gt;
== Development History ==&lt;br /&gt;
&lt;br /&gt;
V1 - This board was sold tested but also as a bare logic board requiring purchase of your own components and SMD placement and soldering skills. https://www.evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-3-inverter-bare-logic-board&lt;br /&gt;
&lt;br /&gt;
V2 - A new board source was found to be both high quality and low cost. The boards were redesigned around the inventory of parts available from this supplier. In particular the high cost of populated and soldered boards (10x the price) from the source used to make the v1 boards is so significantly lower on the v2 that there are likely no savings by building and soldering the board yourself. The circuit now has hardware to support repurposing the MG1 inverter as a battery charger, though as of Jan 20, 2020, software is still in development.&lt;br /&gt;
&lt;br /&gt;
== Vendors ==&lt;br /&gt;
&lt;br /&gt;
 - ?? List of known vendors with support?&lt;br /&gt;
&lt;br /&gt;
== Support ==&lt;br /&gt;
&lt;br /&gt;
Community support is available on the [https://openinverter.org/forum/viewtopic.php?f=14&amp;amp;t=488 Prius Gen 3 Inverter Logic Board Support Thread]&lt;br /&gt;
&lt;br /&gt;
You are not entitled to support, purchase from a vendor who offers support if you want it guaranteed. Treat the community with respect.&lt;br /&gt;
&lt;br /&gt;
== Inverter Model Numbers ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|  class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Inverter No || Car model(s) || Logic Board No || Power Board No || Compatible 50 pin connector|| PCB size || Confirmed works with board ||  Link &lt;br /&gt;
|-&lt;br /&gt;
| G9200-47141 || Auris 2012, RHD || || || || || || &lt;br /&gt;
|-&lt;br /&gt;
|G9200-47140&lt;br /&gt;
|Prius 2010&lt;br /&gt;
|F1759-47041 01&lt;br /&gt;
|&lt;br /&gt;
|Yes&lt;br /&gt;
|&lt;br /&gt;
|Yes&lt;br /&gt;
|&lt;br /&gt;
|- &lt;br /&gt;
| G9200-47180  || || || || || || || [https://www.diyelectriccar.com/forums/showpost.php?p=1026169&amp;amp;postcount=8 Photo diyelectriccar.com]&lt;br /&gt;
|-&lt;br /&gt;
| G9200-47190 || Auris || F1759-52010 04 || || ? || || || [https://openinverter.org/forum/viewtopic.php?f=14&amp;amp;t=51&amp;amp;start=270#p5661 Forum Thread openinverter.com]&lt;br /&gt;
|-&lt;br /&gt;
|G9200-52010||Yaris||F1759-52010 04||F1789-52010|| ||154x143mm||&lt;br /&gt;
|https://openinverter.org/forum/viewtopic.php?f=14&amp;amp;t=257&amp;amp;p=5828#p5828&lt;br /&gt;
|-&lt;br /&gt;
| G9200-52032 || Yaris 2015 || F1759-52010 04 || F1789-52010 || YES || Long 143mm || || [https://openinverter.org/forum/viewtopic.php?f=14&amp;amp;t=439#p5058 Forum Thread openinverter.com] [https://openinverter.org/forum/viewtopic.php?f=14&amp;amp;t=51&amp;amp;start=270#p5669 Forum Thread openinverter.com]&lt;br /&gt;
|-&lt;br /&gt;
| G9201-52011 || Yaris || || || YES|||||| [https://openinverter.org/forum/viewtopic.php?f=14&amp;amp;t=439#p5681 Forum Thread openinverter.com]&lt;br /&gt;
|-&lt;br /&gt;
| G9201-52012 || Prius C || F1759-52010 || F1789-52010 || YES (presumably) |||||| [https://openinverter.org/forum/viewtopic.php?p=6979#p6979 Forum Thread openinverter.com]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Kit Assembly Instructions (V1C) ==&lt;br /&gt;
This guide is for the assembly of version V1C of the Gen 3 board available here: https://www.evbmw.com/index.php/evbmw-webshop/toyota-built-and-tested-boards/prius-gen-3-inverter-built-tested&lt;br /&gt;
&lt;br /&gt;
This is based on the assembly videos by Damien Maguire. &lt;br /&gt;
&lt;br /&gt;
Part 1: https://www.youtube.com/watch?v=QE-zym8iIgM&amp;amp;t=2643s &lt;br /&gt;
&lt;br /&gt;
Part 2: https://www.youtube.com/watch?v=Nu5_OBOPk4s&amp;amp;t=1787s&lt;br /&gt;
&lt;br /&gt;
=== Early Board Correction, pre July 2020 ===&lt;br /&gt;
The first batch of JLCPCB boards shipped have an incorrect resistor value that needs to be changed over. Boards &#039;&#039;shipped after Jun 26, 2020&#039;&#039; will not need to do this.&lt;br /&gt;
&lt;br /&gt;
[[File:Power supply.png|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Resistor labeled R101 (labeled &#039;1002&#039;) needs swapping for a 8k2 resistor. &lt;br /&gt;
[[File:20200629 155303.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Soldering The Breakout Board ===&lt;br /&gt;
Solder the Ampseal socket to the the breakout board, the silk-screen indicates side and orientation fitment.&lt;br /&gt;
&lt;br /&gt;
[[File:20200605 174452.jpg|thumb|alt=|none]]&lt;br /&gt;
&lt;br /&gt;
Next flip it over and solder the 34 way IDC locking header on, notch upwards as show.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Some versions of the breakout board have and error in the silk-screen that indicate orientation incorrectly, with the notch towards the bottom.&#039;&#039;&lt;br /&gt;
[[File:20200606 130213.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Soldering the Main Board ===&lt;br /&gt;
The main board is mostly pretty easy to solder, the one exception is the 50 way white connector. I found that putting flux on the pads and dragging solder across them, placing the connector in place and then placing the iron on the pins was the easiest. &lt;br /&gt;
[[File:20200619 175629.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Next up I did conn 1, it can only go one way, and is a piece of cake after the 50 way connector.&lt;br /&gt;
[[File:20200605 174924.jpg|none|thumb]]&lt;br /&gt;
And Conn8, again easy.&lt;br /&gt;
[[File:20200605 175047.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Next the DCDC convert connector, again only fits one way.&lt;br /&gt;
[[File:20200605 175849.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
MG1 and MG2 Current sensor Connectors, both these are the same, the tabs on both MG1 and MG2 are at the top.&lt;br /&gt;
[[File:20200605 181654.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Next up the L2 inductor, it can go either way&lt;br /&gt;
[[File:20200605_182754.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Next up I did the right angled pins for the wifi module, stick the pins in the module connector and then through the board, hold it in place and flip it over.&lt;br /&gt;
&lt;br /&gt;
[add photo]&lt;br /&gt;
&lt;br /&gt;
Cut 2 lengths of 3 pins from the header pin strips for the ISP header for programming the Atmega328P that will be used ton control the buck-boost converter.&lt;br /&gt;
[[File:20200605 183933.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
To enable the DCDC converter for I&#039;ve bridged over the 2 pin holes, but you can add a switch or something here, or leave it open if you&#039;re not using the DCDC to keep the 12v battery charged.&lt;br /&gt;
[[File:20200605 184633.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Pin header for Alegro current sensor, currently no software exists to control the buck boost, hopefully in the future this will be able to be used as a charger, this pin header is for the possible addition of a current sensor to facilitate.&lt;br /&gt;
[[File:20200605_185543.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Three options exist on the board for flashing the firmware to the STM32.&lt;br /&gt;
&lt;br /&gt;
If you plan on programming your board with a [https://www.tag-connect.com/product/tc2050-idc-nl-050 TC2050 JTAG]  then obviously skip the next step.&lt;br /&gt;
&lt;br /&gt;
Solder a 3 pin headers for single wire program interface, or a 6 pin header for FTDI interface.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;The photo below shows both headers populated, however you don&#039;t necessarily need both.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:20200605 185557.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Last up is the 34-way ICD interlock connector for the breakout board. Notch outward.&lt;br /&gt;
[[File:20200609 094633.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Powering up ===&lt;br /&gt;
Now it&#039;s time to power up the board with 12v and test.&lt;br /&gt;
&lt;br /&gt;
Green wire is +12v (pin 1) and blue 0v (pin 11)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; When Idle, board consumes about 1.7 - 1.8A of current. When PWM starts, current consumption goes up to ~2A.&lt;br /&gt;
[[File:20200608 125857.jpg|none|thumb]]&lt;br /&gt;
[[File:Screenshot 2020-06-07 at 1.32.12 pm.png|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Checking voltages ===&lt;br /&gt;
&lt;br /&gt;
Check for ~3.3v here on C32&lt;br /&gt;
[[File:20200608 124947.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Check for ~5v here on C21/C20/C22/C25&lt;br /&gt;
[[File:20200607 134336.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Check for -5v here on the little via next to CONN7 or right next to CONN2 there&#039;s a via with -5V under it.&lt;br /&gt;
[[File:20200608 125110.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Finally the 26v &lt;br /&gt;
[[File:20200608 125053.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
== Firmware ==&lt;br /&gt;
Full kits will be supplied programmed and partial kits will be un-programmed.&lt;br /&gt;
&lt;br /&gt;
=== Wifi Module Firmware ===&lt;br /&gt;
My wifi module came with the firmware already installed, but if yours didn&#039;t follow the steps below. &lt;br /&gt;
&lt;br /&gt;
=== Programming Firmware ===&lt;br /&gt;
There are three different interfaces that are possible to program the firmware.&lt;br /&gt;
&lt;br /&gt;
Below are instructions for using the single wire programming interface with the [https://www.st.com/en/development-tools/st-link-v2.html USB STLink V2].&lt;br /&gt;
&lt;br /&gt;
Connect the 3 wire pin headers to the programming device.&lt;br /&gt;
[[File:Swp.jpg|none|thumb]]&lt;br /&gt;
[[File:S-l1600.jpg|none|thumb]]&lt;br /&gt;
The pin labeled &#039;&#039;DAT&#039;&#039; on the board should connect to &#039;&#039;SWDIO&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The middle pin of the 3 pins on the board should go to &#039;&#039;GND&#039;&#039; on the STLink V2&lt;br /&gt;
&lt;br /&gt;
The pin labeled &#039;&#039;CLK&#039;&#039; on the board should connect to &#039;&#039;SWCLK&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Using a Mac or Linux&#039;&#039;&#039; install https://github.com/stlink-org/stlink&lt;br /&gt;
&lt;br /&gt;
Run command to write the bootloader&amp;lt;blockquote&amp;gt;st-flash write stm32_loader.bin 0x08000000&amp;lt;/blockquote&amp;gt;&#039;&#039;&#039;For Windows&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[Add instructions for writing bootloader]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once the bootloader has been programmed the main firmware can be uploaded and upgraded via the [[web interface]].&lt;br /&gt;
&lt;br /&gt;
A wifi network should be visible with the name &#039;&#039;ESP-*&#039;&#039; connect to it&lt;br /&gt;
[[File:Screenshot 2020-06-20 at 8.33.04 am.png|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Once connected open a browser and navigate to http://192.168.4.1 and find the update section, upload the firmware.&lt;br /&gt;
[[File:Screenshot 2020-06-20 at 8.28.53 am.png|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
Once this has completed you can verify by scrolling to the Spot Values section and you&#039;ll see the software version&lt;br /&gt;
[[File:Screenshot 2020-06-20 at 8.39.58 am.png|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Atmega328p Firmware ===&lt;br /&gt;
This will control the Buck Boost module that&#039;s hopefully going to be a functioning charger in the future, it also requires a simple bit of firmware to enable the DC-DC converter.&lt;br /&gt;
&lt;br /&gt;
[Add instructions for firmware]&lt;br /&gt;
&lt;br /&gt;
== Inverter Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Parameter&lt;br /&gt;
!Suggested Value&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|pwmfrq&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|pwmpol&lt;br /&gt;
|0 - Active High&lt;br /&gt;
|DO NOT PLAY WITH THIS!&lt;br /&gt;
|-&lt;br /&gt;
|deadtime&lt;br /&gt;
|130&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|minpulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|il1gain&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|il2gain&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|udcgain&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|udcofs&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|udclim&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|snshs&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|pinswap&lt;br /&gt;
|PWMOutput23&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== First Run (PWM verify) ==&lt;br /&gt;
Once your board in installed in the inverter and all the internal connectors are connected you can power up the inverter with 12v as above. No need to have anything connected to the HV battery or MG1 or MG2. You&#039;ll hear an audible wine. We&#039;re first going to verify the PWM outputs on the board and then connecting up a motor.&lt;br /&gt;
&lt;br /&gt;
Connect pin 3, MG2_FORW_IN to 12v&lt;br /&gt;
&lt;br /&gt;
Navigate to the [[Web Interface]]&lt;br /&gt;
&lt;br /&gt;
Change the parameter  encmode to &#039;AB&#039; as at the moment we don&#039;t have any sensors connected.&lt;br /&gt;
&lt;br /&gt;
Start the inverter in manual mode with the button&lt;br /&gt;
[[File:Screenshot 2020-07-06 at 1.21.04 pm.png|thumb|alt=|none]]    &lt;br /&gt;
&lt;br /&gt;
Now set the 2 testing parameters, fslipsnpnt and ampnom to 1. &lt;br /&gt;
[[File:Screenshot 2020-07-06 at 1.21.13 pm.png|none|thumb]] &lt;br /&gt;
&lt;br /&gt;
Using a scope, look for a PWM signal on MG2 A/B/C Hi/Low on the 50 pin connector. &lt;br /&gt;
&lt;br /&gt;
Stop the inverter &lt;br /&gt;
&lt;br /&gt;
== First Run (Open loop motor spin) ==&lt;br /&gt;
&lt;br /&gt;
Now connect up the 3 motor phases and a small voltage of around 30v to the HV, I manually pre-charged with a 50w 10ohm resistor for a couple of seconds, the supply needs to be able to supply 10 amps or so. I also had a 20 amp fuse inline.&lt;br /&gt;
&lt;br /&gt;
As above, start the inverter in manual mode, set ampnom to 100 and fslipsnpnt to 10, the motor should start to spin.&lt;br /&gt;
&lt;br /&gt;
You may have [[Errors]] to address if this doesn&#039;t happen.&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
The inverter contains a DC DC converter, that is used to keep the 12v battery charged using the high voltage battery. This is the EV equivalent to the alternator on a combustion engined car.&lt;br /&gt;
&lt;br /&gt;
As per the assembly instructions above this needs to be enabled via the jumper on the control board.&lt;br /&gt;
&lt;br /&gt;
In the unmodified state, the DC DC converter will operate with a main battery voltage in the ~80v to ~235v range and will require a simple modification to allow it to operate at higher voltage range, ~140v to ~400v&lt;br /&gt;
&lt;br /&gt;
[instructions for modification to follow]&lt;br /&gt;
&lt;br /&gt;
== 12v Battery Connection ==&lt;br /&gt;
The 12v battery positive connects to this post, it&#039;ll output ~14v when the DC-DC is running to keep the battery charged, the negative terminal of the battery should be connected to the case of the inverter.[[File:20200705_190706.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
== High Voltage Battery Connection ==&lt;br /&gt;
The HV battery connection is bellow, DO NOT directly connect the battery here. It needs to be connected via contactors and a pre-charge resistor. This connection point by-passes the buck/boost converter.&lt;br /&gt;
&lt;br /&gt;
[[File:20200705 190723.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
[Add details of pre-charge and contactor]&lt;br /&gt;
&lt;br /&gt;
== Motor Connection ==&lt;br /&gt;
If you are only using MG2 to power a motor, and not paralleling MG1 and MG2, connect your 3 phase wires from the motor to the outer 3 terminals.&lt;br /&gt;
&lt;br /&gt;
[[File:20200705 190657.jpg|none|thumb]]&lt;br /&gt;
&lt;br /&gt;
== IDC Connector ==&lt;br /&gt;
If you are not using the AMPSeal daughterboard, you can connect directly to the 34 pin IDC connector on the EVBMW board. &lt;br /&gt;
&lt;br /&gt;
Connections are as follows:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Pin Number&lt;br /&gt;
|Label&lt;br /&gt;
|Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|12V_IN&lt;br /&gt;
|Provide with +12V supply from battery or power supply for testing&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|12V_IN&lt;br /&gt;
|Provide with +12V supply from battery or power supply for testing&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|MG2_FORW_IN&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to tell the inverter which way to spin the motor. Take positive feed from 12V battery or supply and wire through a three position switch, with the switched connections running to forward and reverse.&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|MG2_REVER_IN&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to tell the inverter which way to spin the motor. Take positive feed from 12V battery or supply and wire through a three position switch, with the switched connections running to forward and reverse.&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|MG2_START&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to start the inverter and move it from pre-charge to run mode. Typically connected to the momentary &#039;START&#039; position of your ignition switch.&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|MG2_BRAKE_ON&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to inform the inverter that the car is under braking. Typically takes a feed from the brake switch that also turns on brake lights etc.&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|CRUISE_IN&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to turn on cruise control mode. This sets the current motor speed as the set point for cruise control. Cruise control is disabled by a signal from the brake switch.&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|VCC_5V&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;+5V supply for temperature and throttle sensors&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|MG2_ACCEL&lt;br /&gt;
|5V analogue input from first channel of throttle sensor. These typically take a 5V supply and ground and return to this pin a variable voltage that indicates throttle position.&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|MG2_BRAKE_TRANS&lt;br /&gt;
|5V analogue input from second channel of throttle sensor. These typically take a 5V supply and ground and return to this pin a variable voltage that indicates throttle position.&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground for 12V supply or 5V return.&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground for 12V supply or 5V return&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CAN_EXT_H&lt;br /&gt;
|CANBus digital communication connection for remote interface with inverter&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|CAN_EXT_L&lt;br /&gt;
|CANBus digital communication connection for remote interface with inverter&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|VCC_5V&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;+5V supply for temperature and throttle sensors&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|MG2_ENC_1&lt;br /&gt;
|Can be either digital input for encoder (in which case, connect the relevant encoder output here and provide the device with 5V and ground), or one of the two connections for the SIN winding if you are using a resolver for motor position.&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
|MG2_ENC_2&lt;br /&gt;
|Can be either digital input for encoder (in which case, connect the relevant encoder output here and provide the device with 5V and ground), or one of the two connections for the COS winding if you are using a resolver for motor position.&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground for 12V supply or 5V return&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|MG2_COSA&lt;br /&gt;
|Connect SIN winding of motor resolver here and to Encoder Channel A&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|MG2_SINA&lt;br /&gt;
|Connect COS winding of motor resolver here and to Encoder Channel B&lt;br /&gt;
|-&lt;br /&gt;
|21&lt;br /&gt;
|MG2_EXCA&lt;br /&gt;
|Connect exciter winding of motor resolver here and to ground&lt;br /&gt;
|-&lt;br /&gt;
|22&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground for 12V supply or 5V return&lt;br /&gt;
|-&lt;br /&gt;
|23&lt;br /&gt;
|MG2_STATOR_T1&lt;br /&gt;
|5V analogue input from motor temperature sensor. These are typically variable resistance devices. Connect the other side of the sensor to +5V.&lt;br /&gt;
|-&lt;br /&gt;
|24&lt;br /&gt;
|MG2_STATOR_T2&lt;br /&gt;
|5V analogue input from motor temperature sensor. These are typically variable resistance devices. Connect the other side of the sensor to +5V.&lt;br /&gt;
|-&lt;br /&gt;
|25&lt;br /&gt;
|MAIN_CON&lt;br /&gt;
|5V output to switch main HV contactor. Note that you cannot switch these 12V devices directly from this output. You will need either a transistor or smaller relay arrangement to provide the appropriate voltage/current.&lt;br /&gt;
|-&lt;br /&gt;
|26&lt;br /&gt;
|PRECHG_RLY&lt;br /&gt;
|5V output to switch the pre-charge relay. Note you cannot switch these 12V devices directly from this output. You will need either a transistor or smaller relay arrangement to provide the appropriate voltage/current.&lt;br /&gt;
|-&lt;br /&gt;
|27&lt;br /&gt;
|AC_CON&lt;br /&gt;
|5V output to switch the main charger AC input relay. Note you cannot switch these 12V devices directly from this output. You will need either a transistor or smaller relay arrangement to provide the appropriate voltage/current.&lt;br /&gt;
|-&lt;br /&gt;
|28&lt;br /&gt;
|HV_CON&lt;br /&gt;
|?&lt;br /&gt;
|-&lt;br /&gt;
|29&lt;br /&gt;
|AC_PRECH&lt;br /&gt;
|5V output to switch the charger AC input pre-charge relay. Note you cannot switch these 12V devices directly from this output. You will need either a transistor or smaller relay arrangement to provide the appropriate voltage/current.&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground for 12V supply or 5V return&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|EVSE_PROX&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|CONTROL_PILOT&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|CHG_CANH&lt;br /&gt;
|CANBus digital communication connection for remote interface with charger&lt;br /&gt;
|-&lt;br /&gt;
|34&lt;br /&gt;
|CHG_CANL&lt;br /&gt;
|CANBus digital communication connection for remote interface with charger&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Ampseal Socket &amp;amp; Plug ==&lt;br /&gt;
There are multiple part numbers for the large 35 way Ampseal through hole socket, with small mating differences, be sure to get a matching pair.&lt;br /&gt;
&lt;br /&gt;
TE connectivity &#039;&#039;&#039;776164-1&#039;&#039;&#039; and &#039;&#039;&#039;776163-1&#039;&#039;&#039; are a matched pair (source https://www.ebay.co.uk/itm/Connector-ECU-Terminals-35P-35-Way-776164-1-776231-1-776163-1-Male-Female-Pins/401764868163?hash=item5d8b0d6043:g:3TkAAOSwexhc1Tcy&amp;lt;nowiki/&amp;gt;Ebay)&lt;br /&gt;
&lt;br /&gt;
[[File:AMPSeal socket (male).jpg|alt=|none|thumb|AMPSeal socket (male) in 3D printed surround with pins marked]]&lt;br /&gt;
&lt;br /&gt;
The AMPSeal connector is wired as follows:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|Pin Number&lt;br /&gt;
|AMPSeal Pinout Label&lt;br /&gt;
|Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|12V SUPPLY POSITIVE&lt;br /&gt;
|Provide with +12V supply from battery or power supply for testing&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GROUND&lt;br /&gt;
|Common ground for 12V supply or 5V return&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|FORWARD DIRECTION SIGNAL&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to tell the inverter which way to spin the motor. Take positive feed from 12V battery or supply and wire through a three position switch, with the switched connections running to forward and reverse.&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|REVERSE DIRECTION SIGNAL&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to tell the inverter which way to spin the motor. Take positive feed from 12V battery or supply and wire through a three position switch, with the switched connections running to forward and reverse.&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|START SIGNAL&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to start the inverter and move it from pre-charge to run mode. Typically connected to the momentary &#039;START&#039; position of your ignition switch.&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|BRAKE DIGITAL SIGNAL&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to inform the inverter that the car is under braking. Typically takes a feed from the brake switch that also turns on brake lights etc.&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|CRUISE CONTROL SIGNAL&lt;br /&gt;
|Active high signal at 12V (switches at &amp;gt;7V) to turn on cruise control mode. This sets the current motor speed as the set point for cruise control. Cruise control is disabled by a signal from the brake switch.&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|5V OUT&lt;br /&gt;
| +5V supply for temperature and throttle sensors&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|ACCELERATOR CHAN 1 INPUT&lt;br /&gt;
|5V analogue input from first channel of throttle sensor. These typically take a 5V supply and ground and return to this pin a variable voltage that indicates throttle position.&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|ACCELERATOR CHAN 2 INPUT&lt;br /&gt;
|5V analogue input from second channel of throttle sensor. These typically take a 5V supply and ground and return to this pin a variable voltage that indicates throttle position.&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|GROUND&lt;br /&gt;
|Common ground for 12V supply or 5V return.&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|INVERTER CAN HIGH&lt;br /&gt;
|CANBus digital communication connection for remote interface with inverter&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|INVERTER CAN LOW&lt;br /&gt;
|CANBus digital communication connection for remote interface with inverter&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
| +5V OUT&lt;br /&gt;
| +5V supply for temperature and throttle sensors&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|ENCODER CHAN A&lt;br /&gt;
|Can be either digital input for encoder (in which case, connect the relevant encoder output here and provide the device with 5V and ground), or one of the two connections for the SIN winding if you are using a resolver for motor position.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|ENCODER CHAN B&lt;br /&gt;
|Can be either digital input for encoder (in which case, connect the relevant encoder output here and provide the device with 5V and ground), or one of the two connections for the COS winding if you are using a resolver for motor position.&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
|GROUND&lt;br /&gt;
|Common ground for 12V supply or 5V return&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|RESOLVER SIN&lt;br /&gt;
|Connect SIN winding of motor resolver here and to Encoder Channel A&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|RESOLVER COS&lt;br /&gt;
|Connect COS winding of motor resolver here and to Encoder Channel B&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|RESOLVER EXC&lt;br /&gt;
|Connect exciter winding of motor resolver here and to ground&lt;br /&gt;
|-&lt;br /&gt;
|21&lt;br /&gt;
|GROUND&lt;br /&gt;
|Common ground for 12V supply or 5V return&lt;br /&gt;
|-&lt;br /&gt;
|22&lt;br /&gt;
|MOTOR TEMP SENSOR A&lt;br /&gt;
|5V analogue input from motor temperature sensor. These are typically variable resistance devices. Connect the other side of the sensor to +5V.&lt;br /&gt;
|-&lt;br /&gt;
|23&lt;br /&gt;
|MOTOR TEMP SENSOR B&lt;br /&gt;
|5V analogue input from motor temperature sensor. These are typically variable resistance devices. Connect the other side of the sensor to +5V.&lt;br /&gt;
|-&lt;br /&gt;
|24&lt;br /&gt;
|MAIN HV CONTACTOR&lt;br /&gt;
|5V output to switch main HV contactor. Note that you cannot switch these 12V devices directly from this output. You will need either a transistor or smaller relay arrangement to provide the appropriate voltage/current.&lt;br /&gt;
|-&lt;br /&gt;
|25&lt;br /&gt;
|HV PRECHARGE RELAY&lt;br /&gt;
|5V output to switch the pre-charge relay. Note you cannot switch these 12V devices directly from this output. You will need either a transistor or smaller relay arrangement to provide the appropriate voltage/current.&lt;br /&gt;
|-&lt;br /&gt;
|26&lt;br /&gt;
|CHARGER AC INPUT RELAY&lt;br /&gt;
|5V output to switch the main charger AC input relay. Note you cannot switch these 12V devices directly from this output. You will need either a transistor or smaller relay arrangement to provide the appropriate voltage/current.&lt;br /&gt;
|-&lt;br /&gt;
|27&lt;br /&gt;
|CHARGER HV DC REQUEST&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|28&lt;br /&gt;
|CHARGER AC PRECHARGE RELAY&lt;br /&gt;
|5V output to switch the charger AC input pre-charge relay. Note you cannot switch these 12V devices directly from this output. You will need either a transistor or smaller relay arrangement to provide the appropriate voltage/current.&lt;br /&gt;
|-&lt;br /&gt;
|29&lt;br /&gt;
|GROUND&lt;br /&gt;
|Common ground for 12V supply or 5V return&lt;br /&gt;
|-&lt;br /&gt;
|30&lt;br /&gt;
|EVSE PROXIMITY SIGNAL&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|31&lt;br /&gt;
|EVSE CONTROL PILOT SIGNAL&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|32&lt;br /&gt;
|CHARGER CAN HIGH&lt;br /&gt;
|CANBus digital communication connection for remote interface with charger&lt;br /&gt;
|-&lt;br /&gt;
|33&lt;br /&gt;
|CHARGER CAN LOW&lt;br /&gt;
|CANBus digital communication connection for remote interface with charger&lt;br /&gt;
|-&lt;br /&gt;
|34&lt;br /&gt;
|NOT USED&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|35&lt;br /&gt;
|NOT USED&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Connecting Resolver ==&lt;br /&gt;
For resolver connect EXC to one side of the exciter winding and other to Ground.&lt;br /&gt;
&lt;br /&gt;
Connect one side of SIN winding to SIN and other to Encoder A&lt;br /&gt;
&lt;br /&gt;
Conenct one side of COS winding to COS and other to encoder B.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/damienmaguire/Prius-Gen3-Inverter/tree/master/V2 Damien&#039;s Prius Gen3 v2 Github]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/damienmaguire/Prius-Gen3-Inverter/blob/master/V1c/PriusGen3HandPlacedParts.csv Bill of Hand Placed Parts] (Github)&lt;br /&gt;
&lt;br /&gt;
[https://github.com/damienmaguire/Prius-Gen3-Inverter/blob/master/V2/PriusG3_V1b_BOM_JLC.xls?raw=true Bill of Materials] (Github)&lt;br /&gt;
&lt;br /&gt;
The control board takes advantage of the [https://openinverter.org/wiki/Downloads OpenInverter.org software] for control.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=876</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=876"/>
		<updated>2020-07-04T19:28:28Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: minor tweaks of Prius Control Board - Wiring Map&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability, Prii have been made in large numbers for 20 years and spares are inexpensive.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of re-purposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v and up to 100amps power supply to the automotive systems and accessories.&lt;br /&gt;
* A tertiary power inverter to run the A/C, CAN controlled via the &amp;quot;BEAN&amp;quot; (????) network&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuit board. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) micro controller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connector - try to retrieve this connector and part of wiring loom when sourcing your inverter. Picture of connector further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is integrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Control Board Wiring Diagram.jpg|alt=|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
&#039;&#039;&#039;Control Board Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;32-pin Prius Inverter Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1||||vacant||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17||||vacant|| &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:Prius GEN 2 C 5 Connector Pinout.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
The onboard DC-DC Converter is powered by the high voltage traction battery to supply 12v and up to 100A for low-voltage automotive components and 12 battery maintenance (plays the role of a traditional alternator). Direct control of the converter is simple as only 1 wire is necessary to activate it, but a second can be added in order to enhance control.&lt;br /&gt;
&lt;br /&gt;
The 6-pin &amp;quot;C5&amp;quot; connector on the inverter needs to be wired as thus:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description !! Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| ?? || 12v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|2|| Unused? || Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|3||Unused?||Unused?|| ??&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Not Req.&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO|| Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|6|| Unused? || Unused? || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal).&lt;br /&gt;
&lt;br /&gt;
This will produce 13.2-15.2 VDC on the large C6 single-conductor connector nearby (equivalent to a car&#039;s 12v battery positive terminal), depending on voltage applied to pin 4 (if used). No base load is required to produce voltage. Pin 4, when grounded, will act as a &amp;quot;KILL&amp;quot; input and DC-DC output will drop to zero.&lt;br /&gt;
&lt;br /&gt;
Note that this output is unfused and uncontrolled, and not disabled when the main inverter ignition is off (it will be on all the time unless pin 1 of the C5 connector or the HV inputs are off). It could be tied directly to the ignition switch same as the control board ignition receives (TB1-8 on the control board ... Or should that be TB1-1/TB1-2 which is controlled by ignition???), or it could have separate power-on control if desired.&lt;br /&gt;
&lt;br /&gt;
Note on Limitations - As the signal to turn on the 12v converter (which converts the HV traction battery voltage down to 12v) requires some 12v power to turn itself on.  The DC-DC system is not designed  to charge up a low 12v battery and certainly not one that&#039;s completely dead. Doing so can damage the inverter/converter.&lt;br /&gt;
&lt;br /&gt;
== Inverter Cooling ==&lt;br /&gt;
&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the Hybrid Synergy Drive (HSD) cooling system reservoir.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Control_Board_Wiring_Diagram.jpg&amp;diff=875</id>
		<title>File:Prius Control Board Wiring Diagram.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Control_Board_Wiring_Diagram.jpg&amp;diff=875"/>
		<updated>2020-07-04T19:27:58Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Prius Control Board Wiring Diagram&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=874</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=874"/>
		<updated>2020-07-04T18:38:59Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: minor tweak of Prius Control Board Wiring Map&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability, Prii have been made in large numbers for 20 years and spares are inexpensive.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of re-purposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v and up to 100amps power supply to the automotive systems and accessories.&lt;br /&gt;
* A tertiary power inverter to run the A/C, CAN controlled via the &amp;quot;BEAN&amp;quot; (????) network&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuit board. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) micro controller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connector - try to retrieve this connector and part of wiring loom when sourcing your inverter. Picture of connector further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is integrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Control Board Wiring Map.jpg|alt=|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
&#039;&#039;&#039;Control Board Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;32-pin Prius Inverter Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1||||vacant||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17||||vacant|| &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:Prius GEN 2 C 5 Connector Pinout.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
The onboard DC-DC Converter is powered by the high voltage traction battery to supply 12v and up to 100A for low-voltage automotive components and 12 battery maintenance (plays the role of a traditional alternator). Direct control of the converter is simple as only 1 wire is necessary to activate it, but a second can be added in order to enhance control.&lt;br /&gt;
&lt;br /&gt;
The 6-pin &amp;quot;C5&amp;quot; connector on the inverter needs to be wired as thus:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description !! Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| ?? || 12v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|2|| Unused? || Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|3||Unused?||Unused?|| ??&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Not Req.&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO|| Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|6|| Unused? || Unused? || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal).&lt;br /&gt;
&lt;br /&gt;
This will produce 13.2-15.2 VDC on the large C6 single-conductor connector nearby (equivalent to a car&#039;s 12v battery positive terminal), depending on voltage applied to pin 4 (if used). No base load is required to produce voltage. Pin 4, when grounded, will act as a &amp;quot;KILL&amp;quot; input and DC-DC output will drop to zero.&lt;br /&gt;
&lt;br /&gt;
Note that this output is unfused and uncontrolled, and not disabled when the main inverter ignition is off (it will be on all the time unless pin 1 of the C5 connector or the HV inputs are off). It could be tied directly to the ignition switch same as the control board ignition receives (TB1-8 on the control board ... Or should that be TB1-1/TB1-2 which is controlled by ignition???), or it could have separate power-on control if desired.&lt;br /&gt;
&lt;br /&gt;
Note on Limitations - As the signal to turn on the 12v converter (which converts the HV traction battery voltage down to 12v) requires some 12v power to turn itself on.  The DC-DC system is not designed  to charge up a low 12v battery and certainly not one that&#039;s completely dead. Doing so can damage the inverter/converter.&lt;br /&gt;
&lt;br /&gt;
== Inverter Cooling ==&lt;br /&gt;
&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the Hybrid Synergy Drive (HSD) cooling system reservoir.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Control_Board_Wiring_Map.jpg&amp;diff=873</id>
		<title>File:Prius Control Board Wiring Map.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Control_Board_Wiring_Map.jpg&amp;diff=873"/>
		<updated>2020-07-04T18:38:00Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Prius Control Board Wiring Map&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=872</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=872"/>
		<updated>2020-07-04T18:08:01Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: tweaked Prius GEN 2 logic board wiring diagram&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability, Prii have been made in large numbers for 20 years and spares are inexpensive.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of re-purposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v and up to 100amps power supply to the automotive systems and accessories.&lt;br /&gt;
* A tertiary power inverter to run the A/C, CAN controlled via the &amp;quot;BEAN&amp;quot; (????) network&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuit board. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) micro controller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connector - try to retrieve this connector and part of wiring loom when sourcing your inverter. Picture of connector further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is integrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius GEN 2 logic board wiring diagram.jpg|alt=|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
&#039;&#039;&#039;Control Board Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;32-pin Prius Inverter Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1||||vacant||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17||||vacant|| &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:Prius GEN 2 C 5 Connector Pinout.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
The onboard DC-DC Converter is powered by the high voltage traction battery to supply 12v and up to 100A for low-voltage automotive components and 12 battery maintenance (plays the role of a traditional alternator). Direct control of the converter is simple as only 1 wire is necessary to activate it, but a second can be added in order to enhance control.&lt;br /&gt;
&lt;br /&gt;
The 6-pin &amp;quot;C5&amp;quot; connector on the inverter needs to be wired as thus:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description !! Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| ?? || 12v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|2|| Unused? || Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|3||Unused?||Unused?|| ??&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Not Req.&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO|| Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|6|| Unused? || Unused? || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal).&lt;br /&gt;
&lt;br /&gt;
This will produce 13.2-15.2 VDC on the large C6 single-conductor connector nearby (equivalent to a car&#039;s 12v battery positive terminal), depending on voltage applied to pin 4 (if used). No base load is required to produce voltage. Pin 4, when grounded, will act as a &amp;quot;KILL&amp;quot; input and DC-DC output will drop to zero.&lt;br /&gt;
&lt;br /&gt;
Note that this output is unfused and uncontrolled, and not disabled when the main inverter ignition is off (it will be on all the time unless pin 1 of the C5 connector or the HV inputs are off). It could be tied directly to the ignition switch same as the control board ignition receives (TB1-8 on the control board ... Or should that be TB1-1/TB1-2 which is controlled by ignition???), or it could have separate power-on control if desired.&lt;br /&gt;
&lt;br /&gt;
Note on Limitations - As the signal to turn on the 12v converter (which converts the HV traction battery voltage down to 12v) requires some 12v power to turn itself on.  The DC-DC system is not designed  to charge up a low 12v battery and certainly not one that&#039;s completely dead. Doing so can damage the inverter/converter.&lt;br /&gt;
&lt;br /&gt;
== Inverter Cooling ==&lt;br /&gt;
&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the Hybrid Synergy Drive (HSD) cooling system reservoir.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_GEN_2_logic_board_wiring_diagram.jpg&amp;diff=871</id>
		<title>File:Prius GEN 2 logic board wiring diagram.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_GEN_2_logic_board_wiring_diagram.jpg&amp;diff=871"/>
		<updated>2020-07-04T18:07:34Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Prius GEN 2 logic board wiring diagram&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=870</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=870"/>
		<updated>2020-07-04T08:47:57Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: minor tweaks of Prius Gen 2 logic board wiring diagram.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability, Prii have been made in large numbers for 20 years and spares are inexpensive.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of re-purposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v and up to 100amps power supply to the automotive systems and accessories.&lt;br /&gt;
* A tertiary power inverter to run the A/C, CAN controlled via the &amp;quot;BEAN&amp;quot; (????) network&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuit board. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) micro controller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connector - try to retrieve this connector and part of wiring loom when sourcing your inverter. Picture of connector further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is integrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Gen2 logic board wiring diagram.jpg|alt=|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
&#039;&#039;&#039;Control Board Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;32-pin Prius Inverter Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1||||vacant||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17||||vacant|| &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:Prius GEN 2 C 5 Connector Pinout.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
The onboard DC-DC Converter is powered by the high voltage traction battery to supply 12v and up to 100A for low-voltage automotive components and 12 battery maintenance (plays the role of a traditional alternator). Direct control of the converter is simple as only 1 wire is necessary to activate it, but a second can be added in order to enhance control.&lt;br /&gt;
&lt;br /&gt;
The 6-pin &amp;quot;C5&amp;quot; connector on the inverter needs to be wired as thus:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description !! Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| ?? || 12v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|2|| Unused? || Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|3||Unused?||Unused?|| ??&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Not Req.&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO|| Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|6|| Unused? || Unused? || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal).&lt;br /&gt;
&lt;br /&gt;
This will produce 13.2-15.2 VDC on the large C6 single-conductor connector nearby (equivalent to a car&#039;s 12v battery positive terminal), depending on voltage applied to pin 4 (if used). No base load is required to produce voltage. Pin 4, when grounded, will act as a &amp;quot;KILL&amp;quot; input and DC-DC output will drop to zero.&lt;br /&gt;
&lt;br /&gt;
Note that this output is unfused and uncontrolled, and not disabled when the main inverter ignition is off (it will be on all the time unless pin 1 of the C5 connector or the HV inputs are off). It could be tied directly to the ignition switch same as the control board ignition receives (TB1-8 on the control board ... Or should that be TB1-1/TB1-2 which is controlled by ignition???), or it could have separate power-on control if desired.&lt;br /&gt;
&lt;br /&gt;
Note on Limitations - As the signal to turn on the 12v converter (which converts the HV traction battery voltage down to 12v) requires some 12v power to turn itself on.  The DC-DC system is not designed  to charge up a low 12v battery and certainly not one that&#039;s completely dead. Doing so can damage the inverter/converter.&lt;br /&gt;
&lt;br /&gt;
== Inverter Cooling ==&lt;br /&gt;
&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the Hybrid Synergy Drive (HSD) cooling system reservoir.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Gen2_logic_board_wiring_diagram.jpg&amp;diff=869</id>
		<title>File:Prius Gen2 logic board wiring diagram.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Gen2_logic_board_wiring_diagram.jpg&amp;diff=869"/>
		<updated>2020-07-04T08:47:20Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Prius Gen2 logic board wiring diagram&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=868</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=868"/>
		<updated>2020-07-04T08:25:43Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: Made minor changes to Prius Gen 2 logic board wiring diagram.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability, Prii have been made in large numbers for 20 years and spares are inexpensive.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of re-purposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v and up to 100amps power supply to the automotive systems and accessories.&lt;br /&gt;
* A tertiary power inverter to run the A/C, CAN controlled via the &amp;quot;BEAN&amp;quot; (????) network&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuit board. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) micro controller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connector - try to retrieve this connector and part of wiring loom when sourcing your inverter. Picture of connector further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is integrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Gen 2 logic board wiring diagram..jpg|alt=|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
&#039;&#039;&#039;Control Board Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;32-pin Prius Inverter Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1||||vacant||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17||||vacant|| &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:Prius GEN 2 C 5 Connector Pinout.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
The onboard DC-DC Converter is powered by the high voltage traction battery to supply 12v and up to 100A for low-voltage automotive components and 12 battery maintenance (plays the role of a traditional alternator). Direct control of the converter is simple as only 1 wire is necessary to activate it, but a second can be added in order to enhance control.&lt;br /&gt;
&lt;br /&gt;
The 6-pin &amp;quot;C5&amp;quot; connector on the inverter needs to be wired as thus:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description !! Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| ?? || 12v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|2|| Unused? || Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|3||Unused?||Unused?|| ??&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Not Req.&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO|| Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|6|| Unused? || Unused? || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal).&lt;br /&gt;
&lt;br /&gt;
This will produce 13.2-15.2 VDC on the large C6 single-conductor connector nearby (equivalent to a car&#039;s 12v battery positive terminal), depending on voltage applied to pin 4 (if used). No base load is required to produce voltage. Pin 4, when grounded, will act as a &amp;quot;KILL&amp;quot; input and DC-DC output will drop to zero.&lt;br /&gt;
&lt;br /&gt;
Note that this output is unfused and uncontrolled, and not disabled when the main inverter ignition is off (it will be on all the time unless pin 1 of the C5 connector or the HV inputs are off). It could be tied directly to the ignition switch same as the control board ignition receives (TB1-8 on the control board ... Or should that be TB1-1/TB1-2 which is controlled by ignition???), or it could have separate power-on control if desired.&lt;br /&gt;
&lt;br /&gt;
Note on Limitations - As the signal to turn on the 12v converter (which converts the HV traction battery voltage down to 12v) requires some 12v power to turn itself on.  The DC-DC system is not designed  to charge up a low 12v battery and certainly not one that&#039;s completely dead. Doing so can damage the inverter/converter.&lt;br /&gt;
&lt;br /&gt;
== Inverter Cooling ==&lt;br /&gt;
&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the Hybrid Synergy Drive (HSD) cooling system reservoir.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_logic_board_wiring_diagram..jpg&amp;diff=867</id>
		<title>File:Prius Gen 2 logic board wiring diagram..jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_logic_board_wiring_diagram..jpg&amp;diff=867"/>
		<updated>2020-07-04T08:24:56Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Prius Gen 2 logic board wiring diagram.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=866</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=866"/>
		<updated>2020-07-03T07:54:53Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: Changed image of gen 2 board wiring.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability, Prii have been made in large numbers for 20 years and spares are inexpensive.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of re-purposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v and up to 100amps power supply to the automotive systems and accessories.&lt;br /&gt;
* A tertiary power inverter to run the A/C, CAN controlled via the &amp;quot;BEAN&amp;quot; (????) network&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuit board. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) micro controller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connector - try to retrieve this connector and part of wiring loom when sourcing your inverter. Picture of connector further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is integrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Gen 2 logic board(BluePill-based).jpg|alt=|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
&#039;&#039;&#039;Control Board Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;32-pin Prius Inverter Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1||||vacant||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17||||vacant|| &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:Prius GEN 2 C 5 Connector Pinout.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
The onboard DC-DC Converter is powered by the high voltage traction battery to supply 12v and up to 100A for low-voltage automotive components and 12 battery maintenance (plays the role of a traditional alternator). Direct control of the converter is simple as only 1 wire is necessary to activate it, but a second can be added in order to enhance control.&lt;br /&gt;
&lt;br /&gt;
The 6-pin &amp;quot;C5&amp;quot; connector on the inverter needs to be wired as thus:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description !! Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| ?? || 12v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|2|| Unused? || Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|3||Unused?||Unused?|| ??&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Not Req.&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO|| Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|6|| Unused? || Unused? || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal).&lt;br /&gt;
&lt;br /&gt;
This will produce 13.2-15.2 VDC on the large C6 single-conductor connector nearby (equivalent to a car&#039;s 12v battery positive terminal), depending on voltage applied to pin 4 (if used). No base load is required to produce voltage. Pin 4, when grounded, will act as a &amp;quot;KILL&amp;quot; input and DC-DC output will drop to zero.&lt;br /&gt;
&lt;br /&gt;
Note that this output is unfused and uncontrolled, and not disabled when the main inverter ignition is off (it will be on all the time unless pin 1 of the C5 connector or the HV inputs are off). It could be tied directly to the ignition switch same as the control board ignition receives (TB1-8 on the control board ... Or should that be TB1-1/TB1-2 which is controlled by ignition???), or it could have separate power-on control if desired.&lt;br /&gt;
&lt;br /&gt;
Note on Limitations - As the signal to turn on the 12v converter (which converts the HV traction battery voltage down to 12v) requires some 12v power to turn itself on.  The DC-DC system is not designed  to charge up a low 12v battery and certainly not one that&#039;s completely dead. Doing so can damage the inverter/converter.&lt;br /&gt;
&lt;br /&gt;
== Inverter Cooling ==&lt;br /&gt;
&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the Hybrid Synergy Drive (HSD) cooling system reservoir.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_logic_board(BluePill-based).jpg&amp;diff=865</id>
		<title>File:Prius Gen 2 logic board(BluePill-based).jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_logic_board(BluePill-based).jpg&amp;diff=865"/>
		<updated>2020-07-03T07:53:08Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Wiring diagram for a Prius Gen 2 logic board.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=551</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=551"/>
		<updated>2020-04-19T06:38:20Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: updated picture of C 5 connector pinout&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability, Prii have been made in large numbers for 20 years and spares are inexpensive.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of re-purposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v and up to 100amps power supply to the automotive systems and accessories.&lt;br /&gt;
* A tertiary power inverter to run the A/C, CAN controlled via the &amp;quot;BEAN&amp;quot; (????) network&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuitboard. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) microcontroller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connector - try to retrieve this connector and part of wiring loom when sourcing your inverter. Picture of connector further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is integrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Control Board - Wiring Map.png|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
&#039;&#039;&#039;Control Board Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;32-pin Prius Inverter Pin mapping:&#039;&#039;&#039;&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1||||vacant||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17||||vacant|| &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:Prius GEN 2 C 5 Connector Pinout.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
The onboard DC-DC Converter is powered by the high voltage traction battery to supply 12v and up to 100A for low-voltage automotive components and 12 battery maintenance (plays the role of a traditional alternator). It is not designed to charge or re-charge a low 12v battery!  Direct control of the converter is simple as only 1 wire is necessary to activate it, but a second can be added in order to enhance control.&lt;br /&gt;
&lt;br /&gt;
The 6-pin &amp;quot;C5&amp;quot; connector on the inverter needs to be wired as thus:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description !! Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| ?? || 12v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|2|| Unused? || Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|3||Unused?||Unused?|| ??&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Not Req.&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO|| Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|6|| Unused? || Unused? || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal).&lt;br /&gt;
&lt;br /&gt;
This will produce 13.2-15.2 VDC on the large C6 single-conductor connector nearby (equivalent to a car&#039;s 12v battery positive terminal), depending on voltage applied to pin 4 (if used). No base load is required to produce voltage. Pin 4, when grounded, will act a a &amp;quot;KILL&amp;quot; input and DC-DC output will drop to zero.&lt;br /&gt;
&lt;br /&gt;
Note that this output is unfused and uncontrolled, and not disabled when the main inverter ignition is off (it will be on all the time unless pin 1 of the C5 connector is off). It could be tied directly to the ignition switch same as the control board ignition receives (TB1-8 on the control board ... Or should that be TB1-1/TB1-2 which is controlled by ignition???), or it could have separate power-on control if desired.&lt;br /&gt;
&lt;br /&gt;
== Inverter Cooling ==&lt;br /&gt;
&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the Hybrid Synergy Drive (HSD) cooling system reservoir.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_GEN_2_C_5_Connector_Pinout.png&amp;diff=550</id>
		<title>File:Prius GEN 2 C 5 Connector Pinout.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_GEN_2_C_5_Connector_Pinout.png&amp;diff=550"/>
		<updated>2020-04-19T06:37:39Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Prius GEN 2 inverter&#039;s DC-DC converter connector pinout&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=543</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=543"/>
		<updated>2020-04-18T06:33:12Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: updated picture of c5 connector&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability. Priuses have been made in large numbers for 20 years.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of repurposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v and up to 100amps power supply to the automotive systems and accessories.&lt;br /&gt;
* A tertiary power inverter to run the A/C, CAN controlled via the &amp;quot;BEAN&amp;quot; (????) network&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuitboard. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) microcontroller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connecter - try to retrieve this connecter and part of wiring loom when sourcing your inverter. Picture of connecter further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is intergrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Control Board - Wiring Map.png|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
Control Board Pinout:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
32-pin Prius Inverter Pinout:&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| NC ||Not connected||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17|| NC || Not connected || &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== DC-DC Converter ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:Prius GEN 2 C5 Connector Pinout.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
The onboard DC-DC Converter is powered by the high voltage traction battery to supply 12v and up to 100A for low-voltage automotive components and 12 battery charging (plays the role of a traditional alternator). Control is not currently supported by the v1 control board, however, direct control of the converter is simple.&lt;br /&gt;
&lt;br /&gt;
Only 2 wires are necessary to activate it. The 6-pin &amp;quot;C5&amp;quot; connector on the inverter needs to be wired as thus:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description !! Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| ?? || 12v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|2|| Unused? || Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|3||Unused?||Unused?|| ??&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ || ??&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO|| Unused? || ??&lt;br /&gt;
|-&lt;br /&gt;
|6|| Unused? || Unused? || ??&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal).&lt;br /&gt;
&lt;br /&gt;
This will produce 13.2-15.2 VDC on the large C6 single-conductor connector nearby (equivalent to a car&#039;s 12v battery positive terminal), depending on voltage applied to pin 4. No base load is required to produce voltage.&lt;br /&gt;
&lt;br /&gt;
Note that this output is unfused and uncontrolled, and not disabled when the main inverter ignition is off (it will be on all the time unless pin 1 of the C5 connector is off). It could be tied directly to the ignition switch same as the control board ignition receives (TB1-8 on the control board ... Or should that be TB1-1/TB1-2 which is controlled by ignition???), or it could have separate power-on control if desired.&lt;br /&gt;
&lt;br /&gt;
== Inverter Cooling ==&lt;br /&gt;
&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the Hybrid Synergy Drive (HSD) cooling system reservoir.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_GEN_2_C5_Connector_Pinout.png&amp;diff=542</id>
		<title>File:Prius GEN 2 C5 Connector Pinout.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_GEN_2_C5_Connector_Pinout.png&amp;diff=542"/>
		<updated>2020-04-18T06:31:21Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pinout of inveerter&#039;s &amp;quot;C 5&amp;quot; connector, to operate DC-DC converter&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=536</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=536"/>
		<updated>2020-04-17T19:11:54Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: corrected a mistake in inverter internals picture&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 inverter internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability. Priuses have been made in large numbers for 20 years.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of repurposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v power supply to the automotive systems and accessories.&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuitboard. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) microcontroller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connecter - try to retrieve this connecter and part of wiring loom when sourcing your inverter. Picture of connecter further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is intergrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Control Board - Wiring Map.png|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
Control Board Pinout:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
32-pin Prius Inverter Pinout:&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| NC ||Not connected||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17|| NC || Not connected || &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Additional Inverter / Converter details: ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:DC-DC converter C5 Connector.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the HSD cooling system reservoir.    &lt;br /&gt;
&lt;br /&gt;
The DC-DC charging connections on the Gen2 Prius Inverter are on the rear, they are &amp;quot;C5&amp;quot; (6 pin gray) &amp;amp; &amp;quot;C6&amp;quot; (1 large pin gray).&lt;br /&gt;
&lt;br /&gt;
Here is what is needed for the Gen2 Inverter DC-DC to work...12v on pins #1 &amp;amp; #3, 5v on pin #4 of connector &amp;quot;C5&amp;quot; (gray one) and the case grounded.  It is not required to have a load applied to the large gray 12v connector (C6) to obtain an output.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Gen2_inverter_internals.jpg&amp;diff=535</id>
		<title>File:Prius Gen2 inverter internals.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Gen2_inverter_internals.jpg&amp;diff=535"/>
		<updated>2020-04-17T19:11:07Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Main internal components of gen 2 inverter assembly&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=534</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=534"/>
		<updated>2020-04-17T19:05:32Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: Updated pictures of inverter assembly&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 inverter montage.jpg|alt=|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Gen2 internals.jpg|alt=|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability. Priuses have been made in large numbers for 20 years.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of repurposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v power supply to the automotive systems and accessories.&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuitboard. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|300x300px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) microcontroller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connecter - try to retrieve this connecter and part of wiring loom when sourcing your inverter. Picture of connecter further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is intergrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Control Board - Wiring Map.png|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
Control Board Pinout:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
32-pin Prius Inverter Pinout:&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| NC ||Not connected||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17|| NC || Not connected || &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Additional Inverter / Converter details: ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.|284x284px]]&lt;br /&gt;
[[File:DC-DC converter C5 Connector.png|alt=|thumb|DC-DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the HSD cooling system reservoir.    &lt;br /&gt;
&lt;br /&gt;
The DC-DC charging connections on the Gen2 Prius Inverter are on the rear, they are &amp;quot;C5&amp;quot; (6 pin gray) &amp;amp; &amp;quot;C6&amp;quot; (1 large pin gray).&lt;br /&gt;
&lt;br /&gt;
Here is what is needed for the Gen2 Inverter DC-DC to work...12v on pins #1 &amp;amp; #3, 5v on pin #4 of connector &amp;quot;C5&amp;quot; (gray one) and the case grounded.  It is not required to have a load applied to the large gray 12v connector (C6) to obtain an output.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:DC-DC_converter_C5_Connector.png&amp;diff=533</id>
		<title>File:DC-DC converter C5 Connector.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:DC-DC_converter_C5_Connector.png&amp;diff=533"/>
		<updated>2020-04-17T19:03:43Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pinout of DC-DC 201V to 14.5V converter connector.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Gen2_internals.jpg&amp;diff=532</id>
		<title>File:Gen2 internals.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Gen2_internals.jpg&amp;diff=532"/>
		<updated>2020-04-17T19:00:04Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Inverter&#039;s main internal components&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_inverter_montage.jpg&amp;diff=531</id>
		<title>File:Prius Gen 2 inverter montage.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_inverter_montage.jpg&amp;diff=531"/>
		<updated>2020-04-17T18:58:46Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Inverter&#039;s main external details&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=530</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=530"/>
		<updated>2020-04-17T13:50:46Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: added picture of dc/dc converter C5 connector&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 Inverter.jpg|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 Inverter - Internal.jpg|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability. Priuses have been made in large numbers for 20 years.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of repurposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v power supply to the automotive systems and accessories.&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuitboard. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|220x220px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) microcontroller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connecter - try to retrieve this connecter and part of wiring loom when sourcing your inverter. Picture of connecter further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is intergrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Control Board - Wiring Map.png|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
Control Board Pinout:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
32-pin Prius Inverter Pinout:&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| NC ||Not connected||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17|| NC || Not connected || &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Additional Inverter / Converter details: ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.]]&lt;br /&gt;
[[File:Prius Gen 2 &amp;quot;C 5&amp;quot; Connector.png|thumb|DC/DC converter &amp;quot;C 5&amp;quot; connector]]&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the HSD cooling system reservoir.    &lt;br /&gt;
&lt;br /&gt;
The DC-DC charging connections on the Gen2 Prius Inverter are on the rear, they are &amp;quot;C5&amp;quot; (6 pin gray) &amp;amp; &amp;quot;C6&amp;quot; (1 large pin gray).&lt;br /&gt;
&lt;br /&gt;
Here is what is needed for the Gen2 Inverter DC-DC to work...12v on pins #1 &amp;amp; #3, 5v on pin #4 of connector &amp;quot;C5&amp;quot; (gray one) and the case grounded.  It is not required to have a load applied to the large gray 12v connector (C6) to obtain an output.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_%22C_5%22_Connector.png&amp;diff=529</id>
		<title>File:Prius Gen 2 &quot;C 5&quot; Connector.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_%22C_5%22_Connector.png&amp;diff=529"/>
		<updated>2020-04-17T13:47:14Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This connector is responsible for operation of onboard DC/DC converter, wich supplies 14,5V to auxiliary circuit&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=523</id>
		<title>Toyota Prius Gen2 Board</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=523"/>
		<updated>2020-04-15T18:16:21Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: Added picture of inverter lower casing with description and edited text about replacing the original control board as it is not situated inside the inverter.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Prius Board v1.jpg|thumb|Prius Board v1]]&lt;br /&gt;
&lt;br /&gt;
The Toyota Prius Gen2 Board is an open source project to repurpose 2004-2009 Toyota Prius inverters for DIY EV use. It consists of a circuit board and programming that replaces the original logic board, connected to the inverter and allows independent control of it without communicating with a Prius ECU. &lt;br /&gt;
&lt;br /&gt;
Note that there is also a [[Toyota Prius Gen3 Board]] for the 2010-2015 model years.&lt;br /&gt;
&lt;br /&gt;
== Prius Inverter ==&lt;br /&gt;
[[File:Prius Gen 2 Inverter.jpg|thumb|Prius Gen 2 Inverter Montage]]&lt;br /&gt;
[[File:Prius Gen2 Inverter - Internal.jpg|thumb|Internal look at the Prius Gen2 Inverter]]&lt;br /&gt;
The Toyota Prius is a hybrid vehicle. Their inverters are suitable and attractive for DIY EVs because of:&lt;br /&gt;
* Large part availability. Priuses have been made in large numbers for 20 years.&lt;br /&gt;
* High affordability. Prius inverters are available for around $150 from scrapyards everywhere.&lt;br /&gt;
* Durability. Toyota engineers appear to have made the inverters foolproof, many inputs and outputs gracefully handle fault conditions.&lt;br /&gt;
* Respectable performance. Rated for 50kW output, but tested to handle 600v, and [https://www.youtube.com/watch?v=y6mlXahM9B0 350+A for MG2 inverter, 250+A for MG1 inverter], 360kW total (480hp).&lt;br /&gt;
* Ease of repurposing. Emulating the original ECU seems reasonably feasible.&lt;br /&gt;
&lt;br /&gt;
The Gen2 Prius (2004-2009 model years) has a variety of useful components inside the inverter package:&lt;br /&gt;
* 2 high power inverters, for the 2 motors MG1 (starter) capable of handling 250 amps, and MG2 (drive motor) capable of handling 350 amps.&lt;br /&gt;
* A DC-DC converter to provide 12v power supply to the automotive systems and accessories.&lt;br /&gt;
* A boost module to boost the 200v battery pack up to 500v, which looks to be able to function as a battery charger (wish list for future development)&lt;br /&gt;
* See this video for a thorough disassembly and explanation of the Gen2 Inverter (Timestamp 1:15:30): https://www.youtube.com/watch?v=Y7Vm-C4MsW8&amp;amp;t=4531&lt;br /&gt;
&lt;br /&gt;
== Control Board ==&lt;br /&gt;
&lt;br /&gt;
As designed by Damien Maguire, the open source hardware for the control board can be purchased as blank, unpopulated boards on his website: [https://evbmw.com/index.php/evbmw-webshop/toyota-bare-boards/prius-gen-2-inverter-bare-logic-board Prius Gen2 Logic Board on EVBMW&#039;s Webshop]&lt;br /&gt;
&lt;br /&gt;
== How To Use ==&lt;br /&gt;
&lt;br /&gt;
The Prius Gen2 Board is suitable to control any (please add: motor types here) motors.&lt;br /&gt;
&lt;br /&gt;
Note: There is a mistake in the printing on the v1 circuitboard. The parts labelled T1, T2, and T3 - which are the small black transistors in the upper right of the board - are all drawn backwards to how they need to be inserted. These parts should be installed with the flat side of the component facing the opposite direction as the printing shows. The flat side should be to the right.&lt;br /&gt;
&lt;br /&gt;
Schematics, Bill of Materials, and other documentation are available on [https://github.com/damienmaguire/Prius-Gen-2-Inverter Damien&#039;s Project Github]&lt;br /&gt;
(note: flesh out bill of materials here, or post changes to Damien to update his documentation directly?)&lt;br /&gt;
[[File:Prius Gen 2 inverter lower casing internals.png|thumb|220x220px|Prius gen 2 inverter lower casing internals]]&lt;br /&gt;
The control board utilizes the Blue Pill (link?) microcontroller, and takes advantage of the OpenInverter.org software (link?) for control. It is also connected from the outside via the main (32 pin white) OEM connecter - try to retrieve this connecter and part of wiring loom when sourcing your inverter. Picture of connecter further down in wiki.&lt;br /&gt;
&lt;br /&gt;
The  control board design incorporates the use of the existing inverter Current Sensors - if FOC option is to be used (Gen 2 Transaxle MG2), bandwidth should be a multiple of control loop frequency which is 8.8kHz. (link to how to modify original setup?)&lt;br /&gt;
&lt;br /&gt;
Functionality of the existing resolver is intergrated as well.  &lt;br /&gt;
&lt;br /&gt;
Assembly notes?&lt;br /&gt;
Blue Pill programming notes or just links to Blue Pill section?&lt;br /&gt;
&lt;br /&gt;
Try to get all the wiring harness bits that plug into the inverter when you purchase it. Else, the 32-pin connector inside the inverter part number is: 1318747-1, and the pins to wire it are: 1123343-1 &lt;br /&gt;
&lt;br /&gt;
Terminal Block Connection list (rough, in-progress):&lt;br /&gt;
&lt;br /&gt;
== Wire Connections ==&lt;br /&gt;
[[File:Prius Control Board - Wiring Map.png|thumb|700x700px|Prius Control Board - Wiring Map (click to see fullsize details)]]&lt;br /&gt;
Control Board Pinout:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Pin # !! Designation !! Description&lt;br /&gt;
|-&lt;br /&gt;
|TB1-1&lt;br /&gt;
||12v-in&lt;br /&gt;
||Primary 12v supply from ignition on&lt;br /&gt;
|-&lt;br /&gt;
|TB1-2&lt;br /&gt;
|GND&lt;br /&gt;
||Primary ground connection to 12v negative. All grounds are common&lt;br /&gt;
|-&lt;br /&gt;
|TB1-3&lt;br /&gt;
|5v VCC&lt;br /&gt;
||5V supply from board for use with throttle pot or hall pedal&lt;br /&gt;
|-&lt;br /&gt;
|TB1-4&lt;br /&gt;
|Throttle In&lt;br /&gt;
||0-5v variable voltage input from throttle pedal or pot&lt;br /&gt;
|-&lt;br /&gt;
|TB1-5&lt;br /&gt;
|Regen In &lt;br /&gt;
||0-5v variable voltage input. Can be used as second throttle channel or control regen from a brake pressure sensor&lt;br /&gt;
|-&lt;br /&gt;
|TB1-6&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|TB1-7&lt;br /&gt;
|Brake In &lt;br /&gt;
||12v digital input from brake light switch.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-8&lt;br /&gt;
|Start In &lt;br /&gt;
||12v digital input from &amp;quot;Start&amp;quot; position on a traditional ignition switch. Momentary action push button can be used.&lt;br /&gt;
|-&lt;br /&gt;
|TB1-9&lt;br /&gt;
|For In &lt;br /&gt;
||12v digital input commands motor to run in forward direction&lt;br /&gt;
|-&lt;br /&gt;
|TB1-10&lt;br /&gt;
|Rev In &lt;br /&gt;
||12v digital input commands motor to run in reverse direction&lt;br /&gt;
|-&lt;br /&gt;
|TB3-1&lt;br /&gt;
| +12v VCC &lt;br /&gt;
||12v output to inverter IGCT terminal (Not on the 32-pin connector, the red wire on the 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-2&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground, but used to connect to inverter GND terminal (Not on the 32-pin connector, the black wire on 2-pin connector next to it).&lt;br /&gt;
|-&lt;br /&gt;
|TB3-3&lt;br /&gt;
|Phase U ||&lt;br /&gt;
Phase U output. Connect to Inverter MUU terminal for MG2 inverter drive or GUU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-4&lt;br /&gt;
|Phase Y&lt;br /&gt;
||Phase V output. Connect to Inverter MVU terminal for MG2 inverter drive or GVU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-5&lt;br /&gt;
|Phase W&lt;br /&gt;
||Phase W output. Connect to Inverter MWU terminal for MG2 inverter drive or GWU for MG1 inverter drive&lt;br /&gt;
|-&lt;br /&gt;
|TB3-6&lt;br /&gt;
|Current U&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-7&lt;br /&gt;
|Current Y&lt;br /&gt;
||Phase currents from inverter. Requires external divider circuit. Not required to run motor or inverter.&lt;br /&gt;
|-&lt;br /&gt;
|TB3-8&lt;br /&gt;
|MG2 Enable&lt;br /&gt;
||Connect to Inverter MSDN to run MG2 inverter or GSDN to run MG1 inverter&lt;br /&gt;
|-&lt;br /&gt;
|TB3-9&lt;br /&gt;
|MG2 Fault&lt;br /&gt;
||Connect to MFIV for MG2 or GFIV for MG1&lt;br /&gt;
|-&lt;br /&gt;
|TB3-10&lt;br /&gt;
|DC Bus&lt;br /&gt;
||Connect to inverter VH to measure DC link voltage&lt;br /&gt;
|-&lt;br /&gt;
|TB2-1&lt;br /&gt;
| +5V VCC &lt;br /&gt;
||5v output to encoder for induction motor&lt;br /&gt;
|-&lt;br /&gt;
|TB2-2&lt;br /&gt;
|ENCA In &lt;br /&gt;
||Encoder input A&lt;br /&gt;
|-&lt;br /&gt;
|TB2-3&lt;br /&gt;
|ENCB In&lt;br /&gt;
||Encoder input B&lt;br /&gt;
|-&lt;br /&gt;
|TB2-4&lt;br /&gt;
|GND&lt;br /&gt;
|Encoder ground&lt;br /&gt;
|-&lt;br /&gt;
|TB2-5&lt;br /&gt;
|HS Temp&lt;br /&gt;
||Heatsink temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB2-6&lt;br /&gt;
|MOT Temp&lt;br /&gt;
||Motor temp sensor input&lt;br /&gt;
|-&lt;br /&gt;
|TB4-1&lt;br /&gt;
|GND&lt;br /&gt;
|Common ground&lt;br /&gt;
|-&lt;br /&gt;
|TB4-2&lt;br /&gt;
|Main Con&lt;br /&gt;
||Main HV contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-3&lt;br /&gt;
|Precharge&lt;br /&gt;
||HV precharge contactor control low side switch&lt;br /&gt;
|-&lt;br /&gt;
|TB4-4&lt;br /&gt;
| +12 V VCC &lt;br /&gt;
||Spare 12v output&lt;br /&gt;
|-&lt;br /&gt;
|TB4-5&lt;br /&gt;
|CAN L&lt;br /&gt;
||Can bus low signal&lt;br /&gt;
|-&lt;br /&gt;
|TB4-6&lt;br /&gt;
|CAN H&lt;br /&gt;
||Can bus high signal&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
32-pin Prius Inverter Pinout:&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Pin # !! Designation !! Description!!Wire Color&lt;br /&gt;
|-&lt;br /&gt;
|1|| NC ||Not connected||&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V || Example&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V|| Example&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Example&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground || Example&lt;br /&gt;
|-&lt;br /&gt;
|17|| NC || Not connected || &lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W || Example&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor|| Example&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W|| Example&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown|| Example&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature|| Example&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail|| Example&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage|| Example&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal|| Example&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground|| Example&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Additional Inverter / Converter details: ==&lt;br /&gt;
[[File:Gen2 Prius DC-DC Connections.jpg|thumb|Prius Gen2 DC-DC connections.]]&lt;br /&gt;
Inverter coolant enters at the front and exits the rear of the inverter housing from the o-ring port connected to the HSD cooling system reservoir.    &lt;br /&gt;
&lt;br /&gt;
The DC-DC charging connections on the Gen2 Prius Inverter are on the rear, they are &amp;quot;C5&amp;quot; &amp;amp; &amp;quot;C6&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_inverter_lower_casing_internals.png&amp;diff=522</id>
		<title>File:Prius Gen 2 inverter lower casing internals.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_inverter_lower_casing_internals.png&amp;diff=522"/>
		<updated>2020-04-15T18:11:10Z</updated>

		<summary type="html">&lt;p&gt;Konstantin8818: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Picture taken at WeberAuto youtube channel, shows internals of prius gen 2 inverter lower casing&lt;/div&gt;</summary>
		<author><name>Konstantin8818</name></author>
	</entry>
</feed>