Skip to content

Analog Thread

The analog thread is responsible for sampling analog sensors:

measuring voltages:

  • VBAT: battery voltage
  • VPACK: pack's output voltage
  • VKEY: key voltage
  • VDD: stm32 supply voltage
  • VREF: internal reference voltage

measuring currents:

  • VI_SLOW: slow analog channel for the battery current measurements
  • IHS_ADC: current monitoring from the hot swap controller
  • I5V_ADC: current consumption in the 5v supply net

measuring temperatures interfaced through the external multiplexer:

  • T1: cell temperature measurement
  • T2: cell temperature measurement
  • T3: cell temperature measurement
  • T4: temperature measurement near to shunt resistor on the bms board
  • T5: temperature measurement near to the negative cell terminal on the bms board
  • T6: temperature measurement near to the positive cell terminal on the bms board
  • T7: temperature measurement near to hot swap controller on the bms board
  • stm32 core temperature

Dependencies

Ensure the necessary nodes are defined for the ADC, multiplexer, and sensor devices in the devicetree before using the module.

The devicetree must be configured to include the following nodes. As an example, take a look at the bms.dts file.

  • zephyr-user/io-channels: Defines ADC channels configured on the BMS hardware.
  • adc1, adc2, adc3: Enables channel specific configurations and properties.
  • tmux_1208: Defines the GPIO phandle array for the multiplexer.

Differences of TMUX1208 and TMUX1108: 1108 is an upgrade (more expensive, full compatible) TI-Link