# Ways to power a large series of Wemos D1 mini boards

**URL:** https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445
**Category:** Hardware
**Created:** [29 January 2022 08:33 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445 "2022-01-29T08:33:02Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [29 January 2022 15:10 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/21 "2022-01-29T15:10:46Z")

</div>

> [@TotallyInformation](#):
>
> I also like the idea of using the lower-power ESP-now mesh network instead of plain Wi-Fi.

I had good experiences with ESP-Now. The only downside: I never found a good way to bridge between ESP-now and WIFI ... Some claims are on the internet but they never worked out for me. So I wired two esp8266 via serial connection [here](https://github.com/Christian-Me/healthy-indoors-project).

Even espressive own github list this as ToDo [GitHub - espressif/esp-now: A connectionless Wi-Fi communication protocol](https://github.com/espressif/esp-now)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/b/ebd5060d3987c32d81ad8d069c836d27a8f0a3d1.png)

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [29 January 2022 15:27 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/22 "2022-01-29T15:27:13Z")

</div>

Shame that ESP don't make a Zigbee version of the ESP32 😀

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [29 January 2022 15:49 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/23 "2022-01-29T15:49:17Z")

</div>

Won't be long Julian:

> **[Announcing ESP32-H2, an IEEE 802.15.4 + Bluetooth 5 (LE) RISC-V SoC |...](https://www.espressif.com/en/news/ESP32_H2)**
>
> ESP32-H2 comes with integrated IEEE 802.15.4 radio and Bluetooth 5 (LE) connectivity from a 32-bit RISC-V core. This ensures low power consumption and security for connected devices.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [29 January 2022 16:03 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/24 "2022-01-29T16:03:06Z")

</div>

Thanks for sharing that, I had seen it previously but forgot 🧓

Seems like people think that Expressif take at least 12m from announcement to early product. So hopefully we'll see something in Q3 this year.

Let's hope it is compatible with Zigbee2MQTT.

Going to be interesting to see how easy it will be to program it though and how any added programmatic capabilities can be exposed to the Zigbee protocol. I can't imagine that it will be as easy as previous ESP chips given the standards required in the Zigbee protocol.

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [29 January 2022 17:37 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/25 "2022-01-29T17:37:54Z")

</div>

For power distribution it depends on the locations of the devices really.  
You may want more than 1 central PSU to keep the cable runs smaller, but also dependant on where you have Mains power available.

Using a higher voltage is good idea to reduce volt drop, I use some off the shelf 12V power supplies with battery backup (standard with alarm systems CCTV etc). Battery probably not need in most cases but can be handy if devices need to work in power cut (Before anyone asks my wi-fi is also on UPS)

I have a small multiway fuse board in the PSU end with fuses for each cable run, you can also do multidrop at 12V because the power requirments are small. I use cheap 4 core alarm cable. 2 core bell cable would also be OK.

Then I put a buck converter at the ESP end to drop to 5volts, and connect to 5V input on ESP.  
The onboard regulator will provide 3,3V for the ESP and you also have 5V for sensors etc that need 5V.

A good shortcut I have used is to pickup power from an existing PIR if it is close by.

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [29 January 2022 17:57 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/26 "2022-01-29T17:57:14Z")

</div>

> [@TotallyInformation](#):
>
> Expressif take at least 12m from announcement to early product.

Right … until then I had the idea to look into something like this bit to be honest - not enough time to dig deeper

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/96933dad9e07356c321af428c47961fffd676ab8.jpeg)

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [29 January 2022 20:54 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/27 "2022-01-29T20:54:12Z")

</div>

> [@Sean-McG](#):
>
> 2 core bell cable would also be OK.

Does that power cable needs to be shielded, to avoid noise being picked up? Or is that perhaps somehow filtered at the end in the buck converter?

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [29 January 2022 21:17 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/28 "2022-01-29T21:17:40Z")

</div>

> [@dynamicdave](#):
>
> You then hit the question of how often do you want to take a pressure reading as that determines the sleep time and how long the battery will last before it needs charging.
> 
> Why is life never easy?????

Bart - the easiest way is as Dave says - use mains powered cheap phone charger style units - and power these through a cheap USB A to micro USB cable.

If you do need Battery powered then you have a problem as i do not believe any of the custom firmwares (Tasmota etc) do not support deep sleep mode and you will end up having to build your own firmware and then maintain that on an ongoing basis.

I have done this in the past and what i did was to wake the unit every minute - leave the WIFI off and do all my work then compare various values and decide if i needed to wake the radio and send the result so in your case - you could keep a rolling average of pressure over the last 30 minutes (30 readings) and as each new reading comes in (each minute) compare it to the average - if it had not increased by more than 5 percent do not wake the WIFI and send it.

Every hour or so - you could wake the wifi and send the accumulated values for the last hour

If you are going to do this - hard code the IP address on each unit as it makes it make quicker to wake, connect to the AP, send and go back to sleep over using DHCP

Craig

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [29 January 2022 21:32 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/29 "2022-01-29T21:32:36Z")

</div>

@craigcurtin,  
Seems all logical what you say... But indeed then it becomes a second development track, besides to my Node-RED nodes. So I assume I will try to do as much as possible with cheap phone chargers.

My entire setup is getting shaped in my head after a day of huge feedback from lots of nice folks in this community 🤩

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [29 January 2022 23:39 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/30 "2022-01-29T23:39:13Z")

</div>

> [@Christian-Me](#):
>
> something like this

The XT-ZB1 is RISC based with an entirely different toolchain to the ESP's so I hope your C++ skills are up to it 😀

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [29 January 2022 23:41 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/31 "2022-01-29T23:41:37Z")

</div>

> [@craigcurtin](#):
>
> i do not believe any of the custom firmwares (Tasmota etc) do not support deep sleep mode

ESPhome has a deep sleep module 😀

[Deep Sleep Component — ESPHome](https://esphome.io/components/deep_sleep.html)

Not actually used it myself as all of my sensor platforms are USB powered at present.

> [@craigcurtin](#):
>
> hard code the IP address on each unit as it makes it make quicker to wake, connect to the AP, send and go back to sleep over using DHCP

👍

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [30 January 2022 00:06 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/32 "2022-01-30T00:06:15Z")

</div>

ESPEasy also supports deep sleep  
[https://www.letscontrolit.com/wiki/index.php/SleepMode](https://www.letscontrolit.com/wiki/index.php/SleepMode)

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [30 January 2022 01:01 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/33 "2022-01-30T01:01:10Z")

</div>

Lol

So does Tasmota - I couldn't help myself 😉

[DeepSleep](https://tasmota.github.io/docs/DeepSleep/)

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [30 January 2022 01:24 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/34 "2022-01-30T01:24:26Z")

</div>

I have just used the cheap alarm cable without any issues.

But nothing to stop you using a screened cable (earthed only at 1 end of course ! )

I guess you could add a Decoupling capacitor at ESP also. But this is probably over engineering it 😉

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [30 January 2022 21:11 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/35 "2022-01-30T21:11:48Z")

</div>

Thanks guys for all the corrections for deep sleep mode - i did not think any of them were supporting it.

Might be worthwhile doing some experiments i was thinking of then !

Craig

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [30 January 2022 22:24 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/36 "2022-01-30T22:24:52Z")

</div>

The Wemos D1 Mini supports Deep-Sleep. I used a 15-minute value with our solar-powered weather stations and a 60-minute time with the battery monitor on my hybrid car.

The maximum deep-sleep time for the Wemos is 71 minutes.

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [30 January 2022 22:31 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/37 "2022-01-30T22:31:54Z")

</div>

> [@Sean-McG](#):
>
> I guess you could add a Decoupling capacitor at ESP also. But this is probably over engineering it

I've found a 47uF and a 0.1uF (or 100nF) capacitors (in parallel) across the 5V or 3V3 supply rails helps to avoid the Wemos D1 Mini rebooting. They act as reservoir capacitors and avoid a sudden dip in voltage when the WiFi switches on (as this part of the circuit can draw 140mA).

---

<div class="post-metadata">

### Author: ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)
#### Post date: [31 January 2022 00:17 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/38 "2022-01-31T00:17:14Z")

</div>

> [@dynamicdave](#):
>
> 47uF and a 0.1uF (or 100nF) capacitors (in parallel)

I don't think I have ever noticed that problem to be fair, but can't do any harm.

---

<div class="post-metadata">

### Author: ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)
#### Post date: [31 January 2022 00:53 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/39 "2022-01-31T00:53:42Z")

</div>

Hello Bart,

I have now about 6 Wemos D1 or other ESP32 around my house. I usually power these devices via a [Solar panel](https://www.aliexpress.com/item/1005003251446151.html?spm=a2g0o.productlist.0.0.252c7c87XBM052&algo_pvid=8b2ff14b-cda6-4f00-8a49-f5f4ce764795&algo_exp_id=8b2ff14b-cda6-4f00-8a49-f5f4ce764795-24&pdp_ext_f=%7B%22sku_id%22%3A%2212000024863652631%22%7D&pdp_pi=-1%3B21.26%3B-1%3B1960%40salePrice%3BAUD%3Bsearch-mainSearch) with a [backup battery](https://www.aliexpress.com/item/1005003840374353.html?spm=a2g0o.productlist.0.0.622a4d920VyCVT&algo_pvid=acf80f42-ee05-4580-8a16-8a0ba25b5b91&algo_exp_id=acf80f42-ee05-4580-8a16-8a0ba25b5b91-49&pdp_ext_f=%7B%22sku_id%22%3A%2212000027314325631%22%7D&pdp_pi=-1%3B13.6%3B-1%3B-1%40salePrice%3BAUD%3Bsearch-mainSearch) for overnight support. The solar converter is providing 5v USB and can handle several esp32/Wemos devices.

This works great for me as I do not have outdoor sockets!

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [31 January 2022 16:47 UTC](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445/40 "2022-01-31T16:47:29Z")

</div>

I just found pictures one of my 6 constant current high power LED dimmer boards I build for my garden (as mentioned above).  
powered by a 24V power supply (the transformer is inside a shed). You see the step down buck converter, a smoothing capacitor (think useless as the ripple I expected would better be smoothed by a small ceramic capacitor instead an electrolytic). 6 cc LED drivers (1-2W) with available enable PIN for PWM dimming. All berried under a foodbrige (this is where a good AP pays). Never had any issues (Even in this noisy environment of 6 dimmers and a switching buck converter)

So nothing fancy. (BTW: One downside of the ESP8266s. They come with now hardware timers for PWM signals. PWMs are generated in software! So keep the frequency down and expect some glitches. Nothing to be worried but good to know)

 ![pwm-Dimmer-1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c9f11814360aa4e25136c12f2e134ab7a1569057.jpeg)

Not the best picture:

 ![pwm-Dimmer-2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/8/58ab6d2ed08e35bdee7919cd3a010f2c15ac2d06.jpeg)

[Previous page](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445.md?page=1)

[Next page](https://discourse.nodered.org/t/ways-to-power-a-large-series-of-wemos-d1-mini-boards/57445.md?page=3)
