Skip to content

LC709203F returns 0 when attached to Adafruit MagTag? #5

@ericklein

Description

@ericklein
  • Arduino board: Adafruit MagTag. Adafruit Metro M0

  • Arduino IDE version (found in Arduino -> About Arduino menu): 1.8.13

Using LC709203F_demo.ino (Adafruit example), lc.cellVoltage() and lc.cellPercentage() return 0 when attached to Adafruit Magtag. I've tested multiple LC709203F (Adafruit p/n 4712) boards with multiple Adafruit batteries (1000mA, 2000mA, 2500mA). The board is properly detected by the example code and I've adjusted lc.setPackSize() to the proper/closest mA battery size in each test run. I also have integrated the library and functions into my own code and the same 0 result is received.

To further examine the issue, I tested the same LC709203F boards and battery on a Metro M0 Express in the wiring configuration highlighted in the Adafruit Learning System example: https://learn.adafruit.com/assets/94624. This configuration works properly and returns values for lc.cellVoltage() and lc.cellPercentage().

The difference in wiring between the two configurations is:

  • MagTag configuration: the battery is attached to the Adafruit LC709203F board via JST 2 wire and the MagTag is (properly) powered from the LC709203F board via the other JST 2 wire connector. The LC709203F board is also connected to the MagTag via StemmaQT connection.
  • Metro M0 configuration: the battery is attached to the Adafruit LC709203F board via JST 2 wire and the LC709203F board is connected via Stemma QT breakout to 5V, GND, SCL, and SDA.

I reviewed the Adafruit Discord for any reported issues like this, and did not find any. I also reviewed the two issues posted in this Github repository and did not see this issue reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions