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
2answers
97 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 ...
1
vote
2answers
4k 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
1k 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?
1
vote
2answers
4k 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
86 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, ...
4
votes
1answer
6k 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 ...
1
vote
4answers
1k 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
650 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
1k 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
1k 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
1answer
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
652 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: ...
6
votes
1answer
10k 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
774 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
426 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
65 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
707 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
337 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
122 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
5k 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
710 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
393 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
332 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 ...
3
votes
1answer
885 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....
1
vote
1answer
256 views

AVR Sleep Mode Clarification

I have been learning about the AVR sleep modes as I would like to start using them in my future projects. I think I have understood the most of it except some specific details below Under Power ...
3
votes
1answer
1k views

How to issue the SLEEP command in Attiny

I want to put an Attiny13 to sleep. In short chapter 7 of the datasheet says you have to do the following: set sleep mode sleep enable (set SE bit) issue SLEEP command Generally this is ...
1
vote
4answers
461 views

Switching power supply 12V/3.3V for battery powered application with SLEEP mode

I'm designing a 3V3 PSU for 12/6V (lead) battery powered (outdoor) application. Supposed load is 70mA but I plan sleep mode (50uA) with periodic wake-up (ATMega1284P with 32kHz (RTC) crystal). It ...
-1
votes
1answer
5k views

HM10 Bluetooth (CC2541) put in to sleep while connected to iOS application

I'm trying to trigger an action on iOS application using HM10 Bluetooth module. And i have successfully accomplished the functionality, But now my concern is the power consumption, I have already ...
0
votes
1answer
512 views

Saving power between UART transmissions

I use PIC16F1825 to communicate via UART (async) with external device. Running on batteries I have to spend as little power as possible. Since my external device may transmit no data for minutes I ...
3
votes
1answer
4k views

Determine if button press triggered wakeup from STOP mode with STM32F0

I'm using an external interrupt triggered by a button press to wake up an STM32F030K6 from STOP mode. I was wondering if there's any way of distinguishing, within the interrupt handler, a button press ...
-1
votes
1answer
994 views

How to send the RC522 RFID reader into sleep mode?

I'm trying to get the power consumption of a MFRC522 RFID module down, currently while running it consumes about 4mA. There should be a way to put it into sleep mode, I just can't find any ...
0
votes
2answers
808 views

Shut down regulator during sleep

I'm working on a wireless sensor network and would like to know what it would take to shut down the regulator during deep sleep. MCU: STM32L151C6T6 Regulator: TPS63001 Radio: RFM69HW LCD: some ...
0
votes
1answer
674 views

Configuration of XBee network with multiple end devices

How do I configure an xbee network with multiple end devices (each connected to sensor and microcontroller) and one coordinator (connected to the PC)? Do I use AT mode or API mode? What is main ...
4
votes
2answers
161 views

Low power strategy for dealing with spontainious bit flips durring sleep on AVR 8-bit?

I am designing a ATTINY-based circuit that is intended to run unattended for very long periods of time on a very small battery. The device spends almost all of its time in deep sleep, and only wakes ...
0
votes
1answer
344 views

PIC16F57 - problem implementing wake up signal on key stroke

I have designed a simple RC5 remote control using a PIC16F57 and the classic rows-columns scan over a 4x4 matrix keypad. The previous version of my firmware continuously scanned the keypad to find a ...
1
vote
1answer
340 views

Leakage current during sleep mode?

This is an assignment question: A system is operating at 325VDC input, what is the required static leakage current during sleep mode in order to achieve Zero power? I know there may be a lot of ...
4
votes
1answer
836 views

SLEEP or busy-waiting. Which would service an interrupt faster?

I'm programming a PIC microcontroller to service two events via interrupts on a very time constrained environment. PIC microcontrollers allow a SLEEP mode which wakes the PCU on any external ...
2
votes
3answers
5k views

How much current is a powered-down ATtiny84 supposed to take?

I know this sounds like a stupid question, but I'm wondering if the datasheet has an error or something. I have an ATtiny84 connected to my bench power supply set for 3 volts. It's fused for the ...
2
votes
1answer
2k views

PIC32 sleep mode with watchdog wakeup failing

I am in the process of trying to get a PIC32MX795F512L to run with lower power consumption. I'm trying to get it to enter sleep mode and then be woken by the watchdog timer. All pretty standard ...
6
votes
3answers
4k views

How to turn on ATmega every 6 hours?

The board which is made with Atmega operates on battery, it should turn on every 6 hours and log some data, then go back to deep sleep to save battery consumption. Atmega32 is used and not Atiny ...
0
votes
1answer
2k views

Reducing current consumption in deep sleep mode

This is in relation to the question I asked about deep sleep mode. I'm using PIC18F and it says in the datasheet that in deep sleep it would consume only few nA. But when I configured for deep sleep ...
2
votes
1answer
2k views

Deep sleep mode consumption of PIC

I would like to know why my PIC which when I put in to deep sleep does consume more than what is specified by the datasheet. I have connected a precision current meter and found that when I load the ...
1
vote
1answer
155 views

How to lower current consumption in JN5148-J01 Microcontroller?

I am using JenNet-IP stack and JN5148-J01 MCU for smart home application. As per JenNet-IP stack my MCU will not be in sleep mode because it is working as router in WPAN. But I have to reduce current ...
0
votes
1answer
455 views

Using both watchdog timers in PIC

I want to use both the conventional WDT and deep sleep WDT. I will be using WDT to prevent any code lock cases if any. And the other after entering deep sleep mode to wake up periodically in deep ...
1
vote
1answer
1k views

Watchdog timer not being called in sleep mode

On an ATMega328p, I'm trying to setup a program that counts 1 second intervals via the watchdog timer, even when the chip is in sleep mode. A button interrupt puts the chip into sleep mode. The ...
3
votes
2answers
3k views

How do I use a button to wake up an atmega32?

Sorry for any noobiness, I'm more of a software engineer. How do I use button interrupts in general? As in, if I put my microcontroller to sleep, I'd like a button to wake it up. How should I go about ...
4
votes
2answers
668 views

How can I wake up an ATtiny84 microcontroller at specific time of the day?

I am trying to create an alarm that wakes up at a certain time and does a series of instructions. To set the times that it wakes up, I am going to use the headphone of an Android device to send ...
6
votes
1answer
5k views

Actual power consumtion of xbee series 2 in sleep/power down mode?

According to user manual and several other official documents from Digi, xbee in the power down/sleep mode can consume as low as 1uA. But somehow such a low power consumption seems simply unachievable ...