Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sleep]

Sleep refers to a form of power management, where the processor can be instructed to enter various levels of "sleep". Use this tag for discussions about sleep mode.

0
votes
0answers
15 views

Sleepmode for arduino [closed]

i have a project to done which is An arduino should send sensor data via bluetooth to raspberry pi so my quetion is, is it anyway to make the arduino bluetooth into sleepmode? because i want save ...
0
votes
1answer
49 views

noisy output lines when waking up from a sleep

Using code similar to these examples from AVR https://www.microchip.com/webdoc/AVRLibcReferenceManual/group__avr__sleep.html my program causes my Adafruit Feather 32u4 to often sleep. When the ...
3
votes
1answer
213 views

Why does using ESP8266 in deep sleep mode still drain the battery quickly?

I've made a "weather station" using the ESP8622. To save battery I'm using sleep mode but still the battery is drained after a couple of days. According to this post it should last at least a year. I ...
1
vote
1answer
39 views

Low-Power library question

i'm study the Low-Power library to better undertand how it works. In this part of code i have some question. Sometime he uses commands like: power_timer1_disable(); power_timer0_disable(); but in ...
0
votes
2answers
306 views

Wake up ESP8266 from deepSleep with a button

I have a button with two isolated tracks. I want to be able to wake up esp from deepSleep with this button, and also detect that it was clicked. So i can't connect it to reset, because esp won't work ...
1
vote
1answer
39 views

Why can I wake Arduino only once with this code?

This is my enhanced code for a daylight alarm on Arduino UNO with an added MP3-Player. The device is supposed to sleep all the time except when I hit the play button (then it is supposed to play music)...
0
votes
1answer
49 views

MKR Fox 1200 doesn't wake up from sleep

I have a Sigfox Arduino meassuring some sensors, sending it to the cloud and then falling asleep. void setup() { Serial.begin(9600); while (!Serial) {}; if (!SigFox.begin()) { Serial.println(...
0
votes
1answer
114 views

Battery voltage monitor right after deep sleep

i have my esp32 module in deep sleep and i use it with a couple of buttons using a wake up that detect the button pressed now i'd like to have a battery level to send to a server right before going ...
0
votes
1answer
71 views

Hibernate Arduino for 12hrs with rtc1302 module

ok, Good morning, guys, with a data acquisition project, in this, I get data every 12 hours, even if it's only 12 hours, the arduino gets connected directly, and it's being powered by a 9v battery, ...
5
votes
1answer
72 views

Converting a standard setup/loop sketch to a low power application?

Suppose I have a typical setup/loop style sketch, such as this one which turns on an LED when a button is pressed. How do I modify this so that it enters low power mode, awakes on the button press, ...
0
votes
1answer
283 views

NodeMCU 12E V2 Power Saving

I'm powering a NodeMCU with 4 x AA batteries (6v, ~9,600mAh). I am running ESP.deepSleep([milliseconds]) to minimize power consumption. Even with deepSleep I am seeing a precipitous drop off in ...
2
votes
1answer
33 views

Using external reset to trigger radio receipt

I am designing a low-power RF application using an ATTiny (Adafruit Trinket). When the system receives a radio signal, it needs to read some sensors, and transmit with that data. Because I am short ...
0
votes
1answer
60 views

Is SRAM erased when putting Arduino into sleep_mode_pwr_down?

Question In the interest of reducing power consumption, I am putting the Arduino into sleep mode between taking sensor readings. However, the data from readings are stored in arrays, and must not be ...
0
votes
1answer
46 views

Cannot use radio transmitter after switching to LowPower library

My Arduino Mini board has DHT22 temperature sensor and 433MHz radio transmitter modules. I'm using DHT and RCswitch libraries to make use of them. Code looks like this: void setup() { tempSwitch....
0
votes
1answer
38 views

Use lowpower-libary and still use serial connection and other things

I managed to get the LowPower libary working on my Arduino Micro. This code works perfectly: #include <LowPower.h> void setup() { // initialize digital pin LED_BUILTIN as an output. ...
1
vote
1answer
209 views

PIR motion wake ESP8266 from deepsleep

I'm trying, what I thought would be simple, to wake a sleeping ESP8266 via motion detected by a PIR. There are a lot of schematics around and they all seem to go about it more or less the same way, ...
0
votes
0answers
68 views

Is this a good way of making a low power attiny? Unpower instead of sleeping

I am making a low power rf remote that just has 3 buttons and sends rf signals accordingly. I've been trying to make pin interrupts work when it's in deep sleep but it's a huge hassle. And then I ...
1
vote
1answer
55 views

Arduino based IR remote control - Transmission issue

I created a circuit of a 25 key IR remote controller for my RuneAudio device. The device is a standalone ATmega328P-PU running at 3V (2 AAA batteries) with 8 MHz internal clock. The circuit has 5 rows ...
0
votes
1answer
731 views

ESP8266 light sleep - can't wake up

I am attempting to implement a light sleep mode on an esp8266 (feather huzzah) which, when a button is pressed, wakes the system up so that it can continue its normal task. I cobbled together some ...
1
vote
1answer
111 views

How to add additional millisecond delay to microsecond delay generator

I am trying to make a delay generator. I already found an excellent example in Generating a short pulse after a delay that works in the range from ~5-32767 microseconds (it is limited by a 16 bit ...
1
vote
1answer
761 views

ESP.deepSleep() - over and over?

Important note: the esp.deepsleep function uses microseconds, not milliseconds. I posted another question here asking for clarification on how an RTC can be used to put a NodeMCU 12 to sleep for a ...
0
votes
1answer
62 views

Switch controlled power saving esp8266

I'm trying to build a door sensor with the esp8266. I want it to be battery powered and use deepSleep for power saving. I'm going to use a normally closed reed switch between D0 (GPIO16) and RST. I ...
0
votes
2answers
813 views

Sleep power down mode with change interrupt

I want to use to use an IR sensor as an interrupt to wake up my Arduino Uno R3 from the deep sleep power mode and then go back to sleep after changing the state of the relay. Lets say if I press a ...
3
votes
2answers
397 views

Attiny85 appears to be drawing 0.2mA current but battery running down more quickly

I am trying to get a temperature sensor (tmp36) working with an Attiny and if possible I would like it to run for several weeks. I have tried to power down the Attiny and it appears to be drawing only ...
0
votes
1answer
861 views

ESP8266 in AP Mode -determining if a station is connected

I have an ESP8266 running in AP mode using softAP and i want to conserve battery life. I am wanting to turn on wifi and advertise SSID for 20 seconds. If no station connects to the ssid within the 20 ...
2
votes
1answer
3k views

How to generate hardware interrupt in mpu6050 to wakeup arduino from SLEEP_MODE_PWR_DOWN mode?

I am using Arduino UNO and has kept in SLEEP_MODE_PWR_DOWN mode & want it to wakeup using MPU6050 hardware INT pin (which should send a signal when MPU is in motion). I have used the article https:...
0
votes
1answer
906 views

detachInterrupt(0) in arduino not working ? after giving continuous ground to INT0 wakeupnow function should execute once not again and again

#include <avr/sleep.h> int wakePin = 2; // pin used for waking up int led=13; int flag=0; void wakeUpNow() { // execute code here after wake-up before returning to the ...
0
votes
1answer
207 views

Low-power detect rise and fall of input signal

For a very low-power-project (where I want to keep the micro-controller asleep or powerless as much as possible), I need to detect the rising and the falling of an input-signal (which could power-on ...
5
votes
2answers
460 views

How can I use PWM in power saving mode (ATmega328)?

I fail to use PWM in power saving mode. The output behaves erratically. This should be possible, I guess. The following is a minimal working example: /* MWE: Cannot use PWM in any power saving ...
1
vote
3answers
58 views

Is it possible to power up Arduino upon serial transmission without dropping data? [duplicate]

I have radiator valves that send readings about the temperature and valve opening to the serial output: Honeywell HR-25. I want to collect those readings in a central server at home without flashing ...
0
votes
0answers
441 views

How to put arduino in sleep mode and wake up after reading some analog value

I am having arduino uno and DHT11 temperature sensor. I am basically planning to make event based system. Example if first it reads temperature 23 degree then it sends to server. Then if temperature ...
1
vote
0answers
108 views

Threshold to wake up signal

I have a sketch to put to sleep and wake up an arduino mini pro 5V, but the problem is that sometimes when it is moved fast it wakes up itself, thing that I do not want. I have it configure to be ...
0
votes
1answer
527 views

Send events to Azure IoT Hub combined with deep sleep mode

I use a Node MCU ESP8266. I have a working C app sending temperature and humidity sensor data to Azure IoT Hub continuously. I see events/messages coming in at Azure. Now I'd like the app to only ...
0
votes
1answer
180 views

Set clockspeed of Arduino Pro Micro a. k. a. AtMega32u4

Is it possible to change clock speed when running sketch? Low-power lib drops the current consumption from 20mA to 9.5mA at 8MHz, it is still too much. Is there a way how to set clockspeed (for ...
0
votes
0answers
367 views

Wake up arduino mini with a external signal from a rf wake up receiver

I am working in an arduino which sleeps after 1.2 seconds of running time and wake up when receiving a signal in the pin 2, but this last part is not working. I tried with the four modes of the ...
0
votes
2answers
309 views

waking up arduino mini with a external signal

I have an arduino mini with an ultrasonic sensor conected to the pins 2 and 3, and a RGB LED connected to the 4,5, and 6, I want to include a wake up and sleep functionality that wakes up when receive ...
0
votes
2answers
559 views

Pin change interrupt does not work properly to wake up arduino from sleep mode

I am building a timer circuit using Arduino Pro Mini Atmega168p 5v 16MHz (which later supposed to be become to adjustable one). Here is the current breadboard view. (I am supposed to use SS relay at ...
0
votes
2answers
158 views

Is it possible to recover an Arduino if it does not wake up after putting it to sleep

I have an ATTiny85 controlling the power to a number of devices. When I first power on it will power the devices via a mosfet. Take the readings it needs to and then puts itself to sleep for 15 ...
2
votes
0answers
249 views

Is it possible to put ATtiny85 to sleep while using TinywireS?

I have an arduino uno as the master I2C device talking to an ATtiny85 as the slave. What I want to do is have the Attiny85 receive a message from the UNO to tell it to power off which will then ...
0
votes
1answer
957 views

Soft debouncing from an interrupt during stand-by

My current setup has the arduino in 'stand-by' power saving mode, therefore i am unable to use any means of a traditional soft debouncer, such as Bounce2, as far as I know. I went ahead and attached ...
3
votes
0answers
122 views

Hacking a Chinese Audio Selector Board: IRLib2 with Low Power Sleep Issue [closed]

I have an issue getting an arduino based hacked-board to sleep whilst performing ir remote commands properly. What am i hacking? Exactly this: tl;dr it's a 4 in 1 out audio selector with motorised ...
0
votes
1answer
632 views

Arduino Micro serial communication is not working after wake from power down

I'm trying to use the power down state for a battery application, but I'm having issues with the serial communication. I'm using the lowpower.h library to put the Arduino Micro into power down mode. ...
1
vote
1answer
576 views

Waking Arduino from sleep by holding button for more than 3 seconds

I am working on a battery powered Arduino project, where I need to put a standalone Arduino in sleep mode (to save some battery). My aim is to put Arduino in sleep mode by holding a button for 3 ...
3
votes
2answers
690 views

SIM800L and Arduino Sleep - getting whimsy Serial output after 5 calls

i'm working on project where i'm trying to achieve that arduino parse caller ID so i can use it later to send SMS with sensor reading data. Somehow i made that code (with much googling) and it works ...
0
votes
2answers
93 views

Can I set pin 13 to output 5v, then put arduino mini pro to sleep?

Can I set pin 13 to output 5v, then put arduino pro mini to sleep and it maintains 5v going through pin 13 while in sleep mode? I know there are various "levels" of sleep - can a voltage be ...
0
votes
1answer
721 views

Wake up Arduino Uno by RTC

I intend to make the device runs about couple hours a day(let say 2hrs) -> go to deep sleep -> wake up in next 7 days -> repeat the process. I got the code from one of member here (DotPi) which I ...
0
votes
3answers
137 views

Two Arduinos get out of sync after a few seconds

I built a small PCB that has some LEDs (bare NeoPixel 5050) and an IR receiver on it. The microcontroller is an ATtiny85, and the PCB is powered by a LiPoly battery (3.7V). The circuit normally stays ...
0
votes
1answer
39 views

Trying to turn off fading RGB LED after 30 secs

I am trying to get something to work so that an RGB LED fades through the color spectrum, and when a button is pressed some music plays. That is not the problem. Assume I am using any loop that ...
1
vote
0answers
174 views

Sleep mode Arduino Due through IR receiver control

I need to put my Arduino Due into sleep mode in order to consume less power. My Arduino Due receives IR data and does some work with it, but I need to make it sleep until there is no data. If data ...
1
vote
2answers
277 views

POWER_MODE_IDLE wake on any input change?

I want to be able to put an Arduino to "sleep" but I want it to immediately resume if any panel tactile buttons are pressed. The purpose is to try to minimize any digital noise in an nearby high gain ...