cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with STC3117 Fuel Gauge Resetting Repeatedly

tarang
Visitor

 

Hi,

I am using the STC3117 fuel gauge, but my IC keeps resetting repeatedly, so I am not getting any voltage or current readings. However, I am getting the correct values for other registers, such as the device ID and temperature.

I tried to debug this issue and found that the RAM registers are being rewritten repeatedly, which could be the cause of the problem.

I am using Arduino Uno with the following code
link : https://github.com/motoneil1/STC3117_arduino

i am getting output below :
Reinit RAM
READ data ===========================
00000000000000004100232300000019701960
READ data ===========================
The Vmode is 1
The status word is 5403  (reg_ctrl & reg_mode)
The HRSOC is 0%
The SOC is 0%
The voltage is 0mV
The current is 0mA
The Temperature is 25C
The ConvCounter is 0
The OCV is 0mV
The Presence is 1
The remaining charge is 0mAh
The remaining time is -10

If anyone knows why this is happening, please let me know.

0 REPLIES 0