[SOLVED] Don't show battery data

I have this:

BATT_AMP_OFFSET 0.000000
BATT_AMP_PERVOLT 17.000000
BATT_CAPACITY 4981.000000
BATT_CURR_PIN 3.000000
BATT_MONITOR 3.000000
BATT_VOLT_MULT 12.020000
BATT_VOLT_PIN 2.000000

My battery - 3Cells, 11.1V, 5100 mAh (10C - I don’t know what is this, just for a case).

How I can make Navio2 recognize battery and get data for Volt and Current ?

Hi Dmytro,

Can you try running these commands and post the output? With battery connected.

 cat /sys/kernel/rcio/adc/ch1
 cat /sys/kernel/rcio/adc/ch3
 cat /sys/kernel/rcio/adc/ch4

After that we will be able to tell whether it is hardware or APM issue.

pi@navio:~ $ cat /sys/kernel/rcio/adc/ch1
26
pi@navio:~ $ cat /sys/kernel/rcio/adc/ch3
0
pi@navio:~ $ cat /sys/kernel/rcio/adc/ch4
32

I have confused the channels, sorry about that.

You actually need:

 cat /sys/kernel/rcio/adc/ch0
 cat /sys/kernel/rcio/adc/ch2
 cat /sys/kernel/rcio/adc/ch3

Ch0 is board voltage and is supposed to be around 5V, ch2 and ch3 are voltage and current ADC measurements from power module.

pi@navio:~ $ cat /sys/kernel/rcio/adc/ch0
5282
pi@navio:~ $ cat /sys/kernel/rcio/adc/ch2
1028
pi@navio:~ $ cat /sys/kernel/rcio/adc/ch3
0

This looks correct, so hardware is fine. Ch2 (pin2) shows 1.028V which translates to about 12V on the battery. There must be some configuration in APM missed, let me check the parameters on our copter and I will post them here.

1 Like

Can you try setting:

BATT_MONITOR 4

And rebooting after that.

Flight battery: 100% !!! Thanks!

1 Like