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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
28 views

VL53L3CX XSHUT PIN PROBLEM IN DEEP SLEEP

I have project using a VL53L3CX distance sensor. Also , I control it by ESP32. In normally, I can command to XSHUT pin. And I can read xshut pin of ESP32 that is 3V3 or 0V. But, When ESP32 enters deep-...
user avatar
  • 11
4 votes
1 answer
77 views

STM32F030 High current in stop mode

I would like to put STM32F030K6T6 into STOP mode (low power mode), in which there should be current consumption around 5 μA. But whatever I do the current consumption is around 450 μA in stop mode. ...
user avatar
  • 5,177
1 vote
0 answers
45 views

ESP8266 wake up from deep sleep on air flow

I am building a small device using ESP8266 and battery power (low power), as I would like to clip it to an air vent and have it wake up from deep sleep when the air vent is blowing, take measurements, ...
user avatar
  • 11
0 votes
1 answer
115 views

ATtiny85 - Sleep Mode & Interrupts

I am working with ATtiny85. I want to put my MCU in IDLE Sleep mode and after every five minutes, I want to write data into EEPROM. I am using Timer 0 overflow interrupt to count 5 mins. Counting will ...
user avatar
  • 5
0 votes
1 answer
52 views

ATtiny85 - Working with EEPROM in IDLE mode

I am working with the ATtiny85 board. I am working with data EEPROM and sleep modes of EEPROM. I have the following questions Can we write data into Data EEPROM of ATtiny85 when the device is in IDLE ...
user avatar
  • 5
0 votes
0 answers
68 views

AVR: Interrupts from sleep not working properly

I am trying to program a piece of code (on an ATMEGA4809-nano) which creates an interrupt when a button is pressed or released. I have implemented it, but for some reason the interrupts aren't working ...
user avatar
0 votes
0 answers
52 views

Feather 32u4 too much current draw

I am trying to build a battery-powered application using the Feather 32u4. I need a timer to trigger every 120 seconds (although Timer1 with it's 8 second limit would suffice for the beginning), thus ...
user avatar
5 votes
1 answer
185 views

How to make SMT32 chip programmable while it stuck in Standby mode?

From my mislead I put HAL_PWR_EnterSTANDBYMode() in the code whithout any wakeup behaviour, which made my chip unable to debug via SWD interface. So I can not ...
user avatar
1 vote
0 answers
170 views

Wake up with external Interrupt from deep sleep mode (Adafruit Feather 32u4)

I have an Adafruit Feather ATMega 32u4. I want to put it into sleep mode and wake it up with pressing a switch as an external interrupt. This is what I tried so far and which worked: switching a LED ...
user avatar
  • 11
0 votes
0 answers
162 views

Current consumption is even worse in STOP2 than in Run Mode Range 2

I am using the STM32L431CC microcontroller and I am learning on saving power with the STOP2 mode. I found an example code that demonstrates how to use the STOP 2 mode on a different microcontroller of ...
user avatar
  • 87
0 votes
0 answers
44 views

Sleep current of automotive device increasing over time

I have something like a tire pressure monitor. It is battery operated. I haven't done automotive before and it is a whole other world besides consumer. I put in all high temp components (i,e, 40-125C ...
user avatar
  • 2,446
1 vote
0 answers
736 views

ESP32 High Power Consumption in Deep Sleep Mode

I'm running a Python program on an ESP32 (MicroPython firmware) that fetches online data to save it locally every 5 hours, and then goes into deep sleep mode. The board is powered with a 3.7V lipo ...
user avatar
  • 99
0 votes
0 answers
42 views

3 T Finfet Leakage reduction circuit techniques (VLSI)

What are the circuit techniques to reduce leakage in a 3T Finfet (front and back gate shorted) circuit? Vth in a 3T Finfet is almost always constant, so there is almost no stack effect and hence sleep ...
user avatar
0 votes
1 answer
105 views

how to put Atmega328 to sleep mode and wake it up without button,without WDT

iam building a IR based faucet i need to include battery backup here iam using only ATmega328 with crystal and capacitor, iam not using regulator or LED ...i need to increase the battey life iam using ...
user avatar
1 vote
0 answers
398 views

Configure STM32 to sleep inside an ISR

I am doing a test project to test the STM32's sleep mode feature. The project involves two microcontrollers: STM32F411 with a push button, which when pressed, sends data through SPI to an STM32F303 ...
user avatar
  • 87
0 votes
1 answer
41 views

Idle supply current at frequency or vcc

I'm trying to figure out how much power I can expect my ATTiny84 to use in idle mode and I'm not sure which of the two graphs from the datasheet I should use, or why there are two in the first place. ...
user avatar
1 vote
1 answer
1k views

nRF52 GPIO configuration in sleep mode to prevent peripherals from drawing current

I have a battery-powered board with an nRF52832 and some peripherals that I am writing a new firmware for. When set to sleep (NRF_POWER->SYSTEMOFF=1;) the board still draws way too much current (...
user avatar
  • 189
1 vote
2 answers
722 views

STM32L4+ UART doesn't work after entering STOP2

I'm just getting into learning the low power states of STM32s and this is my first project trying to use STOP mode so please forgive any noob mistakes. This code is based very similarly of the example ...
user avatar
  • 196
1 vote
3 answers
213 views

Low-power Linux-based ARM system on module for data logger? [closed]

I want to develop a data logger with several hardware characteristics (low-power consumption, SDI-12, I2C, SPI, UART, USB, Ethernet, touchscreen display, SD card, RTC, internal memory at least 128MB......
user avatar
0 votes
2 answers
669 views

Is it possible to set up multiple wake up interrupts on STM32. ? How to manage multiple sensor reading intervals?

I am new to developing applications on STM32 development boards. Currently i have STM32 IoT discovery kit. I am able to configure all the sensors and read data. I am interested in low power design ...
user avatar
2 votes
2 answers
3k views

How to wake STM32F103 by RTC using HAL libraries / Registers?

I've started digging into STM32F103 using HAL Libraries and raw registers. It's the first time to program at such low level. Anyway following a video I've successfully implemented "Standby" mode. ...
user avatar
1 vote
2 answers
2k views

STM32 standby mode power consumption is too high

I'm experimenting with standby mode on STM32F407VGT6. I know how to put MCU into standby mode(or I think to know that). I'm doing that with this init function: ...
user avatar
1 vote
1 answer
150 views

How to avoid a MCU to run constantly when a superheterodyne radio receiver is receiving nothing, and possibly enter in deep sleep?

TL;DR: How to avoid an ATtiny to run constantly when the radio receiver is receiving nothing, and possibly enter in deep sleep mode? Configuration: ATtiny45 (on breadboard) SRX882 Superheterodyne ...
user avatar
  • 1,688
0 votes
1 answer
91 views

Can a server send data to my SIM800c while it is in sleep mode?

I have a SIM800c and I'm also using an adafruit.io server. I'm building an alarm system and I'm wondering if I will be able to send commands to the system using the server while the GSM module is in ...
user avatar
1 vote
0 answers
103 views

ESP8266 vs ESP32 and WakeUp vs Reset

Maybe it's my fault but I kinda dislike the design of the ESP8266 when it comes to wakeup from deep sleep via an interrupt. AFAIK (without an external circuit) the ESP8266 can not distinct between a ...
user avatar
2 votes
0 answers
728 views

stm32 does not exit sleep

When trying to implement sleep mode it appears the code enters and exits sleep mode once and then gets stuck in sleep mode after and will not wake back up. I posted some code below of what I believe ...
user avatar
1 vote
2 answers
193 views

328p-pu drawing too much current in sleep mode

I have a ATmega328p-pu and run it at 8MHz with the internal oscillator. I am executing some code and then send the chip to sleep. I deactivate the brownout and ADC before activating the sleep. I have ...
user avatar
0 votes
1 answer
1k views

Reducing current consumption for a PIC16 in Sleep mode

This might appear as one of those tens of questions that ask about power consumption on a PIC microcontroller. But after I have failed to reduce the current consumption to an acceptable level despite ...
user avatar
  • 1,590
0 votes
1 answer
77 views

Sleep vs low frequency

Some processors have a low frequency mode for using in low power mode. For example MSP430 microcontroller can work in both Normal clock frequency 16M Hz Low clock frequency 32 kHz I am wondering if ...
user avatar
  • 183
1 vote
0 answers
285 views

how correctly disable wakeup pin in STM32f0?

We need to disable wake up pin in some time, during stm32f0 run. we have used HAL_PWR_DisableWakeUpPin(PWR_WAKEUP_PIN1); but it doesn't work. Should we do ...
user avatar
0 votes
0 answers
47 views

Reduce wake-up noise on ARM CM3

I need some help exploring a solution. I have an ARM Cortex M3 MCU, which has low-power sleep mode implemented. Wake-up sources are any GPIO pin, or an RTC alarm. A terminal is connected to UART-0 ...
user avatar
  • 33
0 votes
0 answers
2k views

STM32 L0 wake from STOP mode with WAKEUP pin

I am attempting to wake an STM32L073RZ from stop mode using WAKEUP_PIN_1. I'm running MbedOS 5.11. Unfortunately throughout all of the documentation (Mbed/STM) I ...
user avatar
  • 285
0 votes
1 answer
439 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 ...
user avatar
2 votes
1 answer
422 views

Put RS485 microcontroller and transceiver to sleep and wake it up on incoming data

I have to do a network of devices based on MCU. This network in a RS485 and the device is battery powered. For save the battery I put the MCU into sleep mode and I want to wake the MCU up, when ...
user avatar
  • 101
0 votes
3 answers
279 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 ...
user avatar
  • 43
2 votes
0 answers
412 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 ...
user avatar
0 votes
1 answer
201 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 ...
user avatar
0 votes
3 answers
797 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 ...
user avatar
  • 141
2 votes
1 answer
919 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), ...
user avatar
  • 196
0 votes
1 answer
118 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 2500mAh ...
user avatar
  • 1
1 vote
1 answer
319 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 ...
user avatar
0 votes
1 answer
120 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 ...
user avatar
1 vote
0 answers
201 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 ...
user avatar
  • 875
0 votes
1 answer
1k 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 ...
user avatar
  • 111
8 votes
6 answers
9k 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 ...
user avatar
  • 4,830
0 votes
0 answers
272 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 ...
user avatar
  • 2,409
1 vote
3 answers
290 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 ...
user avatar
  • 21
10 votes
1 answer
1k 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 ...
user avatar
4 votes
2 answers
513 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 ...
user avatar
  • 141
2 votes
1 answer
240 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 ...
user avatar