<?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=Nubster</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=Nubster"/>
	<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/Special:Contributions/Nubster"/>
	<updated>2026-04-29T05:35:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_CAD_Models&amp;diff=6057</id>
		<title>Tesla CAD Models</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_CAD_Models&amp;diff=6057"/>
		<updated>2026-02-18T03:35:52Z</updated>

		<summary type="html">&lt;p&gt;Nubster: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.westside-ev.com/s/LDU-Inverter-Stand.stl Tesla LDU Inverter Stand]&lt;br /&gt;
&lt;br /&gt;
[https://www.westside-ev.com/s/rsdu_reverse_oilpump_pickup.stl Tesla RSDU Reverse Oil Pump Pickup]&lt;br /&gt;
&lt;br /&gt;
[https://www.westside-ev.com/s/fsdu_reverse_oilpump_bracket.step Tesla FSDU Reverse Oil Pump Bracket]&lt;br /&gt;
&lt;br /&gt;
[https://www.westside-ev.com/s/Tesla_SDU_Molex_Receptacle.stl Tesla SDU Molex MX150 Replacement Receptacle]&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_CAD_Models&amp;diff=6056</id>
		<title>Tesla CAD Models</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_CAD_Models&amp;diff=6056"/>
		<updated>2026-02-18T03:31:38Z</updated>

		<summary type="html">&lt;p&gt;Nubster: Added STL link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.westside-ev.com/s/LDU-Inverter-Stand.stl Tesla LDU Inverter Stand]&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_GEN2_Charger&amp;diff=5114</id>
		<title>Tesla Model S/X GEN2 Charger</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_GEN2_Charger&amp;diff=5114"/>
		<updated>2024-11-28T21:31:42Z</updated>

		<summary type="html">&lt;p&gt;Nubster: /* Replacement board connectors */ added link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
[[File:Gen2.jpg|thumb|tesla gen2 ac charger]]&lt;br /&gt;
[[File:Tesla gen2 xray.png|thumb|Tesla Gen2 X-Ray]]&lt;br /&gt;
&lt;br /&gt;
The Tesla GEN2 on-board charger (OBC) is a single/three phase 10kW AC charger that was fitted in the Model S from approx. Oct2013&amp;lt;ref&amp;gt;https://teslamotorsclub.com/tmc/posts/6560948/&amp;lt;/ref&amp;gt; until it was replaced in the 2016 &#039;facelift&#039; model with GEN3.  It was the first Tesla OBC capable of fully utilizing external 3-phase AC; [[Tesla Model S GEN1 Charger|previous Tesla OBCs]] lacked the external wiring for three phases.&lt;br /&gt;
&lt;br /&gt;
One or two GEN2 chargers are installed beneath the rear seats in the Model S for AC charging.&lt;br /&gt;
&lt;br /&gt;
The charger is made up of three 3.3 kw modules, each sitting on a liquid cooling plate. This assembly enables both single and multi phase AC charging.&lt;br /&gt;
&lt;br /&gt;
==Important Considerations==&lt;br /&gt;
&lt;br /&gt;
===Output Voltage Range===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;background-color:#ffffcc;&amp;quot; cellpadding=&amp;quot;10&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;HEED DAMIEN&#039;S WARNING:&#039;&#039;&#039;&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=9994#p9994&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;quot;[https://openinverter.org/forum/viewtopic.php?f=10&amp;amp;t=78&amp;amp;p=9994#p9994 Running a Tesla charger at much under 200v dc will cause it to explode. Yes I know the label says 50 to 450v but it lies. Yes I blew one up discovering this.]&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Supported Tesla Part Numbers (TPN)===&lt;br /&gt;
It has been found that early revision units will not work with the OI control boards.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?t=932&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TPNs to avoid:&lt;br /&gt;
&lt;br /&gt;
*1014963-05-B and 1014963-05-C&lt;br /&gt;
&lt;br /&gt;
TPNs tested and known good:&lt;br /&gt;
&lt;br /&gt;
*1014963-00-C/E/F/J/K/L&lt;br /&gt;
**1014963-00-C &amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=34710#p34710 and also by Lars on June 25th 2024&amp;lt;/ref&amp;gt;&lt;br /&gt;
**1014963-00-G is likely also good, just wasn&#039;t mentioned by name in the referenced thread&lt;br /&gt;
&lt;br /&gt;
=== Supported Software Revisions ===&lt;br /&gt;
At this time, it is not known why but it appears that some firmware revisions of this charger will have problems with maintaining a steady charge. Symptoms of this can be either surging (current goes up, drops to near zero, then surges back) or modules coming online singly followed by all modules going offline, repeat forever. In either case, charge power will be limited. We do not yet know what, exactly, is causing this. However, it is confirmed that swapping charger units but keeping the OI control board can produce working results.&lt;br /&gt;
&lt;br /&gt;
===Cooling===&lt;br /&gt;
The direction of flow in the cooling plate does not seem to matter.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=2030#p2030&amp;lt;/ref&amp;gt; The charger should likely be on the same cooling loop as the batteries themselves. This coolant loop should be separate from the loop with the motor and inverter (they get far too hot.) Limited testing (esp 110V, 1kw) can be done without the coolant lines hooked up. However, it would be unwise to attempt 10kw charging for any length of time without liquid cooling.&lt;br /&gt;
&lt;br /&gt;
==Replacement Control Boards==&lt;br /&gt;
Replacement control board https://github.com/damienmaguire/Tesla-Charger&lt;br /&gt;
&lt;br /&gt;
v5 kit: https://www.evbmw.com/index.php/evbmw-webshop/tesla-boards/tesla-gen-2-charger-logic-board-kit&lt;br /&gt;
&lt;br /&gt;
v5 partially built board: https://www.evbmw.com/index.php/evbmw-webshop/tesla-boards/tesla-gen-2-charger-logic-board-partially-built&lt;br /&gt;
&lt;br /&gt;
github: https://github.com/damienmaguire/Tesla-Charger&lt;br /&gt;
&lt;br /&gt;
=== Charger Connections ===&lt;br /&gt;
[[File:Tesla Charger Logic connections.jpg|none|thumb|607x607px|&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!A1&lt;br /&gt;
!A2&lt;br /&gt;
!A3&lt;br /&gt;
!A4&lt;br /&gt;
!A5&lt;br /&gt;
!&lt;br /&gt;
!B1&lt;br /&gt;
!B2&lt;br /&gt;
!B3&lt;br /&gt;
!B4&lt;br /&gt;
! B5&lt;br /&gt;
!B6&lt;br /&gt;
|-&lt;br /&gt;
|OUT2 - AC present&lt;br /&gt;
|&lt;br /&gt;
|D1 - enable&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|12V supply&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|CANH&lt;br /&gt;
|Control Pilot&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!A6&lt;br /&gt;
!A7&lt;br /&gt;
! A8&lt;br /&gt;
!A9&lt;br /&gt;
!A10&lt;br /&gt;
!&lt;br /&gt;
!B7&lt;br /&gt;
!B8&lt;br /&gt;
!B9&lt;br /&gt;
!B10&lt;br /&gt;
!B11&lt;br /&gt;
!B12&lt;br /&gt;
|-&lt;br /&gt;
|OUT1 - HV enable&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|D2 - 3p&lt;br /&gt;
|&lt;br /&gt;
| GND&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|CANL&lt;br /&gt;
|Proximity&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
The outputs will not output 12v, they are low side switches. If you require a 12v ac present signal then use a relay with its coil switched from the relevant pin. [https://raw.githubusercontent.com/damienmaguire/Tesla-Charger/master/V5/Charger_Gen2_V5aB3%20-%20Schematic.pdf wiring diagram][[File:AC DC Connections.jpg|left|thumb|600x600px]]]]&lt;br /&gt;
&lt;br /&gt;
====Connector part numbers====&lt;br /&gt;
AC and DC power connections (Molex Sabre series):&lt;br /&gt;
&lt;br /&gt;
*housing: 044441-2006&lt;br /&gt;
*pins: 043375-3001 (18-20AWG), 043375-0001 (14-16AWG)&lt;br /&gt;
&lt;br /&gt;
Logic connectors (Molex MX150L series):&lt;br /&gt;
&lt;br /&gt;
*housing: 10-way 19418-0014, 12-way 19418-0026&lt;br /&gt;
*pins: 33012-2002 (18-20AWG), 33012-2001 (14-16AWG)&lt;br /&gt;
&lt;br /&gt;
=== Replacement board connectors ===&lt;br /&gt;
If you can desolder 24 pin SMD connector off of the OEM control board otherwise to order 24 pin connector from Mouser P/N is: &lt;br /&gt;
&lt;br /&gt;
* [https://www.mouser.com/ProductDetail/JST-Automotive/SM24B-CPTK-1A-TBL?qs=wBn5QRdTcLhQ%2FCp3E8a%2FyA%3D%3D SM24B-CPTK-1A-TB(L)]&lt;br /&gt;
&lt;br /&gt;
The 30 pin connector is very difficult to desolder and resolder. Replacement P/Ns are: &lt;br /&gt;
&lt;br /&gt;
* [https://www.mouser.com/ProductDetail/Samtec/IPS1-115-01-S-D-PL?qs=PB6%2FjmICvI17nbB5SDGUsw%3D%3D IPS1-115-01-S-D-PL], SAMTEC - IPS1-115-01-S-D-PL - SOCKET, 2.54MM, 2X15WAY&lt;br /&gt;
** NOTE: One of the pins is missing from this connector variant, but according to [https://openinverter.org/forum/viewtopic.php?p=27697&amp;amp;hilit=charger+pin+missing#p27697 this forum post], it&#039;s ok as long as you solder it in the correct orientation. &lt;br /&gt;
* [https://www.mouser.com/ProductDetail/Samtec/IPS1-115-01-L-D?qs=PB6%2FjmICvI3sN4zSP4IXGw%3D%3D IPS1-115-01-L-D], SAMTEC&lt;br /&gt;
** Has all 30 pins.&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
You&#039;ll need a ST-LINK/V2 smt32 programmer.  Unofficial ones are cheaply available from amazon and ebay.&lt;br /&gt;
&lt;br /&gt;
*ST-LINK programming utility: https://www.st.com/en/development-tools/stsw-link004.html&lt;br /&gt;
* stm32_loader.hex  https://openinverter.org/forum/viewtopic.php?f=7&amp;amp;t=1119&lt;br /&gt;
&#039;&#039;&#039;Two options:&#039;&#039;&#039;&lt;br /&gt;
#Charger_gen2_v5.hex https://github.com/damienmaguire/Tesla-Charger/tree/master/V5/Software/Binary&lt;br /&gt;
#openinverter style firmware https://openinverter.org/forum/viewtopic.php?t=1323 (only available via patreon for next few weeks)&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Target --&amp;gt; Connect&amp;quot; from top menu. You want to see the screen get filled with a data dump of symbols. In the upper right of the screen you can see it identified the device. &lt;br /&gt;
&lt;br /&gt;
In the main viewing window are multiple tabs, click the &amp;quot;Binary File&amp;quot; tab to select it. &lt;br /&gt;
&lt;br /&gt;
This will ask to open a file, you choose: &amp;quot;stm32_loader.hex&amp;quot; from openinverter.org, download ahead of time. This will change what shows up in the viewing window.  &lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Target --&amp;gt; Program and Verify&amp;quot; from the top menu. This pops up a window, and you can probably just click &amp;quot;Start&amp;quot; on that window. This programs the STM32 chip with the stm32_loader.hex file.  &lt;br /&gt;
&lt;br /&gt;
The STM32 on your v5 gen2 Tesla charger Board can now load other files.   &lt;br /&gt;
&lt;br /&gt;
You can close the stm32_loader.hex tab, and go back to the &amp;quot;Binary File&amp;quot; tab, which will ask to open another file. &lt;br /&gt;
&lt;br /&gt;
You choose: &amp;quot;Charger_Gen2_v5.hex&amp;quot;  &lt;br /&gt;
&lt;br /&gt;
Same as last time, click &amp;quot;Target --&amp;gt; Program and Verify&amp;quot; from the top menu. And click Start. &lt;br /&gt;
&lt;br /&gt;
The STM32 on your v5 gen2 Tesla charger Board now also has the software to run.&lt;br /&gt;
&lt;br /&gt;
You are now done with the ST-Link USB dongle, it&#039;s no longer needed. &lt;br /&gt;
&lt;br /&gt;
Future updates can be done via WiFi. (must have esp8266 WiFi module programed https://openinverter.org/forum/viewtopic.php?f=5&amp;amp;t=8 )&lt;br /&gt;
&lt;br /&gt;
=== External CAN bus===&lt;br /&gt;
[[File:Gen2 Charger V5aB2 logic board.jpg|thumb|Gen2 Charger V5aB2 logic board with CAN wired to external pins]]&lt;br /&gt;
The V5aB2 version of the board has no connection to the external CAN bus (V5aB3 has) but you can add it with two bodge wires as shown in the picture. You will find CANH and CANL on the 3 pin header underneath the WiFi module. Route them over to CONN6 as shown. CONN2.1 (CANH) is connected to CONN6.24, CONN2.2 (CANL) to CONN6.26.&lt;br /&gt;
&lt;br /&gt;
Revision V5aB3 does not need this modification. On Revision V5aB3 you &#039;&#039;&#039;MUST&#039;&#039;&#039; close the solder jumper unless your charger is on an already terminated bus (that is, if the bus already has 2 termination resistors, one on each end, and measures 60 ohms with all devices powered off). If you do not use the external CAN, terminate the bus. If you have only two devices on the bus, terminate the bus. If you aren&#039;t sure, double check. &#039;&#039;&#039;Bus termination is important.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you attach to the external CAN bus, be aware that all internal CAN traffic is also seen on the external CAN bus. The following IDs are already used and mustn&#039;t used by any other device on the bus:&lt;br /&gt;
&lt;br /&gt;
207, 209, 20b, 217, 219, 21b, 227, 229, 22b, 237, 239, 23b, 247, 249, 24b, 327, 329, 32b, 347, 349, 34b, 357, 359, 35b, 367, 368, 369, 36b, 377, 379, 37b, 537, 539, 53b, 717, 719, 71b. &lt;br /&gt;
&lt;br /&gt;
====Functionality of external CAN bus====&lt;br /&gt;
With the CAN bus now available externally you can remote control your charger via CAN and also receive some values from it. The mapping is similar to the CHAdeMO CAN protocol. The feature is only available in the commercial firmware.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Charger CAN protocol - up to version 1.06.R&lt;br /&gt;
!ID&lt;br /&gt;
!Direction&lt;br /&gt;
!Byte 0&lt;br /&gt;
! Byte 1&lt;br /&gt;
!Byte 2&lt;br /&gt;
!Byte 3&lt;br /&gt;
!Byte 4&lt;br /&gt;
! Byte 5&lt;br /&gt;
! Byte 6&lt;br /&gt;
!Byte 7&lt;br /&gt;
|-&lt;br /&gt;
|0x102&lt;br /&gt;
|Receive by charger&lt;br /&gt;
|&lt;br /&gt;
|DC voltage limit MSB&lt;br /&gt;
|DC voltage limit LSB&lt;br /&gt;
| DC current set point&lt;br /&gt;
|==1 enable charging&lt;br /&gt;
|SoC&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x108&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|Max DC voltage MSB&lt;br /&gt;
| Max DC voltage LSB&lt;br /&gt;
|Max DC current&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x109&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|DC voltage MSB&lt;br /&gt;
|DC voltage LSB&lt;br /&gt;
|DC current&lt;br /&gt;
|&#039;&#039;0 when off, 5 when charging&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Example: transmit &amp;quot;0x102 # 0 0x1 0x86 0x14 0x1 50 0 0&amp;quot; to enable charging up to a voltage of 390V and a DC current of 20A, report SoC of 50%&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Charger CAN protocol - after version 1.06.R&lt;br /&gt;
!ID&lt;br /&gt;
!Direction&lt;br /&gt;
!Byte 0&lt;br /&gt;
!Byte 1&lt;br /&gt;
!Byte 2&lt;br /&gt;
!Byte 3&lt;br /&gt;
!Byte 4&lt;br /&gt;
!Byte 5&lt;br /&gt;
!Byte 6&lt;br /&gt;
!Byte 7&lt;br /&gt;
|-&lt;br /&gt;
| 0x102&lt;br /&gt;
|Receive by charger&lt;br /&gt;
|&lt;br /&gt;
|DC voltage limit MSB&lt;br /&gt;
|DC voltage limit LSB&lt;br /&gt;
|DC current set point&lt;br /&gt;
|&lt;br /&gt;
|==1 enable charging&lt;br /&gt;
|SoC&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x108&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|Max DC voltage MSB&lt;br /&gt;
| Max DC voltage LSB&lt;br /&gt;
|Max DC current&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x109&lt;br /&gt;
| Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|DC voltage MSB&lt;br /&gt;
|DC voltage LSB&lt;br /&gt;
|DC current&lt;br /&gt;
|&lt;br /&gt;
|0 when off, 5 when charging&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
LR: Personally I think the data for DC voltage limit is incorrect. The above states Motorola but only when I set all signals (so not only DC voltage limit as also the start bit count (sometimes) varies) to Intel it works for me.[[File:Parameter view of commercial firmware.png|thumb|Parameter view of commercial firmware]]&lt;br /&gt;
&lt;br /&gt;
===openinverter style charger firmware===&lt;br /&gt;
In addition to the open source firmware there is also an openinverter style firmware. It adds advanced features:&lt;br /&gt;
*Support for the standard open inverter web interface&lt;br /&gt;
*Parameter handling as known from the inverter firmware (see picture)&lt;br /&gt;
*Spot value handling like inverter including plotting, gauges, and logging&lt;br /&gt;
*Over the air update like inverter&lt;br /&gt;
*DC current control&lt;br /&gt;
* CAN control as described above&lt;br /&gt;
The firmware requires the board to be flashed with [https://github.com/jsphuebner/tumanako-inverter-fw-bootloader/releases stm32_loader.hex]. An Olimex MOD-ESP8266 must be programmed with the [https://github.com/jsphuebner/esp8266-web-interface openinverter web interface]. See [[Olimex MOD-WIFI-ESP8266]] and [https://openinverter.org/forum/viewtopic.php?f=5&amp;amp;t=8 this forum thread] for flashing instructions. With that done, future updates will happen via the web interface.&lt;br /&gt;
&lt;br /&gt;
The firmware will soon be fully published and is only available via patreon for now: https://www.patreon.com/openinverter&lt;br /&gt;
&lt;br /&gt;
====Connecting to the Web interface====&lt;br /&gt;
Depending on the version of your Olimex wifi dongle they are &amp;quot;open&amp;quot; or you need a password to connect.&lt;br /&gt;
&lt;br /&gt;
By default you can connect to the network (Access Point) and browse to: &#039;&#039;&#039;192.168.4.1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
By default all charger kits will have &#039;&#039;&#039;SSID&#039;&#039;&#039; : charger &#039;&#039;&#039;PASSWORD&#039;&#039;&#039; : charger123&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Its recommend that you change it. Nobody wants to drive and have some joker with a phone finding this information and accessing your charger.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Missing IC4 Chip&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
According to [https://openinverter.org/forum/viewtopic.php?p=43750&amp;amp;hilit=ic4#p43750 this forum post], IC4 used to be populated with a USB to serial FTDI chip. However, on the latest boards, all settings are configured via wifi so it is no longer needed.&lt;br /&gt;
[[File:Gen2ChargerBoard.jpg|alt=Image of Tesla Gen2 charger board with missing IC4 chip|thumb|Tesla Gen2 charger board with missing IC4 chip]]&lt;br /&gt;
&lt;br /&gt;
====Registration====&lt;br /&gt;
This step is no longer needed as the firmware will soon be published. It is already available on patreon: https://www.patreon.com/openinverter&lt;br /&gt;
&lt;br /&gt;
If you bought a fully assembled V5aB3 board from the EVBMW webshop you can skip this step.&lt;br /&gt;
&lt;br /&gt;
=== Latest Software for V5 boards and later ===&lt;br /&gt;
[[Tesla Model S/Tesla Gen23 V5 Software]] &lt;br /&gt;
&lt;br /&gt;
==Additional Resources==&lt;br /&gt;
&lt;br /&gt;
Videos by Damien Maguire showing internals of the charger, CAN IDs, wiring, and development of the board:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=LqJ7HhS65po The Tesla Project : 10 Kw Gen 2 Charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=ULadBnl7wgM The Tesla Project : Charger Progress]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mOIgp3QFg78 The Tesla Project : 10kW Charger Charging]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=BG4kYsoHe54 The Tesla Project : More Charger Hacking]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=bPLqXCiArVM The Tesla Project : Charger 10kw Run]&lt;br /&gt;
&lt;br /&gt;
A 15 min intro from a user perspective: https://www.youtube.com/watch?v=ibtr6v1k0cA&lt;br /&gt;
&lt;br /&gt;
==Common Issues==&lt;br /&gt;
&lt;br /&gt;
*The Tesla chargers are very sensitive to grounding. The case MUST be connected to vehicle 12v ground AND evse earth/ground when charging. [https://openinverter.org/forum/viewtopic.php?p=3890#p3890]&lt;br /&gt;
*With V5aB2, If you do NOT use the external CAN bus or are not properly terminated, &#039;&#039;&#039;remember to close the solder jumper&#039;&#039;&#039; next to R1 under the WiFi module. When in doubt, check the resistance of the CAN bus with all devices off. It should be 60 ohms ideally. If you are not using the external CAN then it should be 120 ohms. &lt;br /&gt;
*People had problems with unreliable connectivity between ESP8266 &amp;amp; the charger board [https://openinverter.org/wiki/Olimex_MOD-WIFI-ESP8266#Common_Issues]&lt;br /&gt;
*Firmware &#039;&#039;&#039;1.09&#039;&#039;&#039; and &#039;&#039;&#039;1.10&#039;&#039;&#039; can lose the CAN map, making the logic board go silent, reset instructions here: [https://openinverter.org/forum/viewtopic.php?p=40617&amp;amp;sid=e2369fea2b502a419f55e5aac10fe169#p40617]&lt;br /&gt;
*If a module within the charger is enabled (and all three are enabled by default) then it &#039;&#039;&#039;MUST&#039;&#039;&#039; see AC and DC voltage when charging starts. If it does not then no current will flow on any module. So, triple check your wiring before starting. It can be easy to mix up the line and neutral wires of the AC input. This will not blow up anything but it won&#039;t work either. Mixing up the DC wires is a recipe for a bad time.&lt;br /&gt;
*Some chargers are just raised wrong. As covered above, for reasons we don&#039;t know, some modules will simply refuse to work properly. Most often this will happen to chargers that were previously used in super charger stations but it can happen to chargers that were pulled from Model S cars as well. There is not yet any known fix for this. If it happens the only current solution is a different charger or you live with slow charging.&lt;br /&gt;
*Did you set the D1 enable pin to be high (+12v?) It must be high in &#039;&#039;&#039;ANY&#039;&#039;&#039; mode in order for charging to start. It is OK to tie it to the +12 incoming power if you are using something like Type2 where charging is controlled by the proximity and control pilot signals.&lt;br /&gt;
&lt;br /&gt;
==Errata==&lt;br /&gt;
Charger Dimensions: 500x300x100mm&lt;br /&gt;
&lt;br /&gt;
More specific dimensions and CAD info here: https://openinverter.org/forum/viewtopic.php?p=3641#p3641CAD&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
[[Category:OEM]] &lt;br /&gt;
[[Category:Tesla]] &lt;br /&gt;
[[Category:Charger]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_GEN2_Charger&amp;diff=5113</id>
		<title>Tesla Model S/X GEN2 Charger</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_GEN2_Charger&amp;diff=5113"/>
		<updated>2024-11-28T21:29:06Z</updated>

		<summary type="html">&lt;p&gt;Nubster: /* Replacement board connectors */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
[[File:Gen2.jpg|thumb|tesla gen2 ac charger]]&lt;br /&gt;
[[File:Tesla gen2 xray.png|thumb|Tesla Gen2 X-Ray]]&lt;br /&gt;
&lt;br /&gt;
The Tesla GEN2 on-board charger (OBC) is a single/three phase 10kW AC charger that was fitted in the Model S from approx. Oct2013&amp;lt;ref&amp;gt;https://teslamotorsclub.com/tmc/posts/6560948/&amp;lt;/ref&amp;gt; until it was replaced in the 2016 &#039;facelift&#039; model with GEN3.  It was the first Tesla OBC capable of fully utilizing external 3-phase AC; [[Tesla Model S GEN1 Charger|previous Tesla OBCs]] lacked the external wiring for three phases.&lt;br /&gt;
&lt;br /&gt;
One or two GEN2 chargers are installed beneath the rear seats in the Model S for AC charging.&lt;br /&gt;
&lt;br /&gt;
The charger is made up of three 3.3 kw modules, each sitting on a liquid cooling plate. This assembly enables both single and multi phase AC charging.&lt;br /&gt;
&lt;br /&gt;
==Important Considerations==&lt;br /&gt;
&lt;br /&gt;
===Output Voltage Range===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;background-color:#ffffcc;&amp;quot; cellpadding=&amp;quot;10&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;HEED DAMIEN&#039;S WARNING:&#039;&#039;&#039;&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=9994#p9994&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;quot;[https://openinverter.org/forum/viewtopic.php?f=10&amp;amp;t=78&amp;amp;p=9994#p9994 Running a Tesla charger at much under 200v dc will cause it to explode. Yes I know the label says 50 to 450v but it lies. Yes I blew one up discovering this.]&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Supported Tesla Part Numbers (TPN)===&lt;br /&gt;
It has been found that early revision units will not work with the OI control boards.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?t=932&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TPNs to avoid:&lt;br /&gt;
&lt;br /&gt;
*1014963-05-B and 1014963-05-C&lt;br /&gt;
&lt;br /&gt;
TPNs tested and known good:&lt;br /&gt;
&lt;br /&gt;
*1014963-00-C/E/F/J/K/L&lt;br /&gt;
**1014963-00-C &amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=34710#p34710 and also by Lars on June 25th 2024&amp;lt;/ref&amp;gt;&lt;br /&gt;
**1014963-00-G is likely also good, just wasn&#039;t mentioned by name in the referenced thread&lt;br /&gt;
&lt;br /&gt;
=== Supported Software Revisions ===&lt;br /&gt;
At this time, it is not known why but it appears that some firmware revisions of this charger will have problems with maintaining a steady charge. Symptoms of this can be either surging (current goes up, drops to near zero, then surges back) or modules coming online singly followed by all modules going offline, repeat forever. In either case, charge power will be limited. We do not yet know what, exactly, is causing this. However, it is confirmed that swapping charger units but keeping the OI control board can produce working results.&lt;br /&gt;
&lt;br /&gt;
===Cooling===&lt;br /&gt;
The direction of flow in the cooling plate does not seem to matter.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=2030#p2030&amp;lt;/ref&amp;gt; The charger should likely be on the same cooling loop as the batteries themselves. This coolant loop should be separate from the loop with the motor and inverter (they get far too hot.) Limited testing (esp 110V, 1kw) can be done without the coolant lines hooked up. However, it would be unwise to attempt 10kw charging for any length of time without liquid cooling.&lt;br /&gt;
&lt;br /&gt;
==Replacement Control Boards==&lt;br /&gt;
Replacement control board https://github.com/damienmaguire/Tesla-Charger&lt;br /&gt;
&lt;br /&gt;
v5 kit: https://www.evbmw.com/index.php/evbmw-webshop/tesla-boards/tesla-gen-2-charger-logic-board-kit&lt;br /&gt;
&lt;br /&gt;
v5 partially built board: https://www.evbmw.com/index.php/evbmw-webshop/tesla-boards/tesla-gen-2-charger-logic-board-partially-built&lt;br /&gt;
&lt;br /&gt;
github: https://github.com/damienmaguire/Tesla-Charger&lt;br /&gt;
&lt;br /&gt;
=== Charger Connections ===&lt;br /&gt;
[[File:Tesla Charger Logic connections.jpg|none|thumb|607x607px|&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!A1&lt;br /&gt;
!A2&lt;br /&gt;
!A3&lt;br /&gt;
!A4&lt;br /&gt;
!A5&lt;br /&gt;
!&lt;br /&gt;
!B1&lt;br /&gt;
!B2&lt;br /&gt;
!B3&lt;br /&gt;
!B4&lt;br /&gt;
! B5&lt;br /&gt;
!B6&lt;br /&gt;
|-&lt;br /&gt;
|OUT2 - AC present&lt;br /&gt;
|&lt;br /&gt;
|D1 - enable&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|12V supply&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|CANH&lt;br /&gt;
|Control Pilot&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!A6&lt;br /&gt;
!A7&lt;br /&gt;
! A8&lt;br /&gt;
!A9&lt;br /&gt;
!A10&lt;br /&gt;
!&lt;br /&gt;
!B7&lt;br /&gt;
!B8&lt;br /&gt;
!B9&lt;br /&gt;
!B10&lt;br /&gt;
!B11&lt;br /&gt;
!B12&lt;br /&gt;
|-&lt;br /&gt;
|OUT1 - HV enable&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|D2 - 3p&lt;br /&gt;
|&lt;br /&gt;
| GND&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|CANL&lt;br /&gt;
|Proximity&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
The outputs will not output 12v, they are low side switches. If you require a 12v ac present signal then use a relay with its coil switched from the relevant pin. [https://raw.githubusercontent.com/damienmaguire/Tesla-Charger/master/V5/Charger_Gen2_V5aB3%20-%20Schematic.pdf wiring diagram][[File:AC DC Connections.jpg|left|thumb|600x600px]]]]&lt;br /&gt;
&lt;br /&gt;
====Connector part numbers====&lt;br /&gt;
AC and DC power connections (Molex Sabre series):&lt;br /&gt;
&lt;br /&gt;
*housing: 044441-2006&lt;br /&gt;
*pins: 043375-3001 (18-20AWG), 043375-0001 (14-16AWG)&lt;br /&gt;
&lt;br /&gt;
Logic connectors (Molex MX150L series):&lt;br /&gt;
&lt;br /&gt;
*housing: 10-way 19418-0014, 12-way 19418-0026&lt;br /&gt;
*pins: 33012-2002 (18-20AWG), 33012-2001 (14-16AWG)&lt;br /&gt;
&lt;br /&gt;
=== Replacement board connectors ===&lt;br /&gt;
If you can desolder 24 pin SMD connector off of the OEM control board otherwise to order 24 pin connector from Mouser P/N is: &lt;br /&gt;
&lt;br /&gt;
* SM24B-CPTK-1A-TB(L)&lt;br /&gt;
&lt;br /&gt;
The 30 pin connector is very difficult to desolder and resolder. Replacement P/Ns are: &lt;br /&gt;
&lt;br /&gt;
* [https://www.mouser.com/ProductDetail/Samtec/IPS1-115-01-S-D-PL?qs=PB6%2FjmICvI17nbB5SDGUsw%3D%3D IPS1-115-01-S-D-PL], SAMTEC - IPS1-115-01-S-D-PL - SOCKET, 2.54MM, 2X15WAY&lt;br /&gt;
** NOTE: One of the pins is missing from this connector variant, but according to [https://openinverter.org/forum/viewtopic.php?p=27697&amp;amp;hilit=charger+pin+missing#p27697 this forum post], it&#039;s ok as long as you solder it in the correct orientation. &lt;br /&gt;
* [https://www.mouser.com/ProductDetail/Samtec/IPS1-115-01-L-D?qs=PB6%2FjmICvI3sN4zSP4IXGw%3D%3D IPS1-115-01-L-D], SAMTEC&lt;br /&gt;
** Has all 30 pins.&lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
You&#039;ll need a ST-LINK/V2 smt32 programmer.  Unofficial ones are cheaply available from amazon and ebay.&lt;br /&gt;
&lt;br /&gt;
*ST-LINK programming utility: https://www.st.com/en/development-tools/stsw-link004.html&lt;br /&gt;
* stm32_loader.hex  https://openinverter.org/forum/viewtopic.php?f=7&amp;amp;t=1119&lt;br /&gt;
&#039;&#039;&#039;Two options:&#039;&#039;&#039;&lt;br /&gt;
#Charger_gen2_v5.hex https://github.com/damienmaguire/Tesla-Charger/tree/master/V5/Software/Binary&lt;br /&gt;
#openinverter style firmware https://openinverter.org/forum/viewtopic.php?t=1323 (only available via patreon for next few weeks)&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Target --&amp;gt; Connect&amp;quot; from top menu. You want to see the screen get filled with a data dump of symbols. In the upper right of the screen you can see it identified the device. &lt;br /&gt;
&lt;br /&gt;
In the main viewing window are multiple tabs, click the &amp;quot;Binary File&amp;quot; tab to select it. &lt;br /&gt;
&lt;br /&gt;
This will ask to open a file, you choose: &amp;quot;stm32_loader.hex&amp;quot; from openinverter.org, download ahead of time. This will change what shows up in the viewing window.  &lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Target --&amp;gt; Program and Verify&amp;quot; from the top menu. This pops up a window, and you can probably just click &amp;quot;Start&amp;quot; on that window. This programs the STM32 chip with the stm32_loader.hex file.  &lt;br /&gt;
&lt;br /&gt;
The STM32 on your v5 gen2 Tesla charger Board can now load other files.   &lt;br /&gt;
&lt;br /&gt;
You can close the stm32_loader.hex tab, and go back to the &amp;quot;Binary File&amp;quot; tab, which will ask to open another file. &lt;br /&gt;
&lt;br /&gt;
You choose: &amp;quot;Charger_Gen2_v5.hex&amp;quot;  &lt;br /&gt;
&lt;br /&gt;
Same as last time, click &amp;quot;Target --&amp;gt; Program and Verify&amp;quot; from the top menu. And click Start. &lt;br /&gt;
&lt;br /&gt;
The STM32 on your v5 gen2 Tesla charger Board now also has the software to run.&lt;br /&gt;
&lt;br /&gt;
You are now done with the ST-Link USB dongle, it&#039;s no longer needed. &lt;br /&gt;
&lt;br /&gt;
Future updates can be done via WiFi. (must have esp8266 WiFi module programed https://openinverter.org/forum/viewtopic.php?f=5&amp;amp;t=8 )&lt;br /&gt;
&lt;br /&gt;
=== External CAN bus===&lt;br /&gt;
[[File:Gen2 Charger V5aB2 logic board.jpg|thumb|Gen2 Charger V5aB2 logic board with CAN wired to external pins]]&lt;br /&gt;
The V5aB2 version of the board has no connection to the external CAN bus (V5aB3 has) but you can add it with two bodge wires as shown in the picture. You will find CANH and CANL on the 3 pin header underneath the WiFi module. Route them over to CONN6 as shown. CONN2.1 (CANH) is connected to CONN6.24, CONN2.2 (CANL) to CONN6.26.&lt;br /&gt;
&lt;br /&gt;
Revision V5aB3 does not need this modification. On Revision V5aB3 you &#039;&#039;&#039;MUST&#039;&#039;&#039; close the solder jumper unless your charger is on an already terminated bus (that is, if the bus already has 2 termination resistors, one on each end, and measures 60 ohms with all devices powered off). If you do not use the external CAN, terminate the bus. If you have only two devices on the bus, terminate the bus. If you aren&#039;t sure, double check. &#039;&#039;&#039;Bus termination is important.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you attach to the external CAN bus, be aware that all internal CAN traffic is also seen on the external CAN bus. The following IDs are already used and mustn&#039;t used by any other device on the bus:&lt;br /&gt;
&lt;br /&gt;
207, 209, 20b, 217, 219, 21b, 227, 229, 22b, 237, 239, 23b, 247, 249, 24b, 327, 329, 32b, 347, 349, 34b, 357, 359, 35b, 367, 368, 369, 36b, 377, 379, 37b, 537, 539, 53b, 717, 719, 71b. &lt;br /&gt;
&lt;br /&gt;
====Functionality of external CAN bus====&lt;br /&gt;
With the CAN bus now available externally you can remote control your charger via CAN and also receive some values from it. The mapping is similar to the CHAdeMO CAN protocol. The feature is only available in the commercial firmware.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Charger CAN protocol - up to version 1.06.R&lt;br /&gt;
!ID&lt;br /&gt;
!Direction&lt;br /&gt;
!Byte 0&lt;br /&gt;
! Byte 1&lt;br /&gt;
!Byte 2&lt;br /&gt;
!Byte 3&lt;br /&gt;
!Byte 4&lt;br /&gt;
! Byte 5&lt;br /&gt;
! Byte 6&lt;br /&gt;
!Byte 7&lt;br /&gt;
|-&lt;br /&gt;
|0x102&lt;br /&gt;
|Receive by charger&lt;br /&gt;
|&lt;br /&gt;
|DC voltage limit MSB&lt;br /&gt;
|DC voltage limit LSB&lt;br /&gt;
| DC current set point&lt;br /&gt;
|==1 enable charging&lt;br /&gt;
|SoC&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x108&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|Max DC voltage MSB&lt;br /&gt;
| Max DC voltage LSB&lt;br /&gt;
|Max DC current&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x109&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|DC voltage MSB&lt;br /&gt;
|DC voltage LSB&lt;br /&gt;
|DC current&lt;br /&gt;
|&#039;&#039;0 when off, 5 when charging&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Example: transmit &amp;quot;0x102 # 0 0x1 0x86 0x14 0x1 50 0 0&amp;quot; to enable charging up to a voltage of 390V and a DC current of 20A, report SoC of 50%&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Charger CAN protocol - after version 1.06.R&lt;br /&gt;
!ID&lt;br /&gt;
!Direction&lt;br /&gt;
!Byte 0&lt;br /&gt;
!Byte 1&lt;br /&gt;
!Byte 2&lt;br /&gt;
!Byte 3&lt;br /&gt;
!Byte 4&lt;br /&gt;
!Byte 5&lt;br /&gt;
!Byte 6&lt;br /&gt;
!Byte 7&lt;br /&gt;
|-&lt;br /&gt;
| 0x102&lt;br /&gt;
|Receive by charger&lt;br /&gt;
|&lt;br /&gt;
|DC voltage limit MSB&lt;br /&gt;
|DC voltage limit LSB&lt;br /&gt;
|DC current set point&lt;br /&gt;
|&lt;br /&gt;
|==1 enable charging&lt;br /&gt;
|SoC&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x108&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|Max DC voltage MSB&lt;br /&gt;
| Max DC voltage LSB&lt;br /&gt;
|Max DC current&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x109&lt;br /&gt;
| Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|DC voltage MSB&lt;br /&gt;
|DC voltage LSB&lt;br /&gt;
|DC current&lt;br /&gt;
|&lt;br /&gt;
|0 when off, 5 when charging&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
LR: Personally I think the data for DC voltage limit is incorrect. The above states Motorola but only when I set all signals (so not only DC voltage limit as also the start bit count (sometimes) varies) to Intel it works for me.[[File:Parameter view of commercial firmware.png|thumb|Parameter view of commercial firmware]]&lt;br /&gt;
&lt;br /&gt;
===openinverter style charger firmware===&lt;br /&gt;
In addition to the open source firmware there is also an openinverter style firmware. It adds advanced features:&lt;br /&gt;
*Support for the standard open inverter web interface&lt;br /&gt;
*Parameter handling as known from the inverter firmware (see picture)&lt;br /&gt;
*Spot value handling like inverter including plotting, gauges, and logging&lt;br /&gt;
*Over the air update like inverter&lt;br /&gt;
*DC current control&lt;br /&gt;
* CAN control as described above&lt;br /&gt;
The firmware requires the board to be flashed with [https://github.com/jsphuebner/tumanako-inverter-fw-bootloader/releases stm32_loader.hex]. An Olimex MOD-ESP8266 must be programmed with the [https://github.com/jsphuebner/esp8266-web-interface openinverter web interface]. See [[Olimex MOD-WIFI-ESP8266]] and [https://openinverter.org/forum/viewtopic.php?f=5&amp;amp;t=8 this forum thread] for flashing instructions. With that done, future updates will happen via the web interface.&lt;br /&gt;
&lt;br /&gt;
The firmware will soon be fully published and is only available via patreon for now: https://www.patreon.com/openinverter&lt;br /&gt;
&lt;br /&gt;
====Connecting to the Web interface====&lt;br /&gt;
Depending on the version of your Olimex wifi dongle they are &amp;quot;open&amp;quot; or you need a password to connect.&lt;br /&gt;
&lt;br /&gt;
By default you can connect to the network (Access Point) and browse to: &#039;&#039;&#039;192.168.4.1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
By default all charger kits will have &#039;&#039;&#039;SSID&#039;&#039;&#039; : charger &#039;&#039;&#039;PASSWORD&#039;&#039;&#039; : charger123&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Its recommend that you change it. Nobody wants to drive and have some joker with a phone finding this information and accessing your charger.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Missing IC4 Chip&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
According to [https://openinverter.org/forum/viewtopic.php?p=43750&amp;amp;hilit=ic4#p43750 this forum post], IC4 used to be populated with a USB to serial FTDI chip. However, on the latest boards, all settings are configured via wifi so it is no longer needed.&lt;br /&gt;
[[File:Gen2ChargerBoard.jpg|alt=Image of Tesla Gen2 charger board with missing IC4 chip|thumb|Tesla Gen2 charger board with missing IC4 chip]]&lt;br /&gt;
&lt;br /&gt;
====Registration====&lt;br /&gt;
This step is no longer needed as the firmware will soon be published. It is already available on patreon: https://www.patreon.com/openinverter&lt;br /&gt;
&lt;br /&gt;
If you bought a fully assembled V5aB3 board from the EVBMW webshop you can skip this step.&lt;br /&gt;
&lt;br /&gt;
=== Latest Software for V5 boards and later ===&lt;br /&gt;
[[Tesla Model S/Tesla Gen23 V5 Software]] &lt;br /&gt;
&lt;br /&gt;
==Additional Resources==&lt;br /&gt;
&lt;br /&gt;
Videos by Damien Maguire showing internals of the charger, CAN IDs, wiring, and development of the board:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=LqJ7HhS65po The Tesla Project : 10 Kw Gen 2 Charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=ULadBnl7wgM The Tesla Project : Charger Progress]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mOIgp3QFg78 The Tesla Project : 10kW Charger Charging]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=BG4kYsoHe54 The Tesla Project : More Charger Hacking]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=bPLqXCiArVM The Tesla Project : Charger 10kw Run]&lt;br /&gt;
&lt;br /&gt;
A 15 min intro from a user perspective: https://www.youtube.com/watch?v=ibtr6v1k0cA&lt;br /&gt;
&lt;br /&gt;
==Common Issues==&lt;br /&gt;
&lt;br /&gt;
*The Tesla chargers are very sensitive to grounding. The case MUST be connected to vehicle 12v ground AND evse earth/ground when charging. [https://openinverter.org/forum/viewtopic.php?p=3890#p3890]&lt;br /&gt;
*With V5aB2, If you do NOT use the external CAN bus or are not properly terminated, &#039;&#039;&#039;remember to close the solder jumper&#039;&#039;&#039; next to R1 under the WiFi module. When in doubt, check the resistance of the CAN bus with all devices off. It should be 60 ohms ideally. If you are not using the external CAN then it should be 120 ohms. &lt;br /&gt;
*People had problems with unreliable connectivity between ESP8266 &amp;amp; the charger board [https://openinverter.org/wiki/Olimex_MOD-WIFI-ESP8266#Common_Issues]&lt;br /&gt;
*Firmware &#039;&#039;&#039;1.09&#039;&#039;&#039; and &#039;&#039;&#039;1.10&#039;&#039;&#039; can lose the CAN map, making the logic board go silent, reset instructions here: [https://openinverter.org/forum/viewtopic.php?p=40617&amp;amp;sid=e2369fea2b502a419f55e5aac10fe169#p40617]&lt;br /&gt;
*If a module within the charger is enabled (and all three are enabled by default) then it &#039;&#039;&#039;MUST&#039;&#039;&#039; see AC and DC voltage when charging starts. If it does not then no current will flow on any module. So, triple check your wiring before starting. It can be easy to mix up the line and neutral wires of the AC input. This will not blow up anything but it won&#039;t work either. Mixing up the DC wires is a recipe for a bad time.&lt;br /&gt;
*Some chargers are just raised wrong. As covered above, for reasons we don&#039;t know, some modules will simply refuse to work properly. Most often this will happen to chargers that were previously used in super charger stations but it can happen to chargers that were pulled from Model S cars as well. There is not yet any known fix for this. If it happens the only current solution is a different charger or you live with slow charging.&lt;br /&gt;
*Did you set the D1 enable pin to be high (+12v?) It must be high in &#039;&#039;&#039;ANY&#039;&#039;&#039; mode in order for charging to start. It is OK to tie it to the +12 incoming power if you are using something like Type2 where charging is controlled by the proximity and control pilot signals.&lt;br /&gt;
&lt;br /&gt;
==Errata==&lt;br /&gt;
Charger Dimensions: 500x300x100mm&lt;br /&gt;
&lt;br /&gt;
More specific dimensions and CAD info here: https://openinverter.org/forum/viewtopic.php?p=3641#p3641CAD&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
[[Category:OEM]] &lt;br /&gt;
[[Category:Tesla]] &lt;br /&gt;
[[Category:Charger]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_GEN2_Charger&amp;diff=5055</id>
		<title>Tesla Model S/X GEN2 Charger</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_GEN2_Charger&amp;diff=5055"/>
		<updated>2024-10-29T18:21:17Z</updated>

		<summary type="html">&lt;p&gt;Nubster: /* Missing IC4 Chip Explanation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
[[File:Gen2.jpg|thumb|tesla gen2 ac charger]]&lt;br /&gt;
[[File:Tesla gen2 xray.png|thumb|Tesla Gen2 X-Ray]]&lt;br /&gt;
&lt;br /&gt;
The Tesla GEN2 on-board charger (OBC) is a single/three phase 10kW AC charger that was fitted in the Model S from approx. Oct2013&amp;lt;ref&amp;gt;https://teslamotorsclub.com/tmc/posts/6560948/&amp;lt;/ref&amp;gt; until it was replaced in the 2016 &#039;facelift&#039; model with GEN3.  It was the first Tesla OBC capable of fully utilizing external 3-phase AC; [[Tesla Model S GEN1 Charger|previous Tesla OBCs]] lacked the external wiring for three phases.&lt;br /&gt;
&lt;br /&gt;
One or two GEN2 chargers are installed beneath the rear seats in the Model S for AC charging.&lt;br /&gt;
&lt;br /&gt;
The charger is made up of three 3.3 kw modules, each sitting on a liquid cooling plate. This assembly enables both single and multi phase AC charging.&lt;br /&gt;
&lt;br /&gt;
==Important Considerations==&lt;br /&gt;
&lt;br /&gt;
===Output Voltage Range===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;background-color:#ffffcc;&amp;quot; cellpadding=&amp;quot;10&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;HEED DAMIEN&#039;S WARNING:&#039;&#039;&#039;&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=9994#p9994&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;quot;[https://openinverter.org/forum/viewtopic.php?f=10&amp;amp;t=78&amp;amp;p=9994#p9994 Running a Tesla charger at much under 200v dc will cause it to explode. Yes I know the label says 50 to 450v but it lies. Yes I blew one up discovering this.]&amp;quot;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Supported Tesla Part Numbers (TPN)===&lt;br /&gt;
It has been found that early revision units will not work with the OI control boards.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?t=932&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TPNs to avoid:&lt;br /&gt;
&lt;br /&gt;
*1014963-05-B and 1014963-05-C&lt;br /&gt;
&lt;br /&gt;
TPNs tested and known good:&lt;br /&gt;
&lt;br /&gt;
*1014963-00-C/E/F/J/K/L&lt;br /&gt;
**1014963-00-C &amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=34710#p34710 and also by Lars on June 25th 2024&amp;lt;/ref&amp;gt;&lt;br /&gt;
**1014963-00-G is likely also good, just wasn&#039;t mentioned by name in the referenced thread&lt;br /&gt;
&lt;br /&gt;
=== Supported Software Revisions ===&lt;br /&gt;
At this time, it is not known why but it appears that some firmware revisions of this charger will have problems with maintaining a steady charge. Symptoms of this can be either surging (current goes up, drops to near zero, then surges back) or modules coming online singly followed by all modules going offline, repeat forever. In either case, charge power will be limited. We do not yet know what, exactly, is causing this. However, it is confirmed that swapping charger units but keeping the OI control board can produce working results.&lt;br /&gt;
&lt;br /&gt;
===Cooling===&lt;br /&gt;
The direction of flow in the cooling plate does not seem to matter.&amp;lt;ref&amp;gt;https://openinverter.org/forum/viewtopic.php?p=2030#p2030&amp;lt;/ref&amp;gt; The charger should likely be on the same cooling loop as the batteries themselves. This coolant loop should be separate from the loop with the motor and inverter (they get far too hot.) Limited testing (esp 110V, 1kw) can be done without the coolant lines hooked up. However, it would be unwise to attempt 10kw charging for any length of time without liquid cooling.&lt;br /&gt;
&lt;br /&gt;
==Replacement Control Boards==&lt;br /&gt;
Replacement control board https://github.com/damienmaguire/Tesla-Charger&lt;br /&gt;
&lt;br /&gt;
v5 kit: https://www.evbmw.com/index.php/evbmw-webshop/tesla-boards/tesla-gen-2-charger-logic-board-kit&lt;br /&gt;
&lt;br /&gt;
v5 partially built board: https://www.evbmw.com/index.php/evbmw-webshop/tesla-boards/tesla-gen-2-charger-logic-board-partially-built&lt;br /&gt;
&lt;br /&gt;
github: https://github.com/damienmaguire/Tesla-Charger&lt;br /&gt;
&lt;br /&gt;
=== Charger Connections ===&lt;br /&gt;
[[File:Tesla Charger Logic connections.jpg|none|thumb|607x607px|&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!A1&lt;br /&gt;
!A2&lt;br /&gt;
!A3&lt;br /&gt;
!A4&lt;br /&gt;
!A5&lt;br /&gt;
!&lt;br /&gt;
!B1&lt;br /&gt;
!B2&lt;br /&gt;
!B3&lt;br /&gt;
!B4&lt;br /&gt;
! B5&lt;br /&gt;
!B6&lt;br /&gt;
|-&lt;br /&gt;
|OUT2 - AC present&lt;br /&gt;
|&lt;br /&gt;
|D1 - enable&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|12V supply&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|CANH&lt;br /&gt;
|Control Pilot&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!A6&lt;br /&gt;
!A7&lt;br /&gt;
! A8&lt;br /&gt;
!A9&lt;br /&gt;
!A10&lt;br /&gt;
!&lt;br /&gt;
!B7&lt;br /&gt;
!B8&lt;br /&gt;
!B9&lt;br /&gt;
!B10&lt;br /&gt;
!B11&lt;br /&gt;
!B12&lt;br /&gt;
|-&lt;br /&gt;
|OUT1 - HV enable&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|D2 - 3p&lt;br /&gt;
|&lt;br /&gt;
| GND&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|CANL&lt;br /&gt;
|Proximity&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
The outputs will not output 12v, they are low side switches. If you require a 12v ac present signal then use a relay with its coil switched from the relevant pin. [https://raw.githubusercontent.com/damienmaguire/Tesla-Charger/master/V5/Charger_Gen2_V5aB3%20-%20Schematic.pdf wiring diagram][[File:AC DC Connections.jpg|left|thumb|600x600px]]]]&lt;br /&gt;
&lt;br /&gt;
====Connector part numbers====&lt;br /&gt;
AC and DC power connections (Molex Sabre series):&lt;br /&gt;
&lt;br /&gt;
*housing: 044441-2006&lt;br /&gt;
*pins: 043375-3001 (18-20AWG), 043375-0001 (14-16AWG)&lt;br /&gt;
&lt;br /&gt;
Logic connectors (Molex MX150L series):&lt;br /&gt;
&lt;br /&gt;
*housing: 10-way 19418-0014, 12-way 19418-0026&lt;br /&gt;
*pins: 33012-2002 (18-20AWG), 33012-2001 (14-16AWG)&lt;br /&gt;
&lt;br /&gt;
=== Replacement board connectors ===&lt;br /&gt;
If you can desolder 24 pin SMD connector off of the OEM control board otherwise to order 24 pin connector from Mouser P/N is: &lt;br /&gt;
&lt;br /&gt;
* SM24B-CPTK-1A-TB(L)&lt;br /&gt;
&lt;br /&gt;
The 30 pin connector is very difficult to desolder and resolder. Replacement P/N is: &lt;br /&gt;
&lt;br /&gt;
* IPS1-115-01-S-D-PL, SAMTEC - IPS1-115-01-S-D-PL - SOCKET, 2.54MM, 2X15WAY &lt;br /&gt;
&lt;br /&gt;
===Programming===&lt;br /&gt;
You&#039;ll need a ST-LINK/V2 smt32 programmer.  Unofficial ones are cheaply available from amazon and ebay.&lt;br /&gt;
&lt;br /&gt;
*ST-LINK programming utility: https://www.st.com/en/development-tools/stsw-link004.html&lt;br /&gt;
* stm32_loader.hex  https://openinverter.org/forum/viewtopic.php?f=7&amp;amp;t=1119&lt;br /&gt;
&#039;&#039;&#039;Two options:&#039;&#039;&#039;&lt;br /&gt;
#Charger_gen2_v5.hex https://github.com/damienmaguire/Tesla-Charger/tree/master/V5/Software/Binary&lt;br /&gt;
#openinverter style firmware https://openinverter.org/forum/viewtopic.php?t=1323 (only available via patreon for next few weeks)&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Target --&amp;gt; Connect&amp;quot; from top menu. You want to see the screen get filled with a data dump of symbols. In the upper right of the screen you can see it identified the device. &lt;br /&gt;
&lt;br /&gt;
In the main viewing window are multiple tabs, click the &amp;quot;Binary File&amp;quot; tab to select it. &lt;br /&gt;
&lt;br /&gt;
This will ask to open a file, you choose: &amp;quot;stm32_loader.hex&amp;quot; from openinverter.org, download ahead of time. This will change what shows up in the viewing window.  &lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Target --&amp;gt; Program and Verify&amp;quot; from the top menu. This pops up a window, and you can probably just click &amp;quot;Start&amp;quot; on that window. This programs the STM32 chip with the stm32_loader.hex file.  &lt;br /&gt;
&lt;br /&gt;
The STM32 on your v5 gen2 Tesla charger Board can now load other files.   &lt;br /&gt;
&lt;br /&gt;
You can close the stm32_loader.hex tab, and go back to the &amp;quot;Binary File&amp;quot; tab, which will ask to open another file. &lt;br /&gt;
&lt;br /&gt;
You choose: &amp;quot;Charger_Gen2_v5.hex&amp;quot;  &lt;br /&gt;
&lt;br /&gt;
Same as last time, click &amp;quot;Target --&amp;gt; Program and Verify&amp;quot; from the top menu. And click Start. &lt;br /&gt;
&lt;br /&gt;
The STM32 on your v5 gen2 Tesla charger Board now also has the software to run.&lt;br /&gt;
&lt;br /&gt;
You are now done with the ST-Link USB dongle, it&#039;s no longer needed. &lt;br /&gt;
&lt;br /&gt;
Future updates can be done via WiFi. (must have esp8266 WiFi module programed https://openinverter.org/forum/viewtopic.php?f=5&amp;amp;t=8 )&lt;br /&gt;
&lt;br /&gt;
=== External CAN bus===&lt;br /&gt;
[[File:Gen2 Charger V5aB2 logic board.jpg|thumb|Gen2 Charger V5aB2 logic board with CAN wired to external pins]]&lt;br /&gt;
The V5aB2 version of the board has no connection to the external CAN bus (V5aB3 has) but you can add it with two bodge wires as shown in the picture. You will find CANH and CANL on the 3 pin header underneath the WiFi module. Route them over to CONN6 as shown. CONN2.1 (CANH) is connected to CONN6.24, CONN2.2 (CANL) to CONN6.26.&lt;br /&gt;
&lt;br /&gt;
Revision V5aB3 does not need this modification. On Revision V5aB3 you &#039;&#039;&#039;MUST&#039;&#039;&#039; close the solder jumper unless your charger is on an already terminated bus (that is, if the bus already has 2 termination resistors, one on each end, and measures 60 ohms with all devices powered off). If you do not use the external CAN, terminate the bus. If you have only two devices on the bus, terminate the bus. If you aren&#039;t sure, double check. &#039;&#039;&#039;Bus termination is important.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you attach to the external CAN bus, be aware that all internal CAN traffic is also seen on the external CAN bus. The following IDs are already used and mustn&#039;t used by any other device on the bus:&lt;br /&gt;
&lt;br /&gt;
207, 209, 20b, 217, 219, 21b, 227, 229, 22b, 237, 239, 23b, 247, 249, 24b, 327, 329, 32b, 347, 349, 34b, 357, 359, 35b, 367, 368, 369, 36b, 377, 379, 37b, 537, 539, 53b, 717, 719, 71b. &lt;br /&gt;
&lt;br /&gt;
====Functionality of external CAN bus====&lt;br /&gt;
With the CAN bus now available externally you can remote control your charger via CAN and also receive some values from it. The mapping is similar to the CHAdeMO CAN protocol. The feature is only available in the commercial firmware.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Charger CAN protocol - up to version 1.06.R&lt;br /&gt;
!ID&lt;br /&gt;
!Direction&lt;br /&gt;
!Byte 0&lt;br /&gt;
! Byte 1&lt;br /&gt;
!Byte 2&lt;br /&gt;
!Byte 3&lt;br /&gt;
!Byte 4&lt;br /&gt;
! Byte 5&lt;br /&gt;
! Byte 6&lt;br /&gt;
!Byte 7&lt;br /&gt;
|-&lt;br /&gt;
|0x102&lt;br /&gt;
|Receive by charger&lt;br /&gt;
|&lt;br /&gt;
|DC voltage limit MSB&lt;br /&gt;
|DC voltage limit LSB&lt;br /&gt;
| DC current set point&lt;br /&gt;
|==1 enable charging&lt;br /&gt;
|SoC&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x108&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|Max DC voltage MSB&lt;br /&gt;
| Max DC voltage LSB&lt;br /&gt;
|Max DC current&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x109&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|DC voltage MSB&lt;br /&gt;
|DC voltage LSB&lt;br /&gt;
|DC current&lt;br /&gt;
|&#039;&#039;0 when off, 5 when charging&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
Example: transmit &amp;quot;0x102 # 0 0x1 0x86 0x14 0x1 50 0 0&amp;quot; to enable charging up to a voltage of 390V and a DC current of 20A, report SoC of 50%&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Charger CAN protocol - after version 1.06.R&lt;br /&gt;
!ID&lt;br /&gt;
!Direction&lt;br /&gt;
!Byte 0&lt;br /&gt;
!Byte 1&lt;br /&gt;
!Byte 2&lt;br /&gt;
!Byte 3&lt;br /&gt;
!Byte 4&lt;br /&gt;
!Byte 5&lt;br /&gt;
!Byte 6&lt;br /&gt;
!Byte 7&lt;br /&gt;
|-&lt;br /&gt;
| 0x102&lt;br /&gt;
|Receive by charger&lt;br /&gt;
|&lt;br /&gt;
|DC voltage limit MSB&lt;br /&gt;
|DC voltage limit LSB&lt;br /&gt;
|DC current set point&lt;br /&gt;
|&lt;br /&gt;
|==1 enable charging&lt;br /&gt;
|SoC&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x108&lt;br /&gt;
|Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|Max DC voltage MSB&lt;br /&gt;
| Max DC voltage LSB&lt;br /&gt;
|Max DC current&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|0x109&lt;br /&gt;
| Transmit by charger&lt;br /&gt;
|Version=0&lt;br /&gt;
|DC voltage MSB&lt;br /&gt;
|DC voltage LSB&lt;br /&gt;
|DC current&lt;br /&gt;
|&lt;br /&gt;
|0 when off, 5 when charging&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
LR: Personally I think the data for DC voltage limit is incorrect. The above states Motorola but only when I set all signals (so not only DC voltage limit as also the start bit count (sometimes) varies) to Intel it works for me.[[File:Parameter view of commercial firmware.png|thumb|Parameter view of commercial firmware]]&lt;br /&gt;
&lt;br /&gt;
===openinverter style charger firmware===&lt;br /&gt;
In addition to the open source firmware there is also an openinverter style firmware. It adds advanced features:&lt;br /&gt;
*Support for the standard open inverter web interface&lt;br /&gt;
*Parameter handling as known from the inverter firmware (see picture)&lt;br /&gt;
*Spot value handling like inverter including plotting, gauges, and logging&lt;br /&gt;
*Over the air update like inverter&lt;br /&gt;
*DC current control&lt;br /&gt;
* CAN control as described above&lt;br /&gt;
The firmware requires the board to be flashed with [https://github.com/jsphuebner/tumanako-inverter-fw-bootloader/releases stm32_loader.hex]. An Olimex MOD-ESP8266 must be programmed with the [https://github.com/jsphuebner/esp8266-web-interface openinverter web interface]. See [[Olimex MOD-WIFI-ESP8266]] and [https://openinverter.org/forum/viewtopic.php?f=5&amp;amp;t=8 this forum thread] for flashing instructions. With that done, future updates will happen via the web interface.&lt;br /&gt;
&lt;br /&gt;
The firmware will soon be fully published and is only available via patreon for now: https://www.patreon.com/openinverter&lt;br /&gt;
&lt;br /&gt;
====Connecting to the Web interface====&lt;br /&gt;
Depending on the version of your Olimex wifi dongle they are &amp;quot;open&amp;quot; or you need a password to connect.&lt;br /&gt;
&lt;br /&gt;
By default you can connect to the network (Access Point) and browse to: &#039;&#039;&#039;192.168.4.1&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
By default all charger kits will have &#039;&#039;&#039;SSID&#039;&#039;&#039; : charger &#039;&#039;&#039;PASSWORD&#039;&#039;&#039; : charger123&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: Its recommend that you change it. Nobody wants to drive and have some joker with a phone finding this information and accessing your charger.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Missing IC4 Chip&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
According to [https://openinverter.org/forum/viewtopic.php?p=43750&amp;amp;hilit=ic4#p43750 this forum post], IC4 used to be populated with a USB to serial FTDI chip. However, on the latest boards, all settings are configured via wifi so it is no longer needed.&lt;br /&gt;
[[File:Gen2ChargerBoard.jpg|alt=Image of Tesla Gen2 charger board with missing IC4 chip|thumb|Tesla Gen2 charger board with missing IC4 chip]]&lt;br /&gt;
&lt;br /&gt;
====Registration====&lt;br /&gt;
This step is no longer needed as the firmware will soon be published. It is already available on patreon: https://www.patreon.com/openinverter&lt;br /&gt;
&lt;br /&gt;
If you bought a fully assembled V5aB3 board from the EVBMW webshop you can skip this step.&lt;br /&gt;
&lt;br /&gt;
=== Latest Software for V5 boards and later ===&lt;br /&gt;
[[Tesla Model S/Tesla Gen23 V5 Software]] &lt;br /&gt;
&lt;br /&gt;
==Additional Resources==&lt;br /&gt;
&lt;br /&gt;
Videos by Damien Maguire showing internals of the charger, CAN IDs, wiring, and development of the board:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=LqJ7HhS65po The Tesla Project : 10 Kw Gen 2 Charger]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=ULadBnl7wgM The Tesla Project : Charger Progress]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=mOIgp3QFg78 The Tesla Project : 10kW Charger Charging]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=BG4kYsoHe54 The Tesla Project : More Charger Hacking]&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=bPLqXCiArVM The Tesla Project : Charger 10kw Run]&lt;br /&gt;
&lt;br /&gt;
A 15 min intro from a user perspective: https://www.youtube.com/watch?v=ibtr6v1k0cA&lt;br /&gt;
&lt;br /&gt;
==Common Issues==&lt;br /&gt;
&lt;br /&gt;
*The Tesla chargers are very sensitive to grounding. The case MUST be connected to vehicle 12v ground AND evse earth/ground when charging. [https://openinverter.org/forum/viewtopic.php?p=3890#p3890]&lt;br /&gt;
*With V5aB2, If you do NOT use the external CAN bus or are not properly terminated, &#039;&#039;&#039;remember to close the solder jumper&#039;&#039;&#039; next to R1 under the WiFi module. When in doubt, check the resistance of the CAN bus with all devices off. It should be 60 ohms ideally. If you are not using the external CAN then it should be 120 ohms. &lt;br /&gt;
*People had problems with unreliable connectivity between ESP8266 &amp;amp; the charger board [https://openinverter.org/wiki/Olimex_MOD-WIFI-ESP8266#Common_Issues]&lt;br /&gt;
*Firmware &#039;&#039;&#039;1.09&#039;&#039;&#039; and &#039;&#039;&#039;1.10&#039;&#039;&#039; can lose the CAN map, making the logic board go silent, reset instructions here: [https://openinverter.org/forum/viewtopic.php?p=40617&amp;amp;sid=e2369fea2b502a419f55e5aac10fe169#p40617]&lt;br /&gt;
*If a module within the charger is enabled (and all three are enabled by default) then it &#039;&#039;&#039;MUST&#039;&#039;&#039; see AC and DC voltage when charging starts. If it does not then no current will flow on any module. So, triple check your wiring before starting. It can be easy to mix up the line and neutral wires of the AC input. This will not blow up anything but it won&#039;t work either. Mixing up the DC wires is a recipe for a bad time.&lt;br /&gt;
*Some chargers are just raised wrong. As covered above, for reasons we don&#039;t know, some modules will simply refuse to work properly. Most often this will happen to chargers that were previously used in super charger stations but it can happen to chargers that were pulled from Model S cars as well. There is not yet any known fix for this. If it happens the only current solution is a different charger or you live with slow charging.&lt;br /&gt;
*Did you set the D1 enable pin to be high (+12v?) It must be high in &#039;&#039;&#039;ANY&#039;&#039;&#039; mode in order for charging to start. It is OK to tie it to the +12 incoming power if you are using something like Type2 where charging is controlled by the proximity and control pilot signals.&lt;br /&gt;
&lt;br /&gt;
==Errata==&lt;br /&gt;
Charger Dimensions: 500x300x100mm&lt;br /&gt;
&lt;br /&gt;
More specific dimensions and CAD info here: https://openinverter.org/forum/viewtopic.php?p=3641#p3641CAD&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
[[Category:OEM]] &lt;br /&gt;
[[Category:Tesla]] &lt;br /&gt;
[[Category:Charger]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=File:Gen2ChargerBoard.jpg&amp;diff=5054</id>
		<title>File:Gen2ChargerBoard.jpg</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=File:Gen2ChargerBoard.jpg&amp;diff=5054"/>
		<updated>2024-10-29T18:17:09Z</updated>

		<summary type="html">&lt;p&gt;Nubster: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Gen2 Charger board with missing IC4 chip&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Large_Drive_Unit_(%22LDU%22)&amp;diff=5033</id>
		<title>Tesla Model S/X Large Drive Unit (&quot;LDU&quot;)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Large_Drive_Unit_(%22LDU%22)&amp;diff=5033"/>
		<updated>2024-10-20T21:10:01Z</updated>

		<summary type="html">&lt;p&gt;Nubster: /* Encoder Plug */ pin mappings&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
[[File:Tesla LDU.jpg|alt=Tesla LDU|thumb|Tesla Large Drive Unit]]&lt;br /&gt;
The Tesla Model S/X Large Drive Unit (LDU) was the first drive unit produced by Tesla dating back to the launch of the Model S in 2012. Applications include RWD Model S &amp;amp; X, as well as performance AWD S &amp;amp; X - in both cases serving as the rear drive unit. &lt;br /&gt;
&lt;br /&gt;
=== Specs: ===&lt;br /&gt;
&lt;br /&gt;
* Weight: 291 lbs (132 kg)&lt;br /&gt;
* Input Voltage: 240-404V DC&lt;br /&gt;
* Power: 335 kW (~450HP) to 475 kW (~636 HP) depending on configuration&lt;br /&gt;
* Torque: 450 Nm (~332 ft/lb) to 650 Nm (~480 ft/lb) depending on configuration&lt;br /&gt;
* Max RPM: 18,000&lt;br /&gt;
* Gear ratio: 9.73:1&lt;br /&gt;
&lt;br /&gt;
== Connections ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
[[File:LDU connection diagram.png|thumb|489x489px|LDU connection diagram|none]][[File:HV wiring.jpg|thumb|487x487px|HV wiring with precharge and main contactors|none]]&lt;br /&gt;
=== Low-Voltage ===&lt;br /&gt;
&lt;br /&gt;
==== Main I/O Plug ====&lt;br /&gt;
The main low-voltage connector is a 23-pin socket from the TE AMPSEAL family:&lt;br /&gt;
&lt;br /&gt;
* Housing (F): 770680-1&lt;br /&gt;
* Pins (F): 770520-1 (20-16 AWG)&lt;br /&gt;
&lt;br /&gt;
===== Connector Mapping/Pinout =====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;PIN NUMBER&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;OEM&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;OPEN SOURCE&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;1&#039;&#039;&#039;&lt;br /&gt;
|IGN +12V&lt;br /&gt;
|IGN +12V&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;2&#039;&#039;&#039;&lt;br /&gt;
|BRAKE ON N.O.&lt;br /&gt;
|BRAKE ON&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;3&#039;&#039;&#039;&lt;br /&gt;
|BRAKE OFF N.C.&lt;br /&gt;
|PRECHARGE RELAY&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;4&#039;&#039;&#039;&lt;br /&gt;
|CAN HIGH&lt;br /&gt;
|CAN HIGH&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;5&#039;&#039;&#039;&lt;br /&gt;
|CAN LOW&lt;br /&gt;
|CAN LOW&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;6&#039;&#039;&#039;&lt;br /&gt;
|CHG PROXIMITY&lt;br /&gt;
|MAIN CONTACTOR&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;7&#039;&#039;&#039;&lt;br /&gt;
|HVIL IN&lt;br /&gt;
|FORWARD&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;8&#039;&#039;&#039;&lt;br /&gt;
|HVIL OUT&lt;br /&gt;
|REVERSE&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;9&#039;&#039;&#039;&lt;br /&gt;
|ENC +5V&lt;br /&gt;
|ENC +5V&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;10&#039;&#039;&#039;&lt;br /&gt;
|ENC A&lt;br /&gt;
|ENC A&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;11&#039;&#039;&#039;&lt;br /&gt;
|GND&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;12&#039;&#039;&#039;&lt;br /&gt;
|ACCEL 1 +5V&lt;br /&gt;
|ACCEL 5V&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;13&#039;&#039;&#039;&lt;br /&gt;
|ACCEL 1&lt;br /&gt;
|ACCEL INPUT&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;14&#039;&#039;&#039;&lt;br /&gt;
|ACCEL 2&lt;br /&gt;
|BRAKE TRANSDUCER&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;15&#039;&#039;&#039;&lt;br /&gt;
|ACCEL 1 GND&lt;br /&gt;
|ACCEL GND&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;16&#039;&#039;&#039;&lt;br /&gt;
|ENC B&lt;br /&gt;
|ENC B&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;17&#039;&#039;&#039;&lt;br /&gt;
|ENC GND&lt;br /&gt;
|ENC GND&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;18&#039;&#039;&#039;&lt;br /&gt;
|ENC SHIELD&lt;br /&gt;
|ENC SHIELD&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;19&#039;&#039;&#039;&lt;br /&gt;
|CAN HIGH OUT&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;20&#039;&#039;&#039;&lt;br /&gt;
|CAN LOW OUT&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;21&#039;&#039;&#039;&lt;br /&gt;
|ACCEL 2 +5V&lt;br /&gt;
|CRUISE IN&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;22&#039;&#039;&#039;&lt;br /&gt;
|ACCEL 2 GND&lt;br /&gt;
|GND&lt;br /&gt;
|-&lt;br /&gt;
|&#039;&#039;&#039;23&#039;&#039;&#039;&lt;br /&gt;
|12V ALWAYS T30&lt;br /&gt;
|START&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Encoder Plug ====&lt;br /&gt;
A smaller 4 pin LV connector is responsible for the encoder signals. The plug is TE 444046-1; this part is EoL from TE, however the connector is [https://www.aliexpress.com/w/wholesale-444046%2525252d1.html widely available on Aliexpress].&lt;br /&gt;
&lt;br /&gt;
Per the [https://openinverter.org/forum/viewtopic.php?p=1026#p1026 Tesla Large Drive Unit Support Thread] :&lt;br /&gt;
&lt;br /&gt;
* Pin 1 of the Encoder connector to Pin 17 of the 23way ampseal main connector&lt;br /&gt;
* Pin 2 of the Encoder connector to Pin 16 of the 23way ampseal main connector&lt;br /&gt;
* Pin 3 of the Encoder connector to Pin 10 of the 23way ampseal main connector&lt;br /&gt;
* Pin 4 of the Encoder connector to Pin 9 of the 23way ampseal main connector&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Contactors&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Please note that the contactors you purchase *may* have polarity associated with them for the low voltage control signal.  If you have problems related to the pre-charge circuit working, or contactors behaving as not expected, check this!&lt;br /&gt;
&lt;br /&gt;
=== High-Voltage ===&lt;br /&gt;
The OEM LDU HV cables&#039; insulation OD is ~.680&amp;quot; (17.3mm) (verified for the &amp;quot;early&amp;quot; Model S units).  The HV cables are EMC shielded, and use proprietary EMC cable glands which are not available separately.  Fellten supplies custom aftermarket cable glands to fit the LDU&#039;s case and aftermarket 70mm&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; shielded cabling&amp;lt;ref&amp;gt;https://shop.fellten.com/shop/lduhvcg-ldu-high-voltage-cable-gland-12803#attr=&amp;lt;/ref&amp;gt;.  The early Model S LDU cables are ~44&amp;quot; (1120mm) in length.  One part No. for the cables set is 1004872-00-B.&lt;br /&gt;
[[File:Tesla Model S LDU HV Cables 1004872-00-B 05b.jpg|alt=Tesla Model S LDU HV Cables&#039; proprietary gland connector.|thumb|450x450px|Tesla Model S LDU HV Cables&#039; proprietary gland connector.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Tesla Model S LDU HV Cables 1004872-00-B 03-1b.png|alt=Tesla Model S LDU HV Cables&#039; proprietary gland connector.|center|thumb|Tesla Model S LDU HV Cables&#039; proprietary gland connector.]]&lt;br /&gt;
The OD of the casting where the external o-ring is located is ~1.030&amp;quot; (26.2mm).  The OEM gland nuts are plated and are often found in a corroded state.&lt;br /&gt;
&lt;br /&gt;
== Tesla Large Drive Unit Logic Board ==&lt;br /&gt;
An openinverter based control board has been made available by Damien Maguire. A &amp;quot;community edition&amp;quot; (i.e. mostly complete) version is available [https://openinverter.org/shop/index.php?route=product/product&amp;amp;product_id=64 here on the OI webshop], or you can have your own made from info contained in [https://github.com/damienmaguire/Tesla-Drive-Unit Damien&#039;s LDU github repo].&lt;br /&gt;
&lt;br /&gt;
This board replaces the original board that comes with the OEM Tesla drive train. As opposed to the latter, this board lets you use the drive train in the first place and allows you to fine-tune driving behaviour with the usual set of openinverter parameters. It does not restrict you in power output or regen input.&lt;br /&gt;
&lt;br /&gt;
You can fully control the board via CAN or via a set of digital and analog inputs.&lt;br /&gt;
&lt;br /&gt;
=== Application Info ===&lt;br /&gt;
If you buy the board from the openinverter shop it comes programmed with a recent software version. Please check [https://github.com/jsphuebner/stm32-sine/releases github] for recent software releases. In addition the board comes with a set of parameters appropriate to run the Tesla LDU. So it will work out of the box. Parameters that must not be changed are hidden to eliminate sources of error.&lt;br /&gt;
&lt;br /&gt;
You will need to solder the supplied connectors to the board. The drive unit connectors will plug right in.&lt;br /&gt;
&lt;br /&gt;
To test run your drive unit, supply the board with 12V and GND on the Ampseal connector. Also supply 12V „Forward“ to select forward direction.&lt;br /&gt;
&lt;br /&gt;
Supply inverter with some high voltage. For first tests it is recommended to put a large resistor/heating element/kettle in series.&lt;br /&gt;
&lt;br /&gt;
You can start in manual mode using the button on the web interface and enter like 1Hz for „Fslipspnt“ and some value between 10-50 for „ampnom“ to see if the motor spins up. Be careful because manual mode does not enforce a motor speed limit! However, „Fslipspnt“ sets the base speed requested of the motor. Setting it to 1Hz will spin the motor very slowly. Setting it to 5, 10, or 15Hz will spin it progressively faster. For any given speed you will need to experiment with „ampnom“ to find a happy place where enough current is allowed to flow but not too much. Finding a good set of values should make your motor spin reasonably smoothly.  Also check the „Boost“ as it may require an increased value of 5000-10000.&lt;br /&gt;
&lt;br /&gt;
You may also set parameter „udcsw“ and „udcmin“ to 0 and start drive mode by pulsing 12V on „Start“. Then connect a pot between 5V, GND and „Pot“ (wiper). This will also spin the motor AND enforce a speed limit.&lt;br /&gt;
&lt;br /&gt;
By default the inverter is controlled as above - by using digital I/O and directly connecting an accelerator pedal. However, it is also possible to control it directly over CAN: [[CAN communication]]&lt;br /&gt;
&lt;br /&gt;
CAN control could be used to control the inverter via an external VCU such as the Zombie (not yet supported).&lt;br /&gt;
&lt;br /&gt;
==== Additional Resources ====&lt;br /&gt;
[https://openinverter.org/parameters/view.html?id=16 Parameters]&lt;br /&gt;
&lt;br /&gt;
[[Tesla Setup FAQ]]&lt;br /&gt;
&lt;br /&gt;
== Tuning and Parameters ==&lt;br /&gt;
There are several tuning threads and sets of shared parameters on the Open Inverter Forum.  The two most useful collections are: [https://openinverter.org/forum/viewtopic.php?t=195&amp;amp;hilit=parameters Original Parameter Sharing Thread] and the [https://openinverter.org/forum/viewtopic.php?t=126 Tuning Discussion Thread].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The tuning guide [https://openinverter.org/forum/viewtopic.php?p=15385#p15385 here] has lots of useful information regarding the impact of various parameters on the LDU.&lt;br /&gt;
&lt;br /&gt;
The main Open Inverter parameter definition page is located [[Parameters|here]].&lt;br /&gt;
&lt;br /&gt;
== Failure Modes ==&lt;br /&gt;
&lt;br /&gt;
=== Encoder Issues ===&lt;br /&gt;
It is not uncommon to have issues with the encoder on these drive units. The encoder is connected via a 4 wire cable from the 23 pin external connector of the drive unit to the encoder which is situated on the opposite side of the drive unit. The biggest sign of encoder problems is the motor &amp;quot;bucking&amp;quot; back and forth and not wanting to spin properly in the requested direction. It may spin the direction you&#039;ve asked for but roughly and with great trouble. This situation needs to be corrected. There are a number of things that could be wrong:&lt;br /&gt;
&lt;br /&gt;
# The wires may be broken. You should attempt a continuity check of each of the wires.&lt;br /&gt;
# The encoder signals may be backward. There are two channels - A and B. They must be presented to the inverter in the proper order. If this is in doubt, try swapping them.&lt;br /&gt;
# One of the encoder signals may be missing. As above, there should always be two channels. They&#039;re &amp;quot;quadrature&amp;quot; which means that they fire 90 degrees apart.&lt;br /&gt;
&lt;br /&gt;
To check the encoder signals you should have either a logic analyzer or an oscilloscope. Both come in a wide range of prices. The encoder signal is not particularly fast, especially when the motor is not spinning that fast. As such, even cheap test equipment can be adequate. You may find that there is no particularly good place to connect to in order to read the encoder signals. But, there does exist a reasonable place - right at the 20 pin connector on the LDU board where the 23 pin external connector&#039;s wires are routed. If your logic analyzer or oscilloscope has little grabber adapters you can do something like in this picture:&lt;br /&gt;
[[File:ClipsOnPins-LDUEncoder.jpg|frame]]&lt;br /&gt;
&lt;br /&gt;
The pins on this connector are numbered starting with 1 at the far right and going more positive toward the left until you get to pin 20.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+&lt;br /&gt;
!Pin Number&lt;br /&gt;
!Function&lt;br /&gt;
|-&lt;br /&gt;
|5&lt;br /&gt;
|Encoder 5V Source&lt;br /&gt;
|-&lt;br /&gt;
|6&lt;br /&gt;
|Encoder A Channel&lt;br /&gt;
|-&lt;br /&gt;
|7&lt;br /&gt;
|Encoder B Channel&lt;br /&gt;
|-&lt;br /&gt;
|8&lt;br /&gt;
|Encoder Ground&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, in the picture, channel 0 is connected to encoder 5v (to monitor that voltage is properly there), channel 1 is connected to the A channel of the encoder, channel 2 is connected to the B encoder channel, and scope ground is connected to the encoder ground wire. This allows for monitoring all of the relevant signals. But, keep in mind not to short any pins while doing this. Very fine probes will be needed and extreme caution not to clip two pins together. The clips/grabbers in this picture are from a Saleae Logic Pro 8. This is *NOT* your cheapest option for monitoring encoder signals but does work very well. It also doubles as a 50Mhz oscilloscope which can be handy. Cheaper options (including knock offs of Saleae Logic) do exist.&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;
Here is a picture of what it may look like when one encoder signal is missing:&lt;br /&gt;
[[File:Logic Encoder1.png|center|frame|Note how Channel 1 shows an encoder signal but Channel 2 looks completely flat. This should not occur. If one is showing a signal, so should the other.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Another good way to check the encoder is to use the steps to enter manual mode but do not set &amp;quot;Fslipspnt&amp;quot; nor &amp;quot;ampnom&amp;quot;. You need to not be in &amp;quot;Off&amp;quot; mode. In Off mode the speed and turns values do not update in the spot values. But, in manual mode they do. So, enter manual mode without asking for any speed, then turn the motor. With the motor spinning you should see some position feedback in the form of a non-zero speed value and the turns value should increment. If these things do not reliably occur then you may still be having encoder problems. If they do occur, still check to ensure that your A and B channels are the right way around.&lt;br /&gt;
&lt;br /&gt;
=== Internal Coolant Leaks ===&lt;br /&gt;
The Tesla LDU is famous for springing a leak on the motor side. Right there at the inlet there is a seal to the motor shaft. It fails then coolant starts to seep into the motor itself. This rusts the hell out of the motor internally until so much sludge builds up that it looks like a mud pie. Obviously, that is less than ideal. One way to check for this sort of thing is to go to the motor side and remove the one bolt that holds the encoder into the motor housing. If the encoder is soaking wet inside or looks like there is a slurry of liquid poo in the motor then there is bad news.&lt;br /&gt;
&lt;br /&gt;
I&#039;m not sure if there is any good pathway from the motor leak to the inverter so they could be two separate issues. In fact, having taken one apart, I guess that&#039;s almost certainly the case. But, the inverter has coolant running to it as well.&lt;br /&gt;
&lt;br /&gt;
Anyway, still check the encoder because that part is famous for leaking too and it ruins the motor.&lt;br /&gt;
&lt;br /&gt;
== Other considerations ==&lt;br /&gt;
The motor itself will run as well in the reverse direction as in the forward direction. However if you are running the gearbox integrated with the drive unit in reverse you will want to replace the gearbox&#039;s oil pump with a reverse oil pump. These can be found on ZeroEV. [https://zero-ev.co.uk/product/tesla-large-drive-unit-replacement-reverse-drive-oil-pump/?v=3a52f3c22ed6]&lt;br /&gt;
&lt;br /&gt;
[[Category:OEM]] [[Category:Tesla]] [[Category:Motor]] [[Category:Inverter]] [[Category:Gearbox]]&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== CAD ==&lt;br /&gt;
An amazing-quality solid model of this drive unit has been [https://grabcad.com/library/tesla-rear-drive-unit-1 made available on GrabCAD] by Winston Jennings.&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Small_Drive_Unit_(%22SDU%22)&amp;diff=4260</id>
		<title>Tesla Model S/X Small Drive Unit (&quot;SDU&quot;)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Small_Drive_Unit_(%22SDU%22)&amp;diff=4260"/>
		<updated>2023-11-27T06:43:32Z</updated>

		<summary type="html">&lt;p&gt;Nubster: /* Resources */ corrected component name&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Tesla uses the Small Drive Unit (SDU) in dual-motor versions of the Model S/X. The Front SDU (FDU) is found in performance and non-performance dual-motor models, while the Rear SDU (RDSU) is only found in non-performance dual motor models.&lt;br /&gt;
&lt;br /&gt;
== Wiring ==&lt;br /&gt;
[[File:Drive Inverter Front Connector.png|thumb|Small Drive Unit (&amp;quot;SDU&amp;quot;) Data Connector|alt=]]&lt;br /&gt;
=== Low Voltage Data Connector ===&lt;br /&gt;
[[File:Drive Inverter Front Connector Schematic.png|thumb|Small Front Drive Unit (&amp;quot;SDU&amp;quot;) Data Schematic|alt=]]&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;Housing:&#039;&#039;&#039; ====&lt;br /&gt;
Molex MX150 33472-2002 (key “B”) &lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;Pins:&#039;&#039;&#039; ====&lt;br /&gt;
22 AWG:      Molex 33012-2003&lt;br /&gt;
&lt;br /&gt;
18-20 AWG: Molex 33012-2002&lt;br /&gt;
&lt;br /&gt;
14-16 AWG: Molex 33012-2001&lt;br /&gt;
=== High Voltage Power Connectors===&lt;br /&gt;
Although the connectors are known ([https://www.rosenberger.com/product/hpk/ Rosenberger HPK series]), they are not available through conventional vendors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Drop-in control board==&lt;br /&gt;
[[File:Tesla SDU controller connections.png|thumb|Tesla SDU drop-in board]]&lt;br /&gt;
&lt;br /&gt;
This board replaces the original board  that comes with the OEM Tesla drive train. As opposed to the latter this board lets you use the drive train in the first place and allows you to fine-tune driving behaviour with the usual set of openinverter parameters. It does not restrict you in power output or regen input.&lt;br /&gt;
&lt;br /&gt;
You can fully control the board via CAN or via a set of digital and analog inputs.&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
[https://github.com/damienmaguire/Tesla-Front-Drive-Unit/blob/master/SDU_Wiring_Connections.pdf Wiring connections]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/damienmaguire/Tesla-Front-Drive-Unit/blob/master/FDU_Main_conn_pinout_V1.ods Pinout]&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/shop/index.php?route=product/product&amp;amp;product_id=62 Purchase in openinverter shop]&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/parameters/view.html?id=15 Parameters]&lt;br /&gt;
&lt;br /&gt;
[[Setup FAQ]]&lt;br /&gt;
&lt;br /&gt;
[https://www.thingiverse.com/thing:6230844 MX150 male header receptacle STL on Thingiverse]&lt;br /&gt;
&lt;br /&gt;
===Application Info===&lt;br /&gt;
The board comes programmed with a recent software version. Please check [https://github.com/jsphuebner/stm32-sine/releases github] for recent software releases. In addition the board comes with a set of parameters appropriate to run the Tesla SDU. So it will work out of the box. Parameters that must not be changed are hidden to eliminate sources of error.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;background-color:#ffffcc;&amp;quot; cellpadding=&amp;quot;10&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;It is essential that the tripmode parameter is set to 1 &amp;quot;DcSwOn&amp;quot;&#039;&#039;&#039;. Also do not use a low value fuse while testing. On over current trips some energy is still stored in the motor and it has nowhere to go if the contactor/fuse opens leading to immediate destruction of your inverter.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You will need to solder the supplied connectors and the current sensors embedded into the inverter assembly to the board, see [https://youtu.be/VVSRzmP-fRw this video].&lt;br /&gt;
&lt;br /&gt;
To test run your drive unit, supply the board with 12V and GND on Conn6.13 and Conn6.19, respectively. Also supply 12V to Conn6.5 to select forward direction.&lt;br /&gt;
&lt;br /&gt;
Supply inverter with some high voltage. For first tests it is recommended to put a large resistor/heating element/kettle in series.&lt;br /&gt;
&lt;br /&gt;
You can start in manual mode using the button on the web interface and enter like 1Hz for „Fslipspnt“ and some value between 10-50 for „ampnom“ to see if the motor spins up. Be careful because manual mode does not enforce a motor speed limit!&lt;br /&gt;
&lt;br /&gt;
You may also set parameter „udcsw“ and „udcmin“ to 0 and start drive mode by pulsing 12V on Conn6.9. Then connect a pot between Conn6.4, Conn6.7 and Conn6.8 (wiper). This will also spin the motor AND enforce a speed limit.&lt;br /&gt;
&lt;br /&gt;
==Cooling ==&lt;br /&gt;
&lt;br /&gt;
===Small Front Drive Unit (FDU)===&lt;br /&gt;
[[File:Tesla FDU cooling.jpg|none|thumb|Tesla FDU cooling]]&lt;br /&gt;
&lt;br /&gt;
===Small Rear Drive Unit (SRDU)===&lt;br /&gt;
[[File:Tesla SRDU cooling.png|none|thumb|Tesla SRDU cooling]]&lt;br /&gt;
[[Category:OEM]]&lt;br /&gt;
[[Category:Tesla]]&lt;br /&gt;
[[Category:Motor]]&lt;br /&gt;
[[Category:Inverter]]&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
	<entry>
		<id>https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Small_Drive_Unit_(%22SDU%22)&amp;diff=4088</id>
		<title>Tesla Model S/X Small Drive Unit (&quot;SDU&quot;)</title>
		<link rel="alternate" type="text/html" href="https://openinverter.org/wiki/index.php?title=Tesla_Model_S/X_Small_Drive_Unit_(%22SDU%22)&amp;diff=4088"/>
		<updated>2023-09-23T17:58:08Z</updated>

		<summary type="html">&lt;p&gt;Nubster: /* Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
Tesla uses the Small Drive Unit (SDU) in dual-motor versions of the Model S/X. The Front SDU (FDU) is found in performance and non-performance dual-motor models, while the Rear SDU (RDSU) is only found in non-performance dual motor models.&lt;br /&gt;
&lt;br /&gt;
== Wiring ==&lt;br /&gt;
[[File:Drive Inverter Front Connector.png|thumb|Small Drive Unit (&amp;quot;SDU&amp;quot;) Data Connector|alt=]]&lt;br /&gt;
=== Low Voltage Data Connector ===&lt;br /&gt;
[[File:Drive Inverter Front Connector Schematic.png|thumb|Small Front Drive Unit (&amp;quot;SDU&amp;quot;) Data Schematic|alt=]]&lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;Housing:&#039;&#039;&#039; ====&lt;br /&gt;
Molex MX150 33472-2002 (key “B”) &lt;br /&gt;
&lt;br /&gt;
==== &#039;&#039;&#039;Pins:&#039;&#039;&#039; ====&lt;br /&gt;
22 AWG:      Molex 33012-2003&lt;br /&gt;
&lt;br /&gt;
18-20 AWG: Molex 33012-2002&lt;br /&gt;
&lt;br /&gt;
14-16 AWG: Molex 33012-2001&lt;br /&gt;
=== High Voltage Power Connectors===&lt;br /&gt;
Although the connectors are known ([https://www.rosenberger.com/product/hpk/ Rosenberger HPK series]), they are not available through conventional vendors.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Drop-in control board==&lt;br /&gt;
[[File:Tesla SDU controller connections.png|thumb|Tesla SDU drop-in board]]&lt;br /&gt;
&lt;br /&gt;
This board replaces the original board  that comes with the OEM Tesla drive train. As opposed to the latter this board lets you use the drive train in the first place and allows you to fine-tune driving behaviour with the usual set of openinverter parameters. It does not restrict you in power output or regen input.&lt;br /&gt;
&lt;br /&gt;
You can fully control the board via CAN or via a set of digital and analog inputs.&lt;br /&gt;
&lt;br /&gt;
===Resources===&lt;br /&gt;
[https://github.com/damienmaguire/Tesla-Front-Drive-Unit/blob/master/SDU_Wiring_Connections.pdf Wiring connections]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/damienmaguire/Tesla-Front-Drive-Unit/blob/master/FDU_Main_conn_pinout_V1.ods Pinout]&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/shop/index.php?route=product/product&amp;amp;product_id=62 Purchase in openinverter shop]&lt;br /&gt;
&lt;br /&gt;
[https://openinverter.org/parameters/view.html?id=15 Parameters]&lt;br /&gt;
&lt;br /&gt;
[[Setup FAQ]]&lt;br /&gt;
&lt;br /&gt;
[https://www.thingiverse.com/thing:6230844 MX150 female connector STL on Thingiverse]&lt;br /&gt;
&lt;br /&gt;
===Application Info===&lt;br /&gt;
The board comes programmed with a recent software version. Please check [https://github.com/jsphuebner/stm32-sine/releases github] for recent software releases. In addition the board comes with a set of parameters appropriate to run the Tesla SDU. So it will work out of the box. Parameters that must not be changed are hidden to eliminate sources of error.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;background-color:#ffffcc;&amp;quot; cellpadding=&amp;quot;10&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;It is essential that the tripmode parameter is set to 1 &amp;quot;DcSwOn&amp;quot;&#039;&#039;&#039;. Also do not use a low value fuse while testing. On over current trips some energy is still stored in the motor and it has nowhere to go if the contactor/fuse opens leading to immediate destruction of your inverter.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You will need to solder the supplied connectors and the current sensors embedded into the inverter assembly to the board, see [https://youtu.be/VVSRzmP-fRw this video].&lt;br /&gt;
&lt;br /&gt;
To test run your drive unit, supply the board with 12V and GND on Conn6.13 and Conn6.19, respectively. Also supply 12V to Conn6.5 to select forward direction.&lt;br /&gt;
&lt;br /&gt;
Supply inverter with some high voltage. For first tests it is recommended to put a large resistor/heating element/kettle in series.&lt;br /&gt;
&lt;br /&gt;
You can start in manual mode using the button on the web interface and enter like 1Hz for „Fslipspnt“ and some value between 10-50 for „ampnom“ to see if the motor spins up. Be careful because manual mode does not enforce a motor speed limit!&lt;br /&gt;
&lt;br /&gt;
You may also set parameter „udcsw“ and „udcmin“ to 0 and start drive mode by pulsing 12V on Conn6.9. Then connect a pot between Conn6.4, Conn6.7 and Conn6.8 (wiper). This will also spin the motor AND enforce a speed limit.&lt;br /&gt;
&lt;br /&gt;
==Cooling ==&lt;br /&gt;
&lt;br /&gt;
===Small Front Drive Unit (FDU)===&lt;br /&gt;
[[File:Tesla FDU cooling.jpg|none|thumb|Tesla FDU cooling]]&lt;br /&gt;
&lt;br /&gt;
===Small Rear Drive Unit (SRDU)===&lt;br /&gt;
[[File:Tesla SRDU cooling.png|none|thumb|Tesla SRDU cooling]]&lt;br /&gt;
[[Category:OEM]]&lt;br /&gt;
[[Category:Tesla]]&lt;br /&gt;
[[Category:Motor]]&lt;br /&gt;
[[Category:Inverter]]&lt;/div&gt;</summary>
		<author><name>Nubster</name></author>
	</entry>
</feed>