11 Commits
Author SHA1 Message Date
David J. Fiddes 7f142b26b6 Decode oil pump operating status fields
Run the oil pump for about a minute at full speed and
capture the log in short-run.ods. This allows various
status parameters to be graphed against time.

It looks like 30_Byte3 ramps up first and the graph
follows the pitch which can be heard from the motor.
Label this as Motor_Speed.

The 2A_Byte1 values ramp up next and this reflects the
observed behaviour when emptying the old oil out of
my drive unit where there was a perceptible delay
between the motor spinning up and the fluid flow. This
value ramps down with a lag after the Speed_Request
returns to 0.

The 2A_Byte2 value looks like the best guess for the
pump pressure. It peaks a bit after the flow and RPM
have stabilised and tails away steadily. This would
likely be expected in my drive unit which only has a
small amount of oil it it currently. No idea if the value is
from a sensor or some sort of clever fusion from the 3-
phase motor controller.
2024-08-18 18:37:57 +01:00
David J. Fiddes d862f4f4c5 Output oil pump status in CSV format
To allow easier analysis of the oil pump status fields output in
CSV. Also change the update to have no delay between requesting
each status value but maintain 100ms between each group of
requests.
2024-08-18 18:37:56 +01:00
David J. Fiddes d571620ad8 Decode oil pump temp, voltage and current status
Lots of fields had the same value after an overnight cold soak with a 40 degree offset from the drive-unit case temp. Running the pump causes some temps to increase but other stay the same.

Supply voltage and current tested with a bench power
supply. Values track measured values quite accurately.
2024-08-18 18:37:56 +01:00
David J. Fiddes fcdcf44ab6 Add an Arduino sketch to control the Tesla oil pump
This Arduino sketch connects to the oil pump over LIN using the
hardware serial on an ESP32. According to the captures taken of
the LIN of a running inverter there is 1 outgoing command and
4 status requests. The outgoing command appears to be the
desired speed of the pump. The incoming status messages are
currently not understood so are just printed out as hex values.

The speed can be changed by supplying a numeric value between
0 and 255 followed by CR/LF.
2024-08-18 18:37:56 +01:00
David J. Fiddes 487d4d77ae Add details of gate drive PSU ready
The isolated gate drive PSU centered around T1 reports
back when it is running via GPIO83. This signal shows
up on the opto-isolator U7 at TP28 and TP43 near the
MCU.

Also document TP133 and TP134 which relate to resolver exciter output.
2023-03-25 12:17:06 +00:00
David J. Fiddes 7ce519397b Fix swapped Vehicle and Party CAN bus signals
Running a TI C2000 example transmitting using the CANA
peripheral (GPIO_5_CANRXA and GPIO_4_CANTXA) results in
output on the Vehicle CAN interface not Party CAN as
expected.

This swaps the pins in the PinMap spreadsheet but does not
update M3_TMS_PINOUTDIAG1.pdf

Tests:
 - Cross-check official Tesla M3 wiring harness and connector
   with wiring diagram 2019.1_Model3-SOP3-1LHDandRHD
   from the Tesla Service Manual.
2022-09-23 11:30:57 +01:00
David J. Fiddes 9d058c3e47 Fix ADC input for 12V supply monitoring
The pin for 12V DC supply monitoring is not ADCIN14 but
ADCINC4 instead.

It seems that ADCIN14 may be used for monitoring a 1.65V
mid-rail reference and calibrating ADCs (per TI
documentation). Not 100% certain so leaving this line blank
for now.

Tests:
 - Power the inverter from a variable bench supply and load a
   program to display the output of ADCINC4. Log values at
   different supply voltages to determine the gain of 205.88
   counts per volt.
2022-03-20 12:04:14 +00:00
David J. Fiddes 0de3242fde Add details of main inverter wiring harness
This expands the rear inverter connector pinout to include the
wiring harness colours found on the Tesla harness (1067968-
02-E). Also, add details of the connector pin numbering and
physical layout. With these changes it is possible to test and
modify Tesla wiring harnesses more easily.

Add details of missing Stator Temp + and - signal.

Remove the PDF in favour of an ODS spreadsheet to allow
easier future revision.

Tests:
 - Cross check against Tesla wiring harness with a multimeter
2022-02-13 17:53:23 +00:00
David J. Fiddes cf9e687d85 Start a list of test points on the M3 inverter board
A basic list of test points from inspection and measurement of
the board and gleaned from Damien's videos.
2022-02-10 14:57:09 +00:00
David J. Fiddes 7f3c5c5a51 LIN captures of Tesla FW control of M3 Oil Pump
The change contains captures of the LIN interface connecting
the main M3 inverter to the oil pump. They were captured
with Saleae Logic 2.3.37 from power on of the inverter. The power supply was low (circa 11V) and the pump appeared stalled.

Startup_Oil_Pump_Disconnected - No oil pump connected
Startup_Oil_Pump_Connected - Normal operation from cold
Startup_Oil_Pump_Hairdrier-1 - Warm the oil pump casing
for about 30 seconds with a hair drier.
Startup_Oil_Pump_Hairdrier-2 - Warm the oil pump casing for 2-3 minutes with a hair drier.
2021-10-01 11:27:46 +01:00
David J. Fiddes b9c2463608 Document details of the M3 inverter JTAG connector
Compiled from these forum posts:
https://openinverter.org/forum/viewtopic.php?p=14739#p14739
https://openinverter.org/forum/viewtopic.php?p=19474&sid=5ffd673af86430a29c9e03ae60ca0871#p19474
and from board inspection.

The pin number is different from the previous notes but
matches the Hirose datasheet pin numbering.

Pin 8 and Pin 2 are verified to be no connect via magnifier. All
other pins have adjacent traces.
2021-09-22 16:33:52 +01:00