# Care to comment on my 5v and 3.3v power supply?

**URL:** <https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681>\
**Category:** General Guidance\
**Created:** [December 29, 2022, 6:16am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681 "2022-12-29T06:16:15Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [December 29, 2022, 6:16am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/1 "2022-12-29T06:16:15Z")

</div>

I haven't done anything like this in years and never had all the theory anyway. The circuit below is for an intervalomer using a ProMini which has been lying around for a long time, and with an ESP-01 operating in setup only. It was "designed" from scraps of information with parts from Jaycar over the hill.

The perf board for the whole thing is getting seriously crowded, but I am wondering about putting in a 100uF as well. There is just enough room for that.

 ![power and levels](https://europe1.discourse-cdn.com/arduino/original/4X/4/8/1/4816879df4d10674cb5744bd155eaa4b7fe609c5.jpeg)

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [December 29, 2022, 6:59am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/2 "2022-12-29T06:59:23Z")

</div>

The circuit looks like okey. Is it working in its application?  
Do You mean to upgrade both 10 uF to 100 uF? It can't be wrong but what about adding some 100 nF ceramik, to kill eventual spikes, as well?

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [December 29, 2022, 7:08am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/3 "2022-12-29T07:08:34Z")

</div>

Better to use the EN pin of the ESP-01 to switch the ESP on/off (HIGH is 'on', LOW is 'off').  
Note that you also need a 2k:1k divider there.  
Leo..

---

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [December 29, 2022, 7:20am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/4 "2022-12-29T07:20:00Z")

</div>

Thanks for your comment.... No, I was wondering about adding a 100uF to the 10uFs already there, and indeed I thought about a 200nf that I have lying around. I suppose it might be better to replace one 10uF with a 100uF. Nothing has been actually made yet and I am just seeing if I can squeeze it all onto a 24x30 perf board.

---

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [December 29, 2022, 7:38am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/5 "2022-12-29T07:38:59Z")

</div>

> [@Wawa](#):
>
> Better to use the EN pin of the ESP-01

Well, there you go, I have never had an ESP-01 and had no idea about the EN pin, I now guess you are alluding to pin 4, as shown. I will check Pieter's ESP Page.

Thank you

 ![ESP-01](https://europe1.discourse-cdn.com/arduino/original/4X/6/6/9/669bd4b602ca417c4077e05ef2f93689fa78ce7b.jpeg)

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [December 29, 2022, 8:12am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/6 "2022-12-29T08:12:48Z")

</div>

> [@Nick\_Pyner](#):
>
> I have never had an ESP-01

Never used one too, but I do use bare ESP-12 modules, which also have that EN pin.  
Leo..

---

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [January 1, 2023, 2:57pm UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/7 "2023-01-01T14:57:43Z")

</div>

Thanks for the comments.

This is the revised arrangement for anybody that might be interested.

 ![power and levels 2](https://europe1.discourse-cdn.com/arduino/original/4X/1/c/6/1c6a93e110243821f81da7e5e64f4ce21137d864.jpeg)

---

<div class="post-metadata">

**Author:** ![ShermanP](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@ShermanP](https://forum.arduino.cc/u/ShermanP)\
**Post date:** [January 1, 2023, 6:32pm UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/8 "2023-01-01T18:32:28Z")

</div>

I believe both RX and EN "idle" high. If that's true, then the resistor dividers might sink a couple milliamps most of the time. If either pin is pulled high internally, then a series diode might be a better choice. The Pro Mini could bring either line low, but not high. And even if you had to add an external pullup resistor to 3.3V on those pins, along with the diode in series, it still might be a good solution. Well, if the radio is going to be off most of the time, then the divider would be fine for EN. Not sure about RX.

If you were starting from scratch, I think you would run the Pro Mini at 3.3V, 8MHz, eliminate the boost converter, and get a better 3.3V LDO with a much lower dropout voltage. Maybe even run it all on a 3.0V LDO if the ESP would deal with that ok.

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [January 1, 2023, 6:54pm UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/9 "2023-01-01T18:54:27Z")

</div>

Suggest you use two converters.

BTW, You might want to look at removing the potentiometer.

> [@Share tips you have come across](https://forum.arduino.cc/t/share-tips-you-have-come-across/428745/731):
>
> In situations where an accidental change in a potentiometer setting can cause catastrophic problems, change the potentiometer out for fixed resistors. Make a resistor substitution board ahead of time to use it to determine what the values of these resistors should be. All the standard resistor values (SMD 1026) have been placed on the substitution PCB. One end of all the resistors are common and would represent the wiper on a potentiometer. Female headers on the other side of the resistors w…

![image](https://europe1.discourse-cdn.com/arduino/original/4X/2/9/4/294cc80df277c51d08077210a87c5ca45b056e10.jpeg)

* * *

Boost/buck converters come in small form factors.

3.3V Step Down/Up  
 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/f/9/5/f959db458550018f375781b97039abbad450815a.jpeg)

---

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [January 4, 2023, 2:02am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/10 "2023-01-04T02:02:42Z")

</div>

Well, I'm glad I asked before I got too deeply into this...  
I should have been more forthcoming: This project is an intervalometer with clock for use in astrophotography - specifically, ISS transits. A lot of the stuff, 5v ProMini, LEDs, 7221s are already lying around but I haven't really done any of this power supply stuff since about the invasion of South Georgia so I guess there are slicker ways of doing this and certainly wondered if I really need an adjustable pot. Further, I guess I can expect more modern modules to have the requisite caps on board.

> [@ShermanP](#):
>
> along with the diode in series, ..........then the divider would be fine for EN. Not sure about RX.

I'm not sure what this involves. The radio is off virtually all the time. It is just there to ensure the DS3231 is truly up to scratch. The only alternative to the usual 1k/2k divider I know of is with a BS170 MOSFET

 ![MOSFET level converter](https://europe1.discourse-cdn.com/arduino/original/4X/8/6/6/8664d73bfdce27edadfaf9d43bbd3a1fd53c60e0.jpeg)  
but I have never used it. It didn't occur to me to use it now, but this might be the time, even if only for ESPs Rx.

> [@LarryD](#):
>
> Suggest you use two converters.

OK, I found [one](https://www.ebay.com.au/itm/192193961591) which looks like yours and specifically for ESP8266 even though it is coy about the current.

And [another](https://www.ebay.com.au/itm/192746068285) to deliver up to 480mA @ 5v.

Both to be in parallel on the 18650, rather than the up/down daisy chain I had before.

Even though I think I only have one to hand, I am tempted to use two NMOS, just for the elegance and perhaps greater efficiency. Not that that is so important. The ESP will only run for a few seconds, the display a few minutes, and the whole thing for no more than a day.

 ![vertys and nmos](https://europe1.discourse-cdn.com/arduino/original/4X/c/5/a/c5a8583b149f9ad240e96ccdd4d027a13c61fa0d.jpeg)

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [January 4, 2023, 4:05am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/11 "2023-01-04T04:05:34Z")

</div>

Confused..  
Why a DS3231. The ESP-01 has a crystal clock.  
Do you need "time" or "local time".  
The ESP-01 can do that when booting near a router.  
Why WiFi anyway.  
What is "everything else". Can't it run off 3.3volt.  
Then you could use a [LiFePo4 battery](https://www.bunnings.co.nz/solar-magic-1000mah-lithium-ion-rechargeable-batteries-2-pack_p0074081), so you don't need an LDO.  
Why the ProMini. You already have a processor.  
Leo..

---

<div class="post-metadata">

**Author:** ![ShermanP](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@ShermanP](https://forum.arduino.cc/u/ShermanP)\
**Post date:** [January 4, 2023, 5:57am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/12 "2023-01-04T05:57:02Z")

</div>

> [@Nick\_Pyner](#):
>
> The only alternative to the usual 1k/2k divider I know of is with a BS170 MOSFET

The mosfet circuit gives you bidirectional level shifting. But both EN and RX are unidirectional. So you only need pullup resistors to 3.3V on the ESP pins, and diodes pointing back to the Pro Mini pins. The Pro Mini can take those lines low, but when it takes the lines high, that's blocked by the diode.

---

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [January 4, 2023, 11:27am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/13 "2023-01-04T11:27:40Z")

</div>

As I said, the WiFi is just to ensure the RTC is up to scratch on startup, this is done just before leaving home. From threads around here, I understand ESP8266 does not have a crystal and the on-board clock leaves a lot to be desired. I guess this is OK when regular update from NTP is available, but not in the field, .

The "everything else" is six 2x7 led displays 0.8", colon LEDs, two 7221s, a 4x3 keypad and I guess two or three extra buttons I have yet to really think about. I already have most of this stuff, along with a DS3231 with square wave output, and a 5v ProMini that has waited a long time for employment.

I understand 7221s are very particular about getting 5v. Also, ESP8266 i/o pins are only good for 12mA.

Local Time is used

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [January 4, 2023, 7:17pm UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/14 "2023-01-04T19:17:45Z")

</div>

> [@Nick\_Pyner](#):
>
> I understand ESP8266 does not have a crystal and the on-board clock leaves a lot to be desired

Every ESP8266 I know has a true crystal clock.  
That makes it as accurate as a poor quality untrimmed uncompensated RTC.  
Not sure how much it will loose/gain in a day. I guess it could be a few seconds.  
Leo..

---

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [January 4, 2023, 11:03pm UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/15 "2023-01-04T23:03:17Z")

</div>

OK then, not for the exact reasons I understood, but leaves a lot to be desired all the same. This job will suffer environmental variations that would frighten a DS1307 and it is pretty clear a DS3231 is the way to go. The whole objective is peace of mind in the heat of the moment on a cold clear night - something my commercial intervalometer doesn't deliver.

---

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [January 5, 2023, 2:00am UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/16 "2023-01-05T02:00:36Z")

</div>

I'm afraid I'm not sure what you are saying here. I understand about MOSFET being bidrectional, unnecessarily, but not about the diodes. I think I will go back to dividers, they being common practice after all, and I can probably afford the current. Besides, I can't find the MOSFET.

---

<div class="post-metadata">

**Author:** ![ShermanP](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@ShermanP](https://forum.arduino.cc/u/ShermanP)\
**Post date:** [January 5, 2023, 5:57pm UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/17 "2023-01-05T17:57:28Z")

</div>

The schematic below shows the modifications needed to operate an SD card (3.3V) from a 5V Arduino using the SPI lines. The module doesn't have any voltage translation, but does have pullup resistors to 3.3V on the SD card pins. The modification just inserts a diode into the output lines of the Arduino. When the Arduino pulls MOSI low, the SD card pin drops to about 0.6V, which the card recognizes as low. But when the Arduino takes MOSI high to 5V, the diode blocks any current from getting to the SD card. Instead, the pullup resistor brings the pin high to 3.3V. So the card is protected from the 5V signal.

 ![SD Module Fix schematic](https://europe1.discourse-cdn.com/arduino/original/4X/2/9/c/29c957b08e9d619a98483715a3f6591ae1be701b.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 4, 2023, 5:58pm UTC](https://forum.arduino.cc/t/care-to-comment-on-my-5v-and-3-3v-power-supply/1070681/18 "2023-07-04T17:58:10Z")

</div>

Closed on July 4, 2023, 5:58pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
