Pradeep Singh | 28th March 2016
ESP8266 is a great module for IoT and DIY project specially because of it’s compact size and low-cost. However this module works at 3.3v DC, which is not as easy to find as compared to 5v DC supply. So, let’s find out how can we make a very simple 5v to 3.3v step down regulated power supply module.
What do u need?
AMS1117 – 3.3v Voltage Regulator (SOT-223)
100µf Electrolytic Capacitors – 2 Pcs
Bread Board with Jumper Wires or General Purpose PCB
5v-12V Power Supply
AMS1117 – 3.3v Voltage Regulator:
The main component for this project is AMS1117 (SOT-223) Voltage Regulator. It is designed to automatically maintain a constant 3.3v output voltage and up to 1A output current.
AMS1117 – 3.3v Voltage Regulator SOT-223
Putting Things Together:
Connect the AMS1117 voltage regulator with 100µf capacitors as shown in following schematic. Larger capacitors (>100µf) can be used to further improve stability and transient response of MS1117 Voltage Regulator.
MS1117 Voltage Regulator is protected against short-circuit and thermal overloads. It supports input voltage range from 4.6 to 15V.
Decoupling Capacitor with ESP8266 Modules:
ESP8266 is very sensitive to improper power supply. For better stability during different power conditions use decoupling capacitors as close as possible (within 1/2 inch) to ESP8266 power pins (VCC and GND). In following schematic you can see double decoupling capacitor with ESP8266 module.
It’s not uncommon to use two or more different-valued, even different types of capacitors to bypass the power supply, because some capacitor values will be better than others at filtering out certain frequencies of noise.
Facing Reset Issues?
ESP8266 is infamous for its weird reset issues. In most of the cases, the resets are caused by Power Supply related problems. You must take care of following points while powering your ESP8266 module –
- Make sure the power supply is capable of providing enough current to ESP8266. A regulated 3.3V source of at least 500ma is essential. If you are using other components like sensors etc, go above 500ma based on peak power requirements. It is always recommended to have some buffer while calculating the power requirements.
- Try putting a large capacitor (suggest using 470 uF) across the Vcc to Gnd rails on your breadboard or PCB. It will minimise reset inducing voltage fluctuations.
- At least a 10 µF decoupling capacitor as close as possible to the module specially if you have long power cables like those of Mobile chargers.
- Loose connections on Bread Board can also cause resets. ESP8266 is very sensitive to intermittent connections, and the solder-less breadboard is not recommended. If you want to use breadboard for testing/prototyping, make sure all the connections are tight enough.
- If you are still facing reset issues, you may be having problem related to Flash Memory (or the Firmware). Yes, the cheap flash memory chip used on ESP8266 is second major culprit for reset issues after power supply.