PaxInstruments / t400-electronics

Electronics for the Pax Instruments T400 temperature datalogger
20 stars 9 forks source link

Charging status unstable while No battery installed #147

Closed samchoy88 closed 9 years ago

samchoy88 commented 9 years ago

MCU detected charging status unstable while no battery installed. I check on the BATT_STAT test point seem stable at 2.5V but 3.4V at STAT pin of the charger IC. May be the the voltage level is in marginal level and cause unstable.

charlespax commented 9 years ago

Based on a forum post I read (http://www.microchip.com/forums/m670010.aspx), we may need to add some capacitance on the battery terminals near the MCP73831. "I added another 4,7 µF ceramic capacitor, closer to the MCP73831 (right on the pins actually) and that seems to work too. So I guess it was some instability between the battery charger and the LDO." screen shot 2015-02-06 at 15 46 04

samchoy88 commented 9 years ago

I found the battery disconnected made the charger IC not in Hi-Z status. It switch between Hi-Z and GND.

samchoy88 commented 9 years ago

This issue is different from forum post (http://www.microchip.com/forums/m670010.aspx). As it has problem with battery charger IC supply to LDO directly and causing unstable voltage supply to circuit. But my problem is the STAT pin give unstable signal when No battery connected.

samchoy88 commented 9 years ago

Fixed problem by this circuit. adding low pass filter and pull up resistor. The 2k resistor and 10uF act as a low pass filter to avoid unstable signal from charging IC. As I/O pin D5 do not have internal pull up resistor when act as an INPUT pin. A 10K resistor added externally. image

charlespax commented 9 years ago

Is there anything related to VBAT, VBAT_SENSE, or VBAT_EN floating that is causing this?

screen shot 2015-02-06 at 17 30 31

screen shot 2015-02-06 at 17 37 20

charlespax commented 9 years ago

Okay, cool. When we're connected to USB the current drawn when STAT is low doesn't matter. When we are not connected to USB power STAT is Hi-Z, so the current draw should be negligible. Nice.

Can we close this issue?

samchoy88 commented 9 years ago

Problem fixed.