ImperialSpaceSociety / picotracker-Lora

This is the code base and hardware design files for the Lora pico tracker to be flown around the world
13 stars 3 forks source link

Lower power consumption by ensuring that both GPS and MCU are not running in high power at same time #32

Closed MedadRufus closed 3 years ago

MedadRufus commented 3 years ago

Currently, During a GPS fix search, both GPS and MCU are running in full power. GPS consumes around 40mA while MCU draws around 7-10mA. If I put the mcu to low power while the GPS searches, it will reduce the max power draw, hence allowing for the tracker to work at an even lower sun elevation.

Current record is 8 degrees sun elevation wake up. Can it be lowered even further?

MedadRufus commented 3 years ago

Use timers to schedule the gps fix check. Otherwise, stay in ultra low power mode. Must create state machine like barometer_operate(...) like in this example: https://android.googlesource.com/kernel/mediatek/+/android-mediatek-sprout-3.10-marshmallow-mr1/drivers/misc/mediatek/barometer/ms5607/ms5607.c

MedadRufus commented 3 years ago

Can poll GPS every 20 seconds, and stay in deep sleep then.