2

How to power esp32 board this one with soil humidity sensor that sends data to server via wifi every 30 minutes for something around a year on battery? What battery type and capacity should I use for that? Or is there any better board you would recommend for this pourpouse? The setup will be indoors.

asked Aug 14, 2021 at 17:59
2
  • 2
    There's no generic answer, it depends on the actual circuit and its power consumption. If outdoors (and some indoor setups) I'd say solar + battery. Commented Aug 14, 2021 at 18:12
  • Your question is too broad without experimental, for example, have you done the measurement of your board when it is in operation, and when it is in sleep mode? Only when you have those values, you can then decided on whether it is a suitable board or not (e.g. does it cut off the USB chip when in sleep mode)? Choosing the battery depend on your form factor and application, as well as your circuit design. You can only decide that once you done the measurement an calculation. Commented Aug 15, 2021 at 2:14

1 Answer 1

1

Okay, let's do some calculations.

Assume that device sends data for 5 seconds (turn on, connect to the Wi-Fi, and so on) and drains (according to the docs) about 0.2A.

So, it works for 5 (secs) * 48 (turn-on's) / 60 minutes per day for 365 days.

So, it works for 5 * 48 / 3600 hours per day for 365 days.

So, it works about 24 hours per year.

0.2A for 24 hours is 4.8A for 1 hour.

Assume that efficiency of the power regulator is 80%

4.8 - 80 % X - 100%

X = 6 A*h

So, take three (to compensate self discharge and have some headroom) standard Li-Ion cells, or mid-size (about 8000 mAh) power bank, and you well be fine.

But you shall add some external clock (powered by own CR2032 cell), that will be turn power regulator and esp-device ON every 30 minutes.

answered Aug 14, 2021 at 19:39
1
  • I would use ESP-NOW instead of wifi. It can boot, read, and publish in well under 500ms instead of 5 seconds. On the 32, you could also probably craft a ULP routine that would only bother to fully wakeup+report if the moisture level changes. Commented Aug 16, 2021 at 21:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.