<?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=Jrbe</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=Jrbe"/>
	<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/Special:Contributions/Jrbe"/>
	<updated>2026-04-28T18:26:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=5933</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=5933"/>
		<updated>2025-11-13T18:57:09Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Setting up the 3rd generation Leaf adapter board jumpers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018-2022?) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]See, [[Mini Mainboard]] for details.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
Mini mainboard back jumper should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
The Mini Mainboard has this soldered / jumpered to the left. It&#039;s setup for a cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
Can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
Is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
Are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm / .1 inch pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.    &lt;br /&gt;
&lt;br /&gt;
=== OI Automatic Mini Maniboard Address Detection ===&lt;br /&gt;
Automatic board detection was introduced with this board in combination of the Mini Mainboard.  [[Mini Mainboard#Hardware detection]]  &#039;&#039;&#039;There is nothing to do here&#039;&#039;&#039;, the Open Inverter environment should automatically detect which board this is and populate settings for it.  This sense line is shared with the brake output, see the &amp;quot;Brake Output section at the bottom for more info.&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Availaility&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|1318745-2&lt;br /&gt;
|https://www.te.com/en/product-1318745-2.html&lt;br /&gt;
|High&lt;br /&gt;
|https://octopart.com/search?q=1318745-2&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/search?q=2326784-4&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Availability&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|1318384-4&lt;br /&gt;
|[https://www.te.com/en/product-1318384-4.html?q=1318384-4&amp;amp;source=header https://www.te.com/en/product-1318384-4.html]&lt;br /&gt;
|High&lt;br /&gt;
|https://octopart.com/search?q=1318384-4&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|No&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 pos. conn front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos. conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty / optional +12v&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|See p26 +12V solder jumper notes.&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
| +3.3V&lt;br /&gt;
| +3.3V from U2 regulator.&lt;br /&gt;
|&lt;br /&gt;
|Alternative voltage for analog throttles if 5v goes out of range.&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here [[Esp32-web-interface]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
[[File:Contactor gate capacitors.jpg|alt=Contactor gate capacitors|thumb|Contactor gate capacitors]]&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**  These need to be tested both for current and heat issues.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;**There are unpopulated 0805 capacitor footprints on each contactor gate, these are optional to help eliminate chatter if required.  Required?   [https://openinverter.org/forum/viewtopic.php?p=73582#p73582 Contactor chatter issues]?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Brake output ===&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=5932</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=5932"/>
		<updated>2025-11-13T18:48:40Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: added links and cleaned up some info.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018-2022?) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]See, [[Mini Mainboard]] for details.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
Mini mainboard back jumper should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
The Mini Mainboard has this soldered / jumpered to the left. It&#039;s setup for a cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm / .1 inch pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Availaility&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|1318745-2&lt;br /&gt;
|https://www.te.com/en/product-1318745-2.html&lt;br /&gt;
|High&lt;br /&gt;
|https://octopart.com/search?q=1318745-2&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/search?q=2326784-4&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Availability&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|1318384-4&lt;br /&gt;
|[https://www.te.com/en/product-1318384-4.html?q=1318384-4&amp;amp;source=header https://www.te.com/en/product-1318384-4.html]&lt;br /&gt;
|High&lt;br /&gt;
|https://octopart.com/search?q=1318384-4&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|No&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 pos. conn front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos. conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty / optional +12v&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|See p26 +12V solder jumper notes.&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
| +3.3V&lt;br /&gt;
| +3.3V from U2 regulator.&lt;br /&gt;
|&lt;br /&gt;
|Alternative voltage for analog throttles if 5v goes out of range.&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here [[Esp32-web-interface]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
[[File:Contactor gate capacitors.jpg|alt=Contactor gate capacitors|thumb|Contactor gate capacitors]]&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**  These need to be tested both for current and heat issues.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;**There are unpopulated 0805 capacitor footprints on each contactor gate, these are optional to help eliminate chatter if required.  Required?   [https://openinverter.org/forum/viewtopic.php?p=73582#p73582 Contactor chatter issues]?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Contactor_gate_capacitors.jpg&amp;diff=5931</id>
		<title>File:Contactor gate capacitors.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Contactor_gate_capacitors.jpg&amp;diff=5931"/>
		<updated>2025-11-13T18:43:54Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Contactor gate capacitors&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Coolant_Pump&amp;diff=5666</id>
		<title>Tesla Model S/X Coolant Pump</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Coolant_Pump&amp;diff=5666"/>
		<updated>2025-02-16T00:59:25Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
[[File:Tesla Model S-X Coolant Pump.jpg|alt=Tesla Model S-X Coolant Pump|thumb|Tesla Model S/X Coolant Pump]]&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;https://www.diyelectriccar.com/threads/the-teslorean.170770/post-856074&amp;lt;/ref&amp;gt;, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.  The Nissan Leaf also uses this pump.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?t=2906&amp;lt;/ref&amp;gt; Surprisingly the Tesla pumps are much cheaper than the Leaf pumps on Rock Auto in the US.&lt;br /&gt;
&lt;br /&gt;
In ICE circles, this pump is commonly used in high performance intercooler systems, so Lingenfelter Performance Engineering has compiled a fairly thorough (though questionably formatted) [https://www.lingenfelter.com/PDFdownloads/L330070000.pdf datasheet on the pump]. Another fairly thorough overview can be found within the [https://www.evcreate.com/using-tesla-thermal-management-system-parts/#tesla-pump EV Create overview of the Tesla cooling system]&amp;lt;ref&amp;gt;https://www.evcreate.com/using-tesla-thermal-management-system-parts/#tesla-pump&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Specs ==&lt;br /&gt;
Some basic specs for the pump are as follows&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
- Target flow rate 720 LPH @ 70 kPa&lt;br /&gt;
&lt;br /&gt;
- Inlet / Outlet connection: 19 MM Barb&lt;br /&gt;
&lt;br /&gt;
- Motor syle: Brushless&lt;br /&gt;
&lt;br /&gt;
- Operating voltage: 8-16 VDC&lt;br /&gt;
&lt;br /&gt;
- Maximum amp draw: 7.3 Amp&lt;br /&gt;
&lt;br /&gt;
== Control ==&lt;br /&gt;
The pump can be controlled using PWM. The PWM voltage is 5V and the frequency is a rather unusual 2Hz. The pump speed can be controlled from ~750RPM at 20% duty cycle to ~5000RPM at 80% duty cycle.&lt;br /&gt;
&lt;br /&gt;
== Wiring ==&lt;br /&gt;
&lt;br /&gt;
=== Connector ===&lt;br /&gt;
The pump has a single 4-pin plug which contains both the power and control signals. The plug itself is Sumitomo “RS” series:&lt;br /&gt;
&lt;br /&gt;
- socket (female): 6189-7757&lt;br /&gt;
&lt;br /&gt;
- retainer: 6918-1599&lt;br /&gt;
&lt;br /&gt;
- pins (female): 8240-0263 (0.3-0.5mm2/24-20ga), 8240-0264 (0.85-1.25mm2/20-18ga), 8240-0265 (2.0mm2/16-14ga)&lt;br /&gt;
&lt;br /&gt;
- seals (cable OD): 7165-0474 (1.0-1.4mm), 7165-0473 (1.5-1.9), 7165-0472 (2.0-2.4), 7165-0471 (2.5-2.9/18ga)&lt;br /&gt;
&lt;br /&gt;
- RS04FG is also a commonly available connector that fits.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=46064#p46064&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As Sumitomo connectors aren&#039;t widely available, a better source for this connector is Aliexpress where is is often sold as a complete connector kit.&lt;br /&gt;
&lt;br /&gt;
Alternatively, there&#039;s a common Nissan/Subaru O&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; sensor connector, with flying leads furnished, that is a perfect fit&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=46064#p46064&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pinout ===&lt;br /&gt;
[[File:Tesla Model S-X Coolant Pump pinout.jpg|alt=Tesla Model S-X Coolant Pump pinout (photo courtesy of EVcreate)|none|thumb|Tesla Model S-X Coolant Pump pinout (photo courtesy of EVcreate)]]&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
The pump has a flow sensor, so it will not run empty/dry. Even when primed, the pump takes a moment to spool up.&lt;br /&gt;
&lt;br /&gt;
Annoyingly, the bearing is integral to the impeller, so if you have a noisy pump there is no way to replace just the worn part.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[[Category:water pumps]]&lt;br /&gt;
[[Category:Tesla]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Coolant_Pump&amp;diff=5665</id>
		<title>Tesla Model S/X Coolant Pump</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Coolant_Pump&amp;diff=5665"/>
		<updated>2025-02-16T00:57:02Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
[[File:Tesla Model S-X Coolant Pump.jpg|alt=Tesla Model S-X Coolant Pump|thumb|Tesla Model S/X Coolant Pump]]&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;https://www.diyelectriccar.com/threads/the-teslorean.170770/post-856074&amp;lt;/ref&amp;gt;, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.  The Nissan Leaf also uses this pump.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?t=2906&amp;lt;/ref&amp;gt; Surprisingly the Tesla pumps are cheaper than the Leaf pumps on Rock Auto in the US.&lt;br /&gt;
&lt;br /&gt;
In ICE circles, this pump is commonly used in high performance intercooler systems, so Lingenfelter Performance Engineering has compiled a fairly thorough (though questionably formatted) [https://www.lingenfelter.com/PDFdownloads/L330070000.pdf datasheet on the pump]. Another fairly thorough overview can be found within the [https://www.evcreate.com/using-tesla-thermal-management-system-parts/#tesla-pump EV Create overview of the Tesla cooling system]&amp;lt;ref&amp;gt;https://www.evcreate.com/using-tesla-thermal-management-system-parts/#tesla-pump&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Specs ==&lt;br /&gt;
Some basic specs for the pump are as follows&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
- Target flow rate 720 LPH @ 70 kPa&lt;br /&gt;
&lt;br /&gt;
- Inlet / Outlet connection: 19 MM Barb&lt;br /&gt;
&lt;br /&gt;
- Motor syle: Brushless&lt;br /&gt;
&lt;br /&gt;
- Operating voltage: 8-16 VDC&lt;br /&gt;
&lt;br /&gt;
- Maximum amp draw: 7.3 Amp&lt;br /&gt;
&lt;br /&gt;
== Control ==&lt;br /&gt;
The pump can be controlled using PWM. The PWM voltage is 5V and the frequency is a rather unusual 2Hz. The pump speed can be controlled from ~750RPM at 20% duty cycle to ~5000RPM at 80% duty cycle.&lt;br /&gt;
&lt;br /&gt;
== Wiring ==&lt;br /&gt;
&lt;br /&gt;
=== Connector ===&lt;br /&gt;
The pump has a single 4-pin plug which contains both the power and control signals. The plug itself is Sumitomo “RS” series:&lt;br /&gt;
&lt;br /&gt;
- socket (female): 6189-7757&lt;br /&gt;
&lt;br /&gt;
- retainer: 6918-1599&lt;br /&gt;
&lt;br /&gt;
- pins (female): 8240-0263 (0.3-0.5mm2/24-20ga), 8240-0264 (0.85-1.25mm2/20-18ga), 8240-0265 (2.0mm2/16-14ga)&lt;br /&gt;
&lt;br /&gt;
- seals (cable OD): 7165-0474 (1.0-1.4mm), 7165-0473 (1.5-1.9), 7165-0472 (2.0-2.4), 7165-0471 (2.5-2.9/18ga)&lt;br /&gt;
&lt;br /&gt;
- RS04FG is also a commonly available connector that fits.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=46064#p46064&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As Sumitomo connectors aren&#039;t widely available, a better source for this connector is Aliexpress where is is often sold as a complete connector kit.&lt;br /&gt;
&lt;br /&gt;
Alternatively, there&#039;s a common Nissan/Subaru O&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; sensor connector, with flying leads furnished, that is a perfect fit&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=46064#p46064&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pinout ===&lt;br /&gt;
[[File:Tesla Model S-X Coolant Pump pinout.jpg|alt=Tesla Model S-X Coolant Pump pinout (photo courtesy of EVcreate)|none|thumb|Tesla Model S-X Coolant Pump pinout (photo courtesy of EVcreate)]]&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
The pump has a flow sensor, so it will not run empty/dry. Even when primed, the pump takes a moment to spool up.&lt;br /&gt;
&lt;br /&gt;
Annoyingly, the bearing is integral to the impeller, so if you have a noisy pump there is no way to replace just the worn part.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[[Category:water pumps]]&lt;br /&gt;
[[Category:Tesla]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=5646</id>
		<title>Water Pumps</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=5646"/>
		<updated>2025-02-14T16:16:30Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* In List Form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= A list of coolant pumps =&lt;br /&gt;
This is a list of water pumps that may be useful in an EV swap.&lt;br /&gt;
&lt;br /&gt;
== Pierburg CWA Coolant Pumps ==&lt;br /&gt;
[[File:CWA200.png|thumb|CWA200]]&lt;br /&gt;
[[Pierburg CWA Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
The Pierburg CWA Coolant Pumps (200/400) are well known in hot rod engine swaps as they are significant coolant pumps that have the ability to be PWM Controlled, however connecting the PWM pin to +12V permanently also gives 95% speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tesla Model S/X / Nissan Leaf Coolant Pump ==&lt;br /&gt;
[[File:Tesla S - X coolant pump.png|thumb|Tesla S / X coolant pump]]&lt;br /&gt;
[[Tesla Model S/X Coolant Pump]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.&lt;br /&gt;
&lt;br /&gt;
The Nissan Leaf also uses this or a very similar pump.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bosch PCE (VAG and others) ==&lt;br /&gt;
[[Bosch PCE Coolant Pumps]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Chevrolet Volt Coolant Pumps ==&lt;br /&gt;
[[Chevrolet Volt Coolant Pumps]]&lt;br /&gt;
[[File:Coolant pump.png|thumb|Coolant pump]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hyundai Kona EV Coolant Pumps ==&lt;br /&gt;
[[Hyundai Kona EV Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
= In List Form =&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pump&lt;br /&gt;
!DC Voltage&lt;br /&gt;
!Current Draw&lt;br /&gt;
!Control Method&lt;br /&gt;
!Inlet Size&lt;br /&gt;
!Outlet Size&lt;br /&gt;
!Max Flow&lt;br /&gt;
!Max Pressure&lt;br /&gt;
|-&lt;br /&gt;
|CWA200&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Tesla S/X - Nissan Leaf&lt;br /&gt;
|8-16&lt;br /&gt;
|7.3A&lt;br /&gt;
|PWM&lt;br /&gt;
|19mm&lt;br /&gt;
|19mm&lt;br /&gt;
|720LPH@70kPa&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Bosch PCE&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Kona EV&lt;br /&gt;
|8-16V&lt;br /&gt;
|~6A&lt;br /&gt;
|CAN&lt;br /&gt;
|17&lt;br /&gt;
|17&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
[[Category:Water pumps]]&lt;br /&gt;
[[Category:Parts]]&lt;br /&gt;
[[Category:Thermal Management]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Coolant_Pump&amp;diff=5645</id>
		<title>Tesla Model S/X Coolant Pump</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Coolant_Pump&amp;diff=5645"/>
		<updated>2025-02-14T16:14:05Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* References */  Added Nissan leaf as a source for this pump.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
[[File:Tesla Model S-X Coolant Pump.jpg|alt=Tesla Model S-X Coolant Pump|thumb|Tesla Model S/X Coolant Pump]]&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;https://www.diyelectriccar.com/threads/the-teslorean.170770/post-856074&amp;lt;/ref&amp;gt;, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.  The Nissan Leaf also uses this pump.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?t=2906&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In ICE circles, this pump is commonly used in high performance intercooler systems, so Lingenfelter Performance Engineering has compiled a fairly thorough (though questionably formatted) [https://www.lingenfelter.com/PDFdownloads/L330070000.pdf datasheet on the pump]. Another fairly thorough overview can be found within the [https://www.evcreate.com/using-tesla-thermal-management-system-parts/#tesla-pump EV Create overview of the Tesla cooling system]&amp;lt;ref&amp;gt;https://www.evcreate.com/using-tesla-thermal-management-system-parts/#tesla-pump&amp;lt;/ref&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Specs ==&lt;br /&gt;
Some basic specs for the pump are as follows&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
- Target flow rate 720 LPH @ 70 kPa&lt;br /&gt;
&lt;br /&gt;
- Inlet / Outlet connection: 19 MM Barb&lt;br /&gt;
&lt;br /&gt;
- Motor syle: Brushless&lt;br /&gt;
&lt;br /&gt;
- Operating voltage: 8-16 VDC&lt;br /&gt;
&lt;br /&gt;
- Maximum amp draw: 7.3 Amp&lt;br /&gt;
&lt;br /&gt;
== Control ==&lt;br /&gt;
The pump can be controlled using PWM. The PWM voltage is 5V and the frequency is a rather unusual 2Hz. The pump speed can be controlled from ~750RPM at 20% duty cycle to ~5000RPM at 80% duty cycle.&lt;br /&gt;
&lt;br /&gt;
== Wiring ==&lt;br /&gt;
&lt;br /&gt;
=== Connector ===&lt;br /&gt;
The pump has a single 4-pin plug which contains both the power and control signals. The plug itself is Sumitomo “RS” series:&lt;br /&gt;
&lt;br /&gt;
- socket (female): 6189-7757&lt;br /&gt;
&lt;br /&gt;
- retainer: 6918-1599&lt;br /&gt;
&lt;br /&gt;
- pins (female): 8240-0263 (0.3-0.5mm2/24-20ga), 8240-0264 (0.85-1.25mm2/20-18ga), 8240-0265 (2.0mm2/16-14ga)&lt;br /&gt;
&lt;br /&gt;
- seals (cable OD): 7165-0474 (1.0-1.4mm), 7165-0473 (1.5-1.9), 7165-0472 (2.0-2.4), 7165-0471 (2.5-2.9/18ga)&lt;br /&gt;
&lt;br /&gt;
- RS04FG is also a commonly available connector that fits.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=46064#p46064&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As Sumitomo connectors aren&#039;t widely available, a better source for this connector is Aliexpress where is is often sold as a complete connector kit.&lt;br /&gt;
&lt;br /&gt;
Alternatively, there&#039;s a common Nissan/Subaru O&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; sensor connector, with flying leads furnished, that is a perfect fit&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=46064#p46064&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pinout ===&lt;br /&gt;
[[File:Tesla Model S-X Coolant Pump pinout.jpg|alt=Tesla Model S-X Coolant Pump pinout (photo courtesy of EVcreate)|none|thumb|Tesla Model S-X Coolant Pump pinout (photo courtesy of EVcreate)]]&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
The pump has a flow sensor, so it will not run empty/dry. Even when primed, the pump takes a moment to spool up.&lt;br /&gt;
&lt;br /&gt;
Annoyingly, the bearing is integral to the impeller, so if you have a noisy pump there is no way to replace just the worn part.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[[Category:water pumps]]&lt;br /&gt;
[[Category:Tesla]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=5644</id>
		<title>Water Pumps</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=5644"/>
		<updated>2025-02-14T16:09:03Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Tesla Model S/X Coolant Pump */  added nissan leaf as a source for this same pump.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= A list of coolant pumps =&lt;br /&gt;
This is a list of water pumps that may be useful in an EV swap.&lt;br /&gt;
&lt;br /&gt;
== Pierburg CWA Coolant Pumps ==&lt;br /&gt;
[[File:CWA200.png|thumb|CWA200]]&lt;br /&gt;
[[Pierburg CWA Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
The Pierburg CWA Coolant Pumps (200/400) are well known in hot rod engine swaps as they are significant coolant pumps that have the ability to be PWM Controlled, however connecting the PWM pin to +12V permanently also gives 95% speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tesla Model S/X / Nissan Leaf Coolant Pump ==&lt;br /&gt;
[[File:Tesla S - X coolant pump.png|thumb|Tesla S / X coolant pump]]&lt;br /&gt;
[[Tesla Model S/X Coolant Pump]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.&lt;br /&gt;
&lt;br /&gt;
The Nissan Leaf also uses this or a very similar pump.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bosch PCE (VAG and others) ==&lt;br /&gt;
[[Bosch PCE Coolant Pumps]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Chevrolet Volt Coolant Pumps ==&lt;br /&gt;
[[Chevrolet Volt Coolant Pumps]]&lt;br /&gt;
[[File:Coolant pump.png|thumb|Coolant pump]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hyundai Kona EV Coolant Pumps ==&lt;br /&gt;
[[Hyundai Kona EV Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
= In List Form =&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pump&lt;br /&gt;
!DC Voltage&lt;br /&gt;
!Current Draw&lt;br /&gt;
!Control Method&lt;br /&gt;
!Inlet Size&lt;br /&gt;
!Outlet Size&lt;br /&gt;
!Max Flow&lt;br /&gt;
!Max Pressure&lt;br /&gt;
|-&lt;br /&gt;
|CWA200&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Tesla S/X&lt;br /&gt;
|8-16&lt;br /&gt;
|7.3A&lt;br /&gt;
|PWM&lt;br /&gt;
|19mm&lt;br /&gt;
|19mm&lt;br /&gt;
|720LPH@70kPa&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Bosch PCE&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Kona EV&lt;br /&gt;
|8-16V&lt;br /&gt;
|~6A&lt;br /&gt;
|CAN&lt;br /&gt;
|17&lt;br /&gt;
|17&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
[[Category:Water pumps]]&lt;br /&gt;
[[Category:Parts]]&lt;br /&gt;
[[Category:Thermal Management]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5641</id>
		<title>Operating the buck/boost converter for a low voltage CCS charging application</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5641"/>
		<updated>2025-02-14T03:27:35Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Knowledge to add in */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of this project is to enable ‘low’ voltage battery packs (c. 120V) to be charged using CCS chargers, which will not operate below 200V and more typically operate around 400V.&lt;br /&gt;
&lt;br /&gt;
The plan is to use the Buck/Boost converter found in the Gen 2 Prius inverter/converter module which the Prius uses to boost battery voltage to c. 400V to power the car’s motors, and to buck that voltage back down to pack voltage of c. 200V when in regen mode.&lt;br /&gt;
&lt;br /&gt;
In this project, the plan is to boost the battery pack voltage to c. 400V, connect to the EVSE charger using a CCS controller, and then reduce the voltage boosting in order to draw current from the EVSE and charge the car’s battery pack. The CCS standard does not support charging below 200V so for battery packs lower than this, it&#039;s not been possible to use CCS charging. This project may change that and make rapid charging available to lower voltage packs but at said low voltages, current handling will be the limiting factor for charging speeds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1 is to demonstrate control of the Prius buck/boost converter. This is essentially complete. &lt;br /&gt;
&lt;br /&gt;
Step 2 is to implement a ‘man in the middle’ solution, which will:&lt;br /&gt;
&lt;br /&gt;
* Control the buck/boost converter;&lt;br /&gt;
* Control any battery-side contactors;&lt;br /&gt;
* Receive charging requirements and restrictions from the BMS via CAN;&lt;br /&gt;
* Translate these low-volage requirements into higher voltage requirements for the CCS controller to pass to the EVSE.&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
A schematic of the buck/boost converter and the inverter is below, with the converter boxed in red.&lt;br /&gt;
&lt;br /&gt;
If the inverter stage were to be bypassed, as shown in blue, the boosted battery voltage could match that output from a CCS charger and in theory at least allow for a sub 200V pack to be charged.&lt;br /&gt;
[[File:Clanger boost idea.png|thumb|Buck boost for CCS]]&lt;br /&gt;
A man-in-the-middle board will interface with the car&#039;s BMS and accept the low-voltage charging requirements and restrictions, and translate these into high voltage requirements and restrictions and pass this onto whatever CCS controller we end up using. The BMS will never &#039;know&#039; it&#039;s taking in high voltage as it will only see the pack voltage levels that the buck/booster reduces the EVSE level to, and the EVSE will not &#039;know&#039; its charging a sub 200V pack, since it sees c. 400V and is instructed to provide said volage by the CCS controller. I hope to use FOCCCI and CLARA for the CCS controller and at present the MITM board for controlling pre-charging and the buck/boost controller is a simple Teensy 4.1.&lt;br /&gt;
[[File:Prius Gen2 inverter schematic.gif|thumb|Buck-Boost converter]]&lt;br /&gt;
&lt;br /&gt;
==Control of the buck/boost converter==&lt;br /&gt;
&lt;br /&gt;
The buck/boost converter’s Intelligent Power Module is a Mitsubishi PM400DV1A400. It has an 16 pin input plug P/N: 1318386-1, crimps 1123343-1 from TE. These plugs are pretty small and necessitate a thin wire gauge (c. 20-23 AWG at a guess). &lt;br /&gt;
&lt;br /&gt;
Pin numbering and colouring can be found in the Toyota wiring guide, p106 [find a link] and these connect into the 32 pin Prius Inverter plug as show in the wiki [https://openinverter.org/wiki/Toyota_Prius_Gen2_Inverter Prius Gen 2 Wiki] with the exception of the modules power, ground and OVH wire (more on that below).&lt;br /&gt;
[[File:IPM wiring.jpg|thumb|Block diagram from Toyota for the Mitsubishi IPM]]&lt;br /&gt;
Block diagram shown.&lt;br /&gt;
&lt;br /&gt;
The pin numbering is shown below. Pin numbers start with pin 1 at the top, right side of the TE plug when looking at the wire entry side. So the red 12V power input is pin 8, and the orange voltage sense wire is pin 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin&lt;br /&gt;
!Toyota colour&lt;br /&gt;
!Toyota name&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Green/Red&lt;br /&gt;
|CT&lt;br /&gt;
|Temp dependent voltage signal&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Purple&lt;br /&gt;
|VL&lt;br /&gt;
|1:100 scaled isolated voltage of orange wire&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Pink&lt;br /&gt;
|OVH&lt;br /&gt;
|IPM Enable line, 5V on, 0V off&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Blue&lt;br /&gt;
|CPWM&lt;br /&gt;
|0-100% duty cycle PWM 12V - 0V, 5kHz&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Black&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Red&lt;br /&gt;
|12V&lt;br /&gt;
|12V&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|Orange&lt;br /&gt;
|?&lt;br /&gt;
|IGBT Voltage sense wire (To Batt + in Prius)&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|Pink/Blue&lt;br /&gt;
|OVL&lt;br /&gt;
|not known&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|white/red&lt;br /&gt;
|FCV&lt;br /&gt;
|Fault reporting line. More detail needed (* Control Voltage? &lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|black/red&lt;br /&gt;
|GCNV&lt;br /&gt;
|Held at ground, more detail needed&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|brown/white&lt;br /&gt;
|CSDN&lt;br /&gt;
|Shutdown line. If high, IPM shuts down. Held low.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Johannes has demonstrated control using his own boards and software, see Resources below. The following describes generic control, should you want to use your own harware/software. I have not yet used CT for temp sensing, FCV for fault reporting, and have had limited sucess with the VL voltage sensing (it may be the voltage I was testing on is just too low). Johannes does show it working. &lt;br /&gt;
&lt;br /&gt;
=== Boosting control ===&lt;br /&gt;
Control is achieved as follows. To start up the boost module safely without it doing any boosting the CPWM duty cycle must be set to 0%, so 0V, the OVH line also held low, and GCNV, CSDN grounded. 12V is then applied to pin 8. &lt;br /&gt;
&lt;br /&gt;
Use a pre-charge mechanism, feed the &amp;quot;low&amp;quot; voltage from the pack to the DC battery input posts of the inverter module. This will mean the big capacitor in the inverter/controller will see pack voltage, hence the need to pre-charge before applying the main pack voltage.&lt;br /&gt;
&lt;br /&gt;
See Johannes&#039; charger videos linked below and see the main Prius wiki to make sure you understand how the IPM works with regards to the top and bottom IGBTs, because it is easy to short out the battery pack.&lt;br /&gt;
&lt;br /&gt;
Next, supply 5V to OVH and this enables the IPM. Then, by increasing the CPWM duty cycle, the battery voltage can be boosted and this higher voltage can now be seen on the DC rails (shown in blue in the Buck/Boost for CCS diagram above).&lt;br /&gt;
&lt;br /&gt;
It&#039;s important that the CPMW is set to zero when starting and to ensure this, I used a very simple circuit with two transistors as shown, because during the boot/power on of the Teensy the output pin is floating until it&#039;s explicity set low, and this circuit makes sure that CPWM is set low from the beginning. To stop, remove 5V from OVH and open contactors to battery to remove input DC. There is a bleed resistor board in the inverter which will drain the voltage on the capacitor but take care none the less. It may be wise to reduce the boosting to zero before setting OVH low, I don&#039;t know.&lt;br /&gt;
[[File:Pwm circuit hold low.png|thumb|Keeping PWM low during boot]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
[[File:Possible ccs take off.png|thumb|Possible CCS take off points circled in red]]&lt;br /&gt;
The idea is to boost the battery voltage to the output voltage of the charger, then allow the charger to connect to either the DC bus rails circled below in red in picture labelled &#039;possible CCS take-off&#039; (but confirmation needed on this), OR, to two of the MG1 terminals. The latter does mean that the current will flow through the diodes on the inverter circuit, and this may not be desirable because a) it might limit the current that can be drawn and b) it means keeping the inverter circuitry even though we don&#039;t use it for this application and could perhaps discard it to save space. Either way, once the voltages are matched, the charger can be allowed to connect to the DC bus rails (in theory without its own pre-charge circuitry but that might not be wise). Assuming the charger voltage and the boosted pack voltage are the same, no current will flow. By reducing the boosting by reducing the PWM duty cycle, current can be drawn towards the pack. The pack will see the bucked down voltage level and by controlling the amount of boosting the amount of current can also be controlled.&lt;br /&gt;
&lt;br /&gt;
Note: the above is conceptual and I have been successful using very low voltages to test charging a 12V battery from an 18V battery. Scaling this up to charging a 120V battery from a 400V EVSE is a different kettle of fish altogether, and I could use some help from the community to confirm where best to connect the EVSE HV to (see blue lines on Buck/Boost for CCS schematic above) and general advice regarding safety and best practice.&lt;br /&gt;
&lt;br /&gt;
== Power ==&lt;br /&gt;
It is not clear how much power we can pass through the buck/boost converter, and hence what charging speeds we could achieve, however even if it’s as low as 10kW it’s an improvement over the 6.6kW typical max charge rate for a low voltage EV conversion and importantly means CCS chargers can be used when AC chargers are not available. It’s been suggested that the maximum current the Gen 2 inverter/controller can push out through the DC lines is 100A, which would limit the charging rate to c. 12kW maximum. The IPM may be rated at up to 400A [https://openinverter.org/forum/viewtopic.php?t=4745 Prius boost module PM400DV1A120] which may mean a higher rate is possible. More info needed.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible that two (or more) of these buck/boost converters could be run in parallel with essentially the one control code.&lt;br /&gt;
&lt;br /&gt;
== Next Steps ==&lt;br /&gt;
&lt;br /&gt;
The MITM needs to be able to communicate with the CCS controller, and hopefully the FOCCCI and CLARA CSS projects here on OI will be suitable. I hope to establish what Clara needs for battery pack info, and its operational flow chart so I can work out the logic for the MITM and how it will interface between Clara and my BMS. Updates to follow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Knowledge to add in ==&lt;br /&gt;
This section is an evolving work in progress by jrbe.&lt;br /&gt;
&lt;br /&gt;
See image:&lt;br /&gt;
[[File:Prius Gen 2 IGBT and Inductor.png|thumb|Prius Gen 2 IGBT and Inductor]]&lt;br /&gt;
&lt;br /&gt;
* The inductor is the low side +.&lt;br /&gt;
* Inductor connection to the IGBT is CL.&lt;br /&gt;
* CP is the high side +&lt;br /&gt;
* CN is the common - for the high and low sides.  Do not connect to chassis ground, for high voltage &amp;amp; low voltage -.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This converter shares the - between the high and low sides.&lt;br /&gt;
&lt;br /&gt;
The Orange wire from the IGBT seems to be for voltage level sensing for the IGBT. I believe this needs to see 8v? or more to startup so may need to be moved to the low voltage / inductor side + if that&#039;s where the voltage is at startup.  Seems to be no need to connect this wire to a low voltage controller.&lt;br /&gt;
&lt;br /&gt;
The IPM and CSDN lines can be setup with a 12v pull up 470R then an N mosfet pulls it to ground.  A gate pull up resistor of 47k to + voltage means the n mosfet is on and pulls the line low on startup until the gate is pulled low by the mcu.  A gate pull down resistor of 47k Means the mosfet stays off, line stays high until voltage rises on the gate by the mcu. If both are set to tri-stated the converter should shut down on its own with this hardware without a turn off spike. Its possible FCV voltage could be used for these signals but needs testing.  FCV still has good voltage a little while after the igbt shuts down.&lt;br /&gt;
&lt;br /&gt;
This converter can run at about 20:1 high to low ratio but at unknown power levels.  Applying 20v to the low side + (inductor) and CN, at 5khz and 10% duty cycle (inverted) it will make ~195V at CP(+) &amp;amp; CN(-), so about a 1:10 ratio.  If the 20v is applied at the high side CP &amp;amp; CN you will get around 2V on the low side + and CN, same approximate 1:10 ratio.  Running at 96s with a slight load at 5% duty gives approximately a 20:1 ratio. So this can do 20:1 to 1:1 for the converter range but efficiency and power likely drop off at high ratios.  &lt;br /&gt;
&lt;br /&gt;
The converter can be run different ways.  Fixed duty cycle means a fixed ratio between high and low side, power flows when the voltage on one side or the other is higher than the other by the ratio of the 2 voltages (bidirectional flow.)&lt;br /&gt;
&lt;br /&gt;
This could be run in a current control method but that means watching current and adjusting duty cycle to set/drive the current.  This of course needs safeties like voltage ranges and a way to match the voltage to pwm ratio.&lt;br /&gt;
&lt;br /&gt;
Ramping up/down pwm means the converter can soft start, ramping up voltage as the duty cycle increases(inverted.)&lt;br /&gt;
&lt;br /&gt;
Care must be taken on power up and down to prevent the IGBT from being high or low with a stuck or off pwm.  CSDN high or IPM low or both will shut down the IGBT switches. If CSDN only is used, brownouts can mean spikes from the voltage dipping below the IGBT off threshold, effectively reenabling the IGBT. PWM thresholds are currently unknown. There is a possibility there is a voltage between high and low for pwm sensing that wont turn on high or low igbts, needs testing.&lt;br /&gt;
&lt;br /&gt;
The IGBT has similar Mitsubishi part number to 400A / 1200V IGBT&#039;s.&lt;br /&gt;
&lt;br /&gt;
The 1:100 volt isolated output does not work on the one I&#039;m testing.  I did AMC3311 isolated voltage monitoring IC&#039;s with TLV9001 opamps for isolated voltage sensing for both low and high sides of the converter.&lt;br /&gt;
&lt;br /&gt;
FCV from the IGBT runs at 15.35v.  This might be a control voltage that could be used for the IPM and CSDN enable / disable lines.&lt;br /&gt;
&lt;br /&gt;
The IGBT glitches at around 7.3v input voltage.  Safeties should be in place to monitor the 12v voltage and shut down the converter if it gets near or below that.  &lt;br /&gt;
&lt;br /&gt;
For testing, setting a 9.0v threshold for brownout shutdown and having code and a processor that can shutdown in about 1ms means the voltage can be about 15.4v then drop to 0 without a shutdown spike.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
Johannes has some videos, linked below, showing AC charging using the buck/boost controller and Damien also demonstrates it. These things are potentially pretty dangerous so do watch these first.&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=hkCRddO3Clc Damien&#039;s charging demonstration]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=_BDJ7N_YjAU Johannes&#039; charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=E62nOUprQYI&amp;amp;t=721s Johannes&#039; Lab Update #42]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mPp13zctjfY Johannes&#039;s Lab Update #45]&lt;br /&gt;
&lt;br /&gt;
Any suggestions/ideas/corrections very welcome.&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=4530 forum discussion thread]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5612</id>
		<title>Operating the buck/boost converter for a low voltage CCS charging application</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5612"/>
		<updated>2025-02-05T05:10:33Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Knowledge to add in */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of this project is to enable ‘low’ voltage battery packs (c. 120V) to be charged using CCS chargers, which will not operate below 200V and more typically operate around 400V.&lt;br /&gt;
&lt;br /&gt;
The plan is to use the Buck/Boost converter found in the Gen 2 Prius inverter/converter module which the Prius uses to boost battery voltage to c. 400V to power the car’s motors, and to buck that voltage back down to pack voltage of c. 200V when in regen mode.&lt;br /&gt;
&lt;br /&gt;
In this project, the plan is to boost the battery pack voltage to c. 400V, connect to the EVSE charger using a CCS controller, and then reduce the voltage boosting in order to draw current from the EVSE and charge the car’s battery pack. The CCS standard does not support charging below 200V so for battery packs lower than this, it&#039;s not been possible to use CCS charging. This project may change that and make rapid charging available to lower voltage packs but at said low voltages, current handling will be the limiting factor for charging speeds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1 is to demonstrate control of the Prius buck/boost converter. This is essentially complete. &lt;br /&gt;
&lt;br /&gt;
Step 2 is to implement a ‘man in the middle’ solution, which will:&lt;br /&gt;
&lt;br /&gt;
* Control the buck/boost converter;&lt;br /&gt;
* Control any battery-side contactors;&lt;br /&gt;
* Receive charging requirements and restrictions from the BMS via CAN;&lt;br /&gt;
* Translate these low-volage requirements into higher voltage requirements for the CCS controller to pass to the EVSE.&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
A schematic of the buck/boost converter and the inverter is below, with the converter boxed in red.&lt;br /&gt;
&lt;br /&gt;
If the inverter stage were to be bypassed, as shown in blue, the boosted battery voltage could match that output from a CCS charger and in theory at least allow for a sub 200V pack to be charged.&lt;br /&gt;
[[File:Clanger boost idea.png|thumb|Buck boost for CCS]]&lt;br /&gt;
A man-in-the-middle board will interface with the car&#039;s BMS and accept the low-voltage charging requirements and restrictions, and translate these into high voltage requirements and restrictions and pass this onto whatever CCS controller we end up using. The BMS will never &#039;know&#039; it&#039;s taking in high voltage as it will only see the pack voltage levels that the buck/booster reduces the EVSE level to, and the EVSE will not &#039;know&#039; its charging a sub 200V pack, since it sees c. 400V and is instructed to provide said volage by the CCS controller. I hope to use FOCCCI and CLARA for the CCS controller and at present the MITM board for controlling pre-charging and the buck/boost controller is a simple Teensy 4.1.&lt;br /&gt;
[[File:Prius Gen2 inverter schematic.gif|thumb|Buck-Boost converter]]&lt;br /&gt;
&lt;br /&gt;
==Control of the buck/boost converter==&lt;br /&gt;
&lt;br /&gt;
The buck/boost converter’s Intelligent Power Module is a Mitsubishi PM400DV1A400. It has an 16 pin input plug P/N: 1318386-1, crimps 1123343-1 from TE. These plugs are pretty small and necessitate a thin wire gauge (c. 20-23 AWG at a guess). &lt;br /&gt;
&lt;br /&gt;
Pin numbering and colouring can be found in the Toyota wiring guide, p106 [find a link] and these connect into the 32 pin Prius Inverter plug as show in the wiki [https://openinverter.org/wiki/Toyota_Prius_Gen2_Inverter Prius Gen 2 Wiki] with the exception of the modules power, ground and OVH wire (more on that below).&lt;br /&gt;
[[File:IPM wiring.jpg|thumb|Block diagram from Toyota for the Mitsubishi IPM]]&lt;br /&gt;
Block diagram shown.&lt;br /&gt;
&lt;br /&gt;
The pin numbering is shown below. Pin numbers start with pin 1 at the top, right side of the TE plug when looking at the wire entry side. So the red 12V power input is pin 8, and the orange voltage sense wire is pin 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin&lt;br /&gt;
!Toyota colour&lt;br /&gt;
!Toyota name&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Green/Red&lt;br /&gt;
|CT&lt;br /&gt;
|Temp dependent voltage signal&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Purple&lt;br /&gt;
|VL&lt;br /&gt;
|1:100 scaled isolated voltage of orange wire&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Pink&lt;br /&gt;
|OVH&lt;br /&gt;
|IPM Enable line, 5V on, 0V off&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Blue&lt;br /&gt;
|CPWM&lt;br /&gt;
|0-100% duty cycle PWM 12V - 0V, 5kHz&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Black&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Red&lt;br /&gt;
|12V&lt;br /&gt;
|12V&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|Orange&lt;br /&gt;
|?&lt;br /&gt;
|IGBT Voltage sense wire (To Batt + in Prius)&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|Pink/Blue&lt;br /&gt;
|OVL&lt;br /&gt;
|not known&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|white/red&lt;br /&gt;
|FCV&lt;br /&gt;
|Fault reporting line. More detail needed (* Control Voltage? &lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|black/red&lt;br /&gt;
|GCNV&lt;br /&gt;
|Held at ground, more detail needed&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|brown/white&lt;br /&gt;
|CSDN&lt;br /&gt;
|Shutdown line. If high, IPM shuts down. Held low.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Johannes has demonstrated control using his own boards and software, see Resources below. The following describes generic control, should you want to use your own harware/software. I have not yet used CT for temp sensing, FCV for fault reporting, and have had limited sucess with the VL voltage sensing (it may be the voltage I was testing on is just too low). Johannes does show it working. &lt;br /&gt;
&lt;br /&gt;
=== Boosting control ===&lt;br /&gt;
Control is achieved as follows. To start up the boost module safely without it doing any boosting the CPWM duty cycle must be set to 0%, so 0V, the OVH line also held low, and GCNV, CSDN grounded. 12V is then applied to pin 8. &lt;br /&gt;
&lt;br /&gt;
Use a pre-charge mechanism, feed the &amp;quot;low&amp;quot; voltage from the pack to the DC battery input posts of the inverter module. This will mean the big capacitor in the inverter/controller will see pack voltage, hence the need to pre-charge before applying the main pack voltage.&lt;br /&gt;
&lt;br /&gt;
See Johannes&#039; charger videos linked below and see the main Prius wiki to make sure you understand how the IPM works with regards to the top and bottom IGBTs, because it is easy to short out the battery pack.&lt;br /&gt;
&lt;br /&gt;
Next, supply 5V to OVH and this enables the IPM. Then, by increasing the CPWM duty cycle, the battery voltage can be boosted and this higher voltage can now be seen on the DC rails (shown in blue in the Buck/Boost for CCS diagram above).&lt;br /&gt;
&lt;br /&gt;
It&#039;s important that the CPMW is set to zero when starting and to ensure this, I used a very simple circuit with two transistors as shown, because during the boot/power on of the Teensy the output pin is floating until it&#039;s explicity set low, and this circuit makes sure that CPWM is set low from the beginning. To stop, remove 5V from OVH and open contactors to battery to remove input DC. There is a bleed resistor board in the inverter which will drain the voltage on the capacitor but take care none the less. It may be wise to reduce the boosting to zero before setting OVH low, I don&#039;t know.&lt;br /&gt;
[[File:Pwm circuit hold low.png|thumb|Keeping PWM low during boot]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
[[File:Possible ccs take off.png|thumb|Possible CCS take off points circled in red]]&lt;br /&gt;
The idea is to boost the battery voltage to the output voltage of the charger, then allow the charger to connect to either the DC bus rails circled below in red in picture labelled &#039;possible CCS take-off&#039; (but confirmation needed on this), OR, to two of the MG1 terminals. The latter does mean that the current will flow through the diodes on the inverter circuit, and this may not be desirable because a) it might limit the current that can be drawn and b) it means keeping the inverter circuitry even though we don&#039;t use it for this application and could perhaps discard it to save space. Either way, once the voltages are matched, the charger can be allowed to connect to the DC bus rails (in theory without its own pre-charge circuitry but that might not be wise). Assuming the charger voltage and the boosted pack voltage are the same, no current will flow. By reducing the boosting by reducing the PWM duty cycle, current can be drawn towards the pack. The pack will see the bucked down voltage level and by controlling the amount of boosting the amount of current can also be controlled.&lt;br /&gt;
&lt;br /&gt;
Note: the above is conceptual and I have been successful using very low voltages to test charging a 12V battery from an 18V battery. Scaling this up to charging a 120V battery from a 400V EVSE is a different kettle of fish altogether, and I could use some help from the community to confirm where best to connect the EVSE HV to (see blue lines on Buck/Boost for CCS schematic above) and general advice regarding safety and best practice.&lt;br /&gt;
&lt;br /&gt;
== Power ==&lt;br /&gt;
It is not clear how much power we can pass through the buck/boost converter, and hence what charging speeds we could achieve, however even if it’s as low as 10kW it’s an improvement over the 6.6kW typical max charge rate for a low voltage EV conversion and importantly means CCS chargers can be used when AC chargers are not available. It’s been suggested that the maximum current the Gen 2 inverter/controller can push out through the DC lines is 100A, which would limit the charging rate to c. 12kW maximum. The IPM may be rated at up to 400A [https://openinverter.org/forum/viewtopic.php?t=4745 Prius boost module PM400DV1A120] which may mean a higher rate is possible. More info needed.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible that two (or more) of these buck/boost converters could be run in parallel with essentially the one control code.&lt;br /&gt;
&lt;br /&gt;
== Next Steps ==&lt;br /&gt;
&lt;br /&gt;
The MITM needs to be able to communicate with the CCS controller, and hopefully the FOCCCI and CLARA CSS projects here on OI will be suitable. I hope to establish what Clara needs for battery pack info, and its operational flow chart so I can work out the logic for the MITM and how it will interface between Clara and my BMS. Updates to follow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Knowledge to add in ==&lt;br /&gt;
This section is an evolving work in progress by jrbe.&lt;br /&gt;
&lt;br /&gt;
See image:&lt;br /&gt;
[[File:Prius Gen 2 IGBT and Inductor.png|thumb|Prius Gen 2 IGBT and Inductor]]&lt;br /&gt;
&lt;br /&gt;
* The inductor is the low side +.&lt;br /&gt;
* Inductor connection to the IGBT is CL.&lt;br /&gt;
* CP is the high side +&lt;br /&gt;
* CN is the common - for the high and low sides.  Do not connect to chassis ground, for high voltage &amp;amp; low voltage -.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This converter shares the - between the high and low sides.&lt;br /&gt;
&lt;br /&gt;
The Orange wire from the IGBT seems to be for voltage level sensing for the IGBT. I believe this needs to see 8v? or more to startup so may need to be moved to the low voltage / inductor side + if that&#039;s where the voltage is at startup.  Seems to be no need to connect this wire to a low voltage controller.&lt;br /&gt;
&lt;br /&gt;
The IPM and CSDN lines can be setup with a 12v pull up 470R then an N mosfet pulls it to ground.  A gate pull up resistor of 47k to + voltage means the n mosfet is on and pulls the line low on startup until the gate is pulled low by the mcu.  A gate pull down resistor of 47k Means the mosfet stays off, line stays high until voltage rises on the gate by the mcu. If both are set to tri-stated the converter should shut down on its own with this hardware without a turn off spike. Its possible FCV voltage could be used for these signals but needs testing.  FCV still has good voltage a little while after the igbt shuts down.&lt;br /&gt;
&lt;br /&gt;
This converter can run at about 16:1 high to low ratio but at unknown power levels.  Applying 20v to the low side + (inductor) and CN, at 5khz and 10% duty cycle (inverted) it will make ~195V at CP(+) &amp;amp; CN(-), so about a 1:10 ratio.  If the 20v is applied at the high side CP &amp;amp; CN you will get around 2V on the low side + and CN, same approximate 1:10 ratio.  The best you can get is ~16:1 to 1:1 for the converter range.  &lt;br /&gt;
&lt;br /&gt;
The converter can be run different ways.  Fixed duty cycle means a fixed ratio between high and low side, power flows when the voltage on one side or the other is higher than the other by the ratio of the 2 voltages (bidirectional flow.)&lt;br /&gt;
&lt;br /&gt;
This could be run in a current control method but that means watching current and adjusting duty cycle to set/drive the current.  This of course needs safeties like voltage ranges and a way to match the voltage to pwm ratio.&lt;br /&gt;
&lt;br /&gt;
Ramping up/down pwm means the converter can soft start, ramping up voltage as the duty cycle increases(inverted.)&lt;br /&gt;
&lt;br /&gt;
Care must be taken on power up and down to prevent the IGBT from being high or low with a stuck or off pwm.  CSDN high or IPM low or both will shut down the IGBT switches. If CSDN only is used, brownouts can mean spikes from the voltage dipping below the IGBT off threshold, effectively reenabling the IGBT. PWM thresholds are currently unknown. There is a possibility there is a voltage between high and low for pwm sensing that wont turn on high or low igbts, needs testing.&lt;br /&gt;
&lt;br /&gt;
The IGBT has similar Mitsubishi part number to 400A / 1200V IGBT&#039;s.&lt;br /&gt;
&lt;br /&gt;
The 1:100 volt isolated output does not work on the one I&#039;m testing.  I did AMC3311 isolated voltage monitoring IC&#039;s with TLV9001 opamps for isolated voltage sensing for both low and high sides of the converter.&lt;br /&gt;
&lt;br /&gt;
FCV from the IGBT runs at 15.35v.  This might be a control voltage that could be used for the IPM and CSDN enable / disable lines.&lt;br /&gt;
&lt;br /&gt;
The IGBT glitches at around 7.3v input voltage.  Safeties should be in place to monitor the 12v voltage and shut down the converter if it gets near or below that.  &lt;br /&gt;
&lt;br /&gt;
For testing, setting a 9.0v threshold for brownout shutdown and having code and a processor that can shutdown in about 1ms means the voltage can be about 15.4v then drop to 0 without a shutdown spike.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
Johannes has some videos, linked below, showing AC charging using the buck/boost controller and Damien also demonstrates it. These things are potentially pretty dangerous so do watch these first.&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=hkCRddO3Clc Damien&#039;s charging demonstration]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=_BDJ7N_YjAU Johannes&#039; charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=E62nOUprQYI&amp;amp;t=721s Johannes&#039; Lab Update #42]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mPp13zctjfY Johannes&#039;s Lab Update #45]&lt;br /&gt;
&lt;br /&gt;
Any suggestions/ideas/corrections very welcome.&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=4530 forum discussion thread]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5608</id>
		<title>Operating the buck/boost converter for a low voltage CCS charging application</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5608"/>
		<updated>2025-02-04T06:27:12Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Knowledge to add in */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of this project is to enable ‘low’ voltage battery packs (c. 120V) to be charged using CCS chargers, which will not operate below 200V and more typically operate around 400V.&lt;br /&gt;
&lt;br /&gt;
The plan is to use the Buck/Boost converter found in the Gen 2 Prius inverter/converter module which the Prius uses to boost battery voltage to c. 400V to power the car’s motors, and to buck that voltage back down to pack voltage of c. 200V when in regen mode.&lt;br /&gt;
&lt;br /&gt;
In this project, the plan is to boost the battery pack voltage to c. 400V, connect to the EVSE charger using a CCS controller, and then reduce the voltage boosting in order to draw current from the EVSE and charge the car’s battery pack. The CCS standard does not support charging below 200V so for battery packs lower than this, it&#039;s not been possible to use CCS charging. This project may change that and make rapid charging available to lower voltage packs but at said low voltages, current handling will be the limiting factor for charging speeds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1 is to demonstrate control of the Prius buck/boost converter. This is essentially complete. &lt;br /&gt;
&lt;br /&gt;
Step 2 is to implement a ‘man in the middle’ solution, which will:&lt;br /&gt;
&lt;br /&gt;
* Control the buck/boost converter;&lt;br /&gt;
* Control any battery-side contactors;&lt;br /&gt;
* Receive charging requirements and restrictions from the BMS via CAN;&lt;br /&gt;
* Translate these low-volage requirements into higher voltage requirements for the CCS controller to pass to the EVSE.&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
A schematic of the buck/boost converter and the inverter is below, with the converter boxed in red.&lt;br /&gt;
&lt;br /&gt;
If the inverter stage were to be bypassed, as shown in blue, the boosted battery voltage could match that output from a CCS charger and in theory at least allow for a sub 200V pack to be charged.&lt;br /&gt;
[[File:Clanger boost idea.png|thumb|Buck boost for CCS]]&lt;br /&gt;
A man-in-the-middle board will interface with the car&#039;s BMS and accept the low-voltage charging requirements and restrictions, and translate these into high voltage requirements and restrictions and pass this onto whatever CCS controller we end up using. The BMS will never &#039;know&#039; it&#039;s taking in high voltage as it will only see the pack voltage levels that the buck/booster reduces the EVSE level to, and the EVSE will not &#039;know&#039; its charging a sub 200V pack, since it sees c. 400V and is instructed to provide said volage by the CCS controller. I hope to use FOCCCI and CLARA for the CCS controller and at present the MITM board for controlling pre-charging and the buck/boost controller is a simple Teensy 4.1.&lt;br /&gt;
[[File:Prius Gen2 inverter schematic.gif|thumb|Buck-Boost converter]]&lt;br /&gt;
&lt;br /&gt;
==Control of the buck/boost converter==&lt;br /&gt;
&lt;br /&gt;
The buck/boost converter’s Intelligent Power Module is a Mitsubishi PM400DV1A400. It has an 16 pin input plug P/N: 1318386-1, crimps 1123343-1 from TE. These plugs are pretty small and necessitate a thin wire gauge (c. 20-23 AWG at a guess). &lt;br /&gt;
&lt;br /&gt;
Pin numbering and colouring can be found in the Toyota wiring guide, p106 [find a link] and these connect into the 32 pin Prius Inverter plug as show in the wiki [https://openinverter.org/wiki/Toyota_Prius_Gen2_Inverter Prius Gen 2 Wiki] with the exception of the modules power, ground and OVH wire (more on that below).&lt;br /&gt;
[[File:IPM wiring.jpg|thumb|Block diagram from Toyota for the Mitsubishi IPM]]&lt;br /&gt;
Block diagram shown.&lt;br /&gt;
&lt;br /&gt;
The pin numbering is shown below. Pin numbers start with pin 1 at the top, right side of the TE plug when looking at the wire entry side. So the red 12V power input is pin 8, and the orange voltage sense wire is pin 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin&lt;br /&gt;
!Toyota colour&lt;br /&gt;
!Toyota name&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Green/Red&lt;br /&gt;
|CT&lt;br /&gt;
|Temp dependent voltage signal&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Purple&lt;br /&gt;
|VL&lt;br /&gt;
|1:100 scaled isolated voltage of orange wire&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Pink&lt;br /&gt;
|OVH&lt;br /&gt;
|IPM Enable line, 5V on, 0V off&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Blue&lt;br /&gt;
|CPWM&lt;br /&gt;
|0-100% duty cycle PWM 12V - 0V, 5kHz&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Black&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Red&lt;br /&gt;
|12V&lt;br /&gt;
|12V&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|Orange&lt;br /&gt;
|?&lt;br /&gt;
|Isolated? Voltage sense wire (Batt +)&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|Pink/Blue&lt;br /&gt;
|OVL&lt;br /&gt;
|not known&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|white/red&lt;br /&gt;
|FCV&lt;br /&gt;
|Fault reporting line. More detail needed&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|black/red&lt;br /&gt;
|GCNV&lt;br /&gt;
|Held at ground, more detail needed&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|brown/white&lt;br /&gt;
|CSDN&lt;br /&gt;
|Shutdown line. If high, IPM shuts down. Held low.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Johannes has demonstrated control using his own boards and software, see Resources below. The following describes generic control, should you want to use your own harware/software. I have not yet used CT for temp sensing, FCV for fault reporting, and have had limited sucess with the VL voltage sensing (it may be the voltage I was testing on is just too low). Johannes does show it working. &lt;br /&gt;
&lt;br /&gt;
=== Boosting control ===&lt;br /&gt;
Control is achieved as follows. To start up the boost module safely without it doing any boosting the CPWM duty cycle must be set to 0%, so 0V, the OVH line also held low, and GCNV, CSDN grounded. 12V is then applied to pin 8. &lt;br /&gt;
&lt;br /&gt;
Use a pre-charge mechanism, feed the &amp;quot;low&amp;quot; voltage from the pack to the DC battery input posts of the inverter module. This will mean the big capacitor in the inverter/controller will see pack voltage, hence the need to pre-charge before applying the main pack voltage.&lt;br /&gt;
&lt;br /&gt;
See Johannes&#039; charger videos linked below and see the main Prius wiki to make sure you understand how the IPM works with regards to the top and bottom IGBTs, because it is easy to short out the battery pack.&lt;br /&gt;
&lt;br /&gt;
Next, supply 5V to OVH and this enables the IPM. Then, by increasing the CPWM duty cycle, the battery voltage can be boosted and this higher voltage can now be seen on the DC rails (shown in blue in the Buck/Boost for CCS diagram above).&lt;br /&gt;
&lt;br /&gt;
It&#039;s important that the CPMW is set to zero when starting and to ensure this, I used a very simple circuit with two transistors as shown, because during the boot/power on of the Teensy the output pin is floating until it&#039;s explicity set low, and this circuit makes sure that CPWM is set low from the beginning. To stop, remove 5V from OVH and open contactors to battery to remove input DC. There is a bleed resistor board in the inverter which will drain the voltage on the capacitor but take care none the less. It may be wise to reduce the boosting to zero before setting OVH low, I don&#039;t know.&lt;br /&gt;
[[File:Pwm circuit hold low.png|thumb|Keeping PWM low during boot]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
[[File:Possible ccs take off.png|thumb|Possible CCS take off points circled in red]]&lt;br /&gt;
The idea is to boost the battery voltage to the output voltage of the charger, then allow the charger to connect to either the DC bus rails circled below in red in picture labelled &#039;possible CCS take-off&#039; (but confirmation needed on this), OR, to two of the MG1 terminals. The latter does mean that the current will flow through the diodes on the inverter circuit, and this may not be desirable because a) it might limit the current that can be drawn and b) it means keeping the inverter circuitry even though we don&#039;t use it for this application and could perhaps discard it to save space. Either way, once the voltages are matched, the charger can be allowed to connect to the DC bus rails (in theory without its own pre-charge circuitry but that might not be wise). Assuming the charger voltage and the boosted pack voltage are the same, no current will flow. By reducing the boosting by reducing the PWM duty cycle, current can be drawn towards the pack. The pack will see the bucked down voltage level and by controlling the amount of boosting the amount of current can also be controlled.&lt;br /&gt;
&lt;br /&gt;
Note: the above is conceptual and I have been successful using very low voltages to test charging a 12V battery from an 18V battery. Scaling this up to charging a 120V battery from a 400V EVSE is a different kettle of fish altogether, and I could use some help from the community to confirm where best to connect the EVSE HV to (see blue lines on Buck/Boost for CCS schematic above) and general advice regarding safety and best practice.&lt;br /&gt;
&lt;br /&gt;
== Power ==&lt;br /&gt;
It is not clear how much power we can pass through the buck/boost converter, and hence what charging speeds we could achieve, however even if it’s as low as 10kW it’s an improvement over the 6.6kW typical max charge rate for a low voltage EV conversion and importantly means CCS chargers can be used when AC chargers are not available. It’s been suggested that the maximum current the Gen 2 inverter/controller can push out through the DC lines is 100A, which would limit the charging rate to c. 12kW maximum. The IPM may be rated at up to 400A [https://openinverter.org/forum/viewtopic.php?t=4745 Prius boost module PM400DV1A120] which may mean a higher rate is possible. More info needed.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible that two (or more) of these buck/boost converters could be run in parallel with essentialy the one control code.&lt;br /&gt;
&lt;br /&gt;
== Next Steps ==&lt;br /&gt;
&lt;br /&gt;
The MITM needs to be able to communicate with the CCS controller, and hopefully the FOCCCI and CLARA CSS projects here on OI will be suitable. I hope to establish what Clara needs for battery pack info, and its operational flow chart so I can work out the logic for the MITM and how it will interface between Clara and my BMS. Updates to follow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Knowledge to add in ==&lt;br /&gt;
This section is an evolving work in progress by jrbe.&lt;br /&gt;
&lt;br /&gt;
See image:&lt;br /&gt;
[[File:Prius Gen 2 IGBT and Inductor.png|thumb|Prius Gen 2 IGBT and Inductor]]&lt;br /&gt;
&lt;br /&gt;
* The inductor is the low side +.&lt;br /&gt;
* Inductor connection to the IGBT is CL.&lt;br /&gt;
* CP is the high side +&lt;br /&gt;
* CN is the common - for the high and low sides.  Do not connect to chassis ground, for high voltage &amp;amp; low voltage -.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This converter shares the - between the high and low sides.&lt;br /&gt;
&lt;br /&gt;
The Orange wire from the IGBT seems to be for voltage level sensing for the IGBT. I believe this needs to see 8v? or more to startup so may need to be moved to the low voltage / inductor side + if that&#039;s where the voltage is at startup.  Seems to be no need to connect this wire to a low voltage controller.&lt;br /&gt;
&lt;br /&gt;
The IPM and CSDN lines can be setup with a 12v pull up 470R then an N mosfet pulls it to ground.  A gate pull up resistor of 47k to + voltage means the n mosfet is on and pulls the line low on startup until the gate is pulled low by the mcu.  A gate pull down resistor of 47k Means the mosfet stays off, line stays high until voltage rises on the gate by the mcu. If both are set to tri-stated the converter should shut down on its own with this hardware without a turn off spike.&lt;br /&gt;
&lt;br /&gt;
This converter can run at about 16:1 high to low ratio but at unknown power levels.  Applying 20v to the low side + and CN, at 5khz and 10% duty cycle (inverted) it will make ~195V at CP(+) &amp;amp; CN(-), so about a 1:10 ratio.  If the 20v is applied at the high side CP &amp;amp; CN you will get around 2V on the low side + and CN.  The best you can get is ~16:1 to 1:1 for the converter range.  &lt;br /&gt;
&lt;br /&gt;
The converter can be run different ways.  Fixed duty cycle means a fixed ratio between high and low side, power flows when the voltage on one side or the other is higher than the other by the ratio of the 2 voltages (bidirectional flow.)&lt;br /&gt;
&lt;br /&gt;
This could be run in a current control method but that means watching current and adjusting duty cycle to set/drive the current.  This of course needs safeties like voltage ranges and a way to match the voltage to pwm ratio.&lt;br /&gt;
&lt;br /&gt;
Ramping up/down pwm means the converter can soft start, ramping up voltage as the duty cycle increases(inverted.)&lt;br /&gt;
&lt;br /&gt;
Care must be taken on power up and down to prevent the IGBT from being high or low with a stuck or off pwm.  CSDN high or IPM low or both will shut down the IGBT switches. If CSDN only is used, brownouts can mean spikes from the voltage dipping below the IGBT off threshold, effectively reenabling the IGBT.&lt;br /&gt;
&lt;br /&gt;
The IGBT has similar part number to 400A / 1200V IGBT&#039;s.&lt;br /&gt;
&lt;br /&gt;
The 1:100 volt isolated output does not work on the one I&#039;m testing.  I did AMC3311 isolated voltage monitoring IC&#039;s with TLV9001 opamps for isolated voltage sensing for both low and high sides of the converter.&lt;br /&gt;
&lt;br /&gt;
FCV from the IGBT runs at 15.35v.  This might be a control voltage that could be used for the IPM and CSDN enable / disable lines.&lt;br /&gt;
&lt;br /&gt;
The IGBT glitches at around 7.3v.  Safeties should be in place to monitor the 12v voltage and shut down the converter if it gets near or below that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
Johannes has some videos, linked below, showing AC charging using the buck/boost controller and Damien also demontrates it. These things are potentially pretty dangerous so do watch these first.&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=hkCRddO3Clc Damien&#039;s charging demonstration]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=_BDJ7N_YjAU Johannes&#039; charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=E62nOUprQYI&amp;amp;t=721s Johannes&#039; Lab Update #42]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mPp13zctjfY Johannes&#039;s Lab Update #45]&lt;br /&gt;
&lt;br /&gt;
Any suggestions/ideas/corrections very welcome.&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=4530 forum discussion thread]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5607</id>
		<title>Operating the buck/boost converter for a low voltage CCS charging application</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5607"/>
		<updated>2025-02-04T06:06:55Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Knowledge to add in */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of this project is to enable ‘low’ voltage battery packs (c. 120V) to be charged using CCS chargers, which will not operate below 200V and more typically operate around 400V.&lt;br /&gt;
&lt;br /&gt;
The plan is to use the Buck/Boost converter found in the Gen 2 Prius inverter/converter module which the Prius uses to boost battery voltage to c. 400V to power the car’s motors, and to buck that voltage back down to pack voltage of c. 200V when in regen mode.&lt;br /&gt;
&lt;br /&gt;
In this project, the plan is to boost the battery pack voltage to c. 400V, connect to the EVSE charger using a CCS controller, and then reduce the voltage boosting in order to draw current from the EVSE and charge the car’s battery pack. The CCS standard does not support charging below 200V so for battery packs lower than this, it&#039;s not been possible to use CCS charging. This project may change that and make rapid charging available to lower voltage packs but at said low voltages, current handling will be the limiting factor for charging speeds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1 is to demonstrate control of the Prius buck/boost converter. This is essentially complete. &lt;br /&gt;
&lt;br /&gt;
Step 2 is to implement a ‘man in the middle’ solution, which will:&lt;br /&gt;
&lt;br /&gt;
* Control the buck/boost converter;&lt;br /&gt;
* Control any battery-side contactors;&lt;br /&gt;
* Receive charging requirements and restrictions from the BMS via CAN;&lt;br /&gt;
* Translate these low-volage requirements into higher voltage requirements for the CCS controller to pass to the EVSE.&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
A schematic of the buck/boost converter and the inverter is below, with the converter boxed in red.&lt;br /&gt;
&lt;br /&gt;
If the inverter stage were to be bypassed, as shown in blue, the boosted battery voltage could match that output from a CCS charger and in theory at least allow for a sub 200V pack to be charged.&lt;br /&gt;
[[File:Clanger boost idea.png|thumb|Buck boost for CCS]]&lt;br /&gt;
A man-in-the-middle board will interface with the car&#039;s BMS and accept the low-voltage charging requirements and restrictions, and translate these into high voltage requirements and restrictions and pass this onto whatever CCS controller we end up using. The BMS will never &#039;know&#039; it&#039;s taking in high voltage as it will only see the pack voltage levels that the buck/booster reduces the EVSE level to, and the EVSE will not &#039;know&#039; its charging a sub 200V pack, since it sees c. 400V and is instructed to provide said volage by the CCS controller. I hope to use FOCCCI and CLARA for the CCS controller and at present the MITM board for controlling pre-charging and the buck/boost controller is a simple Teensy 4.1.&lt;br /&gt;
[[File:Prius Gen2 inverter schematic.gif|thumb|Buck-Boost converter]]&lt;br /&gt;
&lt;br /&gt;
==Control of the buck/boost converter==&lt;br /&gt;
&lt;br /&gt;
The buck/boost converter’s Intelligent Power Module is a Mitsubishi PM400DV1A400. It has an 16 pin input plug P/N: 1318386-1, crimps 1123343-1 from TE. These plugs are pretty small and necessitate a thin wire gauge (c. 20-23 AWG at a guess). &lt;br /&gt;
&lt;br /&gt;
Pin numbering and colouring can be found in the Toyota wiring guide, p106 [find a link] and these connect into the 32 pin Prius Inverter plug as show in the wiki [https://openinverter.org/wiki/Toyota_Prius_Gen2_Inverter Prius Gen 2 Wiki] with the exception of the modules power, ground and OVH wire (more on that below).&lt;br /&gt;
[[File:IPM wiring.jpg|thumb|Block diagram from Toyota for the Mitsubishi IPM]]&lt;br /&gt;
Block diagram shown.&lt;br /&gt;
&lt;br /&gt;
The pin numbering is shown below. Pin numbers start with pin 1 at the top, right side of the TE plug when looking at the wire entry side. So the red 12V power input is pin 8, and the orange voltage sense wire is pin 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin&lt;br /&gt;
!Toyota colour&lt;br /&gt;
!Toyota name&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Green/Red&lt;br /&gt;
|CT&lt;br /&gt;
|Temp dependent voltage signal&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Purple&lt;br /&gt;
|VL&lt;br /&gt;
|1:100 scaled isolated voltage of orange wire&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Pink&lt;br /&gt;
|OVH&lt;br /&gt;
|IPM Enable line, 5V on, 0V off&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Blue&lt;br /&gt;
|CPWM&lt;br /&gt;
|0-100% duty cycle PWM 12V - 0V, 5kHz&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Black&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Red&lt;br /&gt;
|12V&lt;br /&gt;
|12V&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|Orange&lt;br /&gt;
|?&lt;br /&gt;
|Isolated? Voltage sense wire (Batt +)&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|Pink/Blue&lt;br /&gt;
|OVL&lt;br /&gt;
|not known&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|white/red&lt;br /&gt;
|FCV&lt;br /&gt;
|Fault reporting line. More detail needed&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|black/red&lt;br /&gt;
|GCNV&lt;br /&gt;
|Held at ground, more detail needed&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|brown/white&lt;br /&gt;
|CSDN&lt;br /&gt;
|Shutdown line. If high, IPM shuts down. Held low.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Johannes has demonstrated control using his own boards and software, see Resources below. The following describes generic control, should you want to use your own harware/software. I have not yet used CT for temp sensing, FCV for fault reporting, and have had limited sucess with the VL voltage sensing (it may be the voltage I was testing on is just too low). Johannes does show it working. &lt;br /&gt;
&lt;br /&gt;
=== Boosting control ===&lt;br /&gt;
Control is achieved as follows. To start up the boost module safely without it doing any boosting the CPWM duty cycle must be set to 0%, so 0V, the OVH line also held low, and GCNV, CSDN grounded. 12V is then applied to pin 8. &lt;br /&gt;
&lt;br /&gt;
Use a pre-charge mechanism, feed the &amp;quot;low&amp;quot; voltage from the pack to the DC battery input posts of the inverter module. This will mean the big capacitor in the inverter/controller will see pack voltage, hence the need to pre-charge before applying the main pack voltage.&lt;br /&gt;
&lt;br /&gt;
See Johannes&#039; charger videos linked below and see the main Prius wiki to make sure you understand how the IPM works with regards to the top and bottom IGBTs, because it is easy to short out the battery pack.&lt;br /&gt;
&lt;br /&gt;
Next, supply 5V to OVH and this enables the IPM. Then, by increasing the CPWM duty cycle, the battery voltage can be boosted and this higher voltage can now be seen on the DC rails (shown in blue in the Buck/Boost for CCS diagram above).&lt;br /&gt;
&lt;br /&gt;
It&#039;s important that the CPMW is set to zero when starting and to ensure this, I used a very simple circuit with two transistors as shown, because during the boot/power on of the Teensy the output pin is floating until it&#039;s explicity set low, and this circuit makes sure that CPWM is set low from the beginning. To stop, remove 5V from OVH and open contactors to battery to remove input DC. There is a bleed resistor board in the inverter which will drain the voltage on the capacitor but take care none the less. It may be wise to reduce the boosting to zero before setting OVH low, I don&#039;t know.&lt;br /&gt;
[[File:Pwm circuit hold low.png|thumb|Keeping PWM low during boot]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
[[File:Possible ccs take off.png|thumb|Possible CCS take off points circled in red]]&lt;br /&gt;
The idea is to boost the battery voltage to the output voltage of the charger, then allow the charger to connect to either the DC bus rails circled below in red in picture labelled &#039;possible CCS take-off&#039; (but confirmation needed on this), OR, to two of the MG1 terminals. The latter does mean that the current will flow through the diodes on the inverter circuit, and this may not be desirable because a) it might limit the current that can be drawn and b) it means keeping the inverter circuitry even though we don&#039;t use it for this application and could perhaps discard it to save space. Either way, once the voltages are matched, the charger can be allowed to connect to the DC bus rails (in theory without its own pre-charge circuitry but that might not be wise). Assuming the charger voltage and the boosted pack voltage are the same, no current will flow. By reducing the boosting by reducing the PWM duty cycle, current can be drawn towards the pack. The pack will see the bucked down voltage level and by controlling the amount of boosting the amount of current can also be controlled.&lt;br /&gt;
&lt;br /&gt;
Note: the above is conceptual and I have been successful using very low voltages to test charging a 12V battery from an 18V battery. Scaling this up to charging a 120V battery from a 400V EVSE is a different kettle of fish altogether, and I could use some help from the community to confirm where best to connect the EVSE HV to (see blue lines on Buck/Boost for CCS schematic above) and general advice regarding safety and best practice.&lt;br /&gt;
&lt;br /&gt;
== Power ==&lt;br /&gt;
It is not clear how much power we can pass through the buck/boost converter, and hence what charging speeds we could achieve, however even if it’s as low as 10kW it’s an improvement over the 6.6kW typical max charge rate for a low voltage EV conversion and importantly means CCS chargers can be used when AC chargers are not available. It’s been suggested that the maximum current the Gen 2 inverter/controller can push out through the DC lines is 100A, which would limit the charging rate to c. 12kW maximum. The IPM may be rated at up to 400A [https://openinverter.org/forum/viewtopic.php?t=4745 Prius boost module PM400DV1A120] which may mean a higher rate is possible. More info needed.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible that two (or more) of these buck/boost converters could be run in parallel with essentialy the one control code.&lt;br /&gt;
&lt;br /&gt;
== Next Steps ==&lt;br /&gt;
&lt;br /&gt;
The MITM needs to be able to communicate with the CCS controller, and hopefully the FOCCCI and CLARA CSS projects here on OI will be suitable. I hope to establish what Clara needs for battery pack info, and its operational flow chart so I can work out the logic for the MITM and how it will interface between Clara and my BMS. Updates to follow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Knowledge to add in ==&lt;br /&gt;
This section is an evolving work in progress by jrbe.&lt;br /&gt;
&lt;br /&gt;
See image:&lt;br /&gt;
[[File:Prius Gen 2 IGBT and Inductor.png|thumb|Prius Gen 2 IGBT and Inductor]]&lt;br /&gt;
&lt;br /&gt;
* The inductor is the low side +.&lt;br /&gt;
* Inductor connection to the IGBT is CL.&lt;br /&gt;
* CP is the high side +&lt;br /&gt;
* CN is the common - for the high and low sides.  Do not connect to chassis ground, for high voltage &amp;amp; low voltage -.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This converter shares the - between the high and low sides.&lt;br /&gt;
&lt;br /&gt;
The Orange wire from the IGBT seems to be for voltage level sensing for the IGBT. I believe this needs to see 8v? or more to startup so may need to be moved to the low voltage / inductor side + if that&#039;s where the voltage is at startup.  Seems to be no need to connect this wire to a low voltage controller.&lt;br /&gt;
&lt;br /&gt;
The IPM and CSDN lines can be setup with a 12v pull up 470R then an N mosfet pulls it to ground.  A gate pull up resistor of 47k to + voltage means the n mosfet is on and pulls the line low on startup until the gate is pulled low by the mcu.  A gate pull down resistor of 47k Means the mosfet stays off, line stays high until voltage rises on the gate by the mcu. If both are set to tri-stated the converter should shut down on its own with this hardware without a turn off spike.&lt;br /&gt;
&lt;br /&gt;
This converter can run at about 16:1 high to low ratio but at unknown power levels.  Applying 20v to the low side + and CN, at 5khz and 10% duty cycle (inverted) it will make ~195V at CP(+) &amp;amp; CN(-), so about a 1:10 ratio.  If the 20v is applied at the high side CP &amp;amp; CN you will get around 2V on the low side + and CN.  The best you can get is ~16:1 to 1:1 for the converter range.  &lt;br /&gt;
&lt;br /&gt;
The converter can be run different ways.  Fixed duty cycle means a fixed ratio between high and low side, power flows when the voltage on one side or the other is higher than the other by the ratio of the 2 voltages (bidirectional flow.)&lt;br /&gt;
&lt;br /&gt;
This could be run in a current control method but that means watching current and adjusting duty cycle to set/drive the current.  This of course needs safeties like voltage ranges and a way to match the voltage to pwm ratio.&lt;br /&gt;
&lt;br /&gt;
Ramping up/down pwm means the converter can soft start, ramping up voltage as the duty cycle increases(inverted.)&lt;br /&gt;
&lt;br /&gt;
Care must be taken on power up and down to prevent the IGBT from being high or low with a stuck or off pwm.  CSDN high or IPM low will shut down the IGBT switches.&lt;br /&gt;
&lt;br /&gt;
The IGBT has similar part number to 400A / 1200V IGBT&#039;s.&lt;br /&gt;
&lt;br /&gt;
The 1:100 volt isolated output does not work on the one I&#039;m testing.  I did AMC3311 isolated voltage monitoring IC&#039;s with TLV9001 opamps for isolated voltage sensing for both low and high sides of the converter.&lt;br /&gt;
&lt;br /&gt;
FCV from the IGBT runs at 15.35v.  This might be a control voltage that could be used for the IPM and CSDN enable / disable lines.&lt;br /&gt;
&lt;br /&gt;
The IGBT glitches at around 7.3v.  Safeties should be in place to monitor the 12v voltage and shut down the converter if it gets near or below that.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
Johannes has some videos, linked below, showing AC charging using the buck/boost controller and Damien also demontrates it. These things are potentially pretty dangerous so do watch these first.&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=hkCRddO3Clc Damien&#039;s charging demonstration]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=_BDJ7N_YjAU Johannes&#039; charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=E62nOUprQYI&amp;amp;t=721s Johannes&#039; Lab Update #42]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mPp13zctjfY Johannes&#039;s Lab Update #45]&lt;br /&gt;
&lt;br /&gt;
Any suggestions/ideas/corrections very welcome.&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=4530 forum discussion thread]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5606</id>
		<title>Operating the buck/boost converter for a low voltage CCS charging application</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5606"/>
		<updated>2025-02-03T21:02:27Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Next Steps */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of this project is to enable ‘low’ voltage battery packs (c. 120V) to be charged using CCS chargers, which will not operate below 200V and more typically operate around 400V.&lt;br /&gt;
&lt;br /&gt;
The plan is to use the Buck/Boost converter found in the Gen 2 Prius inverter/converter module which the Prius uses to boost battery voltage to c. 400V to power the car’s motors, and to buck that voltage back down to pack voltage of c. 200V when in regen mode.&lt;br /&gt;
&lt;br /&gt;
In this project, the plan is to boost the battery pack voltage to c. 400V, connect to the EVSE charger using a CCS controller, and then reduce the voltage boosting in order to draw current from the EVSE and charge the car’s battery pack. The CCS standard does not support charging below 200V so for battery packs lower than this, it&#039;s not been possible to use CCS charging. This project may change that and make rapid charging available to lower voltage packs but at said low voltages, current handling will be the limiting factor for charging speeds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1 is to demonstrate control of the Prius buck/boost converter. This is essentially complete. &lt;br /&gt;
&lt;br /&gt;
Step 2 is to implement a ‘man in the middle’ solution, which will:&lt;br /&gt;
&lt;br /&gt;
* Control the buck/boost converter;&lt;br /&gt;
* Control any battery-side contactors;&lt;br /&gt;
* Receive charging requirements and restrictions from the BMS via CAN;&lt;br /&gt;
* Translate these low-volage requirements into higher voltage requirements for the CCS controller to pass to the EVSE.&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
A schematic of the buck/boost converter and the inverter is below, with the converter boxed in red.&lt;br /&gt;
&lt;br /&gt;
If the inverter stage were to be bypassed, as shown in blue, the boosted battery voltage could match that output from a CCS charger and in theory at least allow for a sub 200V pack to be charged.&lt;br /&gt;
[[File:Clanger boost idea.png|thumb|Buck boost for CCS]]&lt;br /&gt;
A man-in-the-middle board will interface with the car&#039;s BMS and accept the low-voltage charging requirements and restrictions, and translate these into high voltage requirements and restrictions and pass this onto whatever CCS controller we end up using. The BMS will never &#039;know&#039; it&#039;s taking in high voltage as it will only see the pack voltage levels that the buck/booster reduces the EVSE level to, and the EVSE will not &#039;know&#039; its charging a sub 200V pack, since it sees c. 400V and is instructed to provide said volage by the CCS controller. I hope to use FOCCCI and CLARA for the CCS controller and at present the MITM board for controlling pre-charging and the buck/boost controller is a simple Teensy 4.1.&lt;br /&gt;
[[File:Prius Gen2 inverter schematic.gif|thumb|Buck-Boost converter]]&lt;br /&gt;
&lt;br /&gt;
==Control of the buck/boost converter==&lt;br /&gt;
&lt;br /&gt;
The buck/boost converter’s Intelligent Power Module is a Mitsubishi PM400DV1A400. It has an 16 pin input plug P/N: 1318386-1, crimps 1123343-1 from TE. These plugs are pretty small and necessitate a thin wire gauge (c. 20-23 AWG at a guess). &lt;br /&gt;
&lt;br /&gt;
Pin numbering and colouring can be found in the Toyota wiring guide, p106 [find a link] and these connect into the 32 pin Prius Inverter plug as show in the wiki [https://openinverter.org/wiki/Toyota_Prius_Gen2_Inverter Prius Gen 2 Wiki] with the exception of the modules power, ground and OVH wire (more on that below).&lt;br /&gt;
[[File:IPM wiring.jpg|thumb|Block diagram from Toyota for the Mitsubishi IPM]]&lt;br /&gt;
Block diagram shown.&lt;br /&gt;
&lt;br /&gt;
The pin numbering is shown below. Pin numbers start with pin 1 at the top, right side of the TE plug when looking at the wire entry side. So the red 12V power input is pin 8, and the orange voltage sense wire is pin 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin&lt;br /&gt;
!Toyota colour&lt;br /&gt;
!Toyota name&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Green/Red&lt;br /&gt;
|CT&lt;br /&gt;
|Temp dependent voltage signal&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Purple&lt;br /&gt;
|VL&lt;br /&gt;
|1:100 scaled isolated voltage of orange wire&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Pink&lt;br /&gt;
|OVH&lt;br /&gt;
|IPM Enable line, 5V on, 0V off&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Blue&lt;br /&gt;
|CPWM&lt;br /&gt;
|0-100% duty cycle PWM 12V - 0V, 5kHz&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Black&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Red&lt;br /&gt;
|12V&lt;br /&gt;
|12V&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|Orange&lt;br /&gt;
|?&lt;br /&gt;
|Isolated? Voltage sense wire (Batt +)&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|Pink/Blue&lt;br /&gt;
|OVL&lt;br /&gt;
|not known&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|white/red&lt;br /&gt;
|FCV&lt;br /&gt;
|Fault reporting line. More detail needed&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|black/red&lt;br /&gt;
|GCNV&lt;br /&gt;
|Held at ground, more detail needed&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|brown/white&lt;br /&gt;
|CSDN&lt;br /&gt;
|Shutdown line. If high, IPM shuts down. Held low.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Johannes has demonstrated control using his own boards and software, see Resources below. The following describes generic control, should you want to use your own harware/software. I have not yet used CT for temp sensing, FCV for fault reporting, and have had limited sucess with the VL voltage sensing (it may be the voltage I was testing on is just too low). Johannes does show it working. &lt;br /&gt;
&lt;br /&gt;
=== Boosting control ===&lt;br /&gt;
Control is achieved as follows. To start up the boost module safely without it doing any boosting the CPWM duty cycle must be set to 0%, so 0V, the OVH line also held low, and GCNV, CSDN grounded. 12V is then applied to pin 8. &lt;br /&gt;
&lt;br /&gt;
Use a pre-charge mechanism, feed the &amp;quot;low&amp;quot; voltage from the pack to the DC battery input posts of the inverter module. This will mean the big capacitor in the inverter/controller will see pack voltage, hence the need to pre-charge before applying the main pack voltage.&lt;br /&gt;
&lt;br /&gt;
See Johannes&#039; charger videos linked below and see the main Prius wiki to make sure you understand how the IPM works with regards to the top and bottom IGBTs, because it is easy to short out the battery pack.&lt;br /&gt;
&lt;br /&gt;
Next, supply 5V to OVH and this enables the IPM. Then, by increasing the CPWM duty cycle, the battery voltage can be boosted and this higher voltage can now be seen on the DC rails (shown in blue in the Buck/Boost for CCS diagram above).&lt;br /&gt;
&lt;br /&gt;
It&#039;s important that the CPMW is set to zero when starting and to ensure this, I used a very simple circuit with two transistors as shown, because during the boot/power on of the Teensy the output pin is floating until it&#039;s explicity set low, and this circuit makes sure that CPWM is set low from the beginning. To stop, remove 5V from OVH and open contactors to battery to remove input DC. There is a bleed resistor board in the inverter which will drain the voltage on the capacitor but take care none the less. It may be wise to reduce the boosting to zero before setting OVH low, I don&#039;t know.&lt;br /&gt;
[[File:Pwm circuit hold low.png|thumb|Keeping PWM low during boot]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
[[File:Possible ccs take off.png|thumb|Possible CCS take off points circled in red]]&lt;br /&gt;
The idea is to boost the battery voltage to the output voltage of the charger, then allow the charger to connect to either the DC bus rails circled below in red in picture labelled &#039;possible CCS take-off&#039; (but confirmation needed on this), OR, to two of the MG1 terminals. The latter does mean that the current will flow through the diodes on the inverter circuit, and this may not be desirable because a) it might limit the current that can be drawn and b) it means keeping the inverter circuitry even though we don&#039;t use it for this application and could perhaps discard it to save space. Either way, once the voltages are matched, the charger can be allowed to connect to the DC bus rails (in theory without its own pre-charge circuitry but that might not be wise). Assuming the charger voltage and the boosted pack voltage are the same, no current will flow. By reducing the boosting by reducing the PWM duty cycle, current can be drawn towards the pack. The pack will see the bucked down voltage level and by controlling the amount of boosting the amount of current can also be controlled.&lt;br /&gt;
&lt;br /&gt;
Note: the above is conceptual and I have been successful using very low voltages to test charging a 12V battery from an 18V battery. Scaling this up to charging a 120V battery from a 400V EVSE is a different kettle of fish altogether, and I could use some help from the community to confirm where best to connect the EVSE HV to (see blue lines on Buck/Boost for CCS schematic above) and general advice regarding safety and best practice.&lt;br /&gt;
&lt;br /&gt;
== Power ==&lt;br /&gt;
It is not clear how much power we can pass through the buck/boost converter, and hence what charging speeds we could achieve, however even if it’s as low as 10kW it’s an improvement over the 6.6kW typical max charge rate for a low voltage EV conversion and importantly means CCS chargers can be used when AC chargers are not available. It’s been suggested that the maximum current the Gen 2 inverter/controller can push out through the DC lines is 100A, which would limit the charging rate to c. 12kW maximum. The IPM may be rated at up to 400A [https://openinverter.org/forum/viewtopic.php?t=4745 Prius boost module PM400DV1A120] which may mean a higher rate is possible. More info needed.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible that two (or more) of these buck/boost converters could be run in parallel with essentialy the one control code.&lt;br /&gt;
&lt;br /&gt;
== Next Steps ==&lt;br /&gt;
&lt;br /&gt;
The MITM needs to be able to communicate with the CCS controller, and hopefully the FOCCCI and CLARA CSS projects here on OI will be suitable. I hope to establish what Clara needs for battery pack info, and its operational flow chart so I can work out the logic for the MITM and how it will interface between Clara and my BMS. Updates to follow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Knowledge to add in ==&lt;br /&gt;
This section is an evolving work in progress by jrbe.&lt;br /&gt;
&lt;br /&gt;
See image:&lt;br /&gt;
[[File:Prius Gen 2 IGBT and Inductor.png|thumb|Prius Gen 2 IGBT and Inductor]]&lt;br /&gt;
&lt;br /&gt;
* The inductor is the low side +.&lt;br /&gt;
* Inductor connection to the IGBT is CL.&lt;br /&gt;
* CP is the high side +&lt;br /&gt;
* CN is the common -&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This converter shares the - between the high and low sides.&lt;br /&gt;
&lt;br /&gt;
The Orange wire from the IGBT seems to be for voltage level sensing for the IGBT. I believe this needs to see 8v? or more to startup.  Seems to be no need to connect this wire to a low voltage controller.&lt;br /&gt;
&lt;br /&gt;
The IPM and CSDN lines can be setup with a 12v pull up 470R then an N Mosfet pulls it to ground.  A gate pull up resistor of 47k to + voltage means the n mosfet is on and pulls the line low on startup until the gate is pulled low by the mcu.  A gate pull down resistor of 47k Means the mosfet stays off, line stays high until voltage rises on the gate by the mcu.&lt;br /&gt;
&lt;br /&gt;
This converter can run at about 16:1 high to low ratio but at unknown power levels.  Applying 20v to the low side + and CN, at 5khz and 10% duty cycle (inverted) it will make ~195V at CP(+) &amp;amp; CN(-), so about a 1:10 ratio.  If the 20v is applied at the high side CP &amp;amp; CN you will get around 2V on the low side + and CN.  The best you can get is ~16:1 to 1:1.  &lt;br /&gt;
&lt;br /&gt;
The converter can be run different ways.  Fixed duty cycle means a fixed ratio between high and low side, power flows when the voltage on one side or the other is higher (bidirectional flow.)&lt;br /&gt;
&lt;br /&gt;
This could be run in a current control method but that means watching current and adjusting duty cycle to set/drive the current.  This of course needs safeties like voltage ranges and a way to match the voltage to pwm ratio.&lt;br /&gt;
&lt;br /&gt;
Ramping up/down pwm means the converter can soft start, ramping up voltage as the duty cycle increases(inverted.)&lt;br /&gt;
&lt;br /&gt;
Care must be taken on power up and down to prevent the igbt from being high or low with a stuck or off pwm.  CSDN high or IPM low will shut down the igbt switches.&lt;br /&gt;
&lt;br /&gt;
The IGBT has similar part number to 400A / 1200V IGBT&#039;s.&lt;br /&gt;
&lt;br /&gt;
The 1:100 volt isolated output does not work on the one i&#039;m testing.  I did AMC3311 isolated voltage monitoring IC&#039;s with TLV9001 opamps for isolated voltage sensing for both low and high sides of the converter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
Johannes has some videos, linked below, showing AC charging using the buck/boost controller and Damien also demontrates it. These things are potentially pretty dangerous so do watch these first.&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=hkCRddO3Clc Damien&#039;s charging demonstration]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=_BDJ7N_YjAU Johannes&#039; charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=E62nOUprQYI&amp;amp;t=721s Johannes&#039; Lab Update #42]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mPp13zctjfY Johannes&#039;s Lab Update #45]&lt;br /&gt;
&lt;br /&gt;
Any suggestions/ideas/corrections very welcome.&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=4530 forum discussion thread]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5605</id>
		<title>Operating the buck/boost converter for a low voltage CCS charging application</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5605"/>
		<updated>2025-02-03T21:02:07Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Added research from my efforts (jrbe)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of this project is to enable ‘low’ voltage battery packs (c. 120V) to be charged using CCS chargers, which will not operate below 200V and more typically operate around 400V.&lt;br /&gt;
&lt;br /&gt;
The plan is to use the Buck/Boost converter found in the Gen 2 Prius inverter/converter module which the Prius uses to boost battery voltage to c. 400V to power the car’s motors, and to buck that voltage back down to pack voltage of c. 200V when in regen mode.&lt;br /&gt;
&lt;br /&gt;
In this project, the plan is to boost the battery pack voltage to c. 400V, connect to the EVSE charger using a CCS controller, and then reduce the voltage boosting in order to draw current from the EVSE and charge the car’s battery pack. The CCS standard does not support charging below 200V so for battery packs lower than this, it&#039;s not been possible to use CCS charging. This project may change that and make rapid charging available to lower voltage packs but at said low voltages, current handling will be the limiting factor for charging speeds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1 is to demonstrate control of the Prius buck/boost converter. This is essentially complete. &lt;br /&gt;
&lt;br /&gt;
Step 2 is to implement a ‘man in the middle’ solution, which will:&lt;br /&gt;
&lt;br /&gt;
* Control the buck/boost converter;&lt;br /&gt;
* Control any battery-side contactors;&lt;br /&gt;
* Receive charging requirements and restrictions from the BMS via CAN;&lt;br /&gt;
* Translate these low-volage requirements into higher voltage requirements for the CCS controller to pass to the EVSE.&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
A schematic of the buck/boost converter and the inverter is below, with the converter boxed in red.&lt;br /&gt;
&lt;br /&gt;
If the inverter stage were to be bypassed, as shown in blue, the boosted battery voltage could match that output from a CCS charger and in theory at least allow for a sub 200V pack to be charged.&lt;br /&gt;
[[File:Clanger boost idea.png|thumb|Buck boost for CCS]]&lt;br /&gt;
A man-in-the-middle board will interface with the car&#039;s BMS and accept the low-voltage charging requirements and restrictions, and translate these into high voltage requirements and restrictions and pass this onto whatever CCS controller we end up using. The BMS will never &#039;know&#039; it&#039;s taking in high voltage as it will only see the pack voltage levels that the buck/booster reduces the EVSE level to, and the EVSE will not &#039;know&#039; its charging a sub 200V pack, since it sees c. 400V and is instructed to provide said volage by the CCS controller. I hope to use FOCCCI and CLARA for the CCS controller and at present the MITM board for controlling pre-charging and the buck/boost controller is a simple Teensy 4.1.&lt;br /&gt;
[[File:Prius Gen2 inverter schematic.gif|thumb|Buck-Boost converter]]&lt;br /&gt;
&lt;br /&gt;
==Control of the buck/boost converter==&lt;br /&gt;
&lt;br /&gt;
The buck/boost converter’s Intelligent Power Module is a Mitsubishi PM400DV1A400. It has an 16 pin input plug P/N: 1318386-1, crimps 1123343-1 from TE. These plugs are pretty small and necessitate a thin wire gauge (c. 20-23 AWG at a guess). &lt;br /&gt;
&lt;br /&gt;
Pin numbering and colouring can be found in the Toyota wiring guide, p106 [find a link] and these connect into the 32 pin Prius Inverter plug as show in the wiki [https://openinverter.org/wiki/Toyota_Prius_Gen2_Inverter Prius Gen 2 Wiki] with the exception of the modules power, ground and OVH wire (more on that below).&lt;br /&gt;
[[File:IPM wiring.jpg|thumb|Block diagram from Toyota for the Mitsubishi IPM]]&lt;br /&gt;
Block diagram shown.&lt;br /&gt;
&lt;br /&gt;
The pin numbering is shown below. Pin numbers start with pin 1 at the top, right side of the TE plug when looking at the wire entry side. So the red 12V power input is pin 8, and the orange voltage sense wire is pin 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin&lt;br /&gt;
!Toyota colour&lt;br /&gt;
!Toyota name&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Green/Red&lt;br /&gt;
|CT&lt;br /&gt;
|Temp dependent voltage signal&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Purple&lt;br /&gt;
|VL&lt;br /&gt;
|1:100 scaled isolated voltage of orange wire&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Pink&lt;br /&gt;
|OVH&lt;br /&gt;
|IPM Enable line, 5V on, 0V off&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Blue&lt;br /&gt;
|CPWM&lt;br /&gt;
|0-100% duty cycle PWM 12V - 0V, 5kHz&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Black&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Red&lt;br /&gt;
|12V&lt;br /&gt;
|12V&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|Orange&lt;br /&gt;
|?&lt;br /&gt;
|Isolated? Voltage sense wire (Batt +)&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|Pink/Blue&lt;br /&gt;
|OVL&lt;br /&gt;
|not known&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|white/red&lt;br /&gt;
|FCV&lt;br /&gt;
|Fault reporting line. More detail needed&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|black/red&lt;br /&gt;
|GCNV&lt;br /&gt;
|Held at ground, more detail needed&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|brown/white&lt;br /&gt;
|CSDN&lt;br /&gt;
|Shutdown line. If high, IPM shuts down. Held low.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Johannes has demonstrated control using his own boards and software, see Resources below. The following describes generic control, should you want to use your own harware/software. I have not yet used CT for temp sensing, FCV for fault reporting, and have had limited sucess with the VL voltage sensing (it may be the voltage I was testing on is just too low). Johannes does show it working. &lt;br /&gt;
&lt;br /&gt;
=== Boosting control ===&lt;br /&gt;
Control is achieved as follows. To start up the boost module safely without it doing any boosting the CPWM duty cycle must be set to 0%, so 0V, the OVH line also held low, and GCNV, CSDN grounded. 12V is then applied to pin 8. &lt;br /&gt;
&lt;br /&gt;
Use a pre-charge mechanism, feed the &amp;quot;low&amp;quot; voltage from the pack to the DC battery input posts of the inverter module. This will mean the big capacitor in the inverter/controller will see pack voltage, hence the need to pre-charge before applying the main pack voltage.&lt;br /&gt;
&lt;br /&gt;
See Johannes&#039; charger videos linked below and see the main Prius wiki to make sure you understand how the IPM works with regards to the top and bottom IGBTs, because it is easy to short out the battery pack.&lt;br /&gt;
&lt;br /&gt;
Next, supply 5V to OVH and this enables the IPM. Then, by increasing the CPWM duty cycle, the battery voltage can be boosted and this higher voltage can now be seen on the DC rails (shown in blue in the Buck/Boost for CCS diagram above).&lt;br /&gt;
&lt;br /&gt;
It&#039;s important that the CPMW is set to zero when starting and to ensure this, I used a very simple circuit with two transistors as shown, because during the boot/power on of the Teensy the output pin is floating until it&#039;s explicity set low, and this circuit makes sure that CPWM is set low from the beginning. To stop, remove 5V from OVH and open contactors to battery to remove input DC. There is a bleed resistor board in the inverter which will drain the voltage on the capacitor but take care none the less. It may be wise to reduce the boosting to zero before setting OVH low, I don&#039;t know.&lt;br /&gt;
[[File:Pwm circuit hold low.png|thumb|Keeping PWM low during boot]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
[[File:Possible ccs take off.png|thumb|Possible CCS take off points circled in red]]&lt;br /&gt;
The idea is to boost the battery voltage to the output voltage of the charger, then allow the charger to connect to either the DC bus rails circled below in red in picture labelled &#039;possible CCS take-off&#039; (but confirmation needed on this), OR, to two of the MG1 terminals. The latter does mean that the current will flow through the diodes on the inverter circuit, and this may not be desirable because a) it might limit the current that can be drawn and b) it means keeping the inverter circuitry even though we don&#039;t use it for this application and could perhaps discard it to save space. Either way, once the voltages are matched, the charger can be allowed to connect to the DC bus rails (in theory without its own pre-charge circuitry but that might not be wise). Assuming the charger voltage and the boosted pack voltage are the same, no current will flow. By reducing the boosting by reducing the PWM duty cycle, current can be drawn towards the pack. The pack will see the bucked down voltage level and by controlling the amount of boosting the amount of current can also be controlled.&lt;br /&gt;
&lt;br /&gt;
Note: the above is conceptual and I have been successful using very low voltages to test charging a 12V battery from an 18V battery. Scaling this up to charging a 120V battery from a 400V EVSE is a different kettle of fish altogether, and I could use some help from the community to confirm where best to connect the EVSE HV to (see blue lines on Buck/Boost for CCS schematic above) and general advice regarding safety and best practice.&lt;br /&gt;
&lt;br /&gt;
== Power ==&lt;br /&gt;
It is not clear how much power we can pass through the buck/boost converter, and hence what charging speeds we could achieve, however even if it’s as low as 10kW it’s an improvement over the 6.6kW typical max charge rate for a low voltage EV conversion and importantly means CCS chargers can be used when AC chargers are not available. It’s been suggested that the maximum current the Gen 2 inverter/controller can push out through the DC lines is 100A, which would limit the charging rate to c. 12kW maximum. The IPM may be rated at up to 400A [https://openinverter.org/forum/viewtopic.php?t=4745 Prius boost module PM400DV1A120] which may mean a higher rate is possible. More info needed.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible that two (or more) of these buck/boost converters could be run in parallel with essentialy the one control code.&lt;br /&gt;
&lt;br /&gt;
== Next Steps ==&lt;br /&gt;
&lt;br /&gt;
The MITM needs to be able to communicate with the CCS controller, and hopefully the FOCCCI and CLARA CSS projects here on OI will be suitable. I hope to establish what Clara needs for battery pack info, and its operational flow chart so I can work out the logic for the MITM and how it will interface between Clara and my BMS. Updates to follow.&lt;br /&gt;
&lt;br /&gt;
== Knowledge to add in ==&lt;br /&gt;
This section is an evolving work in progress by jrbe.&lt;br /&gt;
&lt;br /&gt;
See image:&lt;br /&gt;
[[File:Prius Gen 2 IGBT and Inductor.png|thumb|Prius Gen 2 IGBT and Inductor]]&lt;br /&gt;
&lt;br /&gt;
* The inductor is the low side +.&lt;br /&gt;
* Inductor connection to the IGBT is CL.&lt;br /&gt;
* CP is the high side +&lt;br /&gt;
* CN is the common -&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This converter shares the - between the high and low sides.&lt;br /&gt;
&lt;br /&gt;
The Orange wire from the IGBT seems to be for voltage level sensing for the IGBT. I believe this needs to see 8v? or more to startup.  Seems to be no need to connect this wire to a low voltage controller.&lt;br /&gt;
&lt;br /&gt;
The IPM and CSDN lines can be setup with a 12v pull up 470R then an N Mosfet pulls it to ground.  A gate pull up resistor of 47k to + voltage means the n mosfet is on and pulls the line low on startup until the gate is pulled low by the mcu.  A gate pull down resistor of 47k Means the mosfet stays off, line stays high until voltage rises on the gate by the mcu.&lt;br /&gt;
&lt;br /&gt;
This converter can run at about 16:1 high to low ratio but at unknown power levels.  Applying 20v to the low side + and CN, at 5khz and 10% duty cycle (inverted) it will make ~195V at CP(+) &amp;amp; CN(-), so about a 1:10 ratio.  If the 20v is applied at the high side CP &amp;amp; CN you will get around 2V on the low side + and CN.  The best you can get is ~16:1 to 1:1.  &lt;br /&gt;
&lt;br /&gt;
The converter can be run different ways.  Fixed duty cycle means a fixed ratio between high and low side, power flows when the voltage on one side or the other is higher (bidirectional flow.)&lt;br /&gt;
&lt;br /&gt;
This could be run in a current control method but that means watching current and adjusting duty cycle to set/drive the current.  This of course needs safeties like voltage ranges and a way to match the voltage to pwm ratio.&lt;br /&gt;
&lt;br /&gt;
Ramping up/down pwm means the converter can soft start, ramping up voltage as the duty cycle increases(inverted.)&lt;br /&gt;
&lt;br /&gt;
Care must be taken on power up and down to prevent the igbt from being high or low with a stuck or off pwm.  CSDN high or IPM low will shut down the igbt switches.&lt;br /&gt;
&lt;br /&gt;
The IGBT has similar part number to 400A / 1200V IGBT&#039;s.&lt;br /&gt;
&lt;br /&gt;
The 1:100 volt isolated output does not work on the one i&#039;m testing.  I did AMC3311 isolated voltage monitoring IC&#039;s with TLV9001 opamps for isolated voltage sensing for both low and high sides of the converter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
Johannes has some videos, linked below, showing AC charging using the buck/boost controller and Damien also demontrates it. These things are potentially pretty dangerous so do watch these first.&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=hkCRddO3Clc Damien&#039;s charging demonstration]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=_BDJ7N_YjAU Johannes&#039; charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=E62nOUprQYI&amp;amp;t=721s Johannes&#039; Lab Update #42]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mPp13zctjfY Johannes&#039;s Lab Update #45]&lt;br /&gt;
&lt;br /&gt;
Any suggestions/ideas/corrections very welcome.&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=4530 forum discussion thread]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_IGBT_and_Inductor.png&amp;diff=5604</id>
		<title>File:Prius Gen 2 IGBT and Inductor.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Prius_Gen_2_IGBT_and_Inductor.png&amp;diff=5604"/>
		<updated>2025-02-03T20:35:51Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Prius Gen 2 IGBT and Inductor&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5196</id>
		<title>Operating the buck/boost converter for a low voltage CCS charging application</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5196"/>
		<updated>2024-12-15T21:58:03Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Added Isolated? back to pin 9.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of this project is to enable ‘low’ voltage battery packs (c. 120V) to be charged using CCS chargers, which will not operate below 200V and more typically operate around 400V.&lt;br /&gt;
&lt;br /&gt;
The plan is to use the Buck/Boost converter found in the Gen 2 Prius inverter/converter module which the Prius uses to boost battery voltage to c. 400V to power the car’s motors, and to buck that voltage back down to pack voltage of c. 200V when in regen mode.&lt;br /&gt;
&lt;br /&gt;
In this project, the plan is to boost the battery pack voltage to c. 400V, connect to the EVSE charger using a CCS controller, and then reduce the voltage boosting in order to draw current from the EVSE and charge the car’s battery pack. The CCS standard does not support charging below 200V so for battery packs lower than this, it&#039;s not been possible to use CCS charging. This project may change that and make rapid charging available to lower voltage packs but at said low voltages, current handling will be the limiting factor for charging speeds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1 is to demonstrate control of the Prius buck/boost converter. This is essentially complete. &lt;br /&gt;
&lt;br /&gt;
Step 2 is to implement a ‘man in the middle’ solution, which will:&lt;br /&gt;
&lt;br /&gt;
* Control the buck/boost converter;&lt;br /&gt;
* Control any battery-side contactors;&lt;br /&gt;
* Receive charging requirements and restrictions from the BMS via CAN;&lt;br /&gt;
* Translate these low-volage requirements into higher voltage requirements for the CCS controller to pass to the EVSE.&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
A schematic of the buck/boost converter and the inverter is below, with the converter boxed in red.&lt;br /&gt;
&lt;br /&gt;
If the inverter stage were to be bypassed, as shown in blue, the boosted battery voltage could match that output from a CCS charger and in theory at least allow for a sub 200V pack to be charged.&lt;br /&gt;
[[File:Clanger boost idea.png|thumb|Buck boost for CCS]]&lt;br /&gt;
A man-in-the-middle board will interface with the car&#039;s BMS and accept the low-voltage charging requirements and restrictions, and translate these into high voltage requirements and restrictions and pass this onto whatever CCS controller we end up using. The BMS will never &#039;know&#039; it&#039;s taking in high voltage as it will only see the pack voltage levels that the buck/booster reduces the EVSE level to, and the EVSE will not &#039;know&#039; its charging a sub 200V pack, since it sees c. 400V and is instructed to provide said volage by the CCS controller. I hope to use FOCCCI and CLARA for the CCS controller and at present the MITM board for controlling pre-charging and the buck/boost controller is a simple Teensy 4.1.&lt;br /&gt;
[[File:Prius Gen2 inverter schematic.gif|thumb|Buck-Boost converter]]&lt;br /&gt;
&lt;br /&gt;
==Control of the buck/boost converter==&lt;br /&gt;
&lt;br /&gt;
The buck/boost converter’s Intelligent Power Module is a Mitsubishi PM400DV1A400. It has an 16 pin input plug P/N: 1318386-1, crimps 1123343-1 from TE. These plugs are pretty small and necessitate a thin wire gauge (c. 20-23 AWG at a guess). &lt;br /&gt;
&lt;br /&gt;
Pin numbering and colouring can be found in the Toyota wiring guide, p106 [find a link] and these connect into the 32 pin Prius Inverter plug as show in the wiki [https://openinverter.org/wiki/Toyota_Prius_Gen2_Inverter Prius Gen 2 Wiki] with the exception of the modules power, ground and OVH wire (more on that below).&lt;br /&gt;
[[File:IPM wiring.jpg|thumb|Block diagram from Toyota for the Mitsubishi IPM]]&lt;br /&gt;
Block diagram shown.&lt;br /&gt;
&lt;br /&gt;
The pin numbering is shown below. Pin numbers start with pin 1 at the top, right side of the TE plug when looking at the wire entry side. So the red 12V power input is pin 8, and the orange voltage sense wire is pin 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin&lt;br /&gt;
!Toyota colour&lt;br /&gt;
!Toyota name&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Green/Red&lt;br /&gt;
|CT&lt;br /&gt;
|Temp dependent voltage signal&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Purple&lt;br /&gt;
|VL&lt;br /&gt;
|1:100 scaled isolated voltage of orange wire&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Pink&lt;br /&gt;
|OVH&lt;br /&gt;
|IPM Enable line, 5V on, 0V off&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Blue&lt;br /&gt;
|CPWM&lt;br /&gt;
|0-100% duty cycle PWM 12V - 0V, 5kHz&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Black&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Red&lt;br /&gt;
|12V&lt;br /&gt;
|12V&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|Orange&lt;br /&gt;
|?&lt;br /&gt;
|Isolated? Voltage sense wire (Batt +)&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|Pink/Blue&lt;br /&gt;
|OVL&lt;br /&gt;
|not known&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|white/red&lt;br /&gt;
|FCV&lt;br /&gt;
|Fault reporting line. More detail needed&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|black/red&lt;br /&gt;
|GCNV&lt;br /&gt;
|Held at ground, more detail needed&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|brown/white&lt;br /&gt;
|CSDN&lt;br /&gt;
|Shutdown line. If high, IPM shuts down. Held low.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Johannes has demonstrated control using his own boards and software, see Resources below. The following describes generic control, should you want to use your own harware/software. I have not yet used CT for temp sensing, FCV for fault reporting, and have had limited sucess with the VL voltage sensing (it may be the voltage I was testing on is just too low). Johannes does show it working. &lt;br /&gt;
&lt;br /&gt;
=== Boosting control ===&lt;br /&gt;
Control is achieved as follows. To start up the boost module safely without it doing any boosting the CPWM duty cycle must be set to 0%, so 0V, the OVH line also held low, and GCNV, CSDN grounded. 12V is then applied to pin 8. &lt;br /&gt;
&lt;br /&gt;
Use a pre-charge mechanism, feed the &amp;quot;low&amp;quot; voltage from the pack to the DC battery input posts of the inverter module. This will mean the big capacitor in the inverter/controller will see pack voltage, hence the need to pre-charge before applying the main pack voltage.&lt;br /&gt;
&lt;br /&gt;
See Johannes&#039; charger videos linked below and see the main Prius wiki to make sure you understand how the IPM works with regards to the top and bottom IGBTs, because it is easy to short out the battery pack.&lt;br /&gt;
&lt;br /&gt;
Next, supply 5V to OVH and this enables the IPM. Then, by increasing the CPWM duty cycle, the battery voltage can be boosted and this higher voltage can now be seen on the DC rails (shown in blue in the Buck/Boost for CCS diagram above).&lt;br /&gt;
&lt;br /&gt;
It&#039;s important that the CPMW is set to zero when starting and to ensure this, I used a very simple circuit with two transistors as shown, because during the boot/power on of the Teensy the output pin is floating until it&#039;s explicity set low, and this circuit makes sure that CPWM is set low from the beginning. To stop, remove 5V from OVH and open contactors to battery to remove input DC. There is a bleed resistor board in the inverter which will drain the voltage on the capacitor but take care none the less. It may be wise to reduce the boosting to zero before setting OVH low, I don&#039;t know.&lt;br /&gt;
[[File:Pwm circuit hold low.png|thumb|Keeping PWM low during boot]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
[[File:Possible ccs take off.png|thumb|Possible CCS take off points circled in red]]&lt;br /&gt;
The idea is to boost the battery voltage to the output voltage of the charger, then allow the charger to connect to either the DC bus rails circled below in red in picture labelled &#039;possible CCS take-off&#039; (but confirmation needed on this), OR, to two of the MG1 terminals. The latter does mean that the current will flow through the diodes on the inverter circuit, and this may not be desirable because a) it might limit the current that can be drawn and b) it means keeping the inverter circuitry even though we don&#039;t use it for this application and could perhaps discard it to save space. Either way, once the voltages are matched, the charger can be allowed to connect to the DC bus rails (in theory without its own pre-charge circuitry but that might not be wise). Assuming the charger voltage and the boosted pack voltage are the same, no current will flow. By reducing the boosting by reducing the PWM duty cycle, current can be drawn towards the pack. The pack will see the bucked down voltage level and by controlling the amount of boosting the amount of current can also be controlled.&lt;br /&gt;
&lt;br /&gt;
Note: the above is conceptual and I have been successful using very low voltages to test charging a 12V battery from an 18V battery. Scaling this up to charging a 120V battery from a 400V EVSE is a different kettle of fish altogether, and I could use some help from the community to confirm where best to connect the EVSE HV to (see blue lines on Buck/Boost for CCS schematic above) and general advice regarding safety and best practice.&lt;br /&gt;
&lt;br /&gt;
== Power ==&lt;br /&gt;
It is not clear how much power we can pass through the buck/boost converter, and hence what charging speeds we could achieve, however even if it’s as low as 10kW it’s an improvement over the 6.6kW typical max charge rate for a low voltage EV conversion and importantly means CCS chargers can be used when AC chargers are not available. It’s been suggested that the maximum current the Gen 2 inverter/controller can push out through the DC lines is 100A, which would limit the charging rate to c. 12kW maximum. The IPM may be rated at up to 400A [https://openinverter.org/forum/viewtopic.php?t=4745 Prius boost module PM400DV1A120] which may mean a higher rate is possible. More info needed.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible that two (or more) of these buck/boost converters could be run in parallel with essentialy the one control code.&lt;br /&gt;
&lt;br /&gt;
== Next Steps ==&lt;br /&gt;
&lt;br /&gt;
The MITM needs to be able to communicate with the CCS controller, and hopefully the FOCCCI and CLARA CSS projects here on OI will be suitable. I hope to establish what Clara needs for battery pack info, and its operational flow chart so I can work out the logic for the MITM and how it will interface between Clara and my BMS. Updates to follow.&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
Johannes has some videos, linked below, showing AC charging using the buck/boost controller and Damien also demontrates it. These things are potentially pretty dangerous so do watch these first.&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=hkCRddO3Clc Damien&#039;s charging demonstration]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=_BDJ7N_YjAU Johannes&#039; charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=E62nOUprQYI&amp;amp;t=721s Johannes&#039; Lab Update #42]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mPp13zctjfY Johannes&#039;s Lab Update #45]&lt;br /&gt;
&lt;br /&gt;
Any suggestions/ideas/corrections very welcome.&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=4530 forum discussion thread]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5195</id>
		<title>Operating the buck/boost converter for a low voltage CCS charging application</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Operating_the_buck/boost_converter_for_a_low_voltage_CCS_charging_application&amp;diff=5195"/>
		<updated>2024-12-14T22:40:40Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Added to IGBT pin out notes and colors&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of this project is to enable ‘low’ voltage battery packs (c. 120V) to be charged using CCS chargers, which will not operate below 200V and more typically operate around 400V.&lt;br /&gt;
&lt;br /&gt;
The plan is to use the Buck/Boost converter found in the Gen 2 Prius inverter/converter module which the Prius uses to boost battery voltage to c. 400V to power the car’s motors, and to buck that voltage back down to pack voltage of c. 200V when in regen mode.&lt;br /&gt;
&lt;br /&gt;
In this project, the plan is to boost the battery pack voltage to c. 400V, connect to the EVSE charger using a CCS controller, and then reduce the voltage boosting in order to draw current from the EVSE and charge the car’s battery pack. The CCS standard does not support charging below 200V so for battery packs lower than this, it&#039;s not been possible to use CCS charging. This project may change that and make rapid charging available to lower voltage packs but at said low voltages, current handling will be the limiting factor for charging speeds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Step 1 is to demonstrate control of the Prius buck/boost converter. This is essentially complete. &lt;br /&gt;
&lt;br /&gt;
Step 2 is to implement a ‘man in the middle’ solution, which will:&lt;br /&gt;
&lt;br /&gt;
* Control the buck/boost converter;&lt;br /&gt;
* Control any battery-side contactors;&lt;br /&gt;
* Receive charging requirements and restrictions from the BMS via CAN;&lt;br /&gt;
* Translate these low-volage requirements into higher voltage requirements for the CCS controller to pass to the EVSE.&lt;br /&gt;
&lt;br /&gt;
== Theory ==&lt;br /&gt;
A schematic of the buck/boost converter and the inverter is below, with the converter boxed in red.&lt;br /&gt;
&lt;br /&gt;
If the inverter stage were to be bypassed, as shown in blue, the boosted battery voltage could match that output from a CCS charger and in theory at least allow for a sub 200V pack to be charged.&lt;br /&gt;
[[File:Clanger boost idea.png|thumb|Buck boost for CCS]]&lt;br /&gt;
A man-in-the-middle board will interface with the car&#039;s BMS and accept the low-voltage charging requirements and restrictions, and translate these into high voltage requirements and restrictions and pass this onto whatever CCS controller we end up using. The BMS will never &#039;know&#039; it&#039;s taking in high voltage as it will only see the pack voltage levels that the buck/booster reduces the EVSE level to, and the EVSE will not &#039;know&#039; its charging a sub 200V pack, since it sees c. 400V and is instructed to provide said volage by the CCS controller. I hope to use FOCCCI and CLARA for the CCS controller and at present the MITM board for controlling pre-charging and the buck/boost controller is a simple Teensy 4.1.&lt;br /&gt;
[[File:Prius Gen2 inverter schematic.gif|thumb|Buck-Boost converter]]&lt;br /&gt;
&lt;br /&gt;
==Control of the buck/boost converter==&lt;br /&gt;
&lt;br /&gt;
The buck/boost converter’s Intelligent Power Module is a Mitsubishi PM400DV1A400. It has an 16 pin input plug P/N: 1318386-1, crimps 1123343-1 from TE. These plugs are pretty small and necessitate a thin wire gauge (c. 20-23 AWG at a guess). &lt;br /&gt;
&lt;br /&gt;
Pin numbering and colouring can be found in the Toyota wiring guide, p106 [find a link] and these connect into the 32 pin Prius Inverter plug as show in the wiki [https://openinverter.org/wiki/Toyota_Prius_Gen2_Inverter Prius Gen 2 Wiki] with the exception of the modules power, ground and OVH wire (more on that below).&lt;br /&gt;
[[File:IPM wiring.jpg|thumb|Block diagram from Toyota for the Mitsubishi IPM]]&lt;br /&gt;
Block diagram shown.&lt;br /&gt;
&lt;br /&gt;
The pin numbering is shown below. Pin numbers start with pin 1 at the top, right side of the TE plug when looking at the wire entry side. So the red 12V power input is pin 8, and the orange voltage sense wire is pin 1.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin&lt;br /&gt;
!Toyota colour&lt;br /&gt;
!Toyota name&lt;br /&gt;
!Notes&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|Green/Red&lt;br /&gt;
|CT&lt;br /&gt;
|Temp dependent voltage signal&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|Purple&lt;br /&gt;
|VL&lt;br /&gt;
|1:100 scaled isolated voltage of orange wire&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Pink&lt;br /&gt;
|OVH&lt;br /&gt;
|IPM Enable line, 5V on, 0V off&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Blue&lt;br /&gt;
|CPWM&lt;br /&gt;
|0-100% duty cycle PWM 12V - 0V, 5kHz&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Black&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Red&lt;br /&gt;
|12V&lt;br /&gt;
|12V&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|Orange&lt;br /&gt;
|?&lt;br /&gt;
|Voltage sense wire (Batt +)&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|Pink/Blue&lt;br /&gt;
|OVL&lt;br /&gt;
|not known&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|white/red&lt;br /&gt;
|FCV&lt;br /&gt;
|Fault reporting line. More detail needed&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|black/red&lt;br /&gt;
|GCNV&lt;br /&gt;
|Held at ground, more detail needed&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|brown/white&lt;br /&gt;
|CSDN&lt;br /&gt;
|Shutdown line. If high, IPM shuts down. Held low.&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|x&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Johannes has demonstrated control using his own boards and software, see Resources below. The following describes generic control, should you want to use your own harware/software. I have not yet used CT for temp sensing, FCV for fault reporting, and have had limited sucess with the VL voltage sensing (it may be the voltage I was testing on is just too low). Johannes does show it working. &lt;br /&gt;
&lt;br /&gt;
=== Boosting control ===&lt;br /&gt;
Control is achieved as follows. To start up the boost module safely without it doing any boosting the CPWM duty cycle must be set to 0%, so 0V, the OVH line also held low, and GCNV, CSDN grounded. 12V is then applied to pin 8. &lt;br /&gt;
&lt;br /&gt;
Use a pre-charge mechanism, feed the &amp;quot;low&amp;quot; voltage from the pack to the DC battery input posts of the inverter module. This will mean the big capacitor in the inverter/controller will see pack voltage, hence the need to pre-charge before applying the main pack voltage.&lt;br /&gt;
&lt;br /&gt;
See Johannes&#039; charger videos linked below and see the main Prius wiki to make sure you understand how the IPM works with regards to the top and bottom IGBTs, because it is easy to short out the battery pack.&lt;br /&gt;
&lt;br /&gt;
Next, supply 5V to OVH and this enables the IPM. Then, by increasing the CPWM duty cycle, the battery voltage can be boosted and this higher voltage can now be seen on the DC rails (shown in blue in the Buck/Boost for CCS diagram above).&lt;br /&gt;
&lt;br /&gt;
It&#039;s important that the CPMW is set to zero when starting and to ensure this, I used a very simple circuit with two transistors as shown, because during the boot/power on of the Teensy the output pin is floating until it&#039;s explicity set low, and this circuit makes sure that CPWM is set low from the beginning. To stop, remove 5V from OVH and open contactors to battery to remove input DC. There is a bleed resistor board in the inverter which will drain the voltage on the capacitor but take care none the less. It may be wise to reduce the boosting to zero before setting OVH low, I don&#039;t know.&lt;br /&gt;
[[File:Pwm circuit hold low.png|thumb|Keeping PWM low during boot]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
[[File:Possible ccs take off.png|thumb|Possible CCS take off points circled in red]]&lt;br /&gt;
The idea is to boost the battery voltage to the output voltage of the charger, then allow the charger to connect to either the DC bus rails circled below in red in picture labelled &#039;possible CCS take-off&#039; (but confirmation needed on this), OR, to two of the MG1 terminals. The latter does mean that the current will flow through the diodes on the inverter circuit, and this may not be desirable because a) it might limit the current that can be drawn and b) it means keeping the inverter circuitry even though we don&#039;t use it for this application and could perhaps discard it to save space. Either way, once the voltages are matched, the charger can be allowed to connect to the DC bus rails (in theory without its own pre-charge circuitry but that might not be wise). Assuming the charger voltage and the boosted pack voltage are the same, no current will flow. By reducing the boosting by reducing the PWM duty cycle, current can be drawn towards the pack. The pack will see the bucked down voltage level and by controlling the amount of boosting the amount of current can also be controlled.&lt;br /&gt;
&lt;br /&gt;
Note: the above is conceptual and I have been successful using very low voltages to test charging a 12V battery from an 18V battery. Scaling this up to charging a 120V battery from a 400V EVSE is a different kettle of fish altogether, and I could use some help from the community to confirm where best to connect the EVSE HV to (see blue lines on Buck/Boost for CCS schematic above) and general advice regarding safety and best practice.&lt;br /&gt;
&lt;br /&gt;
== Power ==&lt;br /&gt;
It is not clear how much power we can pass through the buck/boost converter, and hence what charging speeds we could achieve, however even if it’s as low as 10kW it’s an improvement over the 6.6kW typical max charge rate for a low voltage EV conversion and importantly means CCS chargers can be used when AC chargers are not available. It’s been suggested that the maximum current the Gen 2 inverter/controller can push out through the DC lines is 100A, which would limit the charging rate to c. 12kW maximum. The IPM may be rated at up to 400A [https://openinverter.org/forum/viewtopic.php?t=4745 Prius boost module PM400DV1A120] which may mean a higher rate is possible. More info needed.&lt;br /&gt;
&lt;br /&gt;
It&#039;s also possible that two (or more) of these buck/boost converters could be run in parallel with essentialy the one control code.&lt;br /&gt;
&lt;br /&gt;
== Next Steps ==&lt;br /&gt;
&lt;br /&gt;
The MITM needs to be able to communicate with the CCS controller, and hopefully the FOCCCI and CLARA CSS projects here on OI will be suitable. I hope to establish what Clara needs for battery pack info, and its operational flow chart so I can work out the logic for the MITM and how it will interface between Clara and my BMS. Updates to follow.&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
Johannes has some videos, linked below, showing AC charging using the buck/boost controller and Damien also demontrates it. These things are potentially pretty dangerous so do watch these first.&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=hkCRddO3Clc Damien&#039;s charging demonstration]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=_BDJ7N_YjAU Johannes&#039; charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=E62nOUprQYI&amp;amp;t=721s Johannes&#039; Lab Update #42]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mPp13zctjfY Johannes&#039;s Lab Update #45]&lt;br /&gt;
&lt;br /&gt;
Any suggestions/ideas/corrections very welcome.&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=4530 forum discussion thread]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=4863</id>
		<title>Water Pumps</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=4863"/>
		<updated>2024-09-08T08:22:40Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Bosche PCE (VAG and others) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= A list of coolant pumps =&lt;br /&gt;
This is a list of water pumps that may be useful in an EV swap.&lt;br /&gt;
&lt;br /&gt;
== Pierburg CWA Coolant Pumps ==&lt;br /&gt;
[[File:CWA200.png|thumb|CWA200]]&lt;br /&gt;
[[Pierburg CWA Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
The Pierburg CWA Coolant Pumps (200/400) are well known in hot rod engine swaps as they are significant coolant pumps that have the ability to be PWM Controlled, however connecting the PWM pin to +12V permanently also gives 95% speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tesla Model S/X Coolant Pump ==&lt;br /&gt;
[[File:Tesla S - X coolant pump.png|thumb|Tesla S / X coolant pump]]&lt;br /&gt;
[[Tesla Model S/X Coolant Pump]]&lt;br /&gt;
&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Bosch PCE (VAG and others) ==&lt;br /&gt;
[[Bosch PCE Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
= In List Form =&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pump&lt;br /&gt;
!DC Voltage&lt;br /&gt;
!Current Draw&lt;br /&gt;
!Control Method&lt;br /&gt;
!Inlet Size&lt;br /&gt;
!Outlet Size&lt;br /&gt;
!Max Flow&lt;br /&gt;
!Max Pressure&lt;br /&gt;
|-&lt;br /&gt;
|CWA200&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Tesla S/X&lt;br /&gt;
|8-16&lt;br /&gt;
|7.3A&lt;br /&gt;
|PWM&lt;br /&gt;
|19mm&lt;br /&gt;
|19mm&lt;br /&gt;
|720LPH@70kPa&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Bosch PCE&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category:OEM]]  &lt;br /&gt;
[[Category:Accessories]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4856</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4856"/>
		<updated>2024-09-06T10:37:28Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the open inverter mini main board */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018-2022?) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm / .1 inch pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Availaility&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|1318745-2&lt;br /&gt;
|https://www.te.com/en/product-1318745-2.html&lt;br /&gt;
|High&lt;br /&gt;
|https://octopart.com/search?q=1318745-2&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/search?q=2326784-4&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Availability&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|1318384-4&lt;br /&gt;
|[https://www.te.com/en/product-1318384-4.html?q=1318384-4&amp;amp;source=header https://www.te.com/en/product-1318384-4.html]&lt;br /&gt;
|High&lt;br /&gt;
|https://octopart.com/search?q=1318384-4&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|No&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 pos. conn front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos. conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty / optional +12v&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|See p26 +12V solder jumper notes.&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
| +3.3V&lt;br /&gt;
| +3.3V from U2 regulator.&lt;br /&gt;
|&lt;br /&gt;
|Alternative voltage for analog throttles if 5v goes out of range.&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;**There are unpopulated 0805 capacitor footprints on each contactor gate, these are optional to help eliminate chatter if required.  Required?   Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Main_Page_Old&amp;diff=4794</id>
		<title>Main Page Old</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Main_Page_Old&amp;diff=4794"/>
		<updated>2024-08-27T11:54:45Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Water Pumps */ added coolant valves&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The openinverter project mainly aims to reuse existing components from production electric vehicles. We also aim to give some general guidelines on how to convert a vehicle to electric drive.&lt;br /&gt;
&lt;br /&gt;
= Before you begin: =&lt;br /&gt;
&#039;&#039;&#039;Please take the time to read.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You undertake &#039;&#039;&#039;your&#039;&#039;&#039; project at &#039;&#039;&#039;your own risk.&#039;&#039;&#039; Make sure you&#039;re aware of the risks of working with high voltage and [[HighVoltageSafety]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Developers&#039;s time is best spent developing;&#039;&#039;&#039; &#039;&#039;&#039;Support is best found in the forums&#039;&#039;&#039; - Developers of various projects are often bombarded with private messages and emails. Managing these emails and questions is a extremely large undertaking. Please read, and take the time to understand the information available here and across the web if you don&#039;t understand a topic. Developers are not your personal support team, unless you want to pay them directly for their time.   &lt;br /&gt;
&lt;br /&gt;
Read more about [[Application Support]].     &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Consider donating to the many developers&#039;&#039;&#039; that have made all this possible and to help keep making things possible: &lt;br /&gt;
&lt;br /&gt;
[https://www.patreon.com/openinverter www.patreon.com/openinverter], &lt;br /&gt;
&lt;br /&gt;
https://www.evbmw.com/, &lt;br /&gt;
&lt;br /&gt;
https://www.paypal.com/paypalme/celeron55    &lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/index.php &#039;&#039;&#039;Always check the forums&#039;&#039;&#039;], new developments and solutions are coming along every day, questions being answered, or perhaps you can answer. we work better as a community sharing our knowledge...    &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;...update this wiki.&#039;&#039;&#039; Answers and solutions should find their way here so they don&#039;t remain buried in a 30 page long support thread. To edit the wiki, login with your forum credentials.    &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Welcome to the open inverter community&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Legalities=&lt;br /&gt;
*[[Legalities|Legalities around conversion projects]]&lt;br /&gt;
Different countries have different legislation, if you want your car to certified for the road in your country please take the time to review this section. It might save you going down the wrong direction and creating something that can never be driven, or incur costs.&lt;br /&gt;
= Introduction =&lt;br /&gt;
The open inverter started as a scratch built inverter and control board led by Johannes Hübner who designed and built his open open source AC motor controller dubbed the &amp;quot;open inverter&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Since then, the community has established and documented hardware and software approaches to reuse OEM inverters with the Open control board, and has more recently started on controlling OEM inverters over CAN, a process which doesn&#039;t require replacing any internal parts. &lt;br /&gt;
&lt;br /&gt;
The main goal of the open inverter community is to reverse engineer many of these components for use in a variety of projects such as: &lt;br /&gt;
&lt;br /&gt;
* EV conversion&lt;br /&gt;
* Energy storage&lt;br /&gt;
* Power generation&lt;br /&gt;
* Charging infrastructure&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Open inverter projects now span over many different areas surrounding PEV, HEV, and PHEV components, such as: &lt;br /&gt;
* Motor Controllers&lt;br /&gt;
* 1-3 phase power converters&lt;br /&gt;
* DC/DC converters&lt;br /&gt;
* buck/boost converters&lt;br /&gt;
* Battery Management Systems (BMS)&lt;br /&gt;
* Vehicle integration&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
As a result, there is a growing collection of open source software and hardware designed for the never ending list of OEM parts.  &lt;br /&gt;
&lt;br /&gt;
There&#039;s a variety of methods of repurposing these OEM components. Methods here are generally chosen with future proofing in mind , reducing chances of firmware or software updates from the manufacture &amp;quot;bricking&amp;quot; or blocking the open source control efforts.  &lt;br /&gt;
&lt;br /&gt;
such efforts include:  &lt;br /&gt;
&lt;br /&gt;
* Mainboard/brain replacement&lt;br /&gt;
*[[Getting started with CAN bus|CANBUS/LINBUS]]&lt;br /&gt;
*[[wikipedia:Synchronous_serial_communication|Sync serial]]&lt;br /&gt;
*[[wikipedia:FlexRay|FlexRay]]&lt;br /&gt;
*[[wikipedia:Pulse-width_modulation|PWM]]&lt;br /&gt;
* Sirmware/software reprogramming&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Resulting in many bespoke boards running the main open inverter software or other open/semi-open source code designed to ether replace OEM motherboards or VCUs.  &lt;br /&gt;
&lt;br /&gt;
This has lead to a large collection of different boards and software, many with redundant features.  To unify many of these development projects, the community at large is focused on making a set of standard VCUs and replacement control boards which handle the ever growing list of OEM components.    &lt;br /&gt;
&lt;br /&gt;
=== Many of the VCU and replacement boards consist of these 3 main parts: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Hardware&lt;br /&gt;
!Firmware&lt;br /&gt;
!Web Interface&lt;br /&gt;
|-&lt;br /&gt;
|The design and development of the [[Main Board Version 3|control hardware]] based around an STM32F103 chip. This provides the control signals to the power stage and on to the attached components.&lt;br /&gt;
|The development of the code that goes on the STM32F103 chips and determines, amongst other things what signals are sent to the power stage and the attached components.&lt;br /&gt;
|Using an ESP8266 chip, the development of a simple [[Web Interface|web based interface]] to adjust the parameters on the firmware chip and to display values returned from the chip, for example motor speed (RPM).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; Performing a &#039;full&#039; EV conversion can often be more straight forward than trying to make small modifications to OEM vehicles - an OEM system will normally require a set of components all talking to each other and keeping each other happy! Trying to, for example, add a different battery charger, or bypassing certain restrictions will often require significant reverse engineering of the existing system to ensure that the new component(s) do not cause errors or problems in the system which can avalanche into significant problems! A full EV conversion, in comparison, can usually focus on just keeping one component happy at a time (although integrating these different components can still require a lot of work).&lt;br /&gt;
&lt;br /&gt;
The Community is focused on the electrical systems required for an EV, and may not be best placed to assist with mechanical issues specific to your vehicle.&lt;br /&gt;
&lt;br /&gt;
===Glossary of Terms===&lt;br /&gt;
It is recommended you read the &#039;&#039;&#039;[[Glossary of Terms]]&#039;&#039;&#039; before you begin. Often you&#039;ll find TLAs (three letter acronyms) peppered through the support forum and on this wiki, take the time to familiarise yourself with them before hand, remember this exists, or bookmark/favourite it so you can referent back to it.&lt;br /&gt;
&lt;br /&gt;
===EV conversions:===&lt;br /&gt;
A few main parts are needed for an EV conversion, such as:&lt;br /&gt;
*[[Motors]]&lt;br /&gt;
*[[:Category:Inverter|Inverter]]&lt;br /&gt;
**(&#039;&#039;&#039;Note:&#039;&#039;&#039; ZombieVerter projects require a matched pair of Inverter and Motor as they would have come out of a vehicle)&lt;br /&gt;
*[[Batteries]]&lt;br /&gt;
*[[:Category:Charger|Chargers / Charge Controllers]]&lt;br /&gt;
*[[:Category:DC/DC|DC/DC Converters]]&lt;br /&gt;
*[[:Category:HVJB|HV Junction Box]]&lt;br /&gt;
*[[Heaters]]&lt;br /&gt;
*[[:Category:HVAC|HVAC]]&lt;br /&gt;
*Brake Assist &lt;br /&gt;
**[[Vacuum Pumps]]&lt;br /&gt;
**Electronic Brake Boosters&lt;br /&gt;
*[[:Category:Power Steering|Power Steering]]&lt;br /&gt;
*[[Rapid Charging]]&lt;br /&gt;
*[[VCU Comparison]]&lt;br /&gt;
&lt;br /&gt;
Existing information on these items can be found on the &amp;lt;u&amp;gt;[[EV Conversion Parts]]&amp;lt;/u&amp;gt; page.&lt;br /&gt;
&lt;br /&gt;
A collection of various connector part numbers can be found here: [[Connector Part Numbers]]&lt;br /&gt;
&lt;br /&gt;
===OEM Parts: ===&lt;br /&gt;
A variety of [[:Category:OEM|OEM]] parts members of the community have reversed engineered for custom use cases:&lt;br /&gt;
*[[:Category:BMW|BMW]]&lt;br /&gt;
*[[:Category:Chevrolet|Chevrolet]]&lt;br /&gt;
*[[:Category:Ford|Ford]]&lt;br /&gt;
*[[:Category:Hyundai|Hyundai]]&lt;br /&gt;
*[[Isabellenhütte Heusler]]&lt;br /&gt;
*[[:Category:Land Rover|Land Rover/Jaguar]]&lt;br /&gt;
*[[:Category:Mercedes-Benz|Mercedes-Benz]]&lt;br /&gt;
*[[:Category:MG|MG]]&lt;br /&gt;
*[[:Category:Mitsubishi|Mitsubishi]]&lt;br /&gt;
*[[Nissan]]&lt;br /&gt;
*[[:Category:Opel|Opel/Vauxhall]]&lt;br /&gt;
*[[:Category:Peugeot|Peugeot]]&lt;br /&gt;
*[[Renault]]&lt;br /&gt;
*[[:Category:Tesla|Tesla]]&lt;br /&gt;
*[[Toyota|Toyota/Lexus]]&lt;br /&gt;
*[[:Category:VAG|VAG (VW, Audi, Skoda, Seat, Porsche, ...)]]&lt;br /&gt;
*[[:Category:Volvo|Volvo]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required skills/Knowledge===&lt;br /&gt;
[[Category:Request_for_Review]]&lt;br /&gt;
To perform a successful EV conversion, you may require the following skills and/or knowledge (this is not an exhaustive list)&lt;br /&gt;
&lt;br /&gt;
* You will need to have the skills, knowledge and tools required to perform significant mechanical work on your vehicle. A service or workshop manual will be useful.&lt;br /&gt;
*Basic DC electrical knowledge, such as using a multimeter, soldering, identifying components.&lt;br /&gt;
*A willingness and ability to troubleshoot problems (mechanical, electrical, code...).&lt;br /&gt;
* Safety in relation to high voltage DC systems. &#039;&#039;&#039;HV DC can be more dangerous than AC mains voltages!&#039;&#039;&#039;&lt;br /&gt;
*Basic understanding on the purposes of various EV components (motor, inverter, DC-DC...)&lt;br /&gt;
*A grasp of 3 phase motor control concepts can be useful (especially if using an openinverter control board)&lt;br /&gt;
*An understanding of CAN (and other digital communication systems) will be very useful&lt;br /&gt;
*The legal restrictions and requirements for your country/state&lt;br /&gt;
&lt;br /&gt;
===FAQ===&lt;br /&gt;
&lt;br /&gt;
*[[Common Inverter FAQ]] - questions common to all hardware variants&lt;br /&gt;
*[[Tesla Inverter FAQ]] - questions regarding Tesla Large Drive Units and Small Drive Units&lt;br /&gt;
*[[Electronics Basics]] - general advice for troubleshooting electronic circuits&lt;br /&gt;
*[[I want a cheap ev conversion|cheap EV conversions]] - this entry point for the penny pinchers&lt;br /&gt;
*[[I want a powerful ev conversion|performant EV conversions]]  - where torque trumps money&lt;br /&gt;
&lt;br /&gt;
= Mechanical Design Database =&lt;br /&gt;
[[Mechanical design database|&#039;&#039;&#039;&amp;lt;u&amp;gt;Mechanical design database&amp;lt;/u&amp;gt;&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
here you will find measurements, models, files, etc for a variety of components  such as:&lt;br /&gt;
&lt;br /&gt;
* adapter plates&lt;br /&gt;
* motor couplers&lt;br /&gt;
*drive shaft flanges&lt;br /&gt;
*battery mounts&lt;br /&gt;
*etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Cooling System Components =&lt;br /&gt;
&lt;br /&gt;
=== Water Pumps ===&lt;br /&gt;
[[Water Pumps|https://openinverter.org/wiki/Water_Pumps]] &lt;br /&gt;
&lt;br /&gt;
=== Coolant Fittings ===&lt;br /&gt;
[[Coolant Fittings|https://openinverter.org/wiki/Coolant_Fittings]]&lt;br /&gt;
&lt;br /&gt;
=== Coolant Valves ===&lt;br /&gt;
[[Coolant Valves|https://openinverter.org/wiki/Coolant_Valves]]&lt;br /&gt;
&lt;br /&gt;
=Open Inverter Projects=&lt;br /&gt;
&lt;br /&gt;
===Open Inverter (Core Project/s)===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
!Description  / Notes &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;ZombieVerter VCU&#039;&#039;&#039;&lt;br /&gt;
*[[ZombieVerter VCU]]&lt;br /&gt;
*[[Web Interface (ZombieVerter VCU)|Web Interface]]&lt;br /&gt;
*[[OEM component compatibility]]&lt;br /&gt;
|Designed around a matched pair of Inverter and Motor taken from the original OEM vehicle the ZombieVerter is there to make those two components believe they are still in the original vehicle and are fed necessary commands to act as if they still are and interpret and responses back from the equipment for feedback (regen / rpm / etc)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Open Inverter Hardware&#039;&#039;&#039; &lt;br /&gt;
*[[Hardware Theory of Operation]]&lt;br /&gt;
*[[Schematics and Instructions]] - for the &amp;quot;vanilla&amp;quot; inverter kit.&lt;br /&gt;
*[[Mini Mainboard]]&lt;br /&gt;
*[[Foccci]] (CCS interface)&lt;br /&gt;
*[[Main Board Version 3]]&lt;br /&gt;
*[[Main Board Version 2]]&lt;br /&gt;
*[[Main Board Version 1]]&lt;br /&gt;
*[[Sense Boards]]&lt;br /&gt;
*[[Gate Driver]]&lt;br /&gt;
*[[Sensor Board|Legacy Sensor Board]]&lt;br /&gt;
*[[OEM Repurposing]]&lt;br /&gt;
| Quite flexible in its application. The Open Inverter can be used to build a custom inverter itself where you supply the high power and high voltage components to create your own inverter, or to be used as the basis to take over control of OEM inverters so that they can drive nearly any attached motor to that inverter.&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;3&amp;quot; |&#039;&#039;&#039;Open Inverter Software&#039;&#039;&#039;&lt;br /&gt;
*[[Using FOC Software]]&lt;br /&gt;
*[[Downloads]]&lt;br /&gt;
*[[Features]]&lt;br /&gt;
*[[Web Interface]]&lt;br /&gt;
*[[Battery Charging]]&lt;br /&gt;
*[[Errors]]&lt;br /&gt;
*[[CAN communication]]&lt;br /&gt;
*[[Parameters]] (Tune your inverter)&lt;br /&gt;
*[[Configuration Files]]&lt;br /&gt;
*[[Software Theory of Operation]]&lt;br /&gt;
*[[Open Inverter Testing]]&lt;br /&gt;
|Two of the more important software aspects to master are below.&amp;lt;!-- Just repurposed the can comms and parameters text. didn&#039;t want to get rid, but also perhaps more from the left column could be here? --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;CAN communication&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Common across boards is the ability to communicate with a CAN Bus, which is a &#039;control area network&#039; or a technical way of saying how various components, sensors, controls, etc communicate with one another within the car. &#039;&#039;&#039;Read more about [[CAN communication|CAN Communication]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There is also a project to standardise the messages across the various control boards, [[Introduction CAN STD|read more]]&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Parameters&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The openinverter firmware uses a set of about 70 parameters to adapt it to different inverter power stages, motors and position feedback systems. Also it lets you calibrate the throttle pedal, change regenerative braking settings and so on. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Parameter definitions can be found here: [[Parameters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Working parameter sets can be found in the [https://openinverter.org/parameters openinverter parameter database]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Open Inverter Related Projects (Control Boards/VCUs)===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
! Project&lt;br /&gt;
!Description  / Notes&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Tesla|Tesla Small Drive and Large Drive Units:]]&#039;&#039;&#039;&lt;br /&gt;
|Commonly there is a large drive unit and small drive unit available from the Model S. &amp;lt;!-- Model 3 options? --&amp;gt;&lt;br /&gt;
These combine the inverter and motor into a single package.  &lt;br /&gt;
&lt;br /&gt;
The control boards for these replace the existing control board within them. &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Lexus GS450h Drivetrain]]:&#039;&#039;&#039;&lt;br /&gt;
| The GS450h contains a gearbox (where the motors are located).&lt;br /&gt;
Using the [[ZombieVerter VCU]], the inverter and the gearbox itself provide  &lt;br /&gt;
&lt;br /&gt;
a powerful set up suitable for rear wheel drive set ups, replacing the existing longitudinally mounted gearbox.  &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Toyota Prius Gen3 Board|Prius Generation 3 Inverter:]]&#039;&#039;&#039;&lt;br /&gt;
|A cheap available inverter from the popular Prius hybrid, this&lt;br /&gt;
board goes inside that inverter and allows you to control the features of it.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Auris/Yaris Inverter:]]&#039;&#039;&#039;&lt;br /&gt;
|Similar to the Prius board, there&#039;s subtle differences between them&lt;br /&gt;
and therefore the need for a separate board. &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Nissan Leaf Gen2 Board]]&#039;&#039;&#039;&lt;br /&gt;
|Replaces the nissan OEM logic board with a rev 3 openiverter main board&lt;br /&gt;
|-&lt;br /&gt;
|[[Ford ranger ev board|&#039;&#039;&#039;Ford ranger ev board&#039;&#039;&#039;]]&lt;br /&gt;
|openinverter kit for the ford ranger ev&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |[[OEM Repurposing|&#039;&#039;&#039;All Control Boards / OEM Inverters&#039;&#039;&#039;]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Use inverter as a battery Charger===&lt;br /&gt;
Both the open inverter and some OEM inverters can be used as a battery charger, further saving on component costs. You can read more about how the open inverter and the theory of charging [[Battery Charging|here]].&lt;br /&gt;
&lt;br /&gt;
===Open Inverter Renewables Projects===&lt;br /&gt;
Recently added to the forums are projects and discussions around turning the Open Inverter project towards capturing, storing and using renewable energy.&amp;lt;!--&amp;gt;&lt;br /&gt;
If you need help with your EV conversion check out my &amp;lt;u&amp;gt;consulting offers&amp;lt;/u&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Finally, if you want to support the project &amp;lt;u&amp;gt;visit the shop&amp;lt;/u&amp;gt;, become a &amp;lt;u&amp;gt;Patron&amp;lt;/u&amp;gt; or send donations to paypal &#039;at&#039; johanneshuebner.com .&lt;br /&gt;
&amp;lt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Open Inverter CAN std.=&lt;br /&gt;
*[[Introduction CAN STD|Introduction]]&lt;br /&gt;
*[[CAN table CAN STD|CAN table]]&lt;br /&gt;
*[[Getting started with CAN bus]]&lt;br /&gt;
*[[CAN communication|Setting up Open Inverter CAN Communication]]&lt;br /&gt;
&lt;br /&gt;
=Conversion Projects=&lt;br /&gt;
*[[VW Polo 86C Conversion]]&lt;br /&gt;
*[[Touran Conversion]]&lt;br /&gt;
*[[Audi A2 Conversion]]&lt;br /&gt;
*[https://openinverter.org/forum/viewtopic.php?f=11&amp;amp;t=326&amp;amp;hilit=gt86 toyota gt86 nissan leaf motor]&lt;br /&gt;
*[https://openinverter.org/forum/viewtopic.php?f=11&amp;amp;t=210 Porsche Boxster 986 Tesla conversion]&lt;br /&gt;
*[[VW Beetle 2003 Budget Conversion]]&lt;br /&gt;
*[https://openinverter.org/forum/viewforum.php?f=11 Further Projects on the forum]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Coolant_Valves&amp;diff=4793</id>
		<title>Coolant Valves</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Coolant_Valves&amp;diff=4793"/>
		<updated>2024-08-27T11:52:26Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Created coolant valves page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Placeholder for coolant valves =&lt;br /&gt;
https://ussolid.com/search.php?search_query=3+way&amp;amp;sort=relevance&amp;amp;_bc_fsnf=1&amp;amp;Voltage%5B%5D=12V+DC&amp;amp;Voltage%5B%5D=9-36V+AC%2FDC&amp;amp;Voltage%5B%5D=9-24V+DC&amp;amp;Voltage%5B%5D=9-24V+AC%2FDC&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Coolant_Fittings&amp;diff=4792</id>
		<title>Coolant Fittings</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Coolant_Fittings&amp;diff=4792"/>
		<updated>2024-08-27T11:44:28Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* This is a list of coolant fittings that may be useful in an EV swap. */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= This is a list of coolant fittings that may be useful in an EV swap. =&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part Number&lt;br /&gt;
!Fitting Type&lt;br /&gt;
!Number of ports&lt;br /&gt;
!Original Use&lt;br /&gt;
!With Bleeder?&lt;br /&gt;
!Fitting 1 Size&lt;br /&gt;
!Fitting 2 Size&lt;br /&gt;
!Fitting 3 Size&lt;br /&gt;
!Other part numbers&lt;br /&gt;
|-&lt;br /&gt;
|3B0122291B&lt;br /&gt;
|Quick Connect&lt;br /&gt;
|2&lt;br /&gt;
|Radiator Hose&lt;br /&gt;
|No&lt;br /&gt;
|NW16&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1K0122291C&lt;br /&gt;
|Quick Connect&lt;br /&gt;
|3&lt;br /&gt;
|Heater Hose&lt;br /&gt;
|Hose&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17127515502&lt;br /&gt;
|Barb Coupling&lt;br /&gt;
|2&lt;br /&gt;
|Radiator Hose&lt;br /&gt;
|Screw&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|FEB-170759, URO-014663&lt;br /&gt;
|}&lt;br /&gt;
Many more can be found online at the following links,&lt;br /&gt;
&lt;br /&gt;
https://www.fcpeuro.com/Parts/?keywords=Coolant%20Connector&lt;br /&gt;
&lt;br /&gt;
https://www.fcpeuro.com/Parts/?keywords=Coolant%20Fitting&lt;br /&gt;
&lt;br /&gt;
https://www.iq-parts-shop.com/en/search/norma+quick+nw/&lt;br /&gt;
&lt;br /&gt;
== Quick Connect Coolant Fittings Info ==&lt;br /&gt;
[[File:Norma Quick Fitting.png|thumb|Norma Quick Fitting]]&lt;br /&gt;
https://www.norma-connects.com/sites/dsemea/files/qbank/documents/NORMA-Quick-Connectors-Catalogue.pdf&lt;br /&gt;
&lt;br /&gt;
== Link to the CAD models page ==&lt;br /&gt;
[[CAD Models]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Coolant_Fittings&amp;diff=4791</id>
		<title>Coolant Fittings</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Coolant_Fittings&amp;diff=4791"/>
		<updated>2024-08-27T11:36:56Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Created a coolant fittings page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= This is a list of coolant fittings that may be useful in an EV swap. =&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part Number&lt;br /&gt;
!Fitting Type&lt;br /&gt;
!Number of ports&lt;br /&gt;
!Original Use&lt;br /&gt;
!Fitting 1 Size&lt;br /&gt;
!Fitting 2 Size&lt;br /&gt;
!Fitting 3 Size&lt;br /&gt;
!Image&lt;br /&gt;
|-&lt;br /&gt;
|3B0122291B&lt;br /&gt;
|Quick Connect&lt;br /&gt;
|2&lt;br /&gt;
|Radiator Hose&lt;br /&gt;
|NW16&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|1K0122291C&lt;br /&gt;
|Quick Connect&lt;br /&gt;
|3&lt;br /&gt;
|Heater Hose&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Many more can be found online at the following links,&lt;br /&gt;
&lt;br /&gt;
https://www.fcpeuro.com/Parts/?keywords=Coolant%20Connector&lt;br /&gt;
&lt;br /&gt;
https://www.fcpeuro.com/Parts/?keywords=Coolant%20Fitting&lt;br /&gt;
&lt;br /&gt;
https://www.iq-parts-shop.com/en/search/norma+quick+nw/&lt;br /&gt;
&lt;br /&gt;
== Quick Connect Coolant Fittings Info ==&lt;br /&gt;
[[File:Norma Quick Fitting.png|thumb|Norma Quick Fitting]]&lt;br /&gt;
https://www.norma-connects.com/sites/dsemea/files/qbank/documents/NORMA-Quick-Connectors-Catalogue.pdf&lt;br /&gt;
&lt;br /&gt;
== Link to the CAD models page ==&lt;br /&gt;
[[CAD Models]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=4790</id>
		<title>Water Pumps</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=4790"/>
		<updated>2024-08-27T11:17:46Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* In List Form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= A list of coolant pumps =&lt;br /&gt;
This is a list of water pumps that may be useful in an EV swap.&lt;br /&gt;
&lt;br /&gt;
== Pierburg CWA Coolant Pumps ==&lt;br /&gt;
[[File:CWA200.png|thumb|CWA200]]&lt;br /&gt;
[[Pierburg CWA Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
The Pierburg CWA Coolant Pumps (200/400) are well known in hot rod engine swaps as they are significant coolant pumps that have the ability to be PWM Controlled, however connecting the PWM pin to +12V permanently also gives 95% speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tesla Model S/X Coolant Pump ==&lt;br /&gt;
[[File:Tesla S - X coolant pump.png|thumb|Tesla S / X coolant pump]]&lt;br /&gt;
[[Tesla Model S/X Coolant Pump]]&lt;br /&gt;
&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= In List Form =&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pump&lt;br /&gt;
!DC Voltage&lt;br /&gt;
!Current Draw&lt;br /&gt;
!Control Method&lt;br /&gt;
!Inlet Size&lt;br /&gt;
!Outlet Size&lt;br /&gt;
!Max Flow&lt;br /&gt;
!Max Pressure&lt;br /&gt;
|-&lt;br /&gt;
|CWA200&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Tesla S/X&lt;br /&gt;
|8-16&lt;br /&gt;
|7.3A&lt;br /&gt;
|PWM&lt;br /&gt;
|19mm&lt;br /&gt;
|19mm&lt;br /&gt;
|720LPH@70kPa&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=4789</id>
		<title>Water Pumps</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=4789"/>
		<updated>2024-08-27T11:17:28Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= A list of coolant pumps =&lt;br /&gt;
This is a list of water pumps that may be useful in an EV swap.&lt;br /&gt;
&lt;br /&gt;
== Pierburg CWA Coolant Pumps ==&lt;br /&gt;
[[File:CWA200.png|thumb|CWA200]]&lt;br /&gt;
[[Pierburg CWA Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
The Pierburg CWA Coolant Pumps (200/400) are well known in hot rod engine swaps as they are significant coolant pumps that have the ability to be PWM Controlled, however connecting the PWM pin to +12V permanently also gives 95% speed&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tesla Model S/X Coolant Pump ==&lt;br /&gt;
[[File:Tesla S - X coolant pump.png|thumb|Tesla S / X coolant pump]]&lt;br /&gt;
[[Tesla Model S/X Coolant Pump]]&lt;br /&gt;
&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== In List Form ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pump&lt;br /&gt;
!DC Voltage&lt;br /&gt;
!Current Draw&lt;br /&gt;
!Control Method&lt;br /&gt;
!Inlet Size&lt;br /&gt;
!Outlet Size&lt;br /&gt;
!Max Flow&lt;br /&gt;
!Max Pressure&lt;br /&gt;
|-&lt;br /&gt;
|CWA200&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Tesla S/X&lt;br /&gt;
|8-16&lt;br /&gt;
|7.3A&lt;br /&gt;
|PWM&lt;br /&gt;
|19mm&lt;br /&gt;
|19mm&lt;br /&gt;
|720LPH@70kPa&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Norma_Quick_Fitting.png&amp;diff=4788</id>
		<title>File:Norma Quick Fitting.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Norma_Quick_Fitting.png&amp;diff=4788"/>
		<updated>2024-08-27T11:15:57Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Norma Quick Fitting&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=4787</id>
		<title>Water Pumps</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Water_Pumps&amp;diff=4787"/>
		<updated>2024-08-27T11:00:49Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Created a &amp;quot;main&amp;quot; page of coolant pumps&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= A list of coolant pumps =&lt;br /&gt;
This is a list of water pumps that may be useful in an EV swap.&lt;br /&gt;
&lt;br /&gt;
=== Pierburg CWA Coolant Pumps ===&lt;br /&gt;
[[File:CWA200.png|thumb|CWA200]]&lt;br /&gt;
[[Pierburg CWA Coolant Pumps]]&lt;br /&gt;
&lt;br /&gt;
The Pierburg CWA Coolant Pumps (200/400) are well known in hot rod engine swaps as they are significant coolant pumps that have the ability to be PWM Controlled, however connecting the PWM pin to +12V permanently also gives 95% speed&lt;br /&gt;
&lt;br /&gt;
=== Tesla Model S/X Coolant Pump ===&lt;br /&gt;
[[File:Tesla S - X coolant pump.png|thumb|Tesla S / X coolant pump]]&lt;br /&gt;
[[Tesla Model S/X Coolant Pump]]&lt;br /&gt;
&lt;br /&gt;
Both the Model S and X use a very capable (but curiously unbranded) coolant pump. Internet research seems to indicate it may be made by VariMax, though there are so many Tesla part numbers it&#039;s hard to say which actual model it is.&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pump&lt;br /&gt;
!DC Voltage&lt;br /&gt;
!Current Draw&lt;br /&gt;
!Control Method&lt;br /&gt;
!Inlet Size&lt;br /&gt;
!Outlet Size&lt;br /&gt;
!Max Flow&lt;br /&gt;
!Max Pressure&lt;br /&gt;
|-&lt;br /&gt;
|CWA200&lt;br /&gt;
|12&lt;br /&gt;
|&lt;br /&gt;
|PWM / ON&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Tesla S/X&lt;br /&gt;
|8-16&lt;br /&gt;
|7.3A&lt;br /&gt;
|PWM&lt;br /&gt;
|19mm&lt;br /&gt;
|19mm&lt;br /&gt;
|720LPH@70kPa&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Tesla_S_-_X_coolant_pump.png&amp;diff=4786</id>
		<title>File:Tesla S - X coolant pump.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Tesla_S_-_X_coolant_pump.png&amp;diff=4786"/>
		<updated>2024-08-27T10:51:31Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Tesla S / X coolant pump&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:CWA200.png&amp;diff=4785</id>
		<title>File:CWA200.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:CWA200.png&amp;diff=4785"/>
		<updated>2024-08-27T10:49:46Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CWA200&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Main_Page_Old&amp;diff=4784</id>
		<title>Main Page Old</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Main_Page_Old&amp;diff=4784"/>
		<updated>2024-08-27T10:37:24Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Mechanical Design Database */ Corrected Cooling System Components to a page title.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The openinverter project mainly aims to reuse existing components from production electric vehicles. We also aim to give some general guidelines on how to convert a vehicle to electric drive.&lt;br /&gt;
&lt;br /&gt;
= Before you begin: =&lt;br /&gt;
&#039;&#039;&#039;Please take the time to read.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You undertake &#039;&#039;&#039;your&#039;&#039;&#039; project at &#039;&#039;&#039;your own risk.&#039;&#039;&#039; Make sure you&#039;re aware of the risks of working with high voltage and [[HighVoltageSafety]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Developers&#039;s time is best spent developing;&#039;&#039;&#039; &#039;&#039;&#039;Support is best found in the forums&#039;&#039;&#039; - Developers of various projects are often bombarded with private messages and emails. Managing these emails and questions is a extremely large undertaking. Please read, and take the time to understand the information available here and across the web if you don&#039;t understand a topic. Developers are not your personal support team, unless you want to pay them directly for their time.   &lt;br /&gt;
&lt;br /&gt;
Read more about [[Application Support]].     &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Consider donating to the many developers&#039;&#039;&#039; that have made all this possible and to help keep making things possible: &lt;br /&gt;
&lt;br /&gt;
[https://www.patreon.com/openinverter www.patreon.com/openinverter], &lt;br /&gt;
&lt;br /&gt;
https://www.evbmw.com/, &lt;br /&gt;
&lt;br /&gt;
https://www.paypal.com/paypalme/celeron55    &lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/index.php &#039;&#039;&#039;Always check the forums&#039;&#039;&#039;], new developments and solutions are coming along every day, questions being answered, or perhaps you can answer. we work better as a community sharing our knowledge...    &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;...update this wiki.&#039;&#039;&#039; Answers and solutions should find their way here so they don&#039;t remain buried in a 30 page long support thread. To edit the wiki, login with your forum credentials.    &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Welcome to the open inverter community&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Legalities=&lt;br /&gt;
*[[Legalities|Legalities around conversion projects]]&lt;br /&gt;
Different countries have different legislation, if you want your car to certified for the road in your country please take the time to review this section. It might save you going down the wrong direction and creating something that can never be driven, or incur costs.&lt;br /&gt;
= Introduction =&lt;br /&gt;
The open inverter started as a scratch built inverter and control board led by Johannes Hübner who designed and built his open open source AC motor controller dubbed the &amp;quot;open inverter&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Since then, the community has established and documented hardware and software approaches to reuse OEM inverters with the Open control board, and has more recently started on controlling OEM inverters over CAN, a process which doesn&#039;t require replacing any internal parts. &lt;br /&gt;
&lt;br /&gt;
The main goal of the open inverter community is to reverse engineer many of these components for use in a variety of projects such as: &lt;br /&gt;
&lt;br /&gt;
* EV conversion&lt;br /&gt;
* Energy storage&lt;br /&gt;
* Power generation&lt;br /&gt;
* Charging infrastructure&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Open inverter projects now span over many different areas surrounding PEV, HEV, and PHEV components, such as: &lt;br /&gt;
* Motor Controllers&lt;br /&gt;
* 1-3 phase power converters&lt;br /&gt;
* DC/DC converters&lt;br /&gt;
* buck/boost converters&lt;br /&gt;
* Battery Management Systems (BMS)&lt;br /&gt;
* Vehicle integration&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
As a result, there is a growing collection of open source software and hardware designed for the never ending list of OEM parts.  &lt;br /&gt;
&lt;br /&gt;
There&#039;s a variety of methods of repurposing these OEM components. Methods here are generally chosen with future proofing in mind , reducing chances of firmware or software updates from the manufacture &amp;quot;bricking&amp;quot; or blocking the open source control efforts.  &lt;br /&gt;
&lt;br /&gt;
such efforts include:  &lt;br /&gt;
&lt;br /&gt;
* Mainboard/brain replacement&lt;br /&gt;
*[[Getting started with CAN bus|CANBUS/LINBUS]]&lt;br /&gt;
*[[wikipedia:Synchronous_serial_communication|Sync serial]]&lt;br /&gt;
*[[wikipedia:FlexRay|FlexRay]]&lt;br /&gt;
*[[wikipedia:Pulse-width_modulation|PWM]]&lt;br /&gt;
* Sirmware/software reprogramming&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Resulting in many bespoke boards running the main open inverter software or other open/semi-open source code designed to ether replace OEM motherboards or VCUs.  &lt;br /&gt;
&lt;br /&gt;
This has lead to a large collection of different boards and software, many with redundant features.  To unify many of these development projects, the community at large is focused on making a set of standard VCUs and replacement control boards which handle the ever growing list of OEM components.    &lt;br /&gt;
&lt;br /&gt;
=== Many of the VCU and replacement boards consist of these 3 main parts: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Hardware&lt;br /&gt;
!Firmware&lt;br /&gt;
!Web Interface&lt;br /&gt;
|-&lt;br /&gt;
|The design and development of the [[Main Board Version 3|control hardware]] based around an STM32F103 chip. This provides the control signals to the power stage and on to the attached components.&lt;br /&gt;
|The development of the code that goes on the STM32F103 chips and determines, amongst other things what signals are sent to the power stage and the attached components.&lt;br /&gt;
|Using an ESP8266 chip, the development of a simple [[Web Interface|web based interface]] to adjust the parameters on the firmware chip and to display values returned from the chip, for example motor speed (RPM).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; Performing a &#039;full&#039; EV conversion can often be more straight forward than trying to make small modifications to OEM vehicles - an OEM system will normally require a set of components all talking to each other and keeping each other happy! Trying to, for example, add a different battery charger, or bypassing certain restrictions will often require significant reverse engineering of the existing system to ensure that the new component(s) do not cause errors or problems in the system which can avalanche into significant problems! A full EV conversion, in comparison, can usually focus on just keeping one component happy at a time (although integrating these different components can still require a lot of work).&lt;br /&gt;
&lt;br /&gt;
The Community is focused on the electrical systems required for an EV, and may not be best placed to assist with mechanical issues specific to your vehicle.&lt;br /&gt;
&lt;br /&gt;
===Glossary of Terms===&lt;br /&gt;
It is recommended you read the &#039;&#039;&#039;[[Glossary of Terms]]&#039;&#039;&#039; before you begin. Often you&#039;ll find TLAs (three letter acronyms) peppered through the support forum and on this wiki, take the time to familiarise yourself with them before hand, remember this exists, or bookmark/favourite it so you can referent back to it.&lt;br /&gt;
&lt;br /&gt;
===EV conversions:===&lt;br /&gt;
A few main parts are needed for an EV conversion, such as:&lt;br /&gt;
*[[Motors]]&lt;br /&gt;
*[[:Category:Inverter|Inverter]]&lt;br /&gt;
**(&#039;&#039;&#039;Note:&#039;&#039;&#039; ZombieVerter projects require a matched pair of Inverter and Motor as they would have come out of a vehicle)&lt;br /&gt;
*[[Batteries]]&lt;br /&gt;
*[[:Category:Charger|Chargers / Charge Controllers]]&lt;br /&gt;
*[[:Category:DC/DC|DC/DC Converters]]&lt;br /&gt;
*[[:Category:HVJB|HV Junction Box]]&lt;br /&gt;
*[[Heaters]]&lt;br /&gt;
*[[:Category:HVAC|HVAC]]&lt;br /&gt;
*Brake Assist &lt;br /&gt;
**[[Vacuum Pumps]]&lt;br /&gt;
**Electronic Brake Boosters&lt;br /&gt;
*[[:Category:Power Steering|Power Steering]]&lt;br /&gt;
*[[Rapid Charging]]&lt;br /&gt;
*[[VCU Comparison]]&lt;br /&gt;
&lt;br /&gt;
Existing information on these items can be found on the &amp;lt;u&amp;gt;[[EV Conversion Parts]]&amp;lt;/u&amp;gt; page.&lt;br /&gt;
&lt;br /&gt;
A collection of various connector part numbers can be found here: [[Connector Part Numbers]]&lt;br /&gt;
&lt;br /&gt;
===OEM Parts: ===&lt;br /&gt;
A variety of [[:Category:OEM|OEM]] parts members of the community have reversed engineered for custom use cases:&lt;br /&gt;
*[[:Category:BMW|BMW]]&lt;br /&gt;
*[[:Category:Chevrolet|Chevrolet]]&lt;br /&gt;
*[[:Category:Ford|Ford]]&lt;br /&gt;
*[[:Category:Hyundai|Hyundai]]&lt;br /&gt;
*[[Isabellenhütte Heusler]]&lt;br /&gt;
*[[:Category:Land Rover|Land Rover/Jaguar]]&lt;br /&gt;
*[[:Category:Mercedes-Benz|Mercedes-Benz]]&lt;br /&gt;
*[[:Category:MG|MG]]&lt;br /&gt;
*[[:Category:Mitsubishi|Mitsubishi]]&lt;br /&gt;
*[[Nissan]]&lt;br /&gt;
*[[:Category:Opel|Opel/Vauxhall]]&lt;br /&gt;
*[[:Category:Peugeot|Peugeot]]&lt;br /&gt;
*[[Renault]]&lt;br /&gt;
*[[:Category:Tesla|Tesla]]&lt;br /&gt;
*[[Toyota|Toyota/Lexus]]&lt;br /&gt;
*[[:Category:VAG|VAG (VW, Audi, Skoda, Seat, Porsche, ...)]]&lt;br /&gt;
*[[:Category:Volvo|Volvo]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required skills/Knowledge===&lt;br /&gt;
[[Category:Request_for_Review]]&lt;br /&gt;
To perform a successful EV conversion, you may require the following skills and/or knowledge (this is not an exhaustive list)&lt;br /&gt;
&lt;br /&gt;
* You will need to have the skills, knowledge and tools required to perform significant mechanical work on your vehicle. A service or workshop manual will be useful.&lt;br /&gt;
*Basic DC electrical knowledge, such as using a multimeter, soldering, identifying components.&lt;br /&gt;
*A willingness and ability to troubleshoot problems (mechanical, electrical, code...).&lt;br /&gt;
* Safety in relation to high voltage DC systems. &#039;&#039;&#039;HV DC can be more dangerous than AC mains voltages!&#039;&#039;&#039;&lt;br /&gt;
*Basic understanding on the purposes of various EV components (motor, inverter, DC-DC...)&lt;br /&gt;
*A grasp of 3 phase motor control concepts can be useful (especially if using an openinverter control board)&lt;br /&gt;
*An understanding of CAN (and other digital communication systems) will be very useful&lt;br /&gt;
*The legal restrictions and requirements for your country/state&lt;br /&gt;
&lt;br /&gt;
===FAQ===&lt;br /&gt;
&lt;br /&gt;
*[[Common Inverter FAQ]] - questions common to all hardware variants&lt;br /&gt;
*[[Tesla Inverter FAQ]] - questions regarding Tesla Large Drive Units and Small Drive Units&lt;br /&gt;
*[[Electronics Basics]] - general advice for troubleshooting electronic circuits&lt;br /&gt;
*[[I want a cheap ev conversion|cheap EV conversions]] - this entry point for the penny pinchers&lt;br /&gt;
*[[I want a powerful ev conversion|performant EV conversions]]  - where torque trumps money&lt;br /&gt;
&lt;br /&gt;
= Mechanical Design Database =&lt;br /&gt;
[[Mechanical design database|&#039;&#039;&#039;&amp;lt;u&amp;gt;Mechanical design database&amp;lt;/u&amp;gt;&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
here you will find measurements, models, files, etc for a variety of components  such as:&lt;br /&gt;
&lt;br /&gt;
* adapter plates&lt;br /&gt;
* motor couplers&lt;br /&gt;
*drive shaft flanges&lt;br /&gt;
*battery mounts&lt;br /&gt;
*etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Cooling System Components =&lt;br /&gt;
&lt;br /&gt;
=== Water Pumps ===&lt;br /&gt;
&lt;br /&gt;
=== Coolant Fittings ===&lt;br /&gt;
&lt;br /&gt;
=Open Inverter Projects=&lt;br /&gt;
&lt;br /&gt;
===Open Inverter (Core Project/s)===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
!Description  / Notes &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;ZombieVerter VCU&#039;&#039;&#039;&lt;br /&gt;
*[[ZombieVerter VCU]]&lt;br /&gt;
*[[Web Interface (ZombieVerter VCU)|Web Interface]]&lt;br /&gt;
*[[OEM component compatibility]]&lt;br /&gt;
|Designed around a matched pair of Inverter and Motor taken from the original OEM vehicle the ZombieVerter is there to make those two components believe they are still in the original vehicle and are fed necessary commands to act as if they still are and interpret and responses back from the equipment for feedback (regen / rpm / etc)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Open Inverter Hardware&#039;&#039;&#039; &lt;br /&gt;
*[[Hardware Theory of Operation]]&lt;br /&gt;
*[[Schematics and Instructions]] - for the &amp;quot;vanilla&amp;quot; inverter kit.&lt;br /&gt;
*[[Mini Mainboard]]&lt;br /&gt;
*[[Foccci]] (CCS interface)&lt;br /&gt;
*[[Main Board Version 3]]&lt;br /&gt;
*[[Main Board Version 2]]&lt;br /&gt;
*[[Main Board Version 1]]&lt;br /&gt;
*[[Sense Boards]]&lt;br /&gt;
*[[Gate Driver]]&lt;br /&gt;
*[[Sensor Board|Legacy Sensor Board]]&lt;br /&gt;
*[[OEM Repurposing]]&lt;br /&gt;
| Quite flexible in its application. The Open Inverter can be used to build a custom inverter itself where you supply the high power and high voltage components to create your own inverter, or to be used as the basis to take over control of OEM inverters so that they can drive nearly any attached motor to that inverter.&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;3&amp;quot; |&#039;&#039;&#039;Open Inverter Software&#039;&#039;&#039;&lt;br /&gt;
*[[Using FOC Software]]&lt;br /&gt;
*[[Downloads]]&lt;br /&gt;
*[[Features]]&lt;br /&gt;
*[[Web Interface]]&lt;br /&gt;
*[[Battery Charging]]&lt;br /&gt;
*[[Errors]]&lt;br /&gt;
*[[CAN communication]]&lt;br /&gt;
*[[Parameters]] (Tune your inverter)&lt;br /&gt;
*[[Configuration Files]]&lt;br /&gt;
*[[Software Theory of Operation]]&lt;br /&gt;
*[[Open Inverter Testing]]&lt;br /&gt;
|Two of the more important software aspects to master are below.&amp;lt;!-- Just repurposed the can comms and parameters text. didn&#039;t want to get rid, but also perhaps more from the left column could be here? --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;CAN communication&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Common across boards is the ability to communicate with a CAN Bus, which is a &#039;control area network&#039; or a technical way of saying how various components, sensors, controls, etc communicate with one another within the car. &#039;&#039;&#039;Read more about [[CAN communication|CAN Communication]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There is also a project to standardise the messages across the various control boards, [[Introduction CAN STD|read more]]&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Parameters&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The openinverter firmware uses a set of about 70 parameters to adapt it to different inverter power stages, motors and position feedback systems. Also it lets you calibrate the throttle pedal, change regenerative braking settings and so on. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Parameter definitions can be found here: [[Parameters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Working parameter sets can be found in the [https://openinverter.org/parameters openinverter parameter database]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Open Inverter Related Projects (Control Boards/VCUs)===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
! Project&lt;br /&gt;
!Description  / Notes&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Tesla|Tesla Small Drive and Large Drive Units:]]&#039;&#039;&#039;&lt;br /&gt;
|Commonly there is a large drive unit and small drive unit available from the Model S. &amp;lt;!-- Model 3 options? --&amp;gt;&lt;br /&gt;
These combine the inverter and motor into a single package.  &lt;br /&gt;
&lt;br /&gt;
The control boards for these replace the existing control board within them. &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Lexus GS450h Drivetrain]]:&#039;&#039;&#039;&lt;br /&gt;
| The GS450h contains a gearbox (where the motors are located).&lt;br /&gt;
Using the [[ZombieVerter VCU]], the inverter and the gearbox itself provide  &lt;br /&gt;
&lt;br /&gt;
a powerful set up suitable for rear wheel drive set ups, replacing the existing longitudinally mounted gearbox.  &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Toyota Prius Gen3 Board|Prius Generation 3 Inverter:]]&#039;&#039;&#039;&lt;br /&gt;
|A cheap available inverter from the popular Prius hybrid, this&lt;br /&gt;
board goes inside that inverter and allows you to control the features of it.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Auris/Yaris Inverter:]]&#039;&#039;&#039;&lt;br /&gt;
|Similar to the Prius board, there&#039;s subtle differences between them&lt;br /&gt;
and therefore the need for a separate board. &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Nissan Leaf Gen2 Board]]&#039;&#039;&#039;&lt;br /&gt;
|Replaces the nissan OEM logic board with a rev 3 openiverter main board&lt;br /&gt;
|-&lt;br /&gt;
|[[Ford ranger ev board|&#039;&#039;&#039;Ford ranger ev board&#039;&#039;&#039;]]&lt;br /&gt;
|openinverter kit for the ford ranger ev&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |[[OEM Repurposing|&#039;&#039;&#039;All Control Boards / OEM Inverters&#039;&#039;&#039;]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Use inverter as a battery Charger===&lt;br /&gt;
Both the open inverter and some OEM inverters can be used as a battery charger, further saving on component costs. You can read more about how the open inverter and the theory of charging [[Battery Charging|here]].&lt;br /&gt;
&lt;br /&gt;
===Open Inverter Renewables Projects===&lt;br /&gt;
Recently added to the forums are projects and discussions around turning the Open Inverter project towards capturing, storing and using renewable energy.&amp;lt;!--&amp;gt;&lt;br /&gt;
If you need help with your EV conversion check out my &amp;lt;u&amp;gt;consulting offers&amp;lt;/u&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Finally, if you want to support the project &amp;lt;u&amp;gt;visit the shop&amp;lt;/u&amp;gt;, become a &amp;lt;u&amp;gt;Patron&amp;lt;/u&amp;gt; or send donations to paypal &#039;at&#039; johanneshuebner.com .&lt;br /&gt;
&amp;lt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Open Inverter CAN std.=&lt;br /&gt;
*[[Introduction CAN STD|Introduction]]&lt;br /&gt;
*[[CAN table CAN STD|CAN table]]&lt;br /&gt;
*[[Getting started with CAN bus]]&lt;br /&gt;
*[[CAN communication|Setting up Open Inverter CAN Communication]]&lt;br /&gt;
&lt;br /&gt;
=Conversion Projects=&lt;br /&gt;
*[[VW Polo 86C Conversion]]&lt;br /&gt;
*[[Touran Conversion]]&lt;br /&gt;
*[[Audi A2 Conversion]]&lt;br /&gt;
*[https://openinverter.org/forum/viewtopic.php?f=11&amp;amp;t=326&amp;amp;hilit=gt86 toyota gt86 nissan leaf motor]&lt;br /&gt;
*[https://openinverter.org/forum/viewtopic.php?f=11&amp;amp;t=210 Porsche Boxster 986 Tesla conversion]&lt;br /&gt;
*[[VW Beetle 2003 Budget Conversion]]&lt;br /&gt;
*[https://openinverter.org/forum/viewforum.php?f=11 Further Projects on the forum]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Main_Page_Old&amp;diff=4783</id>
		<title>Main Page Old</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Main_Page_Old&amp;diff=4783"/>
		<updated>2024-08-27T10:35:50Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Added coolant system components &amp;amp; 2 sub headings.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The openinverter project mainly aims to reuse existing components from production electric vehicles. We also aim to give some general guidelines on how to convert a vehicle to electric drive.&lt;br /&gt;
&lt;br /&gt;
= Before you begin: =&lt;br /&gt;
&#039;&#039;&#039;Please take the time to read.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You undertake &#039;&#039;&#039;your&#039;&#039;&#039; project at &#039;&#039;&#039;your own risk.&#039;&#039;&#039; Make sure you&#039;re aware of the risks of working with high voltage and [[HighVoltageSafety]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Developers&#039;s time is best spent developing;&#039;&#039;&#039; &#039;&#039;&#039;Support is best found in the forums&#039;&#039;&#039; - Developers of various projects are often bombarded with private messages and emails. Managing these emails and questions is a extremely large undertaking. Please read, and take the time to understand the information available here and across the web if you don&#039;t understand a topic. Developers are not your personal support team, unless you want to pay them directly for their time.   &lt;br /&gt;
&lt;br /&gt;
Read more about [[Application Support]].     &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Consider donating to the many developers&#039;&#039;&#039; that have made all this possible and to help keep making things possible: &lt;br /&gt;
&lt;br /&gt;
[https://www.patreon.com/openinverter www.patreon.com/openinverter], &lt;br /&gt;
&lt;br /&gt;
https://www.evbmw.com/, &lt;br /&gt;
&lt;br /&gt;
https://www.paypal.com/paypalme/celeron55    &lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/index.php &#039;&#039;&#039;Always check the forums&#039;&#039;&#039;], new developments and solutions are coming along every day, questions being answered, or perhaps you can answer. we work better as a community sharing our knowledge...    &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;...update this wiki.&#039;&#039;&#039; Answers and solutions should find their way here so they don&#039;t remain buried in a 30 page long support thread. To edit the wiki, login with your forum credentials.    &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Welcome to the open inverter community&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Legalities=&lt;br /&gt;
*[[Legalities|Legalities around conversion projects]]&lt;br /&gt;
Different countries have different legislation, if you want your car to certified for the road in your country please take the time to review this section. It might save you going down the wrong direction and creating something that can never be driven, or incur costs.&lt;br /&gt;
= Introduction =&lt;br /&gt;
The open inverter started as a scratch built inverter and control board led by Johannes Hübner who designed and built his open open source AC motor controller dubbed the &amp;quot;open inverter&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Since then, the community has established and documented hardware and software approaches to reuse OEM inverters with the Open control board, and has more recently started on controlling OEM inverters over CAN, a process which doesn&#039;t require replacing any internal parts. &lt;br /&gt;
&lt;br /&gt;
The main goal of the open inverter community is to reverse engineer many of these components for use in a variety of projects such as: &lt;br /&gt;
&lt;br /&gt;
* EV conversion&lt;br /&gt;
* Energy storage&lt;br /&gt;
* Power generation&lt;br /&gt;
* Charging infrastructure&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Open inverter projects now span over many different areas surrounding PEV, HEV, and PHEV components, such as: &lt;br /&gt;
* Motor Controllers&lt;br /&gt;
* 1-3 phase power converters&lt;br /&gt;
* DC/DC converters&lt;br /&gt;
* buck/boost converters&lt;br /&gt;
* Battery Management Systems (BMS)&lt;br /&gt;
* Vehicle integration&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
As a result, there is a growing collection of open source software and hardware designed for the never ending list of OEM parts.  &lt;br /&gt;
&lt;br /&gt;
There&#039;s a variety of methods of repurposing these OEM components. Methods here are generally chosen with future proofing in mind , reducing chances of firmware or software updates from the manufacture &amp;quot;bricking&amp;quot; or blocking the open source control efforts.  &lt;br /&gt;
&lt;br /&gt;
such efforts include:  &lt;br /&gt;
&lt;br /&gt;
* Mainboard/brain replacement&lt;br /&gt;
*[[Getting started with CAN bus|CANBUS/LINBUS]]&lt;br /&gt;
*[[wikipedia:Synchronous_serial_communication|Sync serial]]&lt;br /&gt;
*[[wikipedia:FlexRay|FlexRay]]&lt;br /&gt;
*[[wikipedia:Pulse-width_modulation|PWM]]&lt;br /&gt;
* Sirmware/software reprogramming&lt;br /&gt;
* etc.&lt;br /&gt;
&lt;br /&gt;
Resulting in many bespoke boards running the main open inverter software or other open/semi-open source code designed to ether replace OEM motherboards or VCUs.  &lt;br /&gt;
&lt;br /&gt;
This has lead to a large collection of different boards and software, many with redundant features.  To unify many of these development projects, the community at large is focused on making a set of standard VCUs and replacement control boards which handle the ever growing list of OEM components.    &lt;br /&gt;
&lt;br /&gt;
=== Many of the VCU and replacement boards consist of these 3 main parts: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Hardware&lt;br /&gt;
!Firmware&lt;br /&gt;
!Web Interface&lt;br /&gt;
|-&lt;br /&gt;
|The design and development of the [[Main Board Version 3|control hardware]] based around an STM32F103 chip. This provides the control signals to the power stage and on to the attached components.&lt;br /&gt;
|The development of the code that goes on the STM32F103 chips and determines, amongst other things what signals are sent to the power stage and the attached components.&lt;br /&gt;
|Using an ESP8266 chip, the development of a simple [[Web Interface|web based interface]] to adjust the parameters on the firmware chip and to display values returned from the chip, for example motor speed (RPM).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note:&#039;&#039;&#039; Performing a &#039;full&#039; EV conversion can often be more straight forward than trying to make small modifications to OEM vehicles - an OEM system will normally require a set of components all talking to each other and keeping each other happy! Trying to, for example, add a different battery charger, or bypassing certain restrictions will often require significant reverse engineering of the existing system to ensure that the new component(s) do not cause errors or problems in the system which can avalanche into significant problems! A full EV conversion, in comparison, can usually focus on just keeping one component happy at a time (although integrating these different components can still require a lot of work).&lt;br /&gt;
&lt;br /&gt;
The Community is focused on the electrical systems required for an EV, and may not be best placed to assist with mechanical issues specific to your vehicle.&lt;br /&gt;
&lt;br /&gt;
===Glossary of Terms===&lt;br /&gt;
It is recommended you read the &#039;&#039;&#039;[[Glossary of Terms]]&#039;&#039;&#039; before you begin. Often you&#039;ll find TLAs (three letter acronyms) peppered through the support forum and on this wiki, take the time to familiarise yourself with them before hand, remember this exists, or bookmark/favourite it so you can referent back to it.&lt;br /&gt;
&lt;br /&gt;
===EV conversions:===&lt;br /&gt;
A few main parts are needed for an EV conversion, such as:&lt;br /&gt;
*[[Motors]]&lt;br /&gt;
*[[:Category:Inverter|Inverter]]&lt;br /&gt;
**(&#039;&#039;&#039;Note:&#039;&#039;&#039; ZombieVerter projects require a matched pair of Inverter and Motor as they would have come out of a vehicle)&lt;br /&gt;
*[[Batteries]]&lt;br /&gt;
*[[:Category:Charger|Chargers / Charge Controllers]]&lt;br /&gt;
*[[:Category:DC/DC|DC/DC Converters]]&lt;br /&gt;
*[[:Category:HVJB|HV Junction Box]]&lt;br /&gt;
*[[Heaters]]&lt;br /&gt;
*[[:Category:HVAC|HVAC]]&lt;br /&gt;
*Brake Assist &lt;br /&gt;
**[[Vacuum Pumps]]&lt;br /&gt;
**Electronic Brake Boosters&lt;br /&gt;
*[[:Category:Power Steering|Power Steering]]&lt;br /&gt;
*[[Rapid Charging]]&lt;br /&gt;
*[[VCU Comparison]]&lt;br /&gt;
&lt;br /&gt;
Existing information on these items can be found on the &amp;lt;u&amp;gt;[[EV Conversion Parts]]&amp;lt;/u&amp;gt; page.&lt;br /&gt;
&lt;br /&gt;
A collection of various connector part numbers can be found here: [[Connector Part Numbers]]&lt;br /&gt;
&lt;br /&gt;
===OEM Parts: ===&lt;br /&gt;
A variety of [[:Category:OEM|OEM]] parts members of the community have reversed engineered for custom use cases:&lt;br /&gt;
*[[:Category:BMW|BMW]]&lt;br /&gt;
*[[:Category:Chevrolet|Chevrolet]]&lt;br /&gt;
*[[:Category:Ford|Ford]]&lt;br /&gt;
*[[:Category:Hyundai|Hyundai]]&lt;br /&gt;
*[[Isabellenhütte Heusler]]&lt;br /&gt;
*[[:Category:Land Rover|Land Rover/Jaguar]]&lt;br /&gt;
*[[:Category:Mercedes-Benz|Mercedes-Benz]]&lt;br /&gt;
*[[:Category:MG|MG]]&lt;br /&gt;
*[[:Category:Mitsubishi|Mitsubishi]]&lt;br /&gt;
*[[Nissan]]&lt;br /&gt;
*[[:Category:Opel|Opel/Vauxhall]]&lt;br /&gt;
*[[:Category:Peugeot|Peugeot]]&lt;br /&gt;
*[[Renault]]&lt;br /&gt;
*[[:Category:Tesla|Tesla]]&lt;br /&gt;
*[[Toyota|Toyota/Lexus]]&lt;br /&gt;
*[[:Category:VAG|VAG (VW, Audi, Skoda, Seat, Porsche, ...)]]&lt;br /&gt;
*[[:Category:Volvo|Volvo]]&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required skills/Knowledge===&lt;br /&gt;
[[Category:Request_for_Review]]&lt;br /&gt;
To perform a successful EV conversion, you may require the following skills and/or knowledge (this is not an exhaustive list)&lt;br /&gt;
&lt;br /&gt;
* You will need to have the skills, knowledge and tools required to perform significant mechanical work on your vehicle. A service or workshop manual will be useful.&lt;br /&gt;
*Basic DC electrical knowledge, such as using a multimeter, soldering, identifying components.&lt;br /&gt;
*A willingness and ability to troubleshoot problems (mechanical, electrical, code...).&lt;br /&gt;
* Safety in relation to high voltage DC systems. &#039;&#039;&#039;HV DC can be more dangerous than AC mains voltages!&#039;&#039;&#039;&lt;br /&gt;
*Basic understanding on the purposes of various EV components (motor, inverter, DC-DC...)&lt;br /&gt;
*A grasp of 3 phase motor control concepts can be useful (especially if using an openinverter control board)&lt;br /&gt;
*An understanding of CAN (and other digital communication systems) will be very useful&lt;br /&gt;
*The legal restrictions and requirements for your country/state&lt;br /&gt;
&lt;br /&gt;
===FAQ===&lt;br /&gt;
&lt;br /&gt;
*[[Common Inverter FAQ]] - questions common to all hardware variants&lt;br /&gt;
*[[Tesla Inverter FAQ]] - questions regarding Tesla Large Drive Units and Small Drive Units&lt;br /&gt;
*[[Electronics Basics]] - general advice for troubleshooting electronic circuits&lt;br /&gt;
*[[I want a cheap ev conversion|cheap EV conversions]] - this entry point for the penny pinchers&lt;br /&gt;
*[[I want a powerful ev conversion|performant EV conversions]]  - where torque trumps money&lt;br /&gt;
&lt;br /&gt;
= Mechanical Design Database =&lt;br /&gt;
[[Mechanical design database|&#039;&#039;&#039;&amp;lt;u&amp;gt;Mechanical design database&amp;lt;/u&amp;gt;&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
here you will find measurements, models, files, etc for a variety of components  such as:&lt;br /&gt;
&lt;br /&gt;
* adapter plates&lt;br /&gt;
* motor couplers&lt;br /&gt;
*drive shaft flanges&lt;br /&gt;
*battery mounts&lt;br /&gt;
*etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cooling System Components ==&lt;br /&gt;
&lt;br /&gt;
=== Water Pumps ===&lt;br /&gt;
&lt;br /&gt;
=== Coolant Fittings ===&lt;br /&gt;
&lt;br /&gt;
=Open Inverter Projects=&lt;br /&gt;
&lt;br /&gt;
===Open Inverter (Core Project/s)===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!&lt;br /&gt;
!Description  / Notes &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;ZombieVerter VCU&#039;&#039;&#039;&lt;br /&gt;
*[[ZombieVerter VCU]]&lt;br /&gt;
*[[Web Interface (ZombieVerter VCU)|Web Interface]]&lt;br /&gt;
*[[OEM component compatibility]]&lt;br /&gt;
|Designed around a matched pair of Inverter and Motor taken from the original OEM vehicle the ZombieVerter is there to make those two components believe they are still in the original vehicle and are fed necessary commands to act as if they still are and interpret and responses back from the equipment for feedback (regen / rpm / etc)&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Open Inverter Hardware&#039;&#039;&#039; &lt;br /&gt;
*[[Hardware Theory of Operation]]&lt;br /&gt;
*[[Schematics and Instructions]] - for the &amp;quot;vanilla&amp;quot; inverter kit.&lt;br /&gt;
*[[Mini Mainboard]]&lt;br /&gt;
*[[Foccci]] (CCS interface)&lt;br /&gt;
*[[Main Board Version 3]]&lt;br /&gt;
*[[Main Board Version 2]]&lt;br /&gt;
*[[Main Board Version 1]]&lt;br /&gt;
*[[Sense Boards]]&lt;br /&gt;
*[[Gate Driver]]&lt;br /&gt;
*[[Sensor Board|Legacy Sensor Board]]&lt;br /&gt;
*[[OEM Repurposing]]&lt;br /&gt;
| Quite flexible in its application. The Open Inverter can be used to build a custom inverter itself where you supply the high power and high voltage components to create your own inverter, or to be used as the basis to take over control of OEM inverters so that they can drive nearly any attached motor to that inverter.&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;3&amp;quot; |&#039;&#039;&#039;Open Inverter Software&#039;&#039;&#039;&lt;br /&gt;
*[[Using FOC Software]]&lt;br /&gt;
*[[Downloads]]&lt;br /&gt;
*[[Features]]&lt;br /&gt;
*[[Web Interface]]&lt;br /&gt;
*[[Battery Charging]]&lt;br /&gt;
*[[Errors]]&lt;br /&gt;
*[[CAN communication]]&lt;br /&gt;
*[[Parameters]] (Tune your inverter)&lt;br /&gt;
*[[Configuration Files]]&lt;br /&gt;
*[[Software Theory of Operation]]&lt;br /&gt;
*[[Open Inverter Testing]]&lt;br /&gt;
|Two of the more important software aspects to master are below.&amp;lt;!-- Just repurposed the can comms and parameters text. didn&#039;t want to get rid, but also perhaps more from the left column could be here? --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;CAN communication&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Common across boards is the ability to communicate with a CAN Bus, which is a &#039;control area network&#039; or a technical way of saying how various components, sensors, controls, etc communicate with one another within the car. &#039;&#039;&#039;Read more about [[CAN communication|CAN Communication]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
There is also a project to standardise the messages across the various control boards, [[Introduction CAN STD|read more]]&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;Parameters&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The openinverter firmware uses a set of about 70 parameters to adapt it to different inverter power stages, motors and position feedback systems. Also it lets you calibrate the throttle pedal, change regenerative braking settings and so on. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Parameter definitions can be found here: [[Parameters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Working parameter sets can be found in the [https://openinverter.org/parameters openinverter parameter database]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Open Inverter Related Projects (Control Boards/VCUs)===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
! Project&lt;br /&gt;
!Description  / Notes&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Tesla|Tesla Small Drive and Large Drive Units:]]&#039;&#039;&#039;&lt;br /&gt;
|Commonly there is a large drive unit and small drive unit available from the Model S. &amp;lt;!-- Model 3 options? --&amp;gt;&lt;br /&gt;
These combine the inverter and motor into a single package.  &lt;br /&gt;
&lt;br /&gt;
The control boards for these replace the existing control board within them. &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Lexus GS450h Drivetrain]]:&#039;&#039;&#039;&lt;br /&gt;
| The GS450h contains a gearbox (where the motors are located).&lt;br /&gt;
Using the [[ZombieVerter VCU]], the inverter and the gearbox itself provide  &lt;br /&gt;
&lt;br /&gt;
a powerful set up suitable for rear wheel drive set ups, replacing the existing longitudinally mounted gearbox.  &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Toyota Prius Gen3 Board|Prius Generation 3 Inverter:]]&#039;&#039;&#039;&lt;br /&gt;
|A cheap available inverter from the popular Prius hybrid, this&lt;br /&gt;
board goes inside that inverter and allows you to control the features of it.&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Auris/Yaris Inverter:]]&#039;&#039;&#039;&lt;br /&gt;
|Similar to the Prius board, there&#039;s subtle differences between them&lt;br /&gt;
and therefore the need for a separate board. &lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;[[Nissan Leaf Gen2 Board]]&#039;&#039;&#039;&lt;br /&gt;
|Replaces the nissan OEM logic board with a rev 3 openiverter main board&lt;br /&gt;
|-&lt;br /&gt;
|[[Ford ranger ev board|&#039;&#039;&#039;Ford ranger ev board&#039;&#039;&#039;]]&lt;br /&gt;
|openinverter kit for the ford ranger ev&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; |[[OEM Repurposing|&#039;&#039;&#039;All Control Boards / OEM Inverters&#039;&#039;&#039;]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Use inverter as a battery Charger===&lt;br /&gt;
Both the open inverter and some OEM inverters can be used as a battery charger, further saving on component costs. You can read more about how the open inverter and the theory of charging [[Battery Charging|here]].&lt;br /&gt;
&lt;br /&gt;
===Open Inverter Renewables Projects===&lt;br /&gt;
Recently added to the forums are projects and discussions around turning the Open Inverter project towards capturing, storing and using renewable energy.&amp;lt;!--&amp;gt;&lt;br /&gt;
If you need help with your EV conversion check out my &amp;lt;u&amp;gt;consulting offers&amp;lt;/u&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Finally, if you want to support the project &amp;lt;u&amp;gt;visit the shop&amp;lt;/u&amp;gt;, become a &amp;lt;u&amp;gt;Patron&amp;lt;/u&amp;gt; or send donations to paypal &#039;at&#039; johanneshuebner.com .&lt;br /&gt;
&amp;lt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Open Inverter CAN std.=&lt;br /&gt;
*[[Introduction CAN STD|Introduction]]&lt;br /&gt;
*[[CAN table CAN STD|CAN table]]&lt;br /&gt;
*[[Getting started with CAN bus]]&lt;br /&gt;
*[[CAN communication|Setting up Open Inverter CAN Communication]]&lt;br /&gt;
&lt;br /&gt;
=Conversion Projects=&lt;br /&gt;
*[[VW Polo 86C Conversion]]&lt;br /&gt;
*[[Touran Conversion]]&lt;br /&gt;
*[[Audi A2 Conversion]]&lt;br /&gt;
*[https://openinverter.org/forum/viewtopic.php?f=11&amp;amp;t=326&amp;amp;hilit=gt86 toyota gt86 nissan leaf motor]&lt;br /&gt;
*[https://openinverter.org/forum/viewtopic.php?f=11&amp;amp;t=210 Porsche Boxster 986 Tesla conversion]&lt;br /&gt;
*[[VW Beetle 2003 Budget Conversion]]&lt;br /&gt;
*[https://openinverter.org/forum/viewforum.php?f=11 Further Projects on the forum]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4660</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4660"/>
		<updated>2024-06-23T16:32:24Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Added 40 &amp;amp; 32 position header connector options Johu found: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm / .1 inch pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Availaility&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|1318745-2&lt;br /&gt;
|https://www.te.com/en/product-1318745-2.html&lt;br /&gt;
|High&lt;br /&gt;
|https://octopart.com/search?q=1318745-2&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/search?q=2326784-4&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Availability&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|1318384-4&lt;br /&gt;
|[https://www.te.com/en/product-1318384-4.html?q=1318384-4&amp;amp;source=header https://www.te.com/en/product-1318384-4.html]&lt;br /&gt;
|High&lt;br /&gt;
|https://octopart.com/search?q=1318384-4&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|Low&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|No&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|No&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 pos. conn front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos. conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty / optional +12v&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|See p26 +12V solder jumper notes.&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
| +3.3V&lt;br /&gt;
| +3.3V from U2 regulator.&lt;br /&gt;
|&lt;br /&gt;
|Alternative voltage for analog throttles if 5v goes out of range.&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;**There are unpopulated 0805 capacitor footprints on each contactor gate, these are optional to help eliminate chatter if required.  Required?   Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4502</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4502"/>
		<updated>2024-04-01T15:58:56Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* 40 position connector pin out: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm / .1 inch pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 pos. conn front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos. conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty / optional +12v&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|See p26 +12V solder jumper notes.&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
| +3.3V&lt;br /&gt;
| +3.3V from U2 regulator.&lt;br /&gt;
|&lt;br /&gt;
|Alternative voltage for analog throttles if 5v goes out of range.&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;**There are unpopulated 0805 capacitor footprints on each contactor gate, these are optional to help eliminate chatter if required.  Required?   Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:40_pos._conn_back.png&amp;diff=4501</id>
		<title>File:40 pos. conn back.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:40_pos._conn_back.png&amp;diff=4501"/>
		<updated>2024-04-01T15:58:37Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;40 pos. conn back&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:40_pos._conn_front_V0.0.4.png&amp;diff=4500</id>
		<title>File:40 pos. conn front V0.0.4.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:40_pos._conn_front_V0.0.4.png&amp;diff=4500"/>
		<updated>2024-04-01T15:58:02Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;40 pos. conn front V0.0.4&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4499</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4499"/>
		<updated>2024-04-01T15:52:28Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* 40 position connector pin out: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm / .1 inch pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty / optional +12v&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|See p26 +12V solder jumper notes.&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
| +3.3V&lt;br /&gt;
| +3.3V from U2 regulator.&lt;br /&gt;
|&lt;br /&gt;
|Alternative voltage for analog throttles if 5v goes out of range.&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-5v signal&lt;br /&gt;
|&lt;br /&gt;
|5K pull down to gnd on mini mainboard to shift to 0-3.3v.&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;**There are unpopulated 0805 capacitor footprints on each contactor gate, these are optional to help eliminate chatter if required.  Required?   Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4495</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4495"/>
		<updated>2024-03-30T22:24:38Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* SJ8 / J8 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm / .1 inch pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;**There are unpopulated 0805 capacitor footprints on each contactor gate, these are optional to help eliminate chatter if required.  Required?   Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4494</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4494"/>
		<updated>2024-03-30T20:11:12Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Contactor outputs, PRE &amp;amp; DCSW */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;**There are unpopulated 0805 capacitor footprints on each contactor gate, these are optional to help eliminate chatter if required.  Required?   Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4492</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4492"/>
		<updated>2024-03-30T13:53:08Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Programming the ESP32 Wi-Fi module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. V0.0.4 swapped back to 4k7 / .1uF because the esp32 recommended boot delay values caused issues in the STM32 booting properly&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;100nF capacitors on each gate to help eliminate chatter.  Required?  Need to change?  Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4491</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4491"/>
		<updated>2024-03-30T13:47:15Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* SJ8 / J8 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 3.3v together. J8 has 2.54mm pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. Not sure how / why 4k7 / .1uF was chosen but can easily switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;100nF capacitors on each gate to help eliminate chatter.  Required?  Need to change?  Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4490</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4490"/>
		<updated>2024-03-30T12:06:24Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Setting up the 3rd generation Leaf adapter board jumpers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 12v together. J8 has 2.54mm pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  These can both be left open.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. Not sure how / why 4k7 / .1uF was chosen but can easily switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;100nF capacitors on each gate to help eliminate chatter.  Required?  Need to change?  Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4489</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4489"/>
		<updated>2024-03-30T12:05:41Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Setting up the 3rd generation Leaf adapter board jumpers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 12v together. J8 has 2.54mm pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IL1 &amp;amp; IL2&#039;&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
Il1 &amp;amp; IL2 are redundant current sensor signal paths.  OEMs commonly use 2 signal paths for each current sensor to the inverter controller.  Open inverter uses 1 trace for each current sensor, these solder jumpers can be soldered closed to switch to have 2 signal paths to the inverter brain.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. Not sure how / why 4k7 / .1uF was chosen but can easily switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;100nF capacitors on each gate to help eliminate chatter.  Required?  Need to change?  Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4488</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4488"/>
		<updated>2024-03-30T12:01:59Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Programming the STM32 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 12v together. J8 has 2.54mm pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J4&#039;&#039;&#039; is used to program the ESP32.&lt;br /&gt;
&lt;br /&gt;
There is a slot above the labels 38  and J4 for a zip tie hole to hold an antenna wire. This can be used if a u.FL antenna is used along with an ESP32-S2-Wroom-I module.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. Not sure how / why 4k7 / .1uF was chosen but can easily switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;J3&#039;&#039;&#039; gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground if the ESP32 is not populated.  J3 is labeled from the ESP32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C19&#039;&#039;&#039; is an unpopulated handsolder 0805 capacitor footprint if this optional header is used and 3.3V power dips.  There is also an unpopulated 10x10.5 aluminum capacitor footprint at &#039;&#039;&#039;C20&#039;&#039;&#039; to assist even more if needed.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;100nF capacitors on each gate to help eliminate chatter.  Required?  Need to change?  Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4487</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4487"/>
		<updated>2024-03-30T11:52:33Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: V0.0.4 updates.  Couldn&amp;#039;t delete an old image named &amp;quot;Delete this old image&amp;quot; Please delete that.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt;R2 &amp;amp; R4 are unclear if they should be grounds and are 0R resistor / jumpers.  Need to figure out if these are in fact required grounds.&amp;lt;/s&amp;gt;  &lt;br /&gt;
** &amp;lt;s&amp;gt;J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&amp;lt;/s&amp;gt;&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  &amp;lt;s&amp;gt;This is at 3K3 in V0.0.1 but unsure if this is ideal.&amp;lt;/s&amp;gt;  V0.0.4 changed this to a 1.2k pull down resistor. There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* &amp;lt;s&amp;gt;L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&amp;lt;/s&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* &amp;lt;s&amp;gt;The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&amp;lt;/s&amp;gt; Set these to do not populate, not tested.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. Starting with V0.0.4 &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position connector has a &#039;&#039;&#039;solder jumper to 12v&#039;&#039;&#039;. This allows the user to connect on board &#039;&#039;&#039;+12V to pin 26&#039;&#039;&#039; to be used as the +12V supply for the E-Stop Switch.  See p26 +12V below. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;To bypass the E-Stop functionality&#039;&#039;&#039;, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional 0805) pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v to create the wave form / signal on this output.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. To the left of this +12V pad is a plated through hole to supply an unregulated +12v to be used for a user supplied voltage regulator for a different voltage. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 12v together. J8 has 2.54mm pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here.   If this is the end of a CAN line these should both be soldered. CAN lines should be terminated at each end of the lines with a 120 ohm resistor. Do not leave one solder jumper open &amp;amp; one closed. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;p26 +12V&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On the 40 position connector there is a solder jumper on the back of the board.  This is meant to supply +12V to &#039;&#039;&#039;pin 26&#039;&#039;&#039; of the 40 position Nissan connector to be used for the E-Stop function if desired (connected to both the SMD and through hole footprints.)  There are very thin traces from the solder jumper up to a +12v plated through hole above the MOSI label meant to act as a crude fuse.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb|alt=Delete this old image|87x87px|Delete this old image]]&lt;br /&gt;
[[File:40 position connector front V0.0.4.png|alt=40 position connector front V0.0.4|thumb|40 position connector front V0.0.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
[[File:40 pos conn back.png|alt=40 position Nissan connector labeled|thumb|40 position Nissan connector labeled]]&lt;br /&gt;
[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty - optional +12v for E-Stop switch&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
[[File:ESP32.png|alt=ESP32 with associated headers and 3.3v capacitor|thumb|ESP32 programming header]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. Not sure how / why 4k7 / .1uF was chosen but can easily switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
J3 gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;100nF capacitors on each gate to help eliminate chatter.  Required?  Need to change?  Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is likely not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:ESP32.png&amp;diff=4486</id>
		<title>File:ESP32.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:ESP32.png&amp;diff=4486"/>
		<updated>2024-03-30T11:46:05Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ESP32 with optional header J3, J4 programming header, and optional 10x10.5 aluminum capacitor if the 3.3V line isn&#039;t stable.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:40_position_connector_front_V0.0.4.png&amp;diff=4485</id>
		<title>File:40 position connector front V0.0.4.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:40_position_connector_front_V0.0.4.png&amp;diff=4485"/>
		<updated>2024-03-30T11:42:52Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;40 position connector front V0.0.4&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:40_pos_conn_back.png&amp;diff=4484</id>
		<title>File:40 pos conn back.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:40_pos_conn_back.png&amp;diff=4484"/>
		<updated>2024-03-30T11:37:34Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;V0.0.4 40 position connector labeled in the back of the board.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Foccci&amp;diff=4428</id>
		<title>Foccci</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Foccci&amp;diff=4428"/>
		<updated>2024-02-26T11:29:33Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: Changed to a 3.3v voltage divider schematic and corrected wording to reflect the change and added a note about it being different than other boards.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Disclaimer: This Page is still work in progress! Any information written here is a draft only and should be handled as such. Contributions more then welcome. If you have questions please ask them in the discussion section of the page or in the OpenInvert Forum.&lt;br /&gt;
[[File:Foccci pinout.svg|thumb|Foccci (v3) pinout]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This page is about FOCCCI. FOCCCI is an open source CCS Charge Controller started by Uhi and developed by the OpenInverter Community.&lt;br /&gt;
&lt;br /&gt;
Here you will find documentation on the Hardware, where to get it (or how to build it yourself), News regarding the development and many more great things.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Focci runs on the reference software [[CCS32Clara]] (also referred to as Clara).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://github.com/uhi22/foccci Focci on Github.]&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/forum/viewtopic.php?t=3727 Focci in the OpenInverter Forum.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Hardware detection ==&lt;br /&gt;
[[File:3.3v Addressing Voltage Divider.png|thumb]]&lt;br /&gt;
To allow software to reliably detect which version hardware it runs on, in HW version 4.1 a version indication resistor was added. As opposed to some other boards that run at 5.3V, the voltage here is 3.3V.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Variant&lt;br /&gt;
!R1&lt;br /&gt;
!R2&lt;br /&gt;
!voltage&lt;br /&gt;
!ADC&lt;br /&gt;
!-3%&lt;br /&gt;
!+3%&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|2,7&lt;br /&gt;
|0,179&lt;br /&gt;
|222&lt;br /&gt;
|216&lt;br /&gt;
|229&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|3,3&lt;br /&gt;
|0,217&lt;br /&gt;
|269&lt;br /&gt;
|261&lt;br /&gt;
|277&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|3,9&lt;br /&gt;
|0,253&lt;br /&gt;
|314&lt;br /&gt;
|304&lt;br /&gt;
|323&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|4,7&lt;br /&gt;
|0,300&lt;br /&gt;
|372&lt;br /&gt;
|361&lt;br /&gt;
|383&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|5,1&lt;br /&gt;
|0,323&lt;br /&gt;
|401&lt;br /&gt;
|389&lt;br /&gt;
|413&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|5,6&lt;br /&gt;
|0,351&lt;br /&gt;
|436&lt;br /&gt;
|423&lt;br /&gt;
|449&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|6,8&lt;br /&gt;
|0,417&lt;br /&gt;
|518&lt;br /&gt;
|502&lt;br /&gt;
|533&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|7,5&lt;br /&gt;
|0,454&lt;br /&gt;
|564&lt;br /&gt;
|547&lt;br /&gt;
|580&lt;br /&gt;
|-&lt;br /&gt;
|4.0 with economizer&lt;br /&gt;
|47&lt;br /&gt;
|8,2&lt;br /&gt;
|0,490&lt;br /&gt;
|608&lt;br /&gt;
|590&lt;br /&gt;
|627&lt;br /&gt;
|-&lt;br /&gt;
| -&lt;br /&gt;
|47&lt;br /&gt;
|9,1&lt;br /&gt;
|0,535&lt;br /&gt;
|664&lt;br /&gt;
|644&lt;br /&gt;
|684&lt;br /&gt;
|-&lt;br /&gt;
|4.1&lt;br /&gt;
|47&lt;br /&gt;
|10&lt;br /&gt;
|0,579&lt;br /&gt;
|718&lt;br /&gt;
|697&lt;br /&gt;
|740&lt;br /&gt;
|-&lt;br /&gt;
|4.2&lt;br /&gt;
|47&lt;br /&gt;
|12&lt;br /&gt;
|0,671&lt;br /&gt;
|833&lt;br /&gt;
|808&lt;br /&gt;
|858&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|47&lt;br /&gt;
|15&lt;br /&gt;
|0,798&lt;br /&gt;
|991&lt;br /&gt;
|961&lt;br /&gt;
|1020&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|47&lt;br /&gt;
|18&lt;br /&gt;
|0,914&lt;br /&gt;
|1134&lt;br /&gt;
|1100&lt;br /&gt;
|1168&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|47&lt;br /&gt;
|22&lt;br /&gt;
|1,052&lt;br /&gt;
|1306&lt;br /&gt;
|1266&lt;br /&gt;
|1345&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|47&lt;br /&gt;
|27&lt;br /&gt;
|1,204&lt;br /&gt;
|1494&lt;br /&gt;
|1449&lt;br /&gt;
|1539&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|47&lt;br /&gt;
|33&lt;br /&gt;
|1,361&lt;br /&gt;
|1689&lt;br /&gt;
|1639&lt;br /&gt;
|1740&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|47&lt;br /&gt;
|39&lt;br /&gt;
|1,497&lt;br /&gt;
|1857&lt;br /&gt;
|1801&lt;br /&gt;
|1913&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|47&lt;br /&gt;
|47&lt;br /&gt;
|1,650&lt;br /&gt;
|2048&lt;br /&gt;
|1986&lt;br /&gt;
|2109&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|47&lt;br /&gt;
|56&lt;br /&gt;
|1,794&lt;br /&gt;
|2226&lt;br /&gt;
|2160&lt;br /&gt;
|2293&lt;br /&gt;
|}&lt;br /&gt;
[[Category:ChaDeMo‏‎]] [[Category:CCS]] [[Category:Rapid Charging]]&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:3.3v_Addressing_Voltage_Divider.png&amp;diff=4427</id>
		<title>File:3.3v Addressing Voltage Divider.png</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:3.3v_Addressing_Voltage_Divider.png&amp;diff=4427"/>
		<updated>2024-02-26T11:23:48Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;3.3v Addressing Voltage Divider&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4410</id>
		<title>Nissan Leaf Gen 3 (2018 up EM57)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Nissan_Leaf_Gen_3_(2018_up_EM57)&amp;diff=4410"/>
		<updated>2024-02-12T20:50:36Z</updated>

		<summary type="html">&lt;p&gt;Jrbe: /* Things to verify */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you scanned the QR code on your gen 3 Leaf adapter board you are in the right place to help set it up!&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board assembly.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
== 110kw / 160kW ==&lt;br /&gt;
The third generation Nissan leaf stack has both 110kW and 160kW versions. Current understanding is the only difference between these 2 is the Nissan controller board. https://openinverter.org/forum/viewtopic.php?p=45803#p45803&lt;br /&gt;
&lt;br /&gt;
This Open Inverter adapter board replaces the Nissan controller in these gen. 3 inverters. Theory is that either inverter could make at least 160kW with this OI adapter &amp;amp; controller boards if the rest of the system can support it.&lt;br /&gt;
&lt;br /&gt;
== This adapter board is compatible with Gen 3 Nissan Leaf (model year 2018+) inverters and the [[Mini Mainboard|open inverter mini main board]] ==&lt;br /&gt;
&lt;br /&gt;
=== This is a work in progress. This board is not yet tested. ===&lt;br /&gt;
Any deeper dive info is in italics. You can skip over anything in italics if you don&#039;t want to know how it works or what it&#039;s doing in the background.&lt;br /&gt;
&lt;br /&gt;
== Things to verify ==&lt;br /&gt;
Some of the info was not completely clear for the development of this board.  Things that need to be verified: &lt;br /&gt;
&lt;br /&gt;
* Let&#039;s use &amp;lt;s&amp;gt;strikethrough&amp;lt;/s&amp;gt; as we verify these items.&lt;br /&gt;
* The board address needs to be checked with the brake circuit connected and disconnected (cut SJ4 to disconnect, solder to connect it.)  Need to verify this does not skew the address voltage and change the address.  There are vias to measure the voltage in the board address block to help.&lt;br /&gt;
* Verify different 32 &amp;amp; 40 position connector footprints match up.  Through hole footprints are unknown.  &amp;lt;s&amp;gt;The SMD connectors work properly.&amp;lt;/s&amp;gt;&lt;br /&gt;
* The second part of the brake circuit looks like it should block 2.5v and below from turning on the brake lights.  Above about 2.7v the brake lights should go on.  This depends on if the STM32 can push enough power to overcome a few components.  Trying to give a wider range of available addresses and still have the brake light output trigger in regen.  The high side switch turns on at around 1.2v on the enable line, that&#039;s what the zener blocking diode is for.&lt;br /&gt;
* R3 and R9 are setup as 0R (jumper) resistors. Nissan has 2 lines for each current sensor signal. These should not be populated for now.&lt;br /&gt;
* R2 &amp;amp; R4 &amp;lt;s&amp;gt;are unclear if they&amp;lt;/s&amp;gt; should be grounds and are 0R resistor / jumpers.  &amp;lt;s&amp;gt;Need to figure out if&amp;lt;/s&amp;gt; these are in fact required grounds.  &lt;br /&gt;
** J1 connector (Nissan 32 pos.) on position 20 if using thru hole board to wire connectors it only has a .3mm trace to ground which likely won&#039;t last or work well.  If this ground is required there is a large ground via right next to position 20 to solder to for a good ground connection.  Will need to correct this in the next version once understood.&lt;br /&gt;
* R13 is a pull down resistor for the T_SINK input.  This is at 3K3 in V0.0.1 but unsure if this is ideal.  There are 2 plated thru holes on each side of R13 to use to make testing the ideal value easier.&lt;br /&gt;
* L2 in rev V0.0.2 had an 0805 inductor rated for only 15ma.  Changed to a Sunlord 4030 / AKA 4.0mm X 4.0mm inductor that can pass 700ma +.  I don&#039;t think any V0.0.2 boards were made yet but not sure.&lt;br /&gt;
* &#039;&#039;&#039;What connector options to use for the Open Inverter connections to get out of the inverter.&#039;&#039;&#039;&lt;br /&gt;
* The capacitors on each contactor mosfet gate should be checked that they do not delay turn on or off too much and that they help eliminate chatter. If they are too large they could run the mosfets in the linear region and could cause damage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== There are optional jumpers on both the adapter board and the mini mainboard.  ==&lt;br /&gt;
&lt;br /&gt;
=== Setting up the mini mainboard jumpers ===&lt;br /&gt;
[[File:Mini mainboard Transparent.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ1&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard back) should be **soldered / not soldered.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This enables a 500 ohm pull-up resistor that is needed for open collector encoders.  In the case of the EM57 motor it &#039;&#039;&#039;**is / is not required**.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJ3&#039;&#039;&#039; ====&lt;br /&gt;
(mini mainboard) soldered / jumpers to the left is setup for cruise control 12v input.  It should stay like this.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Soldered to the right is 3.3v MOSI for SPI communications.  Do not apply 12v to this input while shorted to the right of the jumper or damage likely will result.&#039;&#039;&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up the 3rd generation Leaf adapter board jumpers ===&lt;br /&gt;
[[File:V0.0.2 Gen 3 Leaf Adapter PC board SMD Only.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ4&#039;&#039;&#039; ====&lt;br /&gt;
can be ignored.  It should stay shorted.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This jumper allows disconnecting the brake output circuitry from the board address circuitry for testing (see Mini Mainboard Hardware Detection.)  **add link** This IO is shared between a board address analog input and a brake light output.  Once this is proven out there should be no need to change this jumper.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ5&#039;&#039;&#039; ====&lt;br /&gt;
&#039;&#039;&#039;-&#039;&#039;&#039; Open Inverter has an Emergency Stop (E-Stop) function to quickly, non-destructively, and safely shut down the inverter.  To use the E-Stop option, connect an E-stop switch (closed when OK, open in stop position) that feeds 12v to position 40 of this adapter board. The E-Stop switch must break the 12v signal of the circuit when the e-stop is pressed or if a wire breaks. Other methods are not recommended for safety. This is to guarantee it shuts the inverter down when needed. To bypass the E-Stop functionality, solder the SJ5 jumper closed. No need to populate position 40 (e-stop signal) in this bypassed case.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You must either feed in 12v on pos. 40 or solder SJ5 closed to feed12v into this E_STOP input or the inverter will not run.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ6&#039;&#039;&#039; ====&lt;br /&gt;
is optional and can be left with both positions open. &#039;&#039;&#039;Never short all 3!&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Position 19 on the 40 position Nissan connector is a PWM_USER / OUT_TEMP signal.  Part of the PWM_USER circuitry is an optional pull up resistor (R19) that is not populated.  An 0805 SMD resistor can be added if a pullup is desired on board (the footprint is for a hand solder 0805, it&#039;s larger than normal but makes it easier to modify and hand solder.)&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;SJ6&#039;&#039;&#039; is a voltage select solder jumper to select between the onboard voltages of 5.3V and 12v.  There is also a plated through hole labeled as UV1 (user voltage) that can be used&#039;&#039; &#039;&#039;for the pull up&#039;&#039; &#039;&#039;with a&#039;&#039; &#039;&#039;a different voltage if desired.&#039;&#039; &#039;&#039;Do not solder / short SJ6 if UV1 is used.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;C11 capacitor is to reduce EMI.  If your PWM device needs a very sharp edge this may interfere.  C12 is a 1uF capacitor to help stabilize the user selected voltage, covers 5.3, 12v and user voltage selections. The n channel mosfet is rated for 100v and 1.5 amps. This is a common footprint with a wide range of voltages and currents up to about 1.5 amps.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====  &#039;&#039;&#039;SJ8 / J8&#039;&#039;&#039; ====&lt;br /&gt;
are voltage select jumpers. SJ8 is a solder jumper and J8 is a 3 position male pin header.  You must use only one style jumper to select 3.3v or 5v for your programmer so you do not accidently short 5.3v and 12v together. J8 has 2.54mm pin spacing, common jumper caps will work to select the voltage. See programming the ESP32 below for further info on programming. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;SJH1 &amp;amp; SJL1&#039;&#039;&#039; ====&lt;br /&gt;
These should be either both soldered if a 120ohm CAN termination resistor is desired here. Do not leave one solder jumper open &amp;amp; one closed.  If this is the end of a CAN line these should both be soldered.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;There is a capacitor in the middle of the 2x 60 ohm resistors to help filter noise on the CAN lines.  There is also a TVS diode (D6) right next to the 40pos. connector to help with static protection.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Soldering on the Nissan header connectors ==&lt;br /&gt;
The adapter board is setup with multiple footprints for both of the 32 and 40 position inverter&#039;s internal Nissan board to wire connectors. This means that the available connectors should all be able to be used without modifications.  &lt;br /&gt;
[[File:32 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 32 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|?&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322737-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322737-1.html&lt;br /&gt;
|https://octopart.com/2322737-1-te+connectivity-141486892?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-1.html&lt;br /&gt;
|https://octopart.com/2326784-1-te+connectivity+%2F+amp-125203930?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-2.html&lt;br /&gt;
|https://octopart.com/2326784-2-te+connectivity+%2F+amp-119798073?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-3.html&lt;br /&gt;
|https://octopart.com/2326784-3-te+connectivity-141486898?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318745-4&lt;br /&gt;
|https://www.te.com/usa-en/product-1318745-4.html&lt;br /&gt;
|https://octopart.com/1318745-4-te+connectivity+%2F+amp-111145194?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2326784-4&lt;br /&gt;
|https://www.te.com/usa-en/product-2326784-4.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 131874-1 32 position female housing, https://www.te.com/usa-en/product-1318747-1.datasheet.pdf&lt;br /&gt;
&lt;br /&gt;
=== 32 position connector ===&lt;br /&gt;
This connector and harness should not need any modifications. &lt;br /&gt;
&lt;br /&gt;
[[File:40 position 90° headers.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== 40 position header connector options: ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Connector Part #&lt;br /&gt;
!Manufacturer Page&lt;br /&gt;
!Sourcing&lt;br /&gt;
|-&lt;br /&gt;
|Desoldered Nissan&lt;br /&gt;
|&lt;br /&gt;
|You desoldering it from the inverter.  Possible to get part # from TE?&lt;br /&gt;
|-&lt;br /&gt;
|2322791-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-1.html&lt;br /&gt;
|https://octopart.com/2322791-1-te+connectivity+%2F+amp-128564844?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-2&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-2.html&lt;br /&gt;
|https://octopart.com/2322791-2-te+connectivity-142686361?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2322791-3&lt;br /&gt;
|https://www.te.com/usa-en/product-2322791-3.html&lt;br /&gt;
|https://octopart.com/2322791-3-te+connectivity+%2F+amp-119798059?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|2377920-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2377920-1.html&lt;br /&gt;
|Not Available?&lt;br /&gt;
|-&lt;br /&gt;
|1-1318384-8&lt;br /&gt;
|https://www.te.com/usa-en/product-1-1318384-8.html&lt;br /&gt;
|https://octopart.com/1-1318384-8-te+connectivity+%2F+amp-118490360?r=sp&lt;br /&gt;
|-&lt;br /&gt;
|1318384-5&lt;br /&gt;
|https://www.te.com/usa-en/product-1318384-5.html&lt;br /&gt;
|https://octopart.com/1318384-5-te+connectivity+%2F+amp-111145192?r=sp&lt;br /&gt;
|}&lt;br /&gt;
Listed in TE&#039;s 1318389-1 40 position female housing, https://www.te.com/usa-en/product-1318389-1.datasheet.pdf  &lt;br /&gt;
&lt;br /&gt;
== 40 position Leaf female connector modifications ==&lt;br /&gt;
If you are using the factory Leaf 40 position connector there are many open inverter specific wires that need to be added.&lt;br /&gt;
&lt;br /&gt;
[[File:Inverter entry board harness.jpg|thumb]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add which pin numbers or mark them somehow in the table below**&lt;br /&gt;
[[File:40pos. pin out back.png|thumb]]&lt;br /&gt;
[[File:40pos. pin out front.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;40 position connector pin out:&#039;&#039;&#039; ===&lt;br /&gt;
&lt;br /&gt;
==== The 40 position female housing has the following known part numbers: ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Part #&lt;br /&gt;
!Manufacturer Link&lt;br /&gt;
!Sourcing&lt;br /&gt;
!Found Where?&lt;br /&gt;
|-&lt;br /&gt;
|1318389-1&lt;br /&gt;
|https://www.te.com/usa-en/product-1318389-1.html&lt;br /&gt;
|https://octopart.com/1318389-1-te+connectivity-42270477?r=sp&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2325415-1&lt;br /&gt;
|https://www.te.com/usa-en/product-2325415-1.html&lt;br /&gt;
|https://octopart.com/search?q=2325415-1&amp;amp;currency=USD&amp;amp;specs=0&lt;br /&gt;
|Listed as mating with 2322791-1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Terminals for the Nissan connectors ====&lt;br /&gt;
Terminals (female / receptacle) listed to fit the 1318389-1 are here, https://www.te.com/usa-en/product-CAT-T319-T273.html?q=&amp;amp;d=752372&amp;amp;type=products&amp;amp;compatible=1318389-1&amp;amp;samples=N&amp;amp;inStoreWithoutPL=false&amp;amp;instock=N&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|Product  Description&lt;br /&gt;
|Marketing Part Number&lt;br /&gt;
|Products&lt;br /&gt;
|Terminal Type&lt;br /&gt;
|Mating Tab Width&lt;br /&gt;
|Mating Tab Thickness&lt;br /&gt;
|Terminal Transmits&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Wire Size&lt;br /&gt;
|Sealable&lt;br /&gt;
|Terminal Seal Type&lt;br /&gt;
|Wire Size Search&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT CRIMP SNAP IN 22-20&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|1-170321-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|CONTACT SNAP-IN&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|1-170321-4&lt;br /&gt;
|Receptacle&lt;br /&gt;
|3 mm&lt;br /&gt;
|.65 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT&lt;br /&gt;
|1123343-1&lt;br /&gt;
|1123343-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT GOLD FORMING&lt;br /&gt;
|1123343-2&lt;br /&gt;
|1123343-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 20 AWG&lt;br /&gt;
|.22 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.2 mm², .25 mm², .3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 REC CONTACT PRETIN L/P CUT&lt;br /&gt;
|1318143-1&lt;br /&gt;
|1318143-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.025 SEALED REC CONT&lt;br /&gt;
|1318329-1&lt;br /&gt;
|1318329-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .85 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|.040 SEALED REC CONT&lt;br /&gt;
|1318332-1&lt;br /&gt;
|1318332-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|18 – 16 AWG&lt;br /&gt;
|.75 – 1.25 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.75 mm², 1 mm², 1.25 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 IDC REC CONT FORM&lt;br /&gt;
|1318688-1&lt;br /&gt;
|1318688-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RCPT IDC TIN (0.08SQ)&lt;br /&gt;
|1565403-1&lt;br /&gt;
|1565403-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP&lt;br /&gt;
|1612290-1&lt;br /&gt;
|1612290-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP&lt;br /&gt;
|1612290-2&lt;br /&gt;
|1612290-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|24 – 22 AWG&lt;br /&gt;
|.22 – .35 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Single Wire Seal (SWS)&lt;br /&gt;
|.2 mm², .25 mm², .3 mm²&lt;br /&gt;
|-&lt;br /&gt;
|REC CONT ASSY S RANGE 025 CLEA&lt;br /&gt;
|1717148-1&lt;br /&gt;
|1717148-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.3 – .5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.3 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801069-2&lt;br /&gt;
|1801069-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|22 – 20 AWG&lt;br /&gt;
|.37 – .56 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.35 mm², .4 mm², .5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|1801248-2&lt;br /&gt;
|1801248-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 – 18 AWG&lt;br /&gt;
|.5 – .75 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.5 mm², .6 mm², .75 mm²&lt;br /&gt;
|-&lt;br /&gt;
|025 RECEPTACLE CONTACT&lt;br /&gt;
|2005097-1&lt;br /&gt;
|2005097-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|26 – 24 AWG&lt;br /&gt;
|.13 – .22 mm²&lt;br /&gt;
|No&lt;br /&gt;
|&lt;br /&gt;
|.13 mm², .15 mm², .2 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED TIN STRIP(L SIZE)&lt;br /&gt;
|2040168-1&lt;br /&gt;
|2040168-1&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|-&lt;br /&gt;
|0.64 RCPT SEALED AU STRIP(L SIZE)&lt;br /&gt;
|2040168-2&lt;br /&gt;
|2040168-2&lt;br /&gt;
|Receptacle&lt;br /&gt;
|.64 mm&lt;br /&gt;
|.64 mm&lt;br /&gt;
|0 – 24 A (Low Power)&lt;br /&gt;
|20 AWG&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|Yes&lt;br /&gt;
|Family Seal&lt;br /&gt;
|.5 mm²&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;&#039;**add crimper options**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The adapter board is labeled at the 40 position connector to help with wiring up the inverter / harness. Images of these are to the right and a table is below with the positions in order.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The surface mount version of this connector starts with position 21, then 1, 22, 2, etc. The position labeling on the pc board is offset slightly on both sides to help with this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The pc board renderings / pin labeling images to the right can be used to help populate the connector and wire the vehicle.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
!&lt;br /&gt;
!Pos.&lt;br /&gt;
!Abbreviation&lt;br /&gt;
!Description&lt;br /&gt;
!AKA&lt;br /&gt;
!Details&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|21&lt;br /&gt;
| +12VSW&lt;br /&gt;
|Switched +12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|PRE□&lt;br /&gt;
|Precharge  contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|&lt;br /&gt;
|22&lt;br /&gt;
|DCSW□&lt;br /&gt;
|EV  battery contactor switched ground&lt;br /&gt;
|&lt;br /&gt;
|4.5 ampterminal limit?&lt;br /&gt;
recommended to use an economizer&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|23&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|24&lt;br /&gt;
|GND&lt;br /&gt;
|Ground&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|oERR□&lt;br /&gt;
|Output -  Error signal, switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|25&lt;br /&gt;
|CRUISE*/MOSI3.3v!&lt;br /&gt;
|Cruise control signal 12v / MOSI 3.3v&lt;br /&gt;
|&lt;br /&gt;
|12v set as cruise.  3.3v as MOSI&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|sSTRT*&lt;br /&gt;
|Input,  12v start signal pulse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|26&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|sFWD*&lt;br /&gt;
|Input,  12v forward &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|27&lt;br /&gt;
|sBRAKE*&lt;br /&gt;
|Brake light input 12v&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|sREV*&lt;br /&gt;
|Input,  12v reverse&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|28&lt;br /&gt;
|MTEMP+&lt;br /&gt;
|Motor temp senor +&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|29&lt;br /&gt;
|sBMS*&lt;br /&gt;
|Battery Management System error +12 signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|oBRK▲&lt;br /&gt;
|Output,  brake +12v (see SJ4)&lt;br /&gt;
|&lt;br /&gt;
|1.5 amps&lt;br /&gt;
|&lt;br /&gt;
|30&lt;br /&gt;
|MTEMP-&lt;br /&gt;
|Motor temp sensor -&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|11&lt;br /&gt;
|THROT2°&lt;br /&gt;
|Throttle 2, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|31&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|12&lt;br /&gt;
|CANH&lt;br /&gt;
|CAN high  signal (see SJH1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|32&lt;br /&gt;
|THROT1°&lt;br /&gt;
|Throttle 1, 0-6.6v signal&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|13&lt;br /&gt;
|CANL&lt;br /&gt;
|CAN low  signal (see SJL1)&lt;br /&gt;
|&lt;br /&gt;
|120 ohm termination resistor solder jumpers&lt;br /&gt;
|&lt;br /&gt;
|33&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|14&lt;br /&gt;
|oUVTG□&lt;br /&gt;
|optional  output? 1amp max switched ground&lt;br /&gt;
|&lt;br /&gt;
|1 amp&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|15&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|S1&lt;br /&gt;
|Encoder S1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|16&lt;br /&gt;
|S3&lt;br /&gt;
|Encoder  S3 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|36&lt;br /&gt;
|empty&lt;br /&gt;
|empty&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|17&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for  sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|37&lt;br /&gt;
|S4&lt;br /&gt;
|Encoder S4 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|18&lt;br /&gt;
|S2&lt;br /&gt;
|Encoder S2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|38&lt;br /&gt;
| +5V&lt;br /&gt;
| +5V for sensors (like throttle)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|19&lt;br /&gt;
|oTEMP□&lt;br /&gt;
|over temp signal, switched ground, 1 amp max&lt;br /&gt;
|&lt;br /&gt;
|1 amp, has EMI filter capacitor (C11) for PWM&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|R2&lt;br /&gt;
|Encoder R2 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|20&lt;br /&gt;
|R1&lt;br /&gt;
|Encoder R1 wire&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|sE-STOP&lt;br /&gt;
|Optional Emergency stop switch (see SJ5)&lt;br /&gt;
|&lt;br /&gt;
|Can add an E-Stop switch to 12v.&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
|&#039;&#039;&#039;KEY&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|* = 12v  Signal&lt;br /&gt;
|-&lt;br /&gt;
|° -  0-6.6v Signal&lt;br /&gt;
|-&lt;br /&gt;
|□ =  Switched ground&lt;br /&gt;
|-&lt;br /&gt;
|▲ =  Switched +12v&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A visual pin numbering of the 40 position connector.&#039;&#039;&#039;[[File:40 pos female housing pin labeling.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Programming the ESP32 Wi-Fi module ==&lt;br /&gt;
Solder jumper JP8 &amp;amp; J8 set the programming header voltage to either 5v or 3.3v.  Use only 1 header to set the voltage to your programmer&#039;s output voltage. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If 5v is used the 3.3v regulator will convert it to 3.3v for the ESP32.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:ESP32 programming header.png|thumb|ESP32 programming header]]&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
|IO0&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
| +3.3v / +5V, (J8 / JP8)&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|ESP32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|ESP32 USART_TX&lt;br /&gt;
|}&lt;br /&gt;
&#039;&#039;Note that the enable line is broken out on the other side of the ESP32 if needed.&#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;R25 and C13 are for boot delay to assist programming.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Follow instructions here &#039;&#039;&#039;**add link*&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about programming with the STM32 processor programmed already**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add info about the boot delay**&#039;&#039;&#039;  &#039;&#039;ESP32 boot delay R &amp;amp; C is set to the commonly recommended 10k resistor &amp;amp; 1uF in V0.0.1. Not sure how / why 4k7 / .1uF was chosen but can easily switch back.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Programming the STM32 ==&lt;br /&gt;
Add info on programming the STM32 processor.&lt;br /&gt;
&lt;br /&gt;
Currently the recommendation is to program the ESP32 first, then the STM32.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**settings info**  link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;Editing the IP address if using multiple motors.**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**options** link..&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Extra header J3 ==&lt;br /&gt;
&#039;&#039;&#039;**add info about the extra header**  what&#039;s the use case?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
J3 gives access to TX &amp;amp; RX lines to the STM32 along with 3.3v and ground.  &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Position&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|1&lt;br /&gt;
| +3.3v&lt;br /&gt;
|-&lt;br /&gt;
|2&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|3&lt;br /&gt;
|STM32 USART_TX&lt;br /&gt;
|-&lt;br /&gt;
|4&lt;br /&gt;
|STM32 USART_RX&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|9&lt;br /&gt;
|empty&lt;br /&gt;
|-&lt;br /&gt;
|10&lt;br /&gt;
|empty&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Contactor outputs, PRE &amp;amp; DCSW ==&lt;br /&gt;
&#039;&#039;&#039;**4.5 amps max (header terminal limited?, otherwise 10-17A max to be determined with testing.)**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;**add economizer circuit if not included in contactor**&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;add image of capacitor locations**&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;nowiki&amp;gt;**&amp;lt;/nowiki&amp;gt;100nF capacitors on each gate to help eliminate chatter.  Required?  Need to change?  Contactor chatter issues?** too much will make the mosfet stay in the linear region for a while, could damage them.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Brake output ==&lt;br /&gt;
There is a high side switch soldered on the board that outputs +12v @ 1.5A maximum when regen is active.  This is not enough to drive brake lights directly. It is up to the user to combine the vehicles brake switch output with this brake output +12v signal. Consider an [https://www.digikey.com/en/products/filter/solid-state-relays/183?s=N4IgjCBcoCwdIDGUAuAnArgUwDQgPZQDaIAzKQOwxwh4wBspADE6bWUxaQEwR7Ndu3EAF08ABxRQQAZXQBLAHYBzEAF889AJxRQySADMAhgBsAzrgLEQMJjAAcYe6IlTIshSvV4w3CrqQoY3NLQkgSblZSAFZ6dkjyehh4qIomFPIKaPjuLV8%2BEFzYmjxcrKYCsui7di57LQoC%2Bwp7emcxEElpOTQlVQ1wLXqA-XRsPDCSdJE1AeyEcSgwCUXIMBYBuIR5ABNpAFp14VdpdhQAT3EsaR2zZFmgA automotive SSR] with the vehicles normal brake output feed through a diode along with the inverter brake output through a diode so either or both turn on the SSR.&lt;/div&gt;</summary>
		<author><name>Jrbe</name></author>
	</entry>
</feed>