battery_monitor

AggieAir Battery and power monitor using a custom breakout board, for both fixedwings and rotocrafts. Both versions use TMP35 temperature sensor for monitoring board and cell temperatures, AD7998 (12bit) ADC for version 4 and AD7997 (10bit) ADC for version 5, and ACS758 bidirectional current sensor. There are two versions: - Rev 4: ADC VIN7 unused - Rev 5: on ADC VIN7 is now ARMED_IN (channel that sensing that the safety plug is plugged in. Define if you are using BATTERY_MONITOR_REV4 in your airfame config file (otherwise rev5 is assumed). Also the versions differ in the gain coefficients.

Configures

Name

Value

Description

BATTERY_MONITOR_I2C_DEV

i2c2

I2C device to use for the monitor

BATTERY_MONITOR_BUS_ADC_I2C_ADDR

0x42

slave address of bus adc

BATTERY_MONITOR_BALANCE_BAT1_ADC_I2C_ADDR

0x40

slave address of balance 1 adc

BATTERY_MONITOR_BALANCE_BAT2_ADC_I2C_ADDR

0x44

slave address of balance 2 adc

BATTERY_MONITOR_REV4

1

set to 1 if using Rev.4

BATTERY_MONITOR_CURRENT_OFFSET

-120

offset from the curremt sensor

BATTERY_MONITOR_CURRENT_SENSITIVITY

25.6

BATTERY_MONITOR_TEMP_OFFSET

250

offset from the temperature sensor

BATTERY_MONITOR_TEMP_SENSITIVITY

10

Depends

  • i2c