Go Down

Topic: CHRG LED blinks and data updating stops (Read 353 times) previous topic - next topic

Sneha7

Hello everyone,
I am new to both Arduino and WiFi programming. With great effort I was able to update the sensor data on Thingspeak from MKR1010. But after a while, typically an hour the orange led (CHRG LED) on board starts blinking and it stops sending the data to Thingspeak. It won't resume updating data unless I hit reset button on board.

I am trying to receive data continuously without interruption. Does anyone have any idea how to achieve it?

pert

According to the datasheet for the battery charge controller chip on the MKR 1010, the blinking LED indicates:
Quote
Charge suspend (Input over-voltage, TS fault, timer fault, input or system over-voltage)
In case you're curious, TS stands for "temperature sensor", which you don't have so that's not relevant. I'm fairly certain the cause of the blink is the timer fault. The battery charger chip has a safety timer that suspends the charge if the battery is not detected as charged after a set amount of time. If the capacity of the battery you have connected to the MKR WiFi 1010 is greater than the charge current * safety timer timeout duration then the battery will never get a full charge and the safety timer fault will be expected (you could consider it an indicator that the charge process has finished.

Now, you're probably wondering what any of that has to do with the break in network communications. Unfortunately, I don't have an answer for you. One thing to keep in mind is that it may simply be a coincidence that the network communication breaks around the time the safety time times out. I would strongly suspect this unless you have found that they happen at exactly the same time.

Sneha7

Thank you for your input on this. I as far as I have seen the behavior of the CHRG Led and network communication, they happen at the same time. And when I hit reset button on board the CHRG led stops blinking right away and the data starts updating on the ThingSpeak.

Another thing here I would like to mention is, I never used battery as a source for MKR1010. I was powering it directly from the micro USB port on board.

I want to keep updating the data on the thingspeak for a week without having to reset it manually.

Sneha7

I figured out how to reset the board through program.

I tried to put the MKR1010 in the bootloader mode, it was running fine until yesterday.

But now I have to put it in the bootloader mode every time I want to upload a sketch. And now it can only run the basic examples like blink, but won't run the ones with WiFi functionality. And the CHRG led keeps blinking even though it is not connected to battery.

Sneha7

#4
Aug 14, 2019, 11:06 pm Last Edit: Aug 14, 2019, 11:08 pm by Sneha7
Found my error.

I was resetting the board in the void setup function, which is why it was not executing any of the following program code after that.

Thank you pert.

pert

Thanks for taking the time to post an update Sneha7.

MarkusBeubl

#6
Aug 19, 2019, 12:31 pm Last Edit: Aug 19, 2019, 12:39 pm by MarkusBeubl
Hello together,

I have the same problem with MKR WiFi 1010. I use the board like Shena7 to make every 5 Minute a HTTP call, to transfer the sensor date to a online database.

At one time the board runs 4 hours, at the other time the board run 7 hours. After that the CHRG led is blinking, and the transfer via HTTP call stops. After press the reset button, the board runs perfectly (for the next 4-8 hours).

My board is connected with 5V on VIN. A Lipo is NOT connected. I have seen the commend to the safety LiPo timer, but I have no Idea how to fix the problem.

Best Regards
Markus





Sneha7

Hello MarkusBeubl,

To solve this problem what I introduced a hard reset after say, every 10 minutes. You can either use a soft reset or hard reset. This will not erase the code on the micro-controller but I will simply start to execute the code from the beginning, that way if the micro-controller is stuck sometimes it will refresh and start working again.

Let me know if it works for you.

MarkusBeubl

Hello Sneha7,

so, I have tested the last weeks a lot. With a connected Li-Po 800mAh and your tip to make a reset after a period, it works fine. Thanks a lot!

Go Up