This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I stop my UV sensor using the battery through VDD until I want it to? It's connected using TWI headers.

I'm using the nRF52 DevKit with nrf52832 SoC. I connected a UV Sensor through the TWI interface (PINS 26 & 27, as well VDD and GND).

However, I fear it's using a lot of battery energy. So, I power down the TWI interface using the nrf_drv_twi_disable() and nrf_drv_twi_uninit() functions until I want to read the sensor. At which time I power it up again.

My question is, will calling these functions stop the sensor from using the battery? If not, please suggest how I can stop it from using any battery energy until I want to power it up and use it.

Thanks, and I'm looking forward to your response.

John

Parents Reply Children
Related