Sensor Module

Version 58.3 by Heimir Thordarson on 2026/02/11 19:49

Sensor Module
3D model of the Sensor Module from Altium Designer
Voltage
4.5V - 40V
Fuse Current
125mA
Sensor Inputs
13
Voltage divider Inputs
2
3V3 Thermistor Inputs
7
5V Pressure Inputs
4
Communication Protocol
CAN FD
Max Data rate
1 Mbps

Table of Contents

Description

The Sensor module is designed to measure any extra analog signals rear of the firewall. For AR26, the module is designed to measure two suspension displacement sensors, two oil temperature, four water pressure, four water temperature, and one air temperature sensor. All of the measurements are then transmitted to a CAN network, which there are two of.

Wiring Diagram

In the following section, how the sensor module is connected will be covered. The connector for the sensor module is a High-Density d'sub-44 which is directly solderen onto the circuit board. The plug needed for this system is the 204517-3, which uses crimps instead of solder cups which is common for the dsub connectors

AR26_ASM pinout.png

In the figure above, the pinout shows how the pins are divided. Each box shows which pins belong together for each usecase, where the red box is the power input. Yellow boxes are for each canbus network, while the green box is for each sensor used in AR26.

Pin NumberPin NameType

Pin
Number

Pin name

Type

Pin NumberPin NamePin Type

1

Air TemperatureAnalog (0-3.3V)16Air TemperatureGND31Suspension Displacement LeftGND
2Suspension Displacement LeftAnalog (0-3.3V)17Suspension Displacement Left3V332Suspension Displacement RightGND
3Suspension Displacement RightAnalog (0-3.3V)18Suspension Displacement Right

3V3

33  
4Oil Temperature RightAnalog (0-3.3V)19Oil Temperature Right3V334  
5Oil Temperature LeftAnalog (0-3.3V)20Oil Temperature Left3V335  
6Cooling Temperature 4Analog (0-3.3V)21Cooling Sensor 4GND36  
7Cooling Pressure 4Analog (0-5V)22Cooling Sensor 43V337  
8Cooling Temperature 3Analog (0-3.3V)23

Cooling Sensor 3

GND38  
9Cooling Pressure 3Analog (0-5V)24

Cooling Sensor 3

3V339  
10Cooling Temperature 2Analog (0-3.3V)25Cooling Sensor 2GND40  
11Cooling Pressure 2Analog (0-5V)26Cooling Sensor 23V341  
12Cooling Temperature 1Analog (0-3.3V)27Cooling Sensor 1GND42  
13Cooling Pressure 1Analog (0-5V)28

Cooling Sensor 1

3V343Main PowerGND
14CAN High 1CAN29CAN Low 2CAN44Main Power+24V
15CAN Low 1CAN30CAN High 2CAN   

Air Temperature Sensor

The air temperature sensor will be used to have a dynamic reference setpoint for the cooling system. This could reduce the current draw from the low voltage system compared to having a fixed reference point. This is because the regulator will not try to cool the water to a temperature lower than the ambient temperature. The sensor works as a resistor which varies depending on its temperature. Where in this case, the resistance lowers when the temperature increases (NTC). To make the microcontroller able to measure the changes in resistance, the thermistor is put into a voltage divider circuit. 

circuit with marks.png

As shown in the figure above, the thermistor is put into a voltage divider circuit with a 4k7 ohm resistor to convert the resistance changes of the thermistor to a measurable voltage. To find the temperature of the thermistor based on the voltage measure by the analog-to-digital converter (ADC), the resistance of the thermistor needs to be calculated based on the voltage from a voltage divider.

$$ R_T = R_f \frac{V_{out}}{V_{in} - V_{out}} $$

Where:

  • \(R_f\)= The upper resistor in the voltage divider which stays fixed, which in this case is 4.7k \(\Omega\)
  • \(V_{out}\)= The voltage over the thermistor, and the voltage that the microcontroller will measure.
  • \(V_{in}\)= The supply voltage of the voltage divider, which in this case is a constant 3.3 \(V\)
  • \(R_T\)= Resistance of the thermistor

Knowing this, the resistance of the thermistor can be added into the following equation. This will determine the temperature of the thermistor based on the known resistance and the beta value of the thermistor.

$$ T = \frac{1}{\frac{1}{T_0} + \frac{1}{\beta} \ln\left(\frac{R_T}{R_0}\right)} $$

where:

  • \(\beta\)= material constant that defines the steepness of its resistance-temperature curve between two temperature points, usually 25/85 degrees celsius. In this case it is 3694 K.
  • \(T_0\)= The test temperature at which the thermistor is 10k \(\Omega\), which in this case is 25 degrees celsius.
  • \(R_0\)= The resistance of the thermistor when it is 25 degrees celsius.
  • \(R_T\)= The live resistance of the thermistor.

Filtering

Considering that the sensor can only promise a reaction time of 5 seconds when in water, it can be assumed that a heavy filter will not add any problematic latencies. To ensure a low cost, the filter uses common components which will filter any noise above the inverter switching noise.

$$ F_c = \frac{1}{2 \pi R C} $$

Where:

  • \(F_c\)= Cut-off frequency of the filter. Any noise with a frequency above this will be filtered out.
  • \(R\)= Resistance of the resistor in low-pass filter.
  • \(C\)= Capacitance of the capacitor in the low-pass filter.

Using a resistor with 1k \(\Omega\) and a capacitor with 100 nF in capacitance, the cut-off frequency will be 1592 Hz.

Suspension Displacement Sensor

For AR26, the same sensors from AR25 is reused. These are the Texense RSL-A-50-P which can be connected as the entire voltage divider when using each end as supply and ground. The output of the sensor will then be the throw of the potentiometer. 

Suspension Displacement Circuit.png

The sensor has a measurable range of 50mm with electrical range of 51mm, meaning that the electrical range will in practice be 1960 \(\Omega\) with 40 \(\Omega\) in total on each end.

Actual Representation of Linear Potmeter.png

This can then be used to create the length of the sensor based on the input voltage.

$$ x = \frac{50}{1960} \left( \frac{2000\,V_{\text{out}}}{V_s} - 20 \right) $$

where:

  • \(x\) = The mechanical placement excluding the dead length (178mm).
  • \(V_s\)= The supply voltage of the linear potentiometer, in this case it is 3.3 \(V\).
  • \(V_{out}\) = The output voltage of the linear potentiometer. ranging from 0.033\(V\) to 3.267\(V\).

Filtering

The sensors output latency can be expected to be a lot shorter than the air temperature sensor as the sensor is just a variable sensor based on placement. The limiting factor for the system which uses this information is the CAN-BUS messages from the inverters which send the information each 6.25 milliseconds. This means that the cut-off frequency cannot be any lower than 160 Hz, which will make the same type of low pass filter from the air temperature sensor acceptable with a cut-off frequency of 1591 Hz.

Gearbox Temperature Sensor

The gearbox Temperature Sensor for AR26 will be the GAG10K3976B1, a NTC temperature probe which will be installed into a generic M5 bolt which is mounted on the upright in the wheel assembly. The thermistor will be connected in a voltage divider configuration where the thermistor is in the lower position so that the voltage lowers when the temperature increases.

Oil_Temp_schematic.png

Knowing the beta constant of the thermistor, the equation for the temperature based on the voltage measured by the ADC inside microcontroller can be derived.

$$ R_T = R_f \frac{V_{out}}{V_{in} - V_{out}} $$

Where:

  • \(R_f\)= The upper resistor in the voltage divider which stays fixed, which in this case is 1k \(\Omega\)
  • \(V_{out}\)= The voltage over the thermistor, and the voltage that the microcontroller will measure.
  • \(V_{in}\)= The supply voltage of the voltage divider, which in this case is a constant 3.3 \(V\)
  • \(R_T\)= Resistance of the thermistor

Knowing this, the resistance of the thermistor can be added into the following equation. This will determine the temperature of the thermistor based on the known resistance and the beta value of the thermistor.

$$ T = \frac{1}{\frac{1}{T_0} + \frac{1}{\beta} \ln\left(\frac{R_T}{R_0}\right)} $$

where:

  • \(\beta\)= material constant that defines the steepness of its resistance-temperature curve between two temperature points, usually 25/85 degrees celsius. In this case it is 3976 K.
  • \(T_0\)= The test temperature at which the thermistor is 10k \(\Omega\), which in this case is 25 degrees celsius.
  • \(R_0\)= The resistance of the thermistor when it is 25 degrees celsius.
  • \(R_T\)= The live resistance of the thermistor.

Filtering

The sensors output latency can be expected to be a lot shorter than the oil temperature sensor as the sensor is just a variable sensor based on placement. The limiting factor for the system which uses this information is the CAN-BUS messages from the inverters which send the information each 6.25 milliseconds. This means that the cut-off frequency cannot be any lower than 160 Hz, which will make the same type of low pass filter from the oil temperature sensor acceptable with a cut-off frequency of 1591 Hz.