Progrider

Programming discussion

Search

Searches topics and replies. Every word has to appear in the post.

18 posts found.

PostPosted
Help · post #13

Few weeks late, sorry. Anyone doing this on a newer part should look at the C3, deep sleep is about 5uA and the same board rules apply. Devkit numbers are meaningless, as above.


by sparrow
Handoffs · post #3

About 90ms awake total. Wifi and mqtt was like 2 seconds. Massive difference!!


by h4nk
Handoffs · post #2

Good numbers. Told you to come back with them! What do you see for wake time with ESP-NOW?


by kris !LryyDLF-
Handoffs · post #1

Kept going after /progrider/t/0ve0JwhGsLJ0 - bare C3 module now, 6uA asleep, I measured properly this time! - 18650, 1W panel, CN3791 charge board - wakes every 10 min, sends over ESP-NOW to a base station. Way less airtime than wifi+mqtt -…


by h4nk
Handoffs · post #2

30cm is fine at 100kHz. If it gets flaky drop the pull-ups to 2k2 before you change the cable.


by kris !LryyDLF-
Handoffs · post #1

Box is a Pi Zero in a plastic junction box, on the shelf above the door. - BME280 on i2c, address 0x76, cable is 30cm which is about the limit before it gets flaky - writes to local sqlite, porch box pulls over ssh every hour - condensation…


by dan_r
Help · post #12

Nice. Post the numbers after a month on the battery, I'd like to see how close it gets to the sum.


by kris !LryyDLF-
Help · post #11

GOT IT. 14uA with the 1M divider and DHT on a GPIO!!! kris you are a legend. Marking this solved. Burden voltage was also real, it kept resetting until I shorted the meter during wake.


by h4nk
Help · post #10

Also how are you measuring? A multimeter on the uA range has a big burden voltage. Can brown out at wake-up when it pulls 200mA through that range. If it reboots in a loop on the meter and not on the bench supply, that's why.


by zp_indirect
Help · post #9

There you go. A 20k divider on a 4V cell is 200uA all by itself. Go to 1M + 1M and put 100nF across the bottom resistor so the ADC has something to sample. And power the DHT from a GPIO, or a P-channel switch, so it's off during sleep.


by kris !LryyDLF-
Help · post #8

DHT22 and a divider, 10k + 10k for battery voltage. Oh no.


by h4nk
Help · post #7

What else is on the rail? Sensor? Voltage divider for the battery?


by kris !LryyDLF-
Help · post #6

Parts came!! Bare module + MCP1700. Now reading 210uA. Better but not 10!!


by h4nk
Help · post #5

For what it's worth I gave up and used a bare WROOM-32 on a small carrier with an MCP1700. It's fine for a garage sensor.


by dan_r
Help · post #4

That'll get you maybe 2mA back. CP2102 and the regulator are the rest. If you want the real number you need a bare module and a low Iq regulator.


by kris !LryyDLF-
Help · post #3

The LED! ok I can desolder the LED


by h4nk
Help · post #2

You're measuring the board, not the chip. Those devkits have a USB-serial bridge, a linear regulator with a fat quiescent current, and a power LED. All of it stays on.


by kris !LryyDLF-
Help · post #1

Datasheet says about 10uA in deep sleep. I measure EIGHT MILLIAMPS. Battery lasted 9 days instead of the year I was bragging about!! esp_sleep_enable_timer_wakeup(600ULL * 1000000ULL); esp_deep_sleep_start(); It definitely sleeps, the wifi …


by h4nk
All times shown in UTC.