SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
User avatar
By cjlyth
#215944
Hello all!
I recently got one of these fine boards along with the combo environmental sensor to monitor my 3d printer. When the OpenLog is hooked up to my computer or raspberry pi, everything seems to work as expected. However, when I operate it on battery power, it sometimes does not log anything to the SD card. It seems that the reset will fix it sometimes. The problem with that is, I have mounted this board in a case in a way that allows me to remove the SD card to access the log files. Doing this makes the reset button unavailable.

What is the reset button required for?
Should logging to the SD card on battery work without the reset button?
Can I work around the button with software?
Where is the best reference for this board?

Thanks in advance for any help with these! I am happy to provide picture or additional info if required :)
User avatar
By PaulZC
#216370
Hello cjlyth,
Apologies for the very slow reply.
This is just a quick note to let you know that we are investigating the issues you have been having.
The next version of the OLA will include a Reset pad so you will be able to connect a remote reset switch - should you need to.
But we will be investigating your RTC and logging issues too.
Thank you for your patience,
Paul
User avatar
By PaulZC
#216372
Hello again cjlyth,
I forgot to thank you for the photos.
If you want to, you can connect your power switch to the PSWC breakout pads instead of breaking into the LiPo battery cable.
When the PSWC switch is closed, the OLA is powered down. The advantage of doing it this way is that you can still recharge the battery while the OLA is powered down.
Best wishes,
Paul
User avatar
By cjlyth
#216382
Thanks for the reply, I had already cut into the lipo battery cable when I noticed the breakout pads unfortunately. I may fix that if I can get board to remember the time setting or for the reset problem to be fixed. I was considering buying a GPS module to provide time since that appears to be supported but I doubt I will be able to get a signal where I plan to use this board. The RTC on this was a critical part of the design.
I am currently planning to just not use this board. I could work around the RTC issue by turning off that feature and using a raspberry pi to prepend the correct time to the record. But the fact that it will not consistently log data without hitting reset is a problem I have no workaround for. I was really hoping for a system that I could set up once and forget about it. Not a system that requires constant checking and prodding to keep running. If there is a power interruption, the SD card is removed or usbc state change, I have to hit the reset button or power cycle and reset to get it working again. I did not figure out a consistent sequence that would work before I gave up in frustration. I did try updating the firmware a few days ago just before I gave up on it.

If there is any other info I can provide please let me know.
User avatar
By PaulZC
#216619
Hi cjlyth,

Thanks again for reporting this issue - and thank you for your patience. It has had us scratching our heads somewhat for the past week!

The OLA has a helpful feature that when the external power fails or is disconnected, it switches over to drawing power from the small on-board rechargeable battery to keep the RTC running. What we had forgotten to do was to add any way to bring the OLA out of that state. As you correctly identified, you needed to:
  • connect external power and then press the reset button
  • or wait for the small RTC battery to discharge and then reconnect power
  • or connect via USB and open the serial monitor (which also triggers a reset)
If you uploaded code via USB, then disconnected USB and then connected your LiPo battery, it would have ended up in the low power state. You would have needed to press the reset button to wake it again.

We have corrected this in version v14 of the code. The GitHub repo now contains instructions on how to use the Artemis Firmware Uploader to upgrade the OLA firmware:
Please try the new OpenLog_Artemis-X04-v14_BETA binary. We added a WatchDog Timer feature which will automatically bring the OLA out of its low power state when power is reconnected. This will, I hope, resolve your needing-to-reset issue.

The RTC keeps running while the OLA is in the low power state. The RTC should only ever lose track of time if:
  • you update the firmware via USB
  • the small RTC battery discharges completely
I can't tell from your description if this is why you were seeing the RTC being reset. Can you please try v14 and let me know if you see an RTC reset again? The RTC battery does take some time to charge. Please let it recharge either from USB or LiPo before trying this.

v14 also includes a new feature which will let you set the time from a u-blox GPS module. This will set the RTC to UTC, but we have included an offset feature too which you can use to set the RTC to local time instead. You will find this new feature in the Time Stamp menu but will only be able to see it if you have the GPS module connected.

I do hope the new code resolves all of your problems. Please give it a try and let us know.

Thank you,
Paul
User avatar
By cjlyth
#216678
I just installed the v14 BETA out of the master branch of your repo. After setting the time and disconnecting the power, it seems to still be logging and the correct time. I will let it run for a couple of days and report back. Thanks again for providing an update!
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]