This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Putting the device in low power mode

I am developing code for nrf52832 to read data from a connected sensor on I2C. There are two scenarios I am trying to save power: 

1- During the initial power up, I have to enable the sensor (nrf52832 asserts sensor EN pin) and then wait 50ms for it to warm up and initialize itself. 

2- During reading sensor data, I have to send measurement command on I2C, and then wait ~2.4 seconds for sensor to assert nRDY pin. Then nrf52832 collects data from the bus. 

What is the best practice to save power during these wait periods. How can I sleep the device when it is waiting for the sensor instead of using nrf_delay_ms() to wait 50ms in the first scenario and 2.4s in second scenario.  

Parents Reply Children
Related