Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By fasmide
#2445 I have an old fluke and a cheap uni-t and none of them are able to measure the current usage in sleep mode - i did remove the red LED to minimize the sleep current..

Im running mine from a Pololu U1V11A stepup with two AA batteries. Wakes up every 5 minuttes, takes a reading from a dht22 sensor and posts results to a webservice. Until i find something that can measure it - time will have to tell how long it runs on these two batteries.

EDIT: code at https://github.com/fasmide/esp_dht22

Anyways, looking at https://github.com/esp8266/esp8266-wiki ... e_versions - it seems there is no versions with both the rst and GPIO16 breaked out?
Last edited by fasmide on Mon Nov 10, 2014 5:38 pm, edited 1 time in total.
User avatar
By fasmide
#2448
alonewolfx2 wrote:Yes i wired same and worked. Than i pullup this connection (gpio16 and rst wire) to gnd and module wake up :)



So for clearification, your pulling the connection up, to wake the device from sleep before the xyz minuttes you've set the timer?
User avatar
By alonewolfx2
#2459 I dont use timer. I loked your code and your chip not sleeping. Just waiting. If you want to use sleep and save batery you must connect gpio16 to the rst pin and use this code.(change your last part on your code)

Code: Select allvoid ICACHE_FLASH_ATTR user_init(void)
{
    os_printf("\r\nGet this sucker going!\r\n");

    //Set GPIO2 to output mode
    PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2_U, FUNC_GPIO2);
    PIN_PULLUP_EN(PERIPHS_IO_MUX_GPIO2_U);

    wifi_get_macaddr(0, hwaddr);

  readDht();
system_deep_sleep(5*60*1000*1000);

}



And i have question dor you. You are connecting in local pc with tcp connection right? How can i send data on the website and you are using dht22, how can i read ds18b20 or dht11 data?

fasmide wrote:So for clearification, your pulling the connection up, to wake the device from sleep before the xyz minuttes you've set the timer?
User avatar
By gurucafe
#4061
fasmide wrote:I have an old fluke and a cheap uni-t and none of them are able to measure the current usage in sleep mode - i did remove the red LED to minimize the sleep current..

Im running mine from a Pololu U1V11A stepup with two AA batteries. Wakes up every 5 minuttes, takes a reading from a dht22 sensor and posts results to a webservice. Until i find something that can measure it - time will have to tell how long it runs on these two batteries.

EDIT: code at https://github.com/fasmide/esp_dht22

Anyways, looking at https://github.com/esp8266/esp8266-wiki ... e_versions - it seems there is no versions with both the rst and GPIO16 breaked out?


Hi,

Could you please let me know, how long it runs with 2 AA batteries in your case?

BTW, could you please also push latest code (if any) to Github? Thank you.

Have a nice weekend!

--
gurucafe