0
\$\begingroup\$

I need a bit of help for my device schematic, more specifically for the status pins of the MCP73871. I am a beginner so I am trying to understand how to do it properly. The pins are PG, STAT1/LBO and STAT2. From my understanding, I can pull up both PG and STAT2 and connect them to my MCU. For the STAT1/LBO pin, if I want to use the LBO does it have to be connected to the battery?

My device will have a battery connected which is why I am using this component. I included my diagram as well.

enter image description here

\$\endgroup\$
5
  • \$\begingroup\$ sorry, I don't understand the question. "For the STAT1/LBO pin, if I want to use the LBO does it have to be connected to the battery?" <- is this the question? I'm not sure why you would get the idea that STAT1/LBO had to be connected to the battery \$\endgroup\$ Commented Jan 16, 2023 at 18:47
  • \$\begingroup\$ Is J1 where you are connecting the battery? Because you have both terminals shorted together in your schematic \$\endgroup\$
    – PhippsTech
    Commented Jan 16, 2023 at 19:26
  • \$\begingroup\$ @user253751 I saw an example online where someone had done that, hence my question. \$\endgroup\$ Commented Jan 16, 2023 at 22:43
  • \$\begingroup\$ @PhippsTech Yes J1 is where I am connecting the battery. Should I remove the wire in-between both wires? \$\endgroup\$ Commented Jan 16, 2023 at 22:43
  • \$\begingroup\$ If the battery is connected to J1, we would expect one terminal of J1 to be connected to battery positive, and the other to battery negative. You don't seem to have any connection for battery negative. \$\endgroup\$ Commented Jul 1 at 16:16

2 Answers 2

0
\$\begingroup\$

No, that pin will need to be connected to the ESP32 if you want to use it. It's just a low battery output. Be sure to pull it up to 3.3V since it's open drain if you want to use it.

\$\endgroup\$
1
  • \$\begingroup\$ Okay I see, so I can pull all 3 pins to high and have them connect to GPIOs on my ESP32. Thank you. \$\endgroup\$ Commented Jan 16, 2023 at 22:44
0
\$\begingroup\$

PhippsTech answered it, but here's the excerpt from the datasheet explaining how to use these pins:

datasheet snippet

TLDR; they're all open drain outputs. You can connect them to your MCU with pullups.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.