Stack Exchange Network

Stack Exchange network consists of 175 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]

Use this tag for questions concerning low power sleep states, eg. a battery powered circuit waiting for an external event to happen.

0
votes
1answer
37 views

Reset MCU with a 1-0 button

I am working on a silabs C8051 MCU. It has a sleep mode which should be woken up by a reset. The mcu should start working (wake up from sleep) when the button in connected to Ground (Otherwise it is ...
0
votes
3answers
82 views

Interrupt debouncer for switch sensor

I want to read the state of a switch sensor (magnetic contact). I'm thinking to connect the switch between an interrupt pin of my micro and ground, listening for CHANGE status. In this way I have ...
2
votes
0answers
86 views

ESP8266 sleep current is higher than it should be [closed]

In short: Despite setting my datalogger IMU to SLEEP and going to deepSleep(0) on the ESP without any other IC peripherals besides the buck converter and 2 deactivated LEDs, I still measure 2.5mA ...
0
votes
1answer
30 views

Putting the CC2541 to sleep

I have a bluetooth module which uses the CC2541 IC. My project is battery powered and so i want to be able to put the device to sleep.i have been looking about trying to find how to do this and it ...
0
votes
3answers
181 views

Low power switch input with MCU wake-from-sleep interrupt?

Im trying to read the falling edge of digital logic input to wake up a microcontroller. Below is the circuit I have used. There is an RC filter to provide a ~5ms debounce time, and a 100K pullup so ...
1
vote
1answer
236 views

Low power sleep with WDT wakeup on PIC32MM

I'm trying to put a PIC32MM0256GPM028 into sleep mode and have it woken up by the Sleep Mode Watchdog Timer (say 1/4 second later- adjustable by SWDTPS anyway). Once it goes to sleep (current drops), ...
0
votes
1answer
40 views

Single Button Power Switch and Mode Selector

I am currently creating an embedded project and would like to know what you all think is the best way to proceed. My setup at its most basic is an ATMEGA328P, a simple momentary pushbutton, a ...
1
vote
1answer
109 views

Is it the right use of the RTC RV8523 to wake up an atmega328p?

I'm using the RV8523 to wake up every 2 minutes an arduino atmega328p. The rtc is wired like this : Where INT1 is wired to Port D pin 3. The internal pull up resistor is activated and yet it's ...
0
votes
1answer
61 views

Switch low-level to high-level signal

I don't think that there is an easy (or even any) solution to this, but maybe somebody can help me: I got a GPS module connected to another MCU. The GPS module works on its own and should wake up the ...
0
votes
0answers
53 views

CPU idle mode to deep sleep mode transition overhead

I wanted to know for modern processors, what are the typical amounts of switching energy overhead and switching time overhead, to switch from CPU idle mode to deep sleep and back from deep sleep mode ...
1
vote
0answers
114 views

MCU wakes up from sleep periodically

I'm facing a weird behavior on SOME boards based upon CC3220SF. Scenario I have 20 units of my custom PCB, designed following the Design Reference Guidelines from Texas Instruments and - like they ...
0
votes
1answer
612 views

STM32 External Interrupt via GPIO cannot be triggered after waking up from STOP mode

I have a problem with a project based on an STM32L051. I want to use the stop mode and wake up on an external (GPIO based) IRQ. This all works great but after the MCU woke up once, no IRQs seem to ...
3
votes
3answers
2k views

ESP32: how to keep a pin high during deep sleep (RTC GPIO pull-ups are too weak)?

I'm using an ESP32 in a battery-powered device. The ESP spends most of the time in deep-sleep to save power. The device also has some 5V-powered sensors which I'm feeding from a MCP1640 step-up ...
0
votes
0answers
129 views

Pulse counting routine with sleep

I'm making a simple battery-powered project that measures water flow with a liquid flow meter and transmits the value with an nRF24L01+. The microcontroller I've chosen is a TI MSP430FR2110 (family ...
1
vote
3answers
86 views

pic16f628a timer1 interupt wakeup from sleep

I have a problem with sleep mode on PIC16F628a. Configuration: microcontroller running on 4Mhz internal oscillator. 32kHz external oscillator on T1OSI/T1OSO pins. Program below works fine (having ...
10
votes
1answer
590 views

Detect which momentary switch caused a STM32 cpu to wakeup

Edit: This question is wrong. The stm325105 has only one wakeup pin. But other ST-parts has more than one wakeup pin, so the given answer is valid for those. I have a stm32f105 that has two momentary ...
4
votes
1answer
353 views

ESP8266: Differentiate wakeup due to sleep interval vs button press

I have an ESP8266, ESP-12F modules that is in deep sleep mode. It wakes up every 6 hours to read the humidity sensor, display it on LED and then post to IFTTT. Because it is every 6 hours, it ...
2
votes
1answer
110 views

Logic shutdown for CMOS oscillator

I would like to add a !(SLEEP) line for this CMOS oscillator in a way that in case of low input on !(SLEEP) line, the output PWM line is constant low. 2 questions for the circuit: In this case do I ...
-1
votes
3answers
3k views

How to wake up SIM800 module from sleep, after entering sleep mode 2 (AT+CSCLK=2)?

I want my SIM800 module (I interfaced it with Arduino Uno) to enter sleepmode-2 (I used AT+CSCLK=2 command). My question is, how do I wake it up from sleep? I tried giving various AT commands but I ...
0
votes
1answer
876 views

Wake up a PIC from sleep using Timer1 Interrupt

I tried to wake up a PIC (16F88) from sleep using Timer1 Interrupt with external crystal. But it doesn't work. I tested it using watch dog timer and it works. But I want to use Timer1 Interrupt. It ...
1
vote
0answers
120 views

Xbee s2c consumes 18mA in sleep mode

I am making battery operated low power sensor node with Xbee. I've configured Xbee S2C in sleep mode SM1 -pin sleep which should take 10uA according to datasheet but it is taking 18mA in sleep and ...
2
votes
0answers
314 views

SAM-D21 Clock On Demand does not wake up the MCU from Standby

I am using SAMD21 with FreeRTOS. I am putting the system on sleep level Standby and relying on a TC that works as a systick for the tickless FreeRtos to wake up the MCU however, when the debugger isn'...
1
vote
2answers
3k views

How to stop/reset the watchdog timer from low-power sleep mode on an STM32L0C8?

On an STM32L0C8 MCU, I have the watchdog enabled while executing. At certain points in execution, I would like the chip to go into low power sleep mode. When it goes into low-power sleep mode though, ...
3
votes
0answers
259 views

Wait make the STM32L073RZ freeze in stopmode

With my STM32 I'm trying to configure a deepSleep mode and use RTC to generate interruption (actually each 30 seconds). When my STM start, this one configure the RTC and directly go in Stop mode. ...
1
vote
2answers
91 views

Short-term data storage in between wake cycles

I've been working on making a gardening system using an Arduino or an ESP32. To conserve energy, I will have the MCU sleep for long periods of time (I was planning on using pin-change interrupts to ...
0
votes
2answers
2k views

Arduino Atmega328 sleep mode with internal timer interrupt

I am trying to reduce the current consumption of my Atmega328 -Arduino- by using the sleep modes. In my code, I want to wake-up every 10ms, read the value from ADC, ...
2
votes
2answers
643 views

Ultrasonic sensor(ping) and deep sleep Arduino

Is it possible to use an ultrasonic sensor to wake up an Arduino which is in deep sleep when an object is detected within a few cm and then do stuff?
0
votes
2answers
3k views

Use a RTC to wake up an ESP8266

I'm designing an alarm clock with an ESP8266 (Nodemcu) and a RTC module (DS3231). My system doesn't have any battery, it will be constantly powered through USB. I'd like to keep my ESP866 in deepsleep ...
0
votes
1answer
53 views

How to get the “max” from two inputs?

Question: Is there any way that I can change the signals from two inputs into the max signal from those inputs? Such as, ...
2
votes
1answer
4k views

Entering stop mode on STM32L011 only works first time

I have a very typical application here - long periods of minimal current consumption (15 minutes to 24 hours sleep duration) with short periods of activity in between. In my particular case, this is ...
0
votes
4answers
698 views

Can I wake ESP8266 with photoresistor like in this schematic?

I want to wake ESP8266 when the light turns on, send information to the server, go to deep-sleep for a few seconds and then send the information again and keep doing that. If the server stops ...
0
votes
2answers
424 views

Does a chip retain information in sleep mode?

I'm trying to write a long term timer function on an attiny85 and currently I'm using a counter. I'm experimenting using sleep mode as detailed here. I'm wondering if the chip "retains" information in ...
2
votes
3answers
983 views

How to wake up ESP8266 with light change?

I want to send information to the server when the light changes (turns on or turns off). As for now, I have a photoresistor connected to ESP8266's ADC pin. I'm measuring voltage and sends information ...
0
votes
1answer
805 views

RTC Alarm deepSleep STM32L073RZ

I'm trying to configure 2 differents Alarms on my STM32L073RZ to leave the deepSleep mode but unfortunately after the first wakeUp the memory is reset and the second alarm never wakeUp the STM32. My ...
0
votes
0answers
2k views

How to use both RTC and RTC alarm on STM32?

I've got a board with STM32F103C8T6 and a 32.768 kHz external crystal. The RTC module of STM32 is used as a calendar as I set the prescaler to 32767. But, to reach the minimum power consumption, I ...
0
votes
1answer
478 views

Sleep mode in ATMEGA16 not working

I am trying to put my controller in sleep mode and waking it up on a certain number of timer overflow. The code is as below: ...
5
votes
1answer
7k views

STM32 Sleep Mode: Interrupt gets executed but the CPU stays in WFI

I'm fairly new to the ARM architecture and I'm working with a board that contains STM32F0 microcontroller and an RF modem, which sends an interrupt every time it receives a message. I'm trying to ...
1
vote
1answer
523 views

PIC12F675 wakes immediately from sleep command

I'm trying to build a power controller for a battery operated device. I choose PIC12F675. The idea is putting pic in sleep mode. Wake it up with Watchdod timer approx each second. Check pin states, ...
0
votes
1answer
267 views

sleep mode in pic16f1618/19

I am trying to reduce the power consumed by microcontroller pic16f1618, and hence I thought of using SLEEP(). All interrupts such as timer, and pin are disabled. The code is generated with the help of ...
1
vote
1answer
62 views

Power switching peripherial parts by MCU

Using an MCU like from MSP430 series, it is possible to create circuits that runs from battery power for years in some standby mode (waiting for button or realtime clock alarm for example). However, ...
0
votes
2answers
604 views

How to make auto off functionality for an led lamp circuit with only transistor, capacitors, timer 555 chip?

The components I have are timer 555 chip, capacitors, and transitors. I want to create sleep functionality for a led lamp which consists of 6 leds in parallel and pnp, npn transistors. I want this ...
0
votes
1answer
268 views

How do you implement an Energia interrupt handler?

So, I have an application that needs to be very conservative with the power. I use the suspend() command to go into LPM4 and wait for an interrupt to occur. During the interrupt, I attempt to ...
0
votes
1answer
106 views

passive motion sensor

I would like to get a microcontroller out of sleep when the board starts moving (or vibrating). If possible it should just be a passive switch (I only need a positive edge from a battery to get the ...
0
votes
1answer
4k views

Nodemcu sleep mode works but still consumes too much power

I would like to reduce the power consumption on my ESP8266 devices with a built in USB to UART. I used this function : system_deep_sleep_set_option(0); system_deep_sleep(5 * 1000000); This ...
1
vote
1answer
2k views

Getting ADC readings after waking a ATTiny85

I have this little project of mine that involves putting a ATTiny85 to sleep to save power. The main idea is to: 1- Putting ATTiny85 to sleep, including deactivation of the ADC 2- Wake-up MC on pin ...
0
votes
1answer
560 views

Atmega8 doesn't enter power-down mode on sleep_cpu()

I'm trying to put atmega8a to sleep with this code: ...
0
votes
2answers
2k views

AVR sleep interrupt with keypad

I'd like to wake up my AVR whenever any button on the keypad is pressed. I am using Keypad.h library and simple 4x4 keypad made of buttons connected straight to AVR digital pins. Keypad itself works ...
1
vote
1answer
257 views

Interrupts in AVR

I'm using an atmega328 on AVR. I haven't done any coding yet but I am planning. How I will do so in my head. So I want to be able to wake up the ATmega328 via a button press, and go to sleep after I'...
1
vote
2answers
275 views

Low-power interrupt generator

My objective is to generate an interrupt on an Atmega328P processor every second or so, using substantially less average current consumption than the inbuilt watchdog timer. You can see from the ...
2
votes
1answer
585 views

How do I wake from sleep on PIC10F200 via watchdog?

So far I have worked with many other micro controllers but not the PIC-family. I'm having trouble with waking from sleep via watchdog on a PIC10F200. I'm programming it in C using the MPLAB X IDE v2....