SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
User avatar
By sunilplays

I'm powering the OpenLog Artemis using the USB connection alone. I wish to log data (to microSD) as long as the USB power is available, stop/sleep when there's no power, and restart when the power is back on.

I understand the default Firmware needs a HW reset once the USB power is back. This is a limitation for me.

I've also found a related topic (viewtopic.php?t=53109) where a custom firmware supposedly restarts when powered through battery.

Could you please let me know how I can configure the OpenLog Artemis to automatically restart when the USB power is back on (without a HW reset / serial terminal).

Thank you.
Hi Sunil,
It is not possible to automatically restart the OpenLog Artemis (OLA) when the power returns.
You will:
either need to create a reset over the USB communication link (e.g. by closing and re-opening your serial monitor or terminal emulator)
or add your own power-supervisor circuit which generates a reset pulse when the power returns.
We did investigate if it was possible to use the OLA battery voltage supervisor or the Watchdog Timer to do this, but it was not reliable. There is some information about this here: ... -747920894
Best wishes,
Thank you for quick response Paul.

You mentioned in the previous post (viewtopic.php?t=53109) that when the RTC battery is discharged, OLA restarts when power is reconnected.

So, if I were to physically remove the RTC battery connection:
1. Would OLA log data when powered with USB
2. Stop when the USB power is down
3. Restart when USB power is back on

I will get timestamp from GPS module so it's not a problem if OLA time is off. Also, I will log to a new file every 10 mins, so that even if the file being written during power loss corrupts, I still retain rest of the files.

Hi Sunil,
Sure, so long as you are happy with those consequences (RTC losing time and the log file not being closed correctly) then that could work for you.
As an experiment, you could try connecting a 100 Ohm resistor across (in parallel with) the battery. That will discharge the battery in a few minutes and prevent it from recharging. If you are careful, you should be able to solder one end of the resistor onto the battery +ve contact and the other end to the 0V breakout pad.
Please proceed at your own risk, but I believe this will work for you.
Best wishes,
 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? [...]