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.

Filter by
Sorted by
Tagged with
0
votes
1answer
329 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
891 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
95 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
1answer
167 views

Threshold to wake up signal

I have a sketch to put to sleep and wake up an Arduino Pro Mini 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
829 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
318 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
536 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
486 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
912 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
210 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
363 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
2k 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 ...
2
votes
0answers
139 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
915 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
913 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
939 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
146 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
989 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
197 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
45 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
243 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
506 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 ...
1
vote
1answer
457 views

WDT and RadioHead with delay()

The core I use is this one The chip I use is an ATtiny85 I run this using the Arduino IDE 1.8.2 RadioHead ASK library (slimmed down) What I want to do is: deep sleep wake up every minute turn on ...
1
vote
2answers
528 views

Attiny85: Watchdog does not initialize properly when using switch(case)

I have a project in which I am putting my ATtiny85 to sleep. Here is the watchdog configuration (in the setup) that works just fine: void setup() { /* Setup the LCD */ lcd.init(); ...
1
vote
2answers
1k views

Wakeup Pin ESP8266

Is there a way to put an ESP8266 into a sort of "sleep" mode where it draws less power than usual, and then wakes up on a pin going high? I've tried doing this with delay, which still draws 20 mA, and ...
1
vote
2answers
1k views

Reduce current consumption on ATtiny85

I am trying to reduce current consumption on my project. Right now it is using ~1.28mAh, it should be possible to get it much lower (I am using AA batteries as the power source). The ATtiny85 has its ...
1
vote
2answers
1k views

How can I maintain switch state when in sleep mode?

I'm using a esp8266 to build a remote control to power a gas fireplace. I'm using this guide to try and maximize battery life. The concept is the controller uses its built in WiFi to access a ...
1
vote
1answer
556 views

Waking up async the Arduino while it's sleeping periodically [duplicate]

I´m using LowPower.h and PinChangeInt.h libraries to put my Arduino into the sleep mode every 8 seconds and then it wakes up, modifies a counter and it goes to sleep again, but also I need to wake it ...
1
vote
1answer
2k views

Wake Arduino (Atmega328) from sleep with ADXL345 interrupt

So I'm relatively new to microcontrollers, and I'm having a problem implementing a feature I want for a project. I've learned about putting an Atmega328P to sleep from this tutorial. I'm using an ...
5
votes
4answers
2k views

How to keep accurate millis() while using ADC_sleep mode?

millis() uses timer0 (linked to CPU clock) to count time, but ADC_sleep mode stops the CPU clock, therefore millis() will drift (lag behind) after each ADC conversion performed in ADC_sleep mode. ...
0
votes
1answer
808 views

Powering Down Arduino MKR1000

The MKR1000 is still pretty new and I'm having a hard time getting good information on it. I'm using the Arduino IDE but don't find any functions to sleep the MKR1000. Most libraries I encounter are ...
2
votes
3answers
1k views

Arduino Project Power Consumption Calculations

I have built an automated window blind controller that will adjust the angle of a servo based on the value received via a light dependent resistor. Once every 10 minutes the MCU wakes up, gets the ...
0
votes
1answer
874 views

Sleep and Wake Arduino according to LDR interrupt

I have to sleep the system in the night and have to wake the system in day time. I am using LDR to get input. LDR input is connected to interrupt pin 0 of Arduino Uno. Here is my code. #include <...
1
vote
1answer
682 views

Does IDLE Mode not power down an ATtiny85?

So I'm trying to power down my ATtiny85 to save power, but for some reason the ATtiny doesn't power down when I'm using the default IDLE mode, but when I start using the SLEEP_MODE_PWR_DOWN the ATtiny ...
0
votes
1answer
472 views

How can you determine the duration of a timer interrupt?

So I understand that when setting a timer interrupt you don't use nanoseconds or milliseconds, but the actual number of clock cycles. However, I don't understand how you would be able to setup a ...
1
vote
1answer
4k views

How to wake up Arduino Mega when in Power Saving Sleep Mode?

I'm using sleep mode to turn off my device after the routine has finished executing and want to use interrupts to wake it up every 33 milliseconds. Basically, the idea is that if the routine completes ...
1
vote
1answer
450 views

Why does this not put my Arduino Mega to sleep?

I have the following program which is supposed to print the words "Program is on" once and then go to sleep. However it doesn't go to sleep and continues to print "Program is on" over and over again. ...
2
votes
2answers
304 views

Is there a way to set an interrupt to go off after a certain period of time?

I'm trying to save power by putting my device to sleep once it has run through the code once and turn it back on every 33 milliseconds. So basically, if the code finishes executing in 20 milliseconds ...
1
vote
1answer
760 views

ATSAMD21 sleep + watchdog?

Has anyone got sleep/standby + watchdog to work together on their Arduino Zero or Sparkfun SAMD mini? I am able to get the WDT to reset the device, and am able to put it to sleep - but can't get the ...
1
vote
2answers
417 views

Works for 2-3 hrs, then LED blinks rapidly - Sleep Mode and Watchdog timer wakeup

I hope somebody can shed some light on this problem. I've researched the internet and forums and noticed that others have experienced similar problems. This sketch runs fine for a couple of hours......
0
votes
1answer
446 views

How to sleep a whole circuit?

I have just completed my first project, a clone of the Simon game of the eighties. The main parts of the circuit are an ATMega328, a 1602 2x16 LCD, and a small joystick. It is powered directly from ...
2
votes
1answer
1k views

PIR sensor and sleep (interrupt) on Mega2560

So I was starting to gain some knowledge on the PIR sensor and how to let the Arduino 'sleep' while there is no movement detected by the PIR. I found the following code somewhere and looked fairly ...
0
votes
1answer
1k views

Arduino: pins still active after entering sleep mode

I'm writing an Arduino sketch to control a display with my Arduino Nano. I have wired it up as explained here, but used pin 3-7 instead of pin 2-6 listed in the example. The reason I did so is that I ...
1
vote
1answer
572 views

ATTiny85 433Mhz with sleep

I would like to micromize my Arduino project and move it to ATTiny85. The first step was using sleep functions because I just want it to run once a day. Now I need to connect the 433Mhz stuff but I'm ...
3
votes
1answer
1k views

Accelerometer Interrupt Meaning - Wakeup Function

I am working with an LSM9DS1 IMU, and now specifically trying to program a wakeup feature into the system. My idea is to set the accelerometer at the lowest possible read rate, then when the ...
1
vote
3answers
215 views

No Battery Microcontroller Operation - (Motion, heat, induction etc)

I am using an ATtiny85 to sleep for a long period of time, collect some data, send it over radio, and go back to sleep, after disabling everything possible. The ATtiny is currently powered by a coin ...
1
vote
1answer
744 views

NRF24L01 Connection Not Working

I have an ATTiny85 connected to an NRF24L01+ module using this wiring diagram: diagram. The ATTiny85 periodically goes in and out of sleep to send some value to a receiver, an Arduino Uno. If the ...
2
votes
1answer
658 views

Why does my Arduino keep waking up?

This is my first post. Please excuse me if this is a repost, but I couldn't find a similar question via search. I have some experience with Arduino and I'm looking to utilize AVR's sleep mode in a ...
0
votes
1answer
187 views

Using a library of sleeping with a combination of the WD and a physical INTERRUPT

I would like to use one of the nice libraries like : JEELIB ENERLIB SLEEP_N0M1 NARCOLEPTIC ADAFRUITSLEEPY_DOG LOW_POWER_MASTER But to use a X second interval of sleeping and in the same time to ...
0
votes
1answer
872 views

How to put arduino in sleep mode?

I need to put arduino in sleep mode. I did not find the library avr/sleep.h . From where to download it.