How to set sleep mode for Feather M0 Bluefruit

Hello,

I would like to save power consumption when the object temperature is tested. However, I do not know how to set sleep mode for Feather M0 Bluefruit to save the power consumption. Dose any one achieve it before? Thanks in advance.

Kind regards,
Tang

tangtangdn:
Hello,

I would like to save power consumption when the object temperature is tested. However, I do not know how to set sleep mode for Feather M0 Bluefruit to save the power consumption. Dose any one achieve it before? Thanks in advance.

Kind regards,
Tang

What is your project?
Do you have a wiring diagram of your project?
More detail is required.

artisticforge:
What is your project?
Do you have a wiring diagram of your project?
More detail is required.

Hello,

I just connect GY-906 infrared temperature sensor to Feather M0 Bluefruit. The pin connection is shown as below (Sorry, I do not know how to paste a picture here)
Vin–3V
GND–GND
SCL–SCL
SDA–SDA

The sample frequency is about 1Hz. However, the power consumption is up to 36mW (about 3V*12mA). I want to reduce the power consumption. Could you give some good ideas? Thanks a lot.

Regards,
Tang

Hi Tang,

It might be worth checking out the RTC (Real Time Clock) library: Arduino - RTC.

It has a function called standbyMode() that puts the processor to sleep, although in the source code a comment says that it causes issues when the board is connected via the native USB port. The source code can be found here: https://github.com/arduino-libraries/RTCZero.

There's also an example SleepRTCAlarm: https://www.arduino.cc/en/Tutorial/SleepRTCAlarm.

MartinL:
Hi Tang,

It might be worth checking out the RTC (Real Time Clock) library: Arduino - RTC.

It has a function called standbyMode() that puts the processor to sleep, although in the source code a comment says that it causes issues when the board is connected via the native USB port. The source code can be found here: https://github.com/arduino-libraries/RTCZero.

There's also an example SleepRTCAlarm: https://www.arduino.cc/en/Tutorial/SleepRTCAlarm.

Thanks Martin.