<?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=RetroZero</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=RetroZero"/>
	<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/Special:Contributions/RetroZero"/>
	<updated>2026-05-02T12:15:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Inverter_Controller&amp;diff=5789</id>
		<title>Toyota Prius Gen2 Inverter Controller</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Inverter_Controller&amp;diff=5789"/>
		<updated>2025-05-20T19:22:52Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: /* Hardware Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The OpenInverter Prius Gen 2 Inverter Controller is an open-source board designed to repurpose the [[Toyota Prius Gen2 Inverter]] by replacing the essential components of the Prius wiring harness and electronics. It runs the OpenInverter.org software for vehicle control. It derives from the (now-deprecated) earlier Prius Gen 2 work done by Damien Maguire of EVBMW.com and is Damien&#039;s recommended replacement for the [[Toyota Prius Gen2 EVBMW Throughhole Board]].&lt;br /&gt;
&lt;br /&gt;
== Purchase ==&lt;br /&gt;
&lt;br /&gt;
2 versions are available, one mostly-assembled kit with all connectors and an enclosure, and a less expensive incomplete barebones kit:&lt;br /&gt;
&lt;br /&gt;
Full kit: https://openinverter.org/shop/index.php?route=product/product&amp;amp;product_id=63&lt;br /&gt;
&lt;br /&gt;
PCB-only kit: https://openinverter.org/shop/index.php?route=product/product&amp;amp;product_id=68&lt;br /&gt;
&lt;br /&gt;
== Project ==&lt;br /&gt;
&lt;br /&gt;
(Note: Links to Github/etc design files here?)&lt;br /&gt;
&lt;br /&gt;
== Hardware Notes ==&lt;br /&gt;
&lt;br /&gt;
(Note: this section is pretty sloppy, if you&#039;re looking to contribute, this would be a nice area to start)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Enclosure Details&#039;&#039;&#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+The SMD board was designed to work the the following enclosure and connectors:&lt;br /&gt;
!Description&lt;br /&gt;
!Part Number&lt;br /&gt;
!Data Sheet&lt;br /&gt;
|-&lt;br /&gt;
|Cinch Header 12 + 20 &lt;br /&gt;
|5810132011&lt;br /&gt;
|https://www.mouser.co.uk/datasheet/2/643/Bel_07192016_Modice%20ME-MX-1216545.pdf&lt;br /&gt;
|-&lt;br /&gt;
|Modice Enclosure &lt;br /&gt;
|5810130075&lt;br /&gt;
|https://www.mouser.co.uk/datasheet/2/643/dr-CCS-ICE-5810130065-75-1551287.pdf&lt;br /&gt;
|-&lt;br /&gt;
|Molex 12-Pin Connector&lt;br /&gt;
|0334721202&lt;br /&gt;
|https://www.mouser.co.uk/datasheet/2/276/0334721202_CRIMP_HOUSINGS-162938.pdf&lt;br /&gt;
|-&lt;br /&gt;
|Molex 20-Pin Connector&lt;br /&gt;
|0334722001&lt;br /&gt;
|https://www.mouser.co.uk/datasheet/2/276/0334722001_CRIMP_HOUSINGS-162940.pdf&lt;br /&gt;
|-&lt;br /&gt;
|WIFI Module&lt;br /&gt;
|MOD-WIFI-ESP8266&lt;br /&gt;
|https://www.ebay.co.uk/itm/194313893813?epid=2280174677&amp;amp;hash=item2d3e02b7b5:g:v-MAAOSw4ulhJ1wg&lt;br /&gt;
|-&lt;br /&gt;
|WIFI Pins&lt;br /&gt;
|10-way IDC Box Header Connector&lt;br /&gt;
|https://www.ebay.co.uk/itm/153727472406&lt;br /&gt;
|}&lt;br /&gt;
Pin Mapping - Note : Smaller 12-pin socket is the interface to the inverter &amp;amp; 20-pin to the motor&lt;br /&gt;
[[File:32 Pin Main Inverter connector .png|thumb|32 Pin Main white connector Gen 2 Inverter emplacement]]&lt;br /&gt;
&#039;&#039;&#039;20 - Pin socket&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#01 - ENC_B/S3&lt;br /&gt;
&lt;br /&gt;
Pin#02 - S1S4&lt;br /&gt;
&lt;br /&gt;
Pin#03 - ENC_A/S2&lt;br /&gt;
&lt;br /&gt;
Pin#04 - R1&lt;br /&gt;
&lt;br /&gt;
Pin#05 - R2&lt;br /&gt;
&lt;br /&gt;
Pin#06 - 5V&lt;br /&gt;
&lt;br /&gt;
Pin#07 - THROTTLE 1&lt;br /&gt;
&lt;br /&gt;
Pin#08 - THROTTLE 2&lt;br /&gt;
[[File:VCU to Prius Gen2 v1.1.png|alt=|thumb|VCU to Prius Gen2 wiring v1.1]]&lt;br /&gt;
Pin#09 - START_IN (12V) &#039;&#039;&#039;Push button type switch - not a permanent 12v input&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#10 - BRAKE_IN (12V) &#039;&#039;&#039;Push button type switch - not a permanent 12v input&#039;&#039;&#039;&lt;br /&gt;
[[File:Adapter board pin outs.png|thumb|Adapter Board Pin out locations]]&lt;br /&gt;
Pin#11 - FORWARD_IN (12V) &#039;&#039;&#039;(1, 2 or 3 way switch) Do not connect permanently - selected AFTER START&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#12 - REVERSE_IN (12V)  &#039;&#039;&#039;(1, 2 or 3 way switch) Do not connect permanently - selected AFTER START&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#13 - Motor Temp -&lt;br /&gt;
&lt;br /&gt;
Pin#14 - Motor Temp +&lt;br /&gt;
&lt;br /&gt;
Pin#15 - DC (HV) Switch Control (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#16 - Pre-ChARGE Control (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#17 -  CAN L&lt;br /&gt;
&lt;br /&gt;
Pin#18 - CAN H&lt;br /&gt;
&lt;br /&gt;
Pin#19 - Ground&lt;br /&gt;
&lt;br /&gt;
Pin#20 - 12V &amp;quot;Ignition&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12 - Pin socket ( starts at pin number #21) - Corresponding pin on Main White 32 pin Inverter connector is in brackets.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#21 - GIVA (2)&lt;br /&gt;
&lt;br /&gt;
Pin#22 - MIVA (7)&lt;br /&gt;
&lt;br /&gt;
Pin#23 - GIWA (18)&lt;br /&gt;
&lt;br /&gt;
Pin#24 - MIWA (23)&lt;br /&gt;
&lt;br /&gt;
Pin#25 - VH (12)&lt;br /&gt;
&lt;br /&gt;
Pin#26 - MIVT (26)&lt;br /&gt;
&lt;br /&gt;
Pin#27 - MFIV (27)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#28 - MUU (9)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#29 - MVU (10)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#30 - MWU (11)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#31 - CPWM (13)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#32 - GINV/GCNV (16/32)&lt;br /&gt;
&lt;br /&gt;
Connect MSDN Pin#25 in inverter (not 25 on controller) permanently to 12V to enable the MG2 Inverter (can be tied to same 12v source as &amp;quot;I9&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Connect CPWM to 12V via a 470 Ohm resistor for charge mode.&lt;br /&gt;
&lt;br /&gt;
Connect the 2-pole white power connector (&amp;quot;I9&amp;quot;) inside inverter to 12V and Ground to power up inverter electronics.&lt;br /&gt;
&lt;br /&gt;
Make sure to connect Pin #32 and #16 GINV/GCNV to vehicle ground.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Initial Set up&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1&#039;&#039;&#039; : Solder relevant (and included) connector pins to the Adapter Board&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2&#039;&#039;&#039; : Plug in Wifi Adapter  and connect ONLY Pin#19 - GROUND and Pin#20 - 12 Volts power supply&lt;br /&gt;
&lt;br /&gt;
Confirm PWR LED lights up along with WIFI LED. Confirm ALIVE LED flashes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 3&#039;&#039;&#039; : Connect computer/laptop to the wifi network (Example - Inverter 7)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 4&#039;&#039;&#039; : Go to browser toolbar and type in 192.168.4.1 + Enter. (allow pop ups/Trusted site). Confirm Web based Interface appears and list of parameters appear.&lt;br /&gt;
&lt;br /&gt;
If parameters appear, you are now connected to the Adapter board and the Web based Interface - Congratulations -  You are now in the Matrix !&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 5&#039;&#039;&#039; : Wire up &#039;&#039;&#039;12 Pin SMD&#039;&#039;&#039; board connector to corresponding &#039;&#039;&#039;32 Pin Inverter&#039;&#039;&#039; connector, permanent 12 volt supply to Pin #25 (MSDN) of Inverter, and 12V and Ground to 2-pole Inverter connector (next to main 32 pin white connector)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 6&#039;&#039;&#039; : Connect fused 12 volt and Ground  to HV Inputs (battery), along with 55 watt light bulb in series (resistor) on the Positive line&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 7&#039;&#039;&#039; : Connect fused 12 volt power supply for SMD board , Pin #25, and Inverter 2-pole connector - You are now set up for basic Open Loop motor spinning!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 8&#039;&#039;&#039; : Connect 21 watt light bulbs in Delta connection to the 3 PWM outputs in Inverter (&#039;&#039;&#039;no motor&#039;&#039;&#039;) - https://openinverter.org/forum/download/file.php?id=4273&amp;amp;mode=view&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 9&#039;&#039;&#039; : Web Interface Basic parameters ( stm32_sine. bin) set up - to confirm PWM outputs : Full boost (curki= 20000 min) with 12v supply, default forward, ampnom @ 70%, and fslipspnt @1 Hz. Select - &amp;quot;&#039;&#039;&#039;Start Inverter in Manual Mode&#039;&#039;&#039;&amp;quot; Confirm flashing lights.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 10&#039;&#039;&#039; : Connect motor phase wires to inverter PWM outputs. Repeat Step 9 and change &amp;quot;fslipspnt&amp;quot; by 1 unit at a time, until motor spins smoothly. (I noticed Light bulb resistor on HV line lights up when no spinning) along with high current values. Once you have the motor spinning, continue to increase the &amp;quot;fslipspnt&amp;quot; value whilst monitoring the current (ampmeter on PWM output wire) You will also notice the light bulb starting to fade untill there is no more light. Optimal motor spinning in Open Loop Mode ! (these values are related to a 12 volt HV supply - re using these parameters is still to be verified at greater supply voltages)&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
The Control Board runs Open Inverter software. A set of known-good default inverter parameters can be found here: https://openinverter.org/wiki/Configuration_Files#Toyota_Prius_Gen2_Inverter&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;&amp;lt;u&amp;gt;Do NOT program a deadtime value over 0 for the Gen2 inverter.&amp;lt;/u&amp;gt;&#039;&#039;&#039;&#039;&#039; It only uses 1 PWM per phase and the inverter itself generates a low-side and high-side signal WITH deadtime.&lt;br /&gt;
[[Category:Toyota]] [[Category:Inverter]]&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Esp32-web-interface&amp;diff=5780</id>
		<title>Esp32-web-interface</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Esp32-web-interface&amp;diff=5780"/>
		<updated>2025-05-11T20:44:20Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: added latest instructions for using ESP32 for web-interface&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The [[Olimex_MOD-WIFI-ESP8266|Olimex MOD-WIFI-ESP8266]] is usually used to provide a web interface to configure and monitor various EV conversion components found here. E.g. inverters, chargers, etc.&lt;br /&gt;
&lt;br /&gt;
An alternative to this is to use an esp32 based module. You can find a port of the esp8266 firmware for esp32 in [https://github.com/Bedz01 Bedz02] Github repo [https://github.com/Bedz01/esp32-web-interface-port here].&lt;br /&gt;
&lt;br /&gt;
TODO - latest instructions on using ESP32S3 for web-interface (without SD Card options) - https://openinverter.org/forum/viewtopic.php?p=82435#p82435&lt;br /&gt;
&lt;br /&gt;
=== Ethernet / Wired Option ===&lt;br /&gt;
&lt;br /&gt;
WiFi can struggle to operate well when it uses the small antenna found on these boards and is buried under multiple layers of metal inside a car. Some people might prefer to use a wired option instead. One way to do this is to use an esp32 board which includes an ethernet port and connect to the web interface this way.&lt;br /&gt;
&lt;br /&gt;
You can find a modified version of the esp32 firmware which includes ethernet support in [https://github.com/chrskly/esp32-web-interface this] Github repo.&lt;br /&gt;
&lt;br /&gt;
==== Installation ====&lt;br /&gt;
&lt;br /&gt;
# Clone/download the [https://github.com/chrskly/esp32-web-interface git repo].&lt;br /&gt;
# Install [https://platformio.org/platformio-ide platformio] on your laptop/desktop&lt;br /&gt;
# Build and then upload the firmware to your ESP32 board. See more info [https://docs.platformio.org/en/latest/platforms/espressif32.html here].&lt;br /&gt;
&lt;br /&gt;
==== Supported Hardware ====&lt;br /&gt;
* [https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/open-source-hardware Olimex ESP32-POE-ISO] - tested and confirmed working.&lt;br /&gt;
* [https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware Olimex ESP32-POE] - should also work, just a different variant of above.&lt;br /&gt;
* [http://www.wireless-tag.com/portfolio/wt32-eth01/ WST32-eth01] - unknown, pending testing.&lt;br /&gt;
[[Category:ESP32]] [[Category:OpenInverter]]&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Getting_started_with_CAN_bus&amp;diff=4554</id>
		<title>Getting started with CAN bus</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Getting_started_with_CAN_bus&amp;diff=4554"/>
		<updated>2024-04-21T18:01:08Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Added ESP32_S3 and SavvyCan set-up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;Controller Area Network&#039;&#039;&#039; (&#039;&#039;&#039;CAN bus&#039;&#039;&#039;) is a robust vehicle bus standard designed to allow microcontrollers and devices to communicate with each other&#039;s applications without a host computer. It is a message-based protocol, designed originally for multiplex electrical wiring within automobiles to save on copper, but it can also be used in many other contexts. For each device, the data in a frame is transmitted sequentially but in such a way that if more than one device transmits at the same time, the highest priority device can continue while the others back off. Frames are received by all devices, including by the transmitting device. &lt;br /&gt;
&lt;br /&gt;
For more info and history on can see: https://en.wikipedia.org/wiki/CAN_bus&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This page will help get you started with CAN bus.&lt;br /&gt;
&lt;br /&gt;
Some people will tell you CAN is hard or complicated. They&#039;re wrong. The hardware you need isn&#039;t expensive and you don&#039;t need to be a programming whiz. Even Damien can do it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;youtube&amp;gt;https://youtu.be/K4HwHQOluSg&amp;lt;/youtube&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a few routes you can take, depending on what you want to do:&lt;br /&gt;
&lt;br /&gt;
== I want to receive or send simple CAN bus messages... ==&lt;br /&gt;
If you already know which CAN bus messages you want to send or receive, one of the cheapest ways to do this is with an [[Getting started with CAN bus and an Arduino Uno|Arduino Uno and a suitable CAN bus shield]]. &lt;br /&gt;
&lt;br /&gt;
Another, and more recent solution is with an ESP32-S3 Dev Module and the common https://www.waveshare.com/sn65hvd230-can-board.htm tranceiver.  &lt;br /&gt;
&lt;br /&gt;
Following the link [https://openinverter.org/forum/viewtopic.php?t=4523 https://op]https://openinverter.org/forum/viewtopic.php?p=69766#p69766, you can connect to SavvyCan. &lt;br /&gt;
&lt;br /&gt;
Attention: 1: When unzipping Wifican, change the &amp;quot;wifican-main&amp;quot; file to &amp;quot;wifican&amp;quot;, save this. Replace the original &amp;quot;wifi_credentials_template.h&amp;quot; file with &amp;quot;wifi_credentials.h&amp;quot; as described. &lt;br /&gt;
&lt;br /&gt;
2: When selecting your wifi network, select the &#039;&#039;&#039;2.4GHZ&#039;&#039;&#039; network along with your wifi network password ! &lt;br /&gt;
&lt;br /&gt;
3. Upload the Sketch, Connect the jumper between PIN35 and PIN47. Select baud rate of 115200 in Arduino IDE Serial Monitor, press RST on ESP32 board and confirm wifi connection  &lt;br /&gt;
&lt;br /&gt;
Now you can connect the new device to SavvyCan as descrbed in the github description. &lt;br /&gt;
&lt;br /&gt;
== I want to analyse CAN bus traffic and possibly do some serious hacking... ==&lt;br /&gt;
If you want to analyse CAN bus messages on an existing vehicle, you&#039;ll need the help of some software. You can use the free [https://www.savvycan.com SavvyCAN software] together with a [[CAN bus with Arduino Due|suitably configured Arduino Due]] or [[Getting CAN working on a Teensy 3.6|Teensy]]. Alternatively, you can buy a [https://store.evtv.me/products/evtvdue2?_pos=3&amp;amp;_sid=e04f934ae&amp;amp;_ss=r pre-configured Due-based kit from EVTV].     &lt;br /&gt;
&lt;br /&gt;
&amp;lt;youtube&amp;gt;https://www.youtube.com/watch?v=MsrXs-tJKaY&amp;lt;/youtube&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| role=&amp;quot;presentation&amp;quot; class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
| &amp;lt;strong&amp;gt;Transcript&amp;lt;/strong&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
hello folks welcome to another fun packed episode presented by the gomcat and yours truly so before we get into the detail of today&#039;s episode as usual just the health warning it would be extremely boring it will not be of any entertaining value so if you&#039;re here for entertainment up there search box funny cat video&lt;br /&gt;
&lt;br /&gt;
00:00:41&lt;br /&gt;
&lt;br /&gt;
It&#039;s your friend also uh this video will be available free of any and all advertising on vimeo should you find yourself on old youtube so what are we going to talk about today well today we&#039;re going to talk about the topic of can logging i&#039;m going to tell you what can logging is hopefully tell you what it is not because there&#039;s quite a bit of&lt;br /&gt;
&lt;br /&gt;
00:01:11&lt;br /&gt;
&lt;br /&gt;
Misinformation out there and also we will show you the basics of how to do it for yourself yes that&#039;s right okay gomcat just reminded me so reason for making this particular video is that as some of you will know for the past while i&#039;ve been working on the bmw i3 lim for the purposes of getting ccs fast charging available to the masses&lt;br /&gt;
&lt;br /&gt;
00:01:49&lt;br /&gt;
&lt;br /&gt;
And the way that that has primarily been done the enabling piece of the puzzle has been through the use of can logs now i have been appealing to two people on various platforms to perform some can bus logging for me and it became apparent that i guess not a lot of people really understood what it was that i was asking them to do so hopefully this video uh&lt;br /&gt;
&lt;br /&gt;
00:02:23&lt;br /&gt;
&lt;br /&gt;
Excuse me will help to fill in the uh blanks so i&#039;m not going to get into what a CAN bus is um if you don&#039;t know what that is i&#039;d suggest a quick internet search there&#039;s a lot of information out there but i guess a one sentence would be that it is a means for the control units in a modern vehicle so all the&lt;br /&gt;
&lt;br /&gt;
00:02:51&lt;br /&gt;
&lt;br /&gt;
Little computers to exchange data because they need to do that uh for exa example the engine control computer would need to be able to speak to the gearbox controller would be able to need to speak to the abs traction control system and so forth and they do that by means of exchanging data via can so it&#039;s a little bit like computer networks where we plug ethernet cables&lt;br /&gt;
&lt;br /&gt;
00:03:24&lt;br /&gt;
&lt;br /&gt;
Into our computer so that they can exchange data with other computers either locally or on the internet and can bus is a way for all the little control boxes in your vehicle to exchange data so what is a can bus log a simple analogy for a can bus log is a bit like the old days of tapping a landline phone so let&#039;s say that we had four people on a conference call so we would come&lt;br /&gt;
&lt;br /&gt;
00:04:05&lt;br /&gt;
&lt;br /&gt;
Along connect to the phone line without any of the four people knowing that we were there and record their conversation we would then have a log or a recording of the information that those four people exchanged during the course of that conversation that would then allow us to analyze how the words in this case but in the case of can how the data flowed between those four&lt;br /&gt;
&lt;br /&gt;
00:04:42&lt;br /&gt;
&lt;br /&gt;
People that we analogize to four control units in a car and it lets us then speak the same not only the same language but speak the same words in the same way as they were spoken during the original conversation so that we can take a module away from its parent vehicle put it in a different vehicle or in a different application&lt;br /&gt;
&lt;br /&gt;
00:05:14&lt;br /&gt;
&lt;br /&gt;
And basically fool it into thinking that it is still in its parent vehicle and get it to work and perform its originally intended tasks for us so in the case of the lim i have another one of these in my e46 touring that is fairly convinced at the minute that it&#039;s still in a nice shiny 2017 i3 but like all things uh nothing is ever as easy as&lt;br /&gt;
&lt;br /&gt;
00:05:47&lt;br /&gt;
&lt;br /&gt;
It sounds and it&#039;s learning a language and learning a dialect we make a lot of mistakes and our little control units can be very strict about any of those mistakes and they can say no i don&#039;t like what you&#039;ve just said to me or the speed at which you&#039;ve just said it or the order in which you have spoken the words&lt;br /&gt;
&lt;br /&gt;
00:06:12&lt;br /&gt;
&lt;br /&gt;
And i&#039;m gonna go away now and cry so the logs are the first step interpreting the logs is the second step and then forming our own communications that we can use with the control units are the final step so the more logs that we have the richer the data set is and the easier it is to learn the language and see the nuances and understand&lt;br /&gt;
&lt;br /&gt;
00:06:48&lt;br /&gt;
&lt;br /&gt;
Better how to talk the language that our control boxes are expecting so that&#039;s what can logging is and why we need to do it it is the lifeblood of modern uh vehicle reverse engineering and repurposing of modules from basically crashed or end of cars finally the gomcat is going to explain to us what can logging is not and that&#039;s a&lt;br /&gt;
&lt;br /&gt;
00:07:25&lt;br /&gt;
&lt;br /&gt;
Very important area over to you gomcat the camera&#039;s on seriously okay i guess i&#039;ll be explaining to you today folks what can logging is not so quite simply can logging is not a way for me to steal your personal info or indeed it&#039;s not a way for&lt;br /&gt;
&lt;br /&gt;
00:07:58&lt;br /&gt;
&lt;br /&gt;
Anyone to steal your personal info um yes there is vehicle specific in from informa information typically contained within can logs and depending on which can bus that we&#039;re communicating with there may be more or less of that vehicle specific information to take the example of the limb it is connected to the powertrain can so examples of messages that would be&lt;br /&gt;
&lt;br /&gt;
00:08:29&lt;br /&gt;
&lt;br /&gt;
Exchanged over powertrain can would be your battery voltage your state of charge the current draw what the charger is doing what the motor and inverter are doing the vehicle speed things like that in terms of vehicle specific personal information about the worst of it that we see on these logs from di3 is the vin and the mileage from the parent vehicle now if we got into other areas of the&lt;br /&gt;
&lt;br /&gt;
00:09:06&lt;br /&gt;
&lt;br /&gt;
Car could we get access to phone records and things like that i guess so but not on powertrain can and powertrain can is the stuff that we&#039;re interested in so i have a few can logs from a bmw i3 here and if i were some hacker type person that wanted to follow up one of these people&lt;br /&gt;
&lt;br /&gt;
00:09:35&lt;br /&gt;
&lt;br /&gt;
Or hunt them down or get into their bank accounts or um stalk them or do any of that stuff do we hear about um i would be absolutely wasting my time with those powertrain can logs folks so i just wanted to get that point across uh so that people understand it that it&#039;s not any kind of a security risk um or that the kind of people&lt;br /&gt;
&lt;br /&gt;
00:10:02&lt;br /&gt;
&lt;br /&gt;
Like myself that are involved in this have some kind of nefarious intent so now with that out of the way hopefully you&#039;ll now understand uh what a can log is why we do it and what it&#039;s not so what i&#039;m going to do now is i&#039;m not going to bother asking the gomkat to do to do this part i&#039;m going to show you physically how we would connect to a can bus and i&#039;ll show you some of the hardware&lt;br /&gt;
&lt;br /&gt;
00:10:32&lt;br /&gt;
&lt;br /&gt;
That you can buy and some of the excellent free software that you can download for yourself and experiment with that not only lets us see the raw can data but more importantly gives us the tools to reverse engineer it and to interpret it in a much more human readable way so let&#039;s get to that and uh hopefully i can get him to do something then because&lt;br /&gt;
&lt;br /&gt;
00:11:02&lt;br /&gt;
&lt;br /&gt;
This was supposed to be a giant production today but look at this okay so let&#039;s get straight to it what is a canvas well it&#039;s pretty damn complicated here we have a bare circuit board that in this case we&#039;ll say that this is some module in your car that is doing something it could be controlling headlights could be&lt;br /&gt;
&lt;br /&gt;
00:11:35&lt;br /&gt;
&lt;br /&gt;
Just i guess anything windows anything physically in your car that needs to be controlled it&#039;s connected to a can bus from the can bus is basically two wires that&#039;s it in this case the red wire is can high and black wire is called can low and this this is a differential bus so you don&#039;t actually need a ground&lt;br /&gt;
&lt;br /&gt;
00:12:03&lt;br /&gt;
&lt;br /&gt;
Or anything else you just need these two wires and through the signals that are transmitted on these we can get a lot of information sharing going on so let&#039;s say that we had this boss going to this control ue unit and we were interested in reverse engineering this control unit here and we want to know what can information that it transmits and most importantly what it&lt;br /&gt;
&lt;br /&gt;
00:12:44&lt;br /&gt;
&lt;br /&gt;
Expects to see coming back into it in order for it to believe that it&#039;s still in its parent vehicle and will perform the foot the function that we want it to so all throughout the car we&#039;re going to have these can bus wires so they will be typically in the loom and they will loop from unit to unit so you will have multiple what are called nodes on&lt;br /&gt;
&lt;br /&gt;
00:13:16&lt;br /&gt;
&lt;br /&gt;
The canvas so this board could be buried somewhere completely inaccessible in our car we don&#039;t need to go tearing the car apart all we need to do is to find a convenient location where we can access the same can bus so the two wires that are connected to our module that we&#039;re we&#039;re interested in&lt;br /&gt;
&lt;br /&gt;
00:13:44&lt;br /&gt;
&lt;br /&gt;
So next thing we need to do is to put something in here that can listen to the the canvas now there are multiple pieces of hardware available for performing this task some of them super cheap some of them super expensive and a lot of them in the middle i&#039;m not going to attempt to cover all of them um or&lt;br /&gt;
&lt;br /&gt;
00:14:17&lt;br /&gt;
&lt;br /&gt;
To try to say well you know this one&#039;s better than that one the ones that i use are typically things that i have myself that i&#039;ve pieced to gather but there is one important thing that we have to specificfy here is that automotive can buses particularly particularly powertrain can buses run with a lot of data on them example the bmw i3&lt;br /&gt;
&lt;br /&gt;
00:14:48&lt;br /&gt;
&lt;br /&gt;
Powertrain can runs at about two and a half thousand frames per second so if you can imagine that&#039;s like two and a half thousand wards per second on this particular phone line the tesla model 3 powertrain can pushes that up to depending on what the car is doing between three and a half and four thousand frames per second so a lot of the low-cost&lt;br /&gt;
&lt;br /&gt;
00:15:16&lt;br /&gt;
&lt;br /&gt;
Can bus loggers and things like that that you see will at best lose some of the conversation and most of the time won&#039;t even be able to listen to it they&#039;ll just sit there looking at you so the ones that i recommend that i&#039;ve used are based on the Arduino DUE um ATMEL sam 3x80 microcontroller i&#039;ll bring you on to the&lt;br /&gt;
&lt;br /&gt;
00:15:47&lt;br /&gt;
&lt;br /&gt;
Computer in a few minutes and i will show you where you can purchase specific piece of hardware for doing just that so these little ones that i have on the bench today are kind of my hacky versions of a much neater piece of hardware that i will be showing to you but the principle remains the same we&#039;ll have a module we&#039;ll have a usb&lt;br /&gt;
&lt;br /&gt;
00:16:16&lt;br /&gt;
&lt;br /&gt;
Cable that we&#039;ll connect to it&#039;s just normal usb that we&#039;d have on most computers we&#039;ll have two wires coming out of this board strangely enough they&#039;ll be can high and can low and we will find a convenient place on our can bus that is connected to the module that we&#039;re interested in and we will basically tap into it we will connect our&lt;br /&gt;
&lt;br /&gt;
00:16:47&lt;br /&gt;
&lt;br /&gt;
Module into the can boss so now we&#039;ve effectively tapped the phone line and we can listen to the conversations on there we will not participate in them we will not put any of our information in here we will just listen and that is what a logging system does now obviously in this case here it&#039;s just a&lt;br /&gt;
&lt;br /&gt;
00:17:14&lt;br /&gt;
&lt;br /&gt;
Few wires that i have on the bench that are forming the can bus um and thus there&#039;s no problem cutting them and sticking our own connectors in here now quite understandably uh some folks particularly if they&#039;ve gone out and bought a new car don&#039;t like the idea of some weirdo on the internet and his very lazy cat uh connecting into their powertrain can bus or you know having to&lt;br /&gt;
&lt;br /&gt;
00:17:47&lt;br /&gt;
&lt;br /&gt;
Um strip the wire or to connect to it that&#039;s perfectly understandable hell i wouldn&#039;t let someone i mean you have to cut that part out yeah okay right so there&#039;s a few alternatives uh to doing that the first is that most of these buses will connect to places in the car where there will be um multi-pin connectors so elon will you let me&lt;br /&gt;
&lt;br /&gt;
00:18:15&lt;br /&gt;
&lt;br /&gt;
Elon thank you so you&#039;ll typically have a connector like this one this is from a tesla model 3. and you see here that there is a yellow and a blue wire that&#039;s actually a can bus so if this was in your vehicle plugged in somewhere then one way that we can gain access to the can bus without having to you know cut into the wiring is by a procedure known as&lt;br /&gt;
&lt;br /&gt;
00:18:42&lt;br /&gt;
&lt;br /&gt;
Back probing and if i can see how much preparation i put into my videos the gomcat was supposed to get the back probes out but of course he didn&#039;t do that either so what we have is typically a probe like this that&#039;s very fine and has a point we simply insert it through the back seal until it makes contact with the pin in the connect connector&lt;br /&gt;
&lt;br /&gt;
00:19:10&lt;br /&gt;
&lt;br /&gt;
Perform the log and remove the probe and there&#039;s no damage anywhere um so that&#039;s one way that we can circumvent having to cut into the wiring there is an even more better way and thanks to a donation by a member of the open inverter forum i have just such a device here that i can show to you now this little guy is an inventure cl can version 2.2 and what this&lt;br /&gt;
&lt;br /&gt;
00:19:47&lt;br /&gt;
&lt;br /&gt;
Is is it&#039;s an inductive can pick up so how does this does this work well it&#039;s got four wires we give it 12 volts and ground and it has can it&#039;s our yellow and blue wires here now on the back it&#039;s got two screws here so if we go on cat could you not have gotten the screwdriver out for me oh my god gonna be one of my worst productions&lt;br /&gt;
&lt;br /&gt;
00:20:16&lt;br /&gt;
&lt;br /&gt;
Ever this now i&#039;m gonna make an absolute idiot out of myself because i never do that on camera really really seriously you couldn&#039;t even have got a phillips screwdriver for my god yeah this co-hosting thing is really not going to work out is it seriously we got all flathead screwdrivers if i didn&#039;t want a flathead screwdriver okay okay okay they won&#039;t get angry&lt;br /&gt;
&lt;br /&gt;
00:20:42&lt;br /&gt;
&lt;br /&gt;
Won&#039;t get angry you know they say that these partnerships never work but okay you know i was wrong had to be me to be made to fool of again give me a second folks i&#039;m going to get a phillips screwdriver here all right so we&#039;ll just edit out that part there where i look like a complete idiot trying to open phillips screws with a flathead screwdriver&lt;br /&gt;
&lt;br /&gt;
00:21:07&lt;br /&gt;
&lt;br /&gt;
So as i was saying with the correct screwdriver look at that i&#039;ll use the screening can from the limb for something practical we simply take these two screws out of the back of it pop the back cover off and inside here so there&#039;s two little white lines one of them says can high one of them says can low so if we were to take our CAN bus wires and&lt;br /&gt;
&lt;br /&gt;
00:21:48&lt;br /&gt;
&lt;br /&gt;
Place the can low wire just without cutting it without doing anything in there like that and they can&#039;t hide wire just in on top of it there&#039;s a little thing on the back here to keep them separated so i think the actual correct way to do this is basically to stick them yeah there it is is basically to&lt;br /&gt;
&lt;br /&gt;
00:22:13&lt;br /&gt;
&lt;br /&gt;
Stick them around yeah there&#039;s these little padded things i haven&#039;t used this before so of course i&#039;m making an idiot out of myself i should ask the golem cat to um maybe to demonstrate this he&#039;s much more ambidextrous than me so we take our wires wrap them through the back cover just screw the back cover back on perform the can log do what we need to&lt;br /&gt;
&lt;br /&gt;
00:22:49&lt;br /&gt;
&lt;br /&gt;
Do we can take the screws out release the wires and that&#039;s it we&#039;re basically done that&#039;s our can log performed so there are many ways to do this in ways that do not risk you know anything being discovered any vehicle warranties being invalidated or anything&lt;br /&gt;
&lt;br /&gt;
00:23:16&lt;br /&gt;
&lt;br /&gt;
Of that nature so that&#039;s how we connect to a canvas finally i&#039;m going to go ahead now on the computer here and i will show you how we you know where to get a proper piece of hardware to perform this function and the relevant computer software that you would also need okay folks so this is uh we&#039;re on the computer here and what we&#039;re looking at is the EVTVDUE&lt;br /&gt;
&lt;br /&gt;
00:23:57&lt;br /&gt;
&lt;br /&gt;
micro controller board and this is what i would uh strongly recommend that you use for canvas logging so i&#039;ll put a link in the description to this web address here where you can go to purchase it it has a purchase price of just under 100 us dollars and you can come in here and you can read the instructions for it and a lot more of the data but just want to focus on one thing here&lt;br /&gt;
&lt;br /&gt;
00:24:32&lt;br /&gt;
&lt;br /&gt;
It&#039;ll be very simple so we have a usb port and so we connect to our computer we have four screw terminals on this connection block we have a ground and a power in case we want to run it in a car from a 12 volt supply but in the case of can logging we will simply be powering it from&lt;br /&gt;
&lt;br /&gt;
00:24:56&lt;br /&gt;
&lt;br /&gt;
The usb port and then the bottom is can i and can also are to our canvas and that&#039;s it that is our connect connection finally we need some software to run on our computer to connect to to this and that software is called savvycan and it&#039;s again i&#039;ll put a link to this address in the description and it is available here it is completely free and open source&lt;br /&gt;
&lt;br /&gt;
00:25:34&lt;br /&gt;
&lt;br /&gt;
And is basically without a doubt the best piece of software that you can get for can reverse engineering there is a good bit of uh discussion going on over on github here and i believe there is here a link to an older video that uh colin kidder who is the gentleman that designed and maintains this uh did uh so here it is here is a very basic&lt;br /&gt;
&lt;br /&gt;
00:26:08&lt;br /&gt;
&lt;br /&gt;
Video on how to use it and you can grab this for uh mac linux and windows both here and over on github so i&#039;d recommend that you go to the git github to get the latest version so i won&#039;t get into any detail on this at the minute and encourage people even have a passing interest grab this and you can download some of&lt;br /&gt;
&lt;br /&gt;
00:26:36&lt;br /&gt;
&lt;br /&gt;
The can logs from my uh github as well and have a look at them and you know get yourself a little bit more familiar with them so that just yeah you just get to see what&#039;s going on under the bonnet of your car in a little bit more detail so that&#039;s about it there&#039;s the hardware that you need and the accompanying&lt;br /&gt;
&lt;br /&gt;
00:27:04&lt;br /&gt;
&lt;br /&gt;
Software now i understand there are other hardware software combos some of them very expensive some of them very cheap i&#039;m not going to get into what&#039;s better or best or anything i can simply tell you from my own experiences that this is this and this are the way to go for the modern high-speed can bus networks&lt;br /&gt;
&lt;br /&gt;
00:27:33&lt;br /&gt;
&lt;br /&gt;
All righty folks so i hope that that&#039;s how to clear up a little bit about why we need can logs uh what we do with them what we don&#039;t do with them and the basics of how we obtain them yeah that was a board yeah anyway um so i&#039;ll just make final appeal here that if you do have bmw i3 and you will be willing&lt;br /&gt;
&lt;br /&gt;
00:28:03&lt;br /&gt;
&lt;br /&gt;
To let to either do yourself what i&#039;ve demonstrated or to let me do it for you then do please leave a comment and get in touch because the more data do we get on the limb uh then the better that we&#039;re going to be able to make all of this stuff work so i&#039;ll leave it there as usual don&#039;t forget to dislike do not share and for pete&#039;s sake unsubscribe from this stupid channel i will put links in the description to&lt;br /&gt;
&lt;br /&gt;
00:28:38&lt;br /&gt;
&lt;br /&gt;
The EVTVDUE board and the savvy can software as well as the usual suspects in there for the open inverter forum github paypal and patreon in case you want to buy food for him no i don&#039;t want to do that either so until next time from the gom cat and from me happy CAN bus logging&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== I want to build a CAN bus device... ==&lt;br /&gt;
Once you&#039;ve got your CAN messages sorted, you can build a dedicated device to send or receive those messages. For example, you could build a custom battery gauge. Or add a touch screen controller. Anything is possible! If you want, you can just use the Arduino hardware described above. Alternatively, something small and reasonably robust like a [https://www.pjrc.com/teensy/techspecs.html Teensy 3.x] might be a better choice for a permanent solution. &lt;br /&gt;
&lt;br /&gt;
Here&#039;s a quick-start guide to [[getting CAN working on a Teensy 3.6]].&lt;br /&gt;
&lt;br /&gt;
Here&#039;s a simple CAN bus [[State of Charge meter using a Teensy 4.0]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Local Interconnect Network ==&lt;br /&gt;
&#039;&#039;&#039;LIN&#039;&#039;&#039; (&#039;&#039;&#039;Local Interconnect Network&#039;&#039;&#039;) is a serial network protocol used for communication between components in vehicles. It is a single wire, serial network protocol that supports communications up to 19.2 Kbit/s at a bus length of 40 meters. The need for a cheap serial network arose as the technologies and the facilities implemented in the car grew, while the CAN bus was too expensive to implement for every component in the car. European car manufacturers started using different serial communication technologies, which led to compatibility problems.&lt;br /&gt;
&lt;br /&gt;
For more info and history on can see: https://en.wikipedia.org/wiki/Local_Interconnect_Network&lt;br /&gt;
&lt;br /&gt;
[[Category:CAN]] [[Category:LIN]] [[Category:Introduction]] [[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Inverter_Controller&amp;diff=3091</id>
		<title>Toyota Prius Gen2 Inverter Controller</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Inverter_Controller&amp;diff=3091"/>
		<updated>2022-12-24T11:12:00Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The OpenInverter Prius Gen 2 Inverter Controller is an open-source board designed to repurpose the [[Toyota Prius Gen2 Inverter]] by replacing the essential components of the Prius wiring harness and electronics. It runs the OpenInverter.org software for vehicle control. It derives from the (now-deprecated) earlier Prius Gen 2 work done by Damien Maguire of EVBMW.com and is Damien&#039;s recommended replacement for the [[Toyota Prius Gen2 EVBMW Throughhole Board]].&lt;br /&gt;
&lt;br /&gt;
== Purchase ==&lt;br /&gt;
&lt;br /&gt;
2 versions are available, one mostly-assembled kit with all connectors and an enclosure, and a less expensive incomplete barebones kit:&lt;br /&gt;
&lt;br /&gt;
Full kit: https://openinverter.org/shop/index.php?route=product/product&amp;amp;product_id=63&lt;br /&gt;
&lt;br /&gt;
PCB-only kit: https://openinverter.org/shop/index.php?route=product/product&amp;amp;product_id=68&lt;br /&gt;
&lt;br /&gt;
== Project ==&lt;br /&gt;
&lt;br /&gt;
(Note: Links to Github/etc design files here?)&lt;br /&gt;
&lt;br /&gt;
== Hardware Notes ==&lt;br /&gt;
&lt;br /&gt;
(Note: this section is pretty sloppy, if you&#039;re looking to contribute, this would be a nice area to start)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Enclosure Details&#039;&#039;&#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+The SMD board was designed to work the the following enclosure and connectors:&lt;br /&gt;
!Description&lt;br /&gt;
!Part Number&lt;br /&gt;
!Data Sheet&lt;br /&gt;
|-&lt;br /&gt;
|Cinch Header 12 + 20 &lt;br /&gt;
|5810132011&lt;br /&gt;
|https://www.mouser.co.uk/datasheet/2/643/Bel_07192016_Modice%20ME-MX-1216545.pdf&lt;br /&gt;
|-&lt;br /&gt;
|Modice Enclosure &lt;br /&gt;
|5810130075&lt;br /&gt;
|https://www.mouser.co.uk/datasheet/2/643/dr-CCS-ICE-5810130065-75-1551287.pdf&lt;br /&gt;
|-&lt;br /&gt;
|Molex 12-Pin Connector&lt;br /&gt;
|0334721202&lt;br /&gt;
|https://www.mouser.co.uk/datasheet/2/276/0334721202_CRIMP_HOUSINGS-162938.pdf&lt;br /&gt;
|-&lt;br /&gt;
|Molex 20-Pin Connector&lt;br /&gt;
|0334722001&lt;br /&gt;
|https://www.mouser.co.uk/datasheet/2/276/0334722001_CRIMP_HOUSINGS-162940.pdf&lt;br /&gt;
|-&lt;br /&gt;
|WIFI Module&lt;br /&gt;
|MOD-WIFI-ESP8266&lt;br /&gt;
|https://www.ebay.co.uk/itm/194313893813?epid=2280174677&amp;amp;hash=item2d3e02b7b5:g:v-MAAOSw4ulhJ1wg&lt;br /&gt;
|-&lt;br /&gt;
|WIFI Pins&lt;br /&gt;
|10-way IDC Box Header Connector&lt;br /&gt;
|https://www.ebay.co.uk/itm/153727472406&lt;br /&gt;
|}&lt;br /&gt;
Pin Mapping - Note : Smaller 12-pin socket is the interface to the inverter &amp;amp; 20-pin to the motor&lt;br /&gt;
[[File:32 Pin Main Inverter connector .png|thumb|32 Pin Main white connector Gen 2 Inverter emplacement]]&lt;br /&gt;
&#039;&#039;&#039;20 - Pin socket&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#01 - ENC_B/S3&lt;br /&gt;
&lt;br /&gt;
Pin#02 - S1S4&lt;br /&gt;
&lt;br /&gt;
Pin#03 - ENC_A/S2&lt;br /&gt;
&lt;br /&gt;
Pin#04 - R1&lt;br /&gt;
&lt;br /&gt;
Pin#05 - R2&lt;br /&gt;
&lt;br /&gt;
Pin#06 - 5V&lt;br /&gt;
&lt;br /&gt;
Pin#07 - THROTTLE 1&lt;br /&gt;
&lt;br /&gt;
Pin#08 - THROTTLE 2&lt;br /&gt;
[[File:VCU to Prius Gen2 v1.1.png|alt=|thumb|VCU to Prius Gen2 wiring v1.1]]&lt;br /&gt;
Pin#09 - START_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#10 - BRAKE_IN (12V)&lt;br /&gt;
[[File:Adapter board pin outs.png|thumb|Adapter Board Pin out locations]]&lt;br /&gt;
Pin#11 - FORWARD_IN (12V) (1, 2 or 3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#12 - REVERSE_IN (12V)  (1, 2 or 3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#13 - Motor Temp -&lt;br /&gt;
&lt;br /&gt;
Pin#14 - Motor Temp +&lt;br /&gt;
&lt;br /&gt;
Pin#15 - DC (HV) Switch Control (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#16 - Pre-ChARGE Control (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#17 -  CAN L&lt;br /&gt;
&lt;br /&gt;
Pin#18 - CAN H&lt;br /&gt;
&lt;br /&gt;
Pin#19 - Ground&lt;br /&gt;
&lt;br /&gt;
Pin#20 - 12V &amp;quot;Ignition&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12 - Pin socket ( starts at pin number #21) - Corresponding pin on Main White 32 pin Inverter connector is in brackets.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#21 - GIVA (2)&lt;br /&gt;
&lt;br /&gt;
Pin#22 - MIVA (7)&lt;br /&gt;
&lt;br /&gt;
Pin#23 - GIWA (18)&lt;br /&gt;
&lt;br /&gt;
Pin#24 - MIWA (23)&lt;br /&gt;
&lt;br /&gt;
Pin#25 - VH (12)&lt;br /&gt;
&lt;br /&gt;
Pin#26 - MIVT (26)&lt;br /&gt;
&lt;br /&gt;
Pin#27 - MFIV (27)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#28 - MUU (9)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#29 - MVU (10)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#30 - MWU (11)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#31 - CPWM (13)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#32 - GINV/GCNV (16/32)&lt;br /&gt;
&lt;br /&gt;
Connect MSDN Pin#25 in inverter (not 25 on controller) permanently to 12V to enable the MG2 Inverter (can be tied to same 12v source as &amp;quot;I9&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Connect CPWM to 12V via a 470 Ohm resistor for charge mode.&lt;br /&gt;
&lt;br /&gt;
Connect the 2-pole white power connector (&amp;quot;I9&amp;quot;) inside inverter to 12V and Ground to power up inverter electronics.&lt;br /&gt;
&lt;br /&gt;
Make sure to connect Pin #32 and #16 GINV/GCNV to vehicle ground.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Initial Set up&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1&#039;&#039;&#039; : Solder relevant (and included) connector pins to the Adapter Board&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2&#039;&#039;&#039; : Plug in Wifi Adapter  and connect ONLY Pin#19 - GROUND and Pin#20 - 12 Volts power supply&lt;br /&gt;
&lt;br /&gt;
Confirm PWR LED lights up along with WIFI LED. Confirm ALIVE LED flashes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 3&#039;&#039;&#039; : Connect computer/laptop to the wifi network (Example - Inverter 7)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 4&#039;&#039;&#039; : Go to browser toolbar and type in 192.168.4.1 + Enter. (allow pop ups/Trusted site). Confirm Web based Interface appears and list of parameters appear.&lt;br /&gt;
&lt;br /&gt;
If parameters appear, you are now connected to the Adapter board and the Web based Interface - Congratulations -  You are now in the Matrix !&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 5&#039;&#039;&#039; : Wire up &#039;&#039;&#039;12 Pin SMD&#039;&#039;&#039; board connector to corresponding &#039;&#039;&#039;32 Pin Inverter&#039;&#039;&#039; connector, permanent 12 volt supply to Pin #25 (MSDN) of Inverter, and 12V and Ground to 2-pole Inverter connector (next to main 32 pin white connector)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 6&#039;&#039;&#039; : Connect fused 12 volt and Ground  to HV Inputs (battery), along with 55 watt light bulb in series (resistor) on the Positive line&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 7&#039;&#039;&#039; : Connect fused 12 volt power supply for SMD board , Pin #25, and Inverter 2-pole connector - You are now set up for basic Open Loop motor spinning!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 8&#039;&#039;&#039; : Connect 21 watt light bulbs in Delta connection to the 3 PWM outputs in Inverter (&#039;&#039;&#039;no motor&#039;&#039;&#039;) - https://openinverter.org/forum/download/file.php?id=4273&amp;amp;mode=view&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 9&#039;&#039;&#039; : Web Interface Basic parameters ( stm32_sine. bin) set up - to confirm PWM outputs : Full boost (curki= 20000 min) with 12v supply, default forward, ampnom @ 70%, and fslipspnt @1 Hz. Select - &amp;quot;&#039;&#039;&#039;Start Inverter in Manual Mode&#039;&#039;&#039;&amp;quot; Confirm flashing lights.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 10&#039;&#039;&#039; : Connect motor phase wires to inverter PWM outputs. Repeat Step 9 and change &amp;quot;fslipspnt&amp;quot; by 1 unit at a time, until motor spins smoothly. (I noticed Light bulb resistor on HV line lights up when no spinning) along with high current values. Once you have the motor spinning, continue to increase the &amp;quot;fslipspnt&amp;quot; value whilst monitoring the current (ampmeter on PWM output wire) You will also notice the light bulb starting to fade untill there is no more light. Optimal motor spinning in Open Loop Mode ! (these values are related to a 12 volt HV supply - re using these parameters is still to be verified at greater supply voltages)&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
The Control Board runs Open Inverter software. A set of known-good default inverter parameters can be found here: https://openinverter.org/wiki/Configuration_Files#Toyota_Prius_Gen2_Inverter&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;&amp;lt;u&amp;gt;Do NOT program a deadtime value over 0 for the Gen2 inverter.&amp;lt;/u&amp;gt;&#039;&#039;&#039;&#039;&#039; It only uses 1 PWM per phase and the inverter itself generates a low-side and high-side signal WITH deadtime.&lt;br /&gt;
&lt;br /&gt;
[[Category:OEM]] [[Category:Toyota]] [[Category:Inverter]]&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=1018</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=1018"/>
		<updated>2020-08-27T17:06:36Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Added steps 6 - 10&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
== 32-pin Prius Inverter Pin mapping ==&lt;br /&gt;
[[File:Prius Inverter - Pin Numbering.png|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
[[File:Prius_Inverter_Wire_Colors_3.jpg|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&lt;br /&gt;
[[File:Prius_Inverter_Wire_Colors_2.jpg|thumb|500x500px|32-pin Prius Inverter Pin Numbering]]&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;
(Inverter Side)&lt;br /&gt;
&lt;br /&gt;
(See pictures to the right)&lt;br /&gt;
!Wire Color&lt;br /&gt;
(Harness Side)&lt;br /&gt;
|-&lt;br /&gt;
|1||||vacant||&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2||GIVA||MG1 Phase Current V||LightGreen&lt;br /&gt;
|White&lt;br /&gt;
|-&lt;br /&gt;
|3|| GIVB ||MG1 Phase Current V|| Purple-Red&lt;br /&gt;
|Black&lt;br /&gt;
|-&lt;br /&gt;
|4|| GUU ||MG1 PWM U - Speed Signal Wave||Blue&lt;br /&gt;
|Black&lt;br /&gt;
|-&lt;br /&gt;
|5|| GVU ||MG1 PWM V - Speed Signal Wave||Blue-Red&lt;br /&gt;
|Green&lt;br /&gt;
|-&lt;br /&gt;
|6|| GWU ||MG1 PWM W - Speed Signal Wave||Yellow&lt;br /&gt;
|Yellow&lt;br /&gt;
|-&lt;br /&gt;
|7|| MIVA || MG2 Phase Current V ||LIghtGreen-Black&lt;br /&gt;
|Green&lt;br /&gt;
|-&lt;br /&gt;
|8|| MIVB ||MG2 Phase Current V||Purple-Yellow&lt;br /&gt;
|White&lt;br /&gt;
|-&lt;br /&gt;
|9|| MUU ||MG2 PWM U - Speed Signal Wave|| Blue-Black&lt;br /&gt;
|Black&lt;br /&gt;
|-&lt;br /&gt;
|10|| MVU ||MG2 PWM V - Speed SIgnal Wave|| Blue-Yellow&lt;br /&gt;
|White&lt;br /&gt;
|-&lt;br /&gt;
|11|| MWU ||MG2 PWM W - Speed Signal Wave|| Yellow-Black&lt;br /&gt;
|Red&lt;br /&gt;
|-&lt;br /&gt;
|12|| VH ||Inverter Capacitor Voltage||Purple&lt;br /&gt;
|Yellow&lt;br /&gt;
|-&lt;br /&gt;
|13|| CPWM ||Boost converter PWM switch signal||Blue&lt;br /&gt;
|Black&lt;br /&gt;
|-&lt;br /&gt;
|14|| GSDN ||MG1 Shutdown||Green-Red&lt;br /&gt;
|Red&lt;br /&gt;
|-&lt;br /&gt;
|15|| VL ||Boost converter input voltage||Purple-White&lt;br /&gt;
|Yellow&lt;br /&gt;
|-&lt;br /&gt;
|16|| GINV || Inverter Ground ||Black-White&lt;br /&gt;
|Yellow&lt;br /&gt;
|-&lt;br /&gt;
|17||||vacant|| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18|| GIWA ||MG1 Phase Current W||Grey&lt;br /&gt;
|Red&lt;br /&gt;
|-&lt;br /&gt;
|19|| GIWB || MG1 Phase Current W ||Grey-Black&lt;br /&gt;
|Green&lt;br /&gt;
|-&lt;br /&gt;
|20|| CT ||Boost converter temperature sensor||Brown-Black&lt;br /&gt;
|Red&lt;br /&gt;
|-&lt;br /&gt;
|21|| GIVT ||MG1 Inverter Temperature||Green-Black&lt;br /&gt;
|White&lt;br /&gt;
|-&lt;br /&gt;
|22|| GFIV ||MG1 Inverter Fail||White-Grey&lt;br /&gt;
|Grey&lt;br /&gt;
|-&lt;br /&gt;
|23|| MIWA ||MG2 Phase Current W||Grey-Green&lt;br /&gt;
|Red&lt;br /&gt;
|-&lt;br /&gt;
|24|| MIWB ||MG2 Phase Current W||Grey-Red&lt;br /&gt;
|Black&lt;br /&gt;
|-&lt;br /&gt;
|25|| MSDN ||MG2 Shutdown||Brown&lt;br /&gt;
|Green&lt;br /&gt;
|-&lt;br /&gt;
|26|| MIVT ||MG2 Inverter Temperature||Green&lt;br /&gt;
|Light Blue&lt;br /&gt;
|-&lt;br /&gt;
|27|| MFIV ||MG2 Inverter Fail||White&lt;br /&gt;
|Green&lt;br /&gt;
|-&lt;br /&gt;
|28|| OVH ||Overvoltage||Pink&lt;br /&gt;
|Brown&lt;br /&gt;
|-&lt;br /&gt;
|29|| CSDN ||Boost converter shutdown signal||Brown-White&lt;br /&gt;
|White&lt;br /&gt;
|-&lt;br /&gt;
|30|| FCV ||Boost converter fail signal||White-REd&lt;br /&gt;
|White&lt;br /&gt;
|-&lt;br /&gt;
|31|| OVL ||Boost converter over voltage signal||Pink-Blue&lt;br /&gt;
|Black&lt;br /&gt;
|-&lt;br /&gt;
|32|| GCNV ||Boost converter ground||Black-Red&lt;br /&gt;
|Green&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, equivalent to an alternator  or generator. Direct control of the converter is simple, only one 12v wire connected to Pin#1 of connector &amp;quot;C5&amp;quot; is necessary to activate it, but a second input can be added at Pin#4, to enhance control.&lt;br /&gt;
&lt;br /&gt;
The 6-pin &amp;quot;C5&amp;quot; connector terminal positions and harness-side colors:&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||IGCT|| 12v+ || Blue&lt;br /&gt;
|-&lt;br /&gt;
|2||ID1|| Not Needed || Purple&lt;br /&gt;
|-&lt;br /&gt;
|3||S||B+ (opt)|| White&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Ppl/Gld&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO||Not Needed||Blue&lt;br /&gt;
|-&lt;br /&gt;
|6|||| ||Vacant&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The case of the inverter must be vehicle ground (12v battery negative terminal), just as an alternator or generator would be.&lt;br /&gt;
&lt;br /&gt;
With the HV bus energized and switched 12v applied to Pin#1 of &amp;quot;C5&amp;quot;, the DC-DC will produce 13.2-15.2 Vdc on the large C6 single-conductor connector nearby, which is equivalent to a 12v alternator/generator positive terminal.  Depending on voltage applied to pin 4 (if used), output can be tailored; when grounded, it will act as a &amp;quot;KILL&amp;quot; input and DC-DC output will drop to zero. No base load is required to produce voltage.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;u&amp;gt;Note:&amp;lt;/u&amp;gt;&#039;&#039;&#039; The output at C6 (large grey connector) is not internally fused and not disabled unless power to Pin#1 of C5 is off, or Pin#4 is grounded, but the DC-DC converter can only produce output when the HV bus is energized.&lt;br /&gt;
&lt;br /&gt;
Note on Limitations - 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.  Pin#1 can be tied directly to the same ignition switch signal as the control board receives as this circuit draws only about 6.3mA.&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Through Hole Control Board ==&lt;br /&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;
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;
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;
== New &#039;&#039;&#039;SMD control board&#039;&#039;&#039; with enclosure and designated pinouts ==&lt;br /&gt;
Please add pictures and description.&lt;br /&gt;
&lt;br /&gt;
Pin Mapping - Note : Smaller 12-pin socket is the interface to the inverter &amp;amp; 20-pin to the motor&lt;br /&gt;
[[File:32 Pin Main Inverter connector .png|thumb|32 Pin Main white connector Gen 2 Inverter emplacement]]&lt;br /&gt;
&#039;&#039;&#039;20 - Pin socket&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#01 - ENC_B/S3&lt;br /&gt;
&lt;br /&gt;
Pin#02 - S1S4&lt;br /&gt;
&lt;br /&gt;
Pin#03 - ENC_A/S2&lt;br /&gt;
&lt;br /&gt;
Pin#04 - R1&lt;br /&gt;
&lt;br /&gt;
Pin#05 - R2&lt;br /&gt;
&lt;br /&gt;
Pin#06 - 5V&lt;br /&gt;
&lt;br /&gt;
Pin#07 - THROTTLE 1&lt;br /&gt;
&lt;br /&gt;
Pin#08 - THROTTLE 2&lt;br /&gt;
[[File:VCU to Prius Gen2 v1.1.png|alt=|thumb|VCU to Prius Gen2 wiring v1.1]]&lt;br /&gt;
Pin#09 - START_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#10 - BRAKE_IN (12V)&lt;br /&gt;
[[File:Adapter board pin outs.png|thumb|Adapter Board Pin out locations]]&lt;br /&gt;
Pin#11 - FORWARD_IN (12V) (1, 2 or 3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#12 - REVERSE_IN (12V)  (1, 2 or 3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#13 - Motor Temp -&lt;br /&gt;
&lt;br /&gt;
Pin#14 - Motor Temp +&lt;br /&gt;
&lt;br /&gt;
Pin#15 - DC (HV) Switch Control (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#16 - Pre-ChARGE Control (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#17 -  CAN L&lt;br /&gt;
&lt;br /&gt;
Pin#18 - CAN H&lt;br /&gt;
&lt;br /&gt;
Pin#19 - Ground&lt;br /&gt;
&lt;br /&gt;
Pin#20 - 12V &amp;quot;Ignition&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12 - Pin socket ( starts at pin number #21) - Corresponding pin on Main White 32 pin Inverter connector is in brackets.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#21 - GIVA (2)&lt;br /&gt;
&lt;br /&gt;
Pin#22 - MIVA (7)&lt;br /&gt;
&lt;br /&gt;
Pin#23 - GIWA (18)&lt;br /&gt;
&lt;br /&gt;
Pin#24 - MIWA (23)&lt;br /&gt;
&lt;br /&gt;
Pin#25 - VH (12)&lt;br /&gt;
&lt;br /&gt;
Pin#26 - MIVT (26)&lt;br /&gt;
&lt;br /&gt;
Pin#27 - MFIV (27)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#28 - MUU (9)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#29 - MVU (10)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#30 - MWU (11)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#31 - CPWM (13)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#32 - GINV/GCNV (16/32)&lt;br /&gt;
&lt;br /&gt;
Connect MSDN Pin#25 in inverter (not 25 on controller) permanently to 12V to enable the MG2 Inverter (can be tied to same 12v source as &amp;quot;I9&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Connect CPWM to 12V via a 470 Ohm resistor for charge mode.&lt;br /&gt;
&lt;br /&gt;
Connect the 2-pole white power connector (&amp;quot;I9&amp;quot;) inside inverter to 12V and Ground to power up inverter electronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Initial Set up&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1&#039;&#039;&#039; : Solder relevant (and included) connector pins to the Adapter Board&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2&#039;&#039;&#039; : Plug in Wifi Adapter  and connect ONLY Pin#19 - GROUND and Pin#20 - 12 Volts power supply&lt;br /&gt;
&lt;br /&gt;
Confirm PWR LED lights up along with WIFI LED. Confirm ALIVE LED flashes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 3&#039;&#039;&#039; : Connect computer/laptop to the wifi network (Example - Inverter 7)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 4&#039;&#039;&#039; : Go to browser toolbar and type in 192.168.4.1 + Enter. (allow pop ups/Trusted site). Confirm Web based Interface appears and list of parameters appear.&lt;br /&gt;
&lt;br /&gt;
If parameters appear, you are now connected to the Adapter board and the Web based Interface - Congratulations -  You are now in the Matrix !&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 5&#039;&#039;&#039; : Wire up &#039;&#039;&#039;12 Pin SMD&#039;&#039;&#039; board connector to corresponding &#039;&#039;&#039;32 Pin Inverter&#039;&#039;&#039; connector, permanent 12 volt supply to Pin #25 (MSDN) of Inverter, and 12V and Ground to 2-pole Inverter connector (next to main 32 pin white connector)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 6&#039;&#039;&#039; : Connect fused 12 volt and Ground  to HV Inputs (battery), along with 55 watt light bulb in series (resistor) on the Positive line&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 7&#039;&#039;&#039; : Connect fused 12 volt power supply for SMD board , Pin #25, and Inverter 2-pole connector - You are now set up for basic Open Loop motor spinning!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 8&#039;&#039;&#039; : Connect 21 watt light bulbs in Delta connection to the 3 PWM outputs in Inverter (&#039;&#039;&#039;no motor&#039;&#039;&#039;) - https://openinverter.org/forum/download/file.php?id=4273&amp;amp;mode=view&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 9&#039;&#039;&#039; : Web Interface Basic parameters set up - to confirm PWM outputs : Full boost with 12v supply, default forward, ampnom @ 70%, and fslipspnt @1 Hz. Select - &amp;quot;&#039;&#039;&#039;Start Inverter in Manual Mode&#039;&#039;&#039;&amp;quot; Confirm flashing lights.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 10&#039;&#039;&#039; : Connect motor phase wires to inverter PWM outputs. Repeat Step 9 and change &amp;quot;fslipspnt&amp;quot; by 1 unit at a time, until motor spins smoothly. (I noticed Light bulb resistor on HV line lights up when no spinning) along with high current values. Once you have the motor spinning, continue to increase the &amp;quot;fslipspnt&amp;quot; value whilst monitoring the current (ampmeter on PWM output wire) You will also notice the light bulb starting to fade untill there is no more light. Optimal motor spinning in Open Loop Mode ! (these values are related to a 12 volt HV supply - re using these parameters is still to be verified at greater supply voltages)&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
The Control Board runs Open Inverter software. A set of known-good default inverter parameters can be found here: https://openinverter.org/wiki/Configuration_Files#Toyota_Prius_Gen2_Inverter&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;&amp;lt;u&amp;gt;Do NOT program a deadtime value for the Gen2 inverter.&amp;lt;/u&amp;gt;&#039;&#039;&#039;&#039;&#039; It only uses 1 PWM per phase and the inverter itself generates a low-side and high-side signal WITH deadtime.&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Adapter_Board_pin_outs.png&amp;diff=990</id>
		<title>File:Adapter Board pin outs.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Adapter_Board_pin_outs.png&amp;diff=990"/>
		<updated>2020-08-15T09:57:07Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;20 Pin and 12 Pin connectors&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=989</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=989"/>
		<updated>2020-08-15T07:09:05Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Upload Inverter and Adapter board pin out locations&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
== 32-pin Prius Inverter Pin mapping ==&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||IGCT|| 12v+ || Blue&lt;br /&gt;
|-&lt;br /&gt;
|2||ID1|| Not Needed || Purple&lt;br /&gt;
|-&lt;br /&gt;
|3||S||B+ (opt)|| White&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Ppl/Gld&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO||Not Needed||Blue&lt;br /&gt;
|-&lt;br /&gt;
|6|||| ||Vacant&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Through Hole Control Board ==&lt;br /&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;
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;
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;
== New SMT control board with enclosure and designated pinouts ==&lt;br /&gt;
Please add pictures and description.&lt;br /&gt;
&lt;br /&gt;
Pin Mapping - Note : Smaller 12-pin socket is the interface to the inverter &amp;amp; 20-pin to the motor&lt;br /&gt;
[[File:32 Pin Main Inverter connector .png|thumb|32 Pin Main white connector Gen 2 Inverter emplacement]]&lt;br /&gt;
&#039;&#039;&#039;20 - Pin socket&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#01 - ENC_B/S3&lt;br /&gt;
&lt;br /&gt;
Pin#02 - S1S4&lt;br /&gt;
&lt;br /&gt;
Pin#03 - ENC_A/S2&lt;br /&gt;
&lt;br /&gt;
Pin#04 - R1&lt;br /&gt;
&lt;br /&gt;
Pin#05 - R2&lt;br /&gt;
&lt;br /&gt;
Pin#06 - 5V&lt;br /&gt;
&lt;br /&gt;
Pin#07 - THROTTLE 1&lt;br /&gt;
&lt;br /&gt;
Pin#08 - THROTTLE 2&lt;br /&gt;
&lt;br /&gt;
Pin#09 - START_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#10 - BRAKE_IN (12V)&lt;br /&gt;
[[File:Adapter board pin outs.png|thumb|Adapter Board Pin out locations]]&lt;br /&gt;
Pin#11 - FORWARD_IN (12V) (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#12 - REVERSE_IN (12V)  (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#13 - MTEMP -&lt;br /&gt;
&lt;br /&gt;
Pin#14 - MTEMP +&lt;br /&gt;
&lt;br /&gt;
Pin#15 - DCSW_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#16 - PRECARGE_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#17 -  CAN L&lt;br /&gt;
&lt;br /&gt;
Pin#18 - CAN H&lt;br /&gt;
&lt;br /&gt;
Pin#19 - GND&lt;br /&gt;
&lt;br /&gt;
Pin#20 - 12V&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12 - Pin socket ( starts at pin number #21) - Corresponding pin on Main White 32 pin Inverter connecter is in brackets.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#21 - GIVA (2)&lt;br /&gt;
&lt;br /&gt;
Pin#22 - MIVA (7)&lt;br /&gt;
&lt;br /&gt;
Pin#23 - GIWA (18)&lt;br /&gt;
&lt;br /&gt;
Pin#24 - MIWA (23)&lt;br /&gt;
&lt;br /&gt;
Pin#25 - VH (12)&lt;br /&gt;
&lt;br /&gt;
Pin#26 - MIVT (26)&lt;br /&gt;
&lt;br /&gt;
Pin#27 - MFIV (27)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#28 - MUU (9)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#29 - MVU (10)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#30 - MWU (11)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#31 - CPWM (13)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#32 - GINV/GCNV (16/32)&lt;br /&gt;
&lt;br /&gt;
Connect MSDN Pin#25 in inverter (not 25 on controller) permanently to 12V to enable the MG2 Inverter&lt;br /&gt;
&lt;br /&gt;
Connect CPWM to 12V via a 470 Ohm resistor for charge mode.&lt;br /&gt;
&lt;br /&gt;
Connect the 2-pole white power connector (inside inveretr) to 12V and Ground to power up inverter electronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Initial Set up&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1&#039;&#039;&#039; : Solder relevant (and included) connector pins to the Adapter Board&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2&#039;&#039;&#039; : Plug in Wifi Adapter  and connect ONLY Pin#19 - GROUND and Pin#20 - 12 Volts power supply&lt;br /&gt;
&lt;br /&gt;
Confirm PWR LED lights up along with WIFI LED. Confirm ALIVE LED flashes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 3&#039;&#039;&#039; : Connect computer/laptop to the wifi network (Example - Inverter 7)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 4&#039;&#039;&#039; : Go to search enginge (Google/Firefox etc) toolbar and type in 192.168.4.1 + Enter. (allow pop ups/Trusted site). Confirm Web based Interface appears and list of parameters appear.&lt;br /&gt;
&lt;br /&gt;
If parameters appear, you are now connected to the Adapter board and the Web based Interface - Congratulations -  You are now in the Matrix !&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
The Control Board runs Open Inverter software. A set of known-good default inverter parameters can be found here: https://openinverter.org/wiki/Configuration_Files#Toyota_Prius_Gen2_Inverter&lt;br /&gt;
&lt;br /&gt;
Do NOT program a deadtime value for the Gen2 inverter. It only uses 1 PWM per phase and the inverter itself generates a low-side and high-side signal WITH deadtime.&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Adapter_board_pin_outs.png&amp;diff=988</id>
		<title>File:Adapter board pin outs.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Adapter_board_pin_outs.png&amp;diff=988"/>
		<updated>2020-08-15T07:07:04Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Adapter Boards Gen 2&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:32_Pin_Main_Inverter_connector_.png&amp;diff=987</id>
		<title>File:32 Pin Main Inverter connector .png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:32_Pin_Main_Inverter_connector_.png&amp;diff=987"/>
		<updated>2020-08-15T06:39:29Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;32 Pin connector and emplacement in Inverter&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=986</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=986"/>
		<updated>2020-08-15T05:37:13Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
== 32-pin Prius Inverter Pin mapping ==&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||IGCT|| 12v+ || Blue&lt;br /&gt;
|-&lt;br /&gt;
|2||ID1|| Not Needed || Purple&lt;br /&gt;
|-&lt;br /&gt;
|3||S||B+ (opt)|| White&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Ppl/Gld&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO||Not Needed||Blue&lt;br /&gt;
|-&lt;br /&gt;
|6|||| ||Vacant&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Through Hole Control Board ==&lt;br /&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;
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;
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;
== New SMT control board with enclosure and designated pinouts ==&lt;br /&gt;
Please add pictures and description.&lt;br /&gt;
&lt;br /&gt;
Pin Mapping - Note : Smaller 12-pin socket is the interface to the inverter &amp;amp; 20-pin to the motor&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;20 - Pin socket&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#01 - ENC_B/S3&lt;br /&gt;
&lt;br /&gt;
Pin#02 - S1S4&lt;br /&gt;
&lt;br /&gt;
Pin#03 - ENC_A/S2&lt;br /&gt;
&lt;br /&gt;
Pin#04 - R1&lt;br /&gt;
&lt;br /&gt;
Pin#05 - R2&lt;br /&gt;
&lt;br /&gt;
Pin#06 - 5V&lt;br /&gt;
&lt;br /&gt;
Pin#07 - THROTTLE 1&lt;br /&gt;
&lt;br /&gt;
Pin#08 - THROTTLE 2&lt;br /&gt;
&lt;br /&gt;
Pin#09 - START_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#10 - BRAKE_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#11 - FORWARD_IN (12V) (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#12 - REVERSE_IN (12V)  (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#13 - MTEMP -&lt;br /&gt;
&lt;br /&gt;
Pin#14 - MTEMP +&lt;br /&gt;
&lt;br /&gt;
Pin#15 - DCSW_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#16 - PRECARGE_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#17 -  CAN L&lt;br /&gt;
&lt;br /&gt;
Pin#18 - CAN H&lt;br /&gt;
&lt;br /&gt;
Pin#19 - GND&lt;br /&gt;
&lt;br /&gt;
Pin#20 - 12V&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12 - Pin socket ( starts at pin number #21) - Corresponding pin on Main White 32 pin Inverter connecter is in brackets.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#21 - GIVA (2)&lt;br /&gt;
&lt;br /&gt;
Pin#22 - MIVA (7)&lt;br /&gt;
&lt;br /&gt;
Pin#23 - GIWA (18)&lt;br /&gt;
&lt;br /&gt;
Pin#24 - MIWA (23)&lt;br /&gt;
&lt;br /&gt;
Pin#25 - VH (12)&lt;br /&gt;
&lt;br /&gt;
Pin#26 - MIVT (26)&lt;br /&gt;
&lt;br /&gt;
Pin#27 - MFIV (27)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#28 - MUU (9)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#29 - MVU (10)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#30 - MWU (11)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#31 - CPWM (13)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#32 - GINV/GCNV (16/32)&lt;br /&gt;
&lt;br /&gt;
Connect MSDN Pin#25 in inverter (not 25 on controller) permanently to 12V to enable the MG2 Inverter&lt;br /&gt;
&lt;br /&gt;
Connect CPWM to 12V via a 470 Ohm resistor for charge mode.&lt;br /&gt;
&lt;br /&gt;
Connect the 2-pole white power connector (inside inveretr) to 12V and Ground to power up inverter electronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Initial Set up&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1&#039;&#039;&#039; : Solder relevant (and included) connector pins to the Adapter Board&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2&#039;&#039;&#039; : Plug in Wifi Adapter  and connect ONLY Pin#19 - GROUND and Pin#20 - 12 Volts power supply&lt;br /&gt;
&lt;br /&gt;
Confirm PWR LED lights up along with WIFI LED. Confirm ALIVE LED flashes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 3&#039;&#039;&#039; : Connect computer/laptop to the wifi network (Example - Inverter 7)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 4&#039;&#039;&#039; : Go to search enginge (Google/Firefox etc) toolbar and type in 192.168.4.1 + Enter. (allow pop ups/Trusted site). Confirm Web based Interface appears and list of parameters appear.&lt;br /&gt;
&lt;br /&gt;
If parameters appear, you are now connected to the Adapter board and the Web based Interface - Congratulations -  You are now in the Matrix !&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
The Control Board runs Open Inverter software. A set of known-good default inverter parameters can be found here: https://openinverter.org/wiki/Configuration_Files#Toyota_Prius_Gen2_Inverter&lt;br /&gt;
&lt;br /&gt;
Do NOT program a deadtime value for the Gen2 inverter. It only uses 1 PWM per phase and the inverter itself generates a low-side and high-side signal WITH deadtime.&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=985</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=985"/>
		<updated>2020-08-15T05:36:03Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Additional info to set up steps&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
== 32-pin Prius Inverter Pin mapping ==&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||IGCT|| 12v+ || Blue&lt;br /&gt;
|-&lt;br /&gt;
|2||ID1|| Not Needed || Purple&lt;br /&gt;
|-&lt;br /&gt;
|3||S||B+ (opt)|| White&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Ppl/Gld&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO||Not Needed||Blue&lt;br /&gt;
|-&lt;br /&gt;
|6|||| ||Vacant&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Through Hole Control Board ==&lt;br /&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;
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;
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;
== New SMT control board with enclosure and designated pinouts ==&lt;br /&gt;
Please add pictures and description.&lt;br /&gt;
&lt;br /&gt;
Pin Mapping - Note : Smaller 12-pin socket is the interface to the inverter &amp;amp; 20-pin to the motor&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;20 - Pin socket&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#01 - ENC_B/S3&lt;br /&gt;
&lt;br /&gt;
Pin#02 - S1S4&lt;br /&gt;
&lt;br /&gt;
Pin#03 - ENC_A/S2&lt;br /&gt;
&lt;br /&gt;
Pin#04 - R1&lt;br /&gt;
&lt;br /&gt;
Pin#05 - R2&lt;br /&gt;
&lt;br /&gt;
Pin#06 - 5V&lt;br /&gt;
&lt;br /&gt;
Pin#07 - THROTTLE 1&lt;br /&gt;
&lt;br /&gt;
Pin#08 - THROTTLE 2&lt;br /&gt;
&lt;br /&gt;
Pin#09 - START_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#10 - BRAKE_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#11 - FORWARD_IN (12V) (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#12 - REVERSE_IN (12V)  (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#13 - MTEMP -&lt;br /&gt;
&lt;br /&gt;
Pin#14 - MTEMP +&lt;br /&gt;
&lt;br /&gt;
Pin#15 - DCSW_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#16 - PRECARGE_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#17 -  CAN L&lt;br /&gt;
&lt;br /&gt;
Pin#18 - CAN H&lt;br /&gt;
&lt;br /&gt;
Pin#19 - GND&lt;br /&gt;
&lt;br /&gt;
Pin#20 - 12V&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12 - Pin socket ( starts at pin number #21) - Corresponding pin on Main White 32 pin Inverter connecter is in brackets.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#21 - GIVA (2)&lt;br /&gt;
&lt;br /&gt;
Pin#22 - MIVA (7)&lt;br /&gt;
&lt;br /&gt;
Pin#23 - GIWA (18)&lt;br /&gt;
&lt;br /&gt;
Pin#24 - MIWA (23)&lt;br /&gt;
&lt;br /&gt;
Pin#25 - VH (12)&lt;br /&gt;
&lt;br /&gt;
Pin#26 - MIVT (26)&lt;br /&gt;
&lt;br /&gt;
Pin#27 - MFIV (27)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#28 - MUU (9)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#29 - MVU (10)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#30 - MWU (11)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#31 - CPWM (13)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#32 - GINV/GCNV (16/32)&lt;br /&gt;
&lt;br /&gt;
Connect MSDN Pin#25 in inverter (not 25 on controller) permanently to 12V to enable the MG2 Inverter&lt;br /&gt;
&lt;br /&gt;
Connect CPWM to 12V via a 470 Ohm resistor for charge mode.&lt;br /&gt;
&lt;br /&gt;
Connect the 2-pole white power connector (inside inveretr) to 12V and Ground to power up inverter electronics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1&#039;&#039;&#039; : Solder relevant (and included) connector pins to the Adapter Board&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2&#039;&#039;&#039; : Plug in Wifi Adapter  and connect ONLY Pin#19 - GROUND and Pin#20 - 12 Volts power supply&lt;br /&gt;
&lt;br /&gt;
Confirm PWR LED lights up along with WIFI LED. Confirm ALIVE LED flashes.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 3&#039;&#039;&#039; : Connect computer/laptop to the wifi network (Example - Inverter 7)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 4&#039;&#039;&#039; : Go to search enginge (Google/Firefox etc) toolbar and type in 192.168.4.1 + Enter. (allow pop ups/Trusted site). Confirm Web based Interface appears and list of parameters appear.&lt;br /&gt;
&lt;br /&gt;
If parameters appear, you are now connected to the Adapter board and the Web based Interface - Congratulations -  You are now in the Matrix !&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
The Control Board runs Open Inverter software. A set of known-good default inverter parameters can be found here: https://openinverter.org/wiki/Configuration_Files#Toyota_Prius_Gen2_Inverter&lt;br /&gt;
&lt;br /&gt;
Do NOT program a deadtime value for the Gen2 inverter. It only uses 1 PWM per phase and the inverter itself generates a low-side and high-side signal WITH deadtime.&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=984</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=984"/>
		<updated>2020-08-15T05:33:40Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Added first 4 steps of et up.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
== 32-pin Prius Inverter Pin mapping ==&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||IGCT|| 12v+ || Blue&lt;br /&gt;
|-&lt;br /&gt;
|2||ID1|| Not Needed || Purple&lt;br /&gt;
|-&lt;br /&gt;
|3||S||B+ (opt)|| White&lt;br /&gt;
|-&lt;br /&gt;
|4||NODD|| 0-5v+ ||Ppl/Gld&lt;br /&gt;
|-&lt;br /&gt;
|5||VLO||Not Needed||Blue&lt;br /&gt;
|-&lt;br /&gt;
|6|||| ||Vacant&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Through Hole Control Board ==&lt;br /&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;
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;
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;
== New SMT control board with enclosure and designated pinouts ==&lt;br /&gt;
Please add pictures and description.&lt;br /&gt;
&lt;br /&gt;
Pin Mapping - Note : Smaller 12-pin socket is the interface to the inverter &amp;amp; 20-pin to the motor&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;20 - Pin socket&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#01 - ENC_B/S3&lt;br /&gt;
&lt;br /&gt;
Pin#02 - S1S4&lt;br /&gt;
&lt;br /&gt;
Pin#03 - ENC_A/S2&lt;br /&gt;
&lt;br /&gt;
Pin#04 - R1&lt;br /&gt;
&lt;br /&gt;
Pin#05 - R2&lt;br /&gt;
&lt;br /&gt;
Pin#06 - 5V&lt;br /&gt;
&lt;br /&gt;
Pin#07 - THROTTLE 1&lt;br /&gt;
&lt;br /&gt;
Pin#08 - THROTTLE 2&lt;br /&gt;
&lt;br /&gt;
Pin#09 - START_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#10 - BRAKE_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#11 - FORWARD_IN (12V) (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#12 - REVERSE_IN (12V)  (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#13 - MTEMP -&lt;br /&gt;
&lt;br /&gt;
Pin#14 - MTEMP +&lt;br /&gt;
&lt;br /&gt;
Pin#15 - DCSW_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#16 - PRECARGE_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#17 -  CAN L&lt;br /&gt;
&lt;br /&gt;
Pin#18 - CAN H&lt;br /&gt;
&lt;br /&gt;
Pin#19 - GND&lt;br /&gt;
&lt;br /&gt;
Pin#20 - 12V&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12 - Pin socket ( starts at pin number #21) - Corresponding pin on Main White 32 pin Inverter connecter is in brackets.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#21 - GIVA (2)&lt;br /&gt;
&lt;br /&gt;
Pin#22 - MIVA (7)&lt;br /&gt;
&lt;br /&gt;
Pin#23 - GIWA (18)&lt;br /&gt;
&lt;br /&gt;
Pin#24 - MIWA (23)&lt;br /&gt;
&lt;br /&gt;
Pin#25 - VH (12)&lt;br /&gt;
&lt;br /&gt;
Pin#26 - MIVT (26)&lt;br /&gt;
&lt;br /&gt;
Pin#27 - MFIV (27)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#28 - MUU (9)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#29 - MVU (10)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#30 - MWU (11)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#31 - CPWM (13)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#32 - GINV/GCNV (16/32)&lt;br /&gt;
&lt;br /&gt;
Connect MSDN Pin#25 in inverter (not 25 on controller) permanently to 12V to enable the MG2 Inverter&lt;br /&gt;
&lt;br /&gt;
Connect CPWM to 12V via a 470 Ohm resistor for charge mode.&lt;br /&gt;
&lt;br /&gt;
Connect the 2-pole white power connector (inside inveretr) to 12V and Ground to power up inverter electronics.&lt;br /&gt;
&lt;br /&gt;
Step 1 : Solder relevant (and included) connector pins to the Adapter Board&lt;br /&gt;
&lt;br /&gt;
Step 2 : Plug in Wifi Adapter  and connect ONLY Pin#19 - GROUND and Pin#20 - 12 Volts power supply&lt;br /&gt;
&lt;br /&gt;
Confirm PWR LED lights up along with WIFI LED. Confirm ALIVE LED flashes.&lt;br /&gt;
&lt;br /&gt;
Step 3 : Connect computer/laptop to the wifi network (Example - Inverter 7)&lt;br /&gt;
&lt;br /&gt;
Step 4 : Go to search enginge (Google/Firefox etc) toolbar and type in 192.168.4.1 + Enter. (allow pop ups/Trusted site). Confirm Web based Interface appears and list of parameters appear.&lt;br /&gt;
&lt;br /&gt;
If parameters appear, you are now connected to the Adapter board and the Web based Interface - Congratulations -  You are now in the Matrix !&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
The Control Board runs Open Inverter software. A set of known-good default inverter parameters can be found here: https://openinverter.org/wiki/Configuration_Files#Toyota_Prius_Gen2_Inverter&lt;br /&gt;
&lt;br /&gt;
Do NOT program a deadtime value for the Gen2 inverter. It only uses 1 PWM per phase and the inverter itself generates a low-side and high-side signal WITH deadtime.&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=981</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=981"/>
		<updated>2020-08-14T11:06:22Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: /* New SMT control board with enclosure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
== 32-pin Prius Inverter Pin mapping ==&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Through Hole Control Board ==&lt;br /&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;
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;
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;
== New SMT control board with enclosure and designated pinouts ==&lt;br /&gt;
Please add pictures and description.&lt;br /&gt;
&lt;br /&gt;
Pin Mapping - Note : Smaller 12-pin socket is the interface to the inverter &amp;amp; 20-pin to the motor&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;20 - Pin socket&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#01 - ENC_B/S3&lt;br /&gt;
&lt;br /&gt;
Pin#02 - S1S4&lt;br /&gt;
&lt;br /&gt;
Pin#03 - ENC_A/S2&lt;br /&gt;
&lt;br /&gt;
Pin#04 - R1&lt;br /&gt;
&lt;br /&gt;
Pin#05 - R2&lt;br /&gt;
&lt;br /&gt;
Pin#06 - 5V&lt;br /&gt;
&lt;br /&gt;
Pin#07 - THROTTLE 1&lt;br /&gt;
&lt;br /&gt;
Pin#08 - THROTTLE 2&lt;br /&gt;
&lt;br /&gt;
Pin#09 - START_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#10 - BRAKE_IN (12V)&lt;br /&gt;
&lt;br /&gt;
Pin#11 - FORWARD_IN (12V) (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#12 - REVERSE_IN (12V)  (3 way switch)&lt;br /&gt;
&lt;br /&gt;
Pin#13 - MTEMP -&lt;br /&gt;
&lt;br /&gt;
Pin#14 - MTEMP +&lt;br /&gt;
&lt;br /&gt;
Pin#15 - DCSW_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#16 - PRECARGE_OUT (Ground signal)&lt;br /&gt;
&lt;br /&gt;
Pin#17 -  CAN L&lt;br /&gt;
&lt;br /&gt;
Pin#18 - CAN H&lt;br /&gt;
&lt;br /&gt;
Pin#19 - GND&lt;br /&gt;
&lt;br /&gt;
Pin#20 - 12V&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;12 - Pin socket ( starts at pin number #21) - Corresponding pin on Main White 32 pin Inverter connecter is in brackets.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#21 - GIVA (2)&lt;br /&gt;
&lt;br /&gt;
Pin#22 - MIVA (7)&lt;br /&gt;
&lt;br /&gt;
Pin#23 - GIWA (18)&lt;br /&gt;
&lt;br /&gt;
Pin#24 - MIWA (23)&lt;br /&gt;
&lt;br /&gt;
Pin#25 - VH (12)&lt;br /&gt;
&lt;br /&gt;
Pin#26 - MIVT (26)&lt;br /&gt;
&lt;br /&gt;
Pin#27 - MFIV (27)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#28 - MUU (9)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#29 - MVU (10)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#30 - MWU (11)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Pin#31 - CPWM (13)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Pin#32 - GINV/GCNV (16/32)&lt;br /&gt;
&lt;br /&gt;
Connect MSDN Pin#25 in inverter (not 25 on controller) permanently to 12V to enable the MG2 Inverter&lt;br /&gt;
&lt;br /&gt;
Connect CPWM to 12V via a 470 Ohm resistor for charge mode.&lt;br /&gt;
&lt;br /&gt;
Connect the 2-pole white power connector (inside inveretr) to 12V and Ground to power up inverter electronics.&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
&lt;br /&gt;
The Control Board runs Open Inverter software. A set of known-good default inverter parameters can be found here: https://openinverter.org/wiki/Configuration_Files#Toyota_Prius_Gen2_Inverter&lt;br /&gt;
&lt;br /&gt;
Do NOT program a deadtime value for the Gen2 inverter. It only uses 1 PWM per phase and the inverter itself generates a low-side and high-side signal WITH deadtime.&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=521</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=521"/>
		<updated>2020-04-15T11:27:37Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Modifications - 32 pin connecter and no logic board. Place left for link to modifying frequency when usong FOC&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 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 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;
&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>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Toyota_Prius_Gen2_Board&amp;diff=520</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=520"/>
		<updated>2020-04-15T07:58:29Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Update Resolver and Current Sensor intergration&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 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 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;
&lt;br /&gt;
The control board utilizes the Blue Pill (link?) microcontroller, and takes advantage of the OpenInverter.org software (link?) for control.&lt;br /&gt;
&lt;br /&gt;
The Logic 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.&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>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=France&amp;diff=514</id>
		<title>France</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=France&amp;diff=514"/>
		<updated>2020-04-12T04:48:03Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Gaining approval for a conversion in France is &#039;&#039;&#039;difficult&#039;&#039;&#039; (**details required**).&lt;br /&gt;
&lt;br /&gt;
As of 03 April 2020, conversions are now legally possible without requiring authority from the vehicle manufacturer (who almost always said no).&lt;br /&gt;
&lt;br /&gt;
The normal Manufacturers weight specifications need to be respected to with-in +/- 10%. That is total and axle weights.&lt;br /&gt;
&lt;br /&gt;
The conversion must not modify in any way the structure of the vehicule - ie: no cutting and welding. The kit needs to be a bolt in configuration, so reversing to ICE remains possible.&lt;br /&gt;
&lt;br /&gt;
The Engine Management / Onboard Diagnostics requires to remain functionnal - no warning light malfunctions. More importantly, original ABS, Cruise Control, Brake assist etc needs to function as originally intended by the manufacturer.&lt;br /&gt;
&lt;br /&gt;
Important (as of 10 April 2020) &lt;br /&gt;
* conversion kits need to be validated by the French Vehicule Testing Body, &#039;&#039;&#039;and be presented by a registered &#039;Retrofit&#039; company&#039;&#039;&#039; with Civil and Professionnal liability insurrances (to mention a few) - cost for homologation is anywhere around &#039;&#039;&#039;30 000€ or more&#039;&#039;&#039;!&lt;br /&gt;
* conversions can only be carried out by &#039;&#039;&#039;registered&#039;&#039;&#039; and certified fitters of kits (speciality garages)&lt;br /&gt;
* battery packs need to comply with EU/CE compliance, with an important mention to batteries &#039;&#039;&#039;manufactured by certified companies only&#039;&#039;&#039; - no home made systems (unless you are willing to pay the costs for certification). This poses a problem for recuperating modules and creating your own battery pack&lt;br /&gt;
The association AIRe has been working with the government to construct a &#039;legal and safe&#039; environnement for conversions, and since the investments and homologation costs are extremley high, the business model is generally to homologate a kit for certain &#039;mass market&#039; models, and carry out conversions on an industrial basis.&lt;br /&gt;
&lt;br /&gt;
Some &#039;retrofit companies&#039; are selecting the high end market, proposing kits &#039;from&#039; 20 000€ to 30 000€ for small city vehicles. &lt;br /&gt;
&lt;br /&gt;
Additional Requirements (from German Legalities link) &lt;br /&gt;
&lt;br /&gt;
== Requirement Summary[edit | edit source] ==&lt;br /&gt;
* You must indicate that the car is ready to drive&lt;br /&gt;
* The motor mustn&#039;t operate while the car is charging&lt;br /&gt;
* The chassis must be grounded while charging&lt;br /&gt;
* Forward and reverse selection must be clearly indicated (a given when using a stick shift)&lt;br /&gt;
* &#039;&#039;&#039;The Kw output must be equivalent to between 65% and 100% of original ICE&#039;&#039;&#039;&lt;br /&gt;
* It must be indicated when your battery runs low&lt;br /&gt;
* Warm air must exit the passenger vents&lt;br /&gt;
* The brake boost vacuum pump must create sufficient vacuum - will be tested&lt;br /&gt;
* Regen must integrate with ESP/ABS - i.e. cut regen when ABS steps into action&lt;br /&gt;
* Regen without brake lights must not be stronger than -1.3 m/s²&lt;br /&gt;
* Power steering must remain operable&lt;br /&gt;
* Even if the main traction battery is depleted the 12V system must stay operational - e.g. hazard lights&lt;br /&gt;
* HV cables must have orange color. Either it is orange in the first place or inside an orange tube&lt;br /&gt;
* HV must be galvanically isolated from the chassis&lt;br /&gt;
* High voltage parts must be covered the they cannot be touched. HV warning stickers must be on any part that has high voltage inside. Cables, connectors etc. must be fit for use in a car.&lt;br /&gt;
* At least one battery pole must be interrupted by a relay when the car is turned off. The battery must be fused&lt;br /&gt;
* The chassis mustn&#039;t be stiffened by your modifications&lt;br /&gt;
* The battery must be sufficiently tightened as to not endanger passengers in an accident - more specifically, the battery must withstand when fully charged&lt;br /&gt;
** · 2 g in the longitudinal direction&lt;br /&gt;
** · 1 g in the latitude direction&lt;br /&gt;
** · 1 g in the down/up direction&lt;br /&gt;
** · 2 g in the up/down direction &lt;br /&gt;
** without exceeding a minimum of 75 % elastic resistance or 50 % mechanical resistance  caused by a pulling force (acceleration or de-acceleration)&lt;br /&gt;
* EMC must be ensured - see Gerrman Summary for details&lt;br /&gt;
* You must create an &amp;quot;emergency map&amp;quot; that displays the location of the battery, HV cables and instructions how to turn off the vehicle&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
However, EV Romania ([https://www.evromania.ro/ here]) have provided homologation services for a number of vehicles including the &amp;quot;Electric Vehicle World Tour&amp;quot; van.&lt;br /&gt;
&lt;br /&gt;
In this video EVWT describe the process;&lt;br /&gt;
&lt;br /&gt;
https://youtu.be/FOP_7yxVGLQ&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=France&amp;diff=513</id>
		<title>France</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=France&amp;diff=513"/>
		<updated>2020-04-12T04:10:06Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Gaining approval for a conversion in France is &#039;&#039;&#039;difficult&#039;&#039;&#039; (**details required**).&lt;br /&gt;
&lt;br /&gt;
As of 03 April 2020, conversions are now legally possible without requiring authority from the vehicle manufacturer (who almost always said no).&lt;br /&gt;
&lt;br /&gt;
The normal Manufacturers weight specifications need to be respected to with-in +/- 10%. That is total and axle weights.&lt;br /&gt;
&lt;br /&gt;
The conversion must not modify in any way the structure of the vehicule - ie: no cutting and welding. The kit needs to be a bolt in configuration, so reversing to ICE remains possible.&lt;br /&gt;
&lt;br /&gt;
The Engine Management / Onboard Diagnostics requires to remain functionnal - no warning light malfunctions. More importantly, original ABS, Cruise Control, Brake assist etc needs to function as originally intended by the manufacturer.&lt;br /&gt;
&lt;br /&gt;
Important (as of 10 April 2020) &lt;br /&gt;
* conversion kits need to be validated by the French Vehicule Testing Body, &#039;&#039;&#039;and be presented by a registered &#039;Retrofit&#039; company&#039;&#039;&#039; with Civil and Professionnal liability insurrances (to mention a few) - cost for homologation is anywhere around &#039;&#039;&#039;30 000€ or more&#039;&#039;&#039;!&lt;br /&gt;
* conversions can only be carried out by &#039;&#039;&#039;registered&#039;&#039;&#039; and certified fitters of kits (speciality garages)&lt;br /&gt;
* battery packs need to comply with EU/CE compliance, with an important mention to batteries &#039;&#039;&#039;manufactured by certified companies only&#039;&#039;&#039; - no home made systems (unless you are willing to pay the costs for certification). This poses a problem for recuperating modules and creating your own battery pack&lt;br /&gt;
The association AIRe has been working with the government to construct a &#039;legal and safe&#039; environnement for conversions, and since the investments and homologation costs are extremley high, the business model is generally to homologate a kit for certain &#039;mass market&#039; models, and carry out conversions on an industrial basis.&lt;br /&gt;
&lt;br /&gt;
Some &#039;retrofit companies&#039; are selecting the high end market, proposing kits &#039;from&#039; 20 000€ to 30 000€ for small city vehicles.&lt;br /&gt;
&lt;br /&gt;
Other requirements are almost identicle to the German prerequisites , which can be found on the Main Page / Legalities Menu. &lt;br /&gt;
&lt;br /&gt;
However, EV Romania ([https://www.evromania.ro/ here]) have provided homologation services for a number of vehicles including the &amp;quot;Electric Vehicle World Tour&amp;quot; van.&lt;br /&gt;
&lt;br /&gt;
In this video EVWT describe the process;&lt;br /&gt;
&lt;br /&gt;
https://youtu.be/FOP_7yxVGLQ&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=France&amp;diff=509</id>
		<title>France</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=France&amp;diff=509"/>
		<updated>2020-04-10T08:08:48Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Update&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Gaining approval for a conversion in France is &#039;&#039;&#039;difficult&#039;&#039;&#039; (**details required**).&lt;br /&gt;
&lt;br /&gt;
As of 03 April 2020, conversions are now legally possible without requiring authority from the vehicle manufacturer (who almost always said no).&lt;br /&gt;
&lt;br /&gt;
The normal Manufacturers weight specifications need to be respected to with-in +/- 10%. That is total and axle weights.&lt;br /&gt;
&lt;br /&gt;
The conversion must not modify in any way the structure of the vehicule - ie: no cutting and welding. The kit needs to be a bolt in configuration, so reversing to ICE remains possible.&lt;br /&gt;
&lt;br /&gt;
The Engine Management / Onboard Diagnostics requires to remain functionnal - no warning light malfunctions. More importantly, original ABS, Cruise Control, Brake assist etc needs to function as originally intended by the manufacturer.&lt;br /&gt;
&lt;br /&gt;
Important (as of 10 April 2020) &lt;br /&gt;
* conversion kits need to be validated by the French Vehicule Testing Body, &#039;&#039;&#039;and be presented by a registered &#039;Retrofit&#039; company&#039;&#039;&#039; with Civil and Professionnal liability insurrances (to mention a few) - cost for homologation anywhere around &#039;&#039;&#039;30 000€&#039;&#039;&#039;!&lt;br /&gt;
* conversions can only be carried out by &#039;&#039;&#039;registered&#039;&#039;&#039; and certified fitters of kits (speciality garages)&lt;br /&gt;
* battery packs need to comply with EU/CE compliance, with an important mention to batteries &#039;&#039;&#039;manufactured by certified companies only&#039;&#039;&#039; - no home made systems (unless you are willing to pay the costs for certification). This poses a problem for recuperating modules and creating your own battery pack&lt;br /&gt;
The association AIRe has been working with the government to construct a &#039;legal and safe&#039; environnement for conversions, and since the investments and homologation costs are extremley high, the business model is generally to homologate a kit for certain &#039;mass market&#039; models, and carry out conversions on an industrial basis.&lt;br /&gt;
&lt;br /&gt;
Some &#039;retrofit companies&#039; are selecting the high end market, proposing kits &#039;from&#039; 20 000€ to 30 000€ for small city vehicles.&lt;br /&gt;
&lt;br /&gt;
The other requirements are almost identicle to the German prerequisites , which can be found on the Main Page / Legalities Menu. &lt;br /&gt;
&lt;br /&gt;
However, EV Romania ([https://www.evromania.ro/ here]) have provided homologation services for a number of vehicles including the &amp;quot;Electric Vehicle World Tour&amp;quot; van.&lt;br /&gt;
&lt;br /&gt;
In this video EVWT describe the process;&lt;br /&gt;
&lt;br /&gt;
https://youtu.be/FOP_7yxVGLQ&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=France&amp;diff=508</id>
		<title>France</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=France&amp;diff=508"/>
		<updated>2020-04-10T08:01:11Z</updated>

		<summary type="html">&lt;p&gt;RetroZero: Update of French Laws for EV conversion&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Gaining approval for a conversion in France is &#039;&#039;&#039;difficult&#039;&#039;&#039; (**details required**).&lt;br /&gt;
&lt;br /&gt;
As of 03 April 2020, conversions are now legally possible without requiring authority from the vehicle manufacturer (who almost always said no).&lt;br /&gt;
&lt;br /&gt;
The normal Manufacturers weight specifications need to be respected to with-in +/- 10%. That is total and axle weights.&lt;br /&gt;
&lt;br /&gt;
The conversion must not modify in any way the structure of the vehicule - ie: no cutting and welding. The kit needs to be a bolt in configuration, so reversing to ICE remains possible.&lt;br /&gt;
&lt;br /&gt;
The Engine Management / Onboard Diagnostics requires to remain functionnal - no warning light malfunctions. More importantly, original ABS, Cruise Control, Brake assist etc needs to function as originally intended by the manufacturer.&lt;br /&gt;
&lt;br /&gt;
Important (as of 10 April 2020) &lt;br /&gt;
* conversion kits need to be validated by the French Vehicule Testing Body, &#039;&#039;&#039;and be presented by a registered &#039;Retrofit&#039; company&#039;&#039;&#039; with Civil and Professionnal liability insurrances (to mention a few) - cost for homologation anywhere around &#039;&#039;&#039;30 000€&#039;&#039;&#039;!&lt;br /&gt;
* conversions can only be carried out by &#039;&#039;&#039;registered&#039;&#039;&#039; and certified fitters of kits (speciality garages)&lt;br /&gt;
* battery packs need to comply with EU/CE compliance, with an important mention to batteries &#039;&#039;&#039;manufactured by certified companies only&#039;&#039;&#039; - no home made systems (unless you are willing to pay the costs for certification). This poses a problem for recuperating modules and creating your own battery pack&lt;br /&gt;
The association AIRe has been working with the government to construct a &#039;legal and safe&#039; environnement for conversions, and since the investments and homologation costs are extremley high, the business model is generally to homologate a kit for certain &#039;mass market&#039; models, and carry out conversions on an industrial basis.&lt;br /&gt;
&lt;br /&gt;
Some &#039;retrofit companies&#039; are selecting the high end market, proposing kits &#039;from&#039; 20 000€ to 30 000€ for small city vehicles.&lt;br /&gt;
&lt;br /&gt;
However, EV Romania ([https://www.evromania.ro/ here]) have provided homologation services for a number of vehicles including the &amp;quot;Electric Vehicle World Tour&amp;quot; van.&lt;br /&gt;
&lt;br /&gt;
In this video EVWT describe the process;&lt;br /&gt;
&lt;br /&gt;
https://youtu.be/FOP_7yxVGLQ&lt;/div&gt;</summary>
		<author><name>RetroZero</name></author>
	</entry>
</feed>