Member #888586

Member Since: January 10, 2017

Country: United States

  • Hi, I am using BQ27441 Library GPOUT Example - Battery low Mode with Arduino UNO. The display of "SOC 1 Set Threshold" is strange.

    I have set "15" to SOCI_SET.

    // Set BATTERY_CAPACITY to the design capacity of your battery.

    //const unsigned int BATTERY_CAPACITY = 850; // e.g. 850mAh battery

    const unsigned int BATTERY_CAPACITY = 400; // e.g. 850mAh battery

    const byte SOCI_SET = 15; // Interrupt set threshold at 20%

    const byte SOCI_CLR = 20; // Interrupt clear threshold at 25%

    const byte SOCF_SET = 5; // Final threshold set at 5%

    const byte SOCF_CLR = 10; // Final threshold clear at 10%

    But serial console shows "64".

    Connected to BQ27441!

    GPOUT set to active-LOW

    GPOUT function set to BAT_LOW

    SOC1 Set Threshold: 64

    SOC1 Clear Threshold: 20

    SOCF Set Threshold: 5

    SOCF Clear Threshold: 10

    61% | 3877 mV | 0 mA | 204 / 337 mAh | 0 mW | 89% | 0x10c

    61% | 3877 mV | 0 mA | 204 / 337 mAh | 0 mW | 89% | 0x18c

    61% | 3877 mV | 0 mA | 204 / 337 mAh | 0 mW | 89% | 0x18c

    61% | 3877 mV | 0 mA | 204 / 337 mAh | 0 mW | 89% | 0x18c

    61% | 3877 mV | 0 mA | 204 / 337 mAh | 0 mW | 89% | 0x18c

    Why shows "64"?

No public wish lists :(