sparkfun / OpenLog_Artemis

The OpenLog Artemis is an open source datalogger the comes preprogrammed to automatically log IMU, GPS, serial data, and various pressure, humidity, and distance sensors. All without writing a single line of code!
https://www.sparkfun.com/products/15846
Other
86 stars 45 forks source link

Create individual power-on delays for each sensor type #5

Closed nseidle closed 4 years ago

nseidle commented 4 years ago

Some sensors have very long boot times and/or need to be powered constantly to run calculations between being queried for data. Powering down the Qwiic bus between sleeps causes these sensors to fail to perform as designed. SCD30 is a prime example but there are others.

Currently (v1.1 and above) Qwiic bus can be kept on between low power sleeps.

If a always-on device is detected, over ride the Qwiic bus power setting and stay on. If setting is over-written then display warning at initial power on banner.

nseidle commented 4 years ago

Sensors known to be an issue:

Also, we should probably implement a delayBeforeBegin and delayBeforeMeasurement for each class of device.

PaulZC commented 4 years ago

These two commits in the v16_Candidate branch cover this:

If we find any other sluggish sensors, we can give them their own start-up delay.

We can close this once v16 goes live.

PaulZC commented 4 years ago

Released in Firmware Version 1.6