-->
Page 1 of 5

Deep sleep / low power mode using the Arduino IDE

PostPosted: Sun Apr 05, 2015 8:31 am
by phipli
Afternoon folks,

I was wondering if there was any way to trigger a low power mode with delayed wakeup using the modified Arduino IDE to program the ESP8266?

I've done a bit of reading and don't mind adding a wire to the board to connect the reset pin to a GPIO.

Any suggestions?

Thanks, Phil

Re: Deep sleep / low power mode using the Arduino IDE

PostPosted: Mon Apr 06, 2015 2:52 am
by rk125
Hello guys,
Me too interested in this.
Reggie

Re: Deep sleep / low power mode using the Arduino IDE

PostPosted: Mon Apr 06, 2015 3:26 pm
by bjoernhoefer
Hi there,

I would also find any support super.


Thx

Re: Deep sleep / low power mode using the Arduino IDE

PostPosted: Mon Apr 06, 2015 8:55 pm
by longinus
Add to the top of your sketch...

Code: Select allextern "C" {
  #include "user_interface.h"
}


Then when you want to sleep...

Code: Select allsystem_deep_sleep_set_option(0);
system_deep_sleep(60000000);

(The time is in microseconds)

You need to connect the RESET and GPIO 16 pins together for this to work... They are not exposed in all of the ESP boards.