7
\$\begingroup\$

I'm sorry for any English mistakes as I'm not used with using it when talking about technical stuff.
I have been using some ESP8266 WiFi modules with Arduino Mega for a project. They work with 3.3V Vcc but require some good amount of current (it can go over 200mA, as seen here http://wiki.iteadstudio.com/ESP8266_Serial_WIFI_Module), which make them impossible of powering from Arduino, and that's why I'm using batteries to power the VCC pin. I keep other two pins (CH_PD and RESET) at HIGH state, but I keep them at 3.3V pin from Arduino, as they seem to steal some precious current from ESP8266 VCC if connected together to the battery and make the ESP8266 unstable.
I used LM1117 because the original idea was to extract 3.3V from 5V Arduino pin for more current output, so an LM7833 would not work. Extracting 3.3V from the 5V didn't work as expected, so I'm using a battery now.

schematic

simulate this circuit – Schematic created using CircuitLab

This circuit has been working fine with some ESP8266s, but some of them seem to be requiring more power, since they are failing to get WiFi connections most of the time, taking too many attempts to connect. Also, LM1117 eventually heats quite a bit and drains a lot from the battery. As you can see, I already power the ESP8266s from over 3.4V (although this level seems to drop a bit once I attach the ESP8266), and I'm kinda afraid to rise this level even more. enter image description here

Do you have any ideas on a better circuit to provide 3.3V with good output of current for my ESP8266?

\$\endgroup\$
  • 8
    \$\begingroup\$ Use a switching regulator. \$\endgroup\$ – Eugene Sh. Jul 13 '15 at 18:29
  • 2
    \$\begingroup\$ If you don't want to make a switching regulator circuit, you could try an LM317 with a Darlington pair to give you pretty much all the current you could ever want. However with the current draw you're describing, I'm guessing that's too much for the 9V to handle for an extended period of time, as you might also be lowering the voltage quickly. Take a look at the discharge curves here for example. A better solution might be a LiPo, or a bunch of NiMHs. \$\endgroup\$ – Mewa Jul 13 '15 at 18:40
  • \$\begingroup\$ "LM1117 because the original idea was to extract 3.3V from 5V Arduino pin for more current output" This will not work as you think. An Linear regulator will draw current from the supply generally equal to the output current on the regulated voltage side, dropping the entire load current across the regulator difference to generate heat \$\endgroup\$ – crasic Jul 13 '15 at 19:13
  • 1
    \$\begingroup\$ 2 AA battery worked for me \$\endgroup\$ – Varun Naharia Sep 26 '15 at 2:48
12
\$\begingroup\$

9V batteries are great for smoke alarms, but pretty shocking for anything else. The capacity of a standard PP3 (alkaline) is about 400mAh and has an internal resistance of around 5 Ohms (in fact some low duty ones internal resistances closer to 20+ Ohms). So basically not a lot of energy, poor current capability, and lots of energy wasted internally. If you use a linear regulator as you are, you are wasting 63% of that energy as heat in the regulator. You'd end up with a run time of only about 2 hours before your battery dies. The regulator will be dissipating over 1 Watt which is quite a lot without a heat sink.

Using a switching regulator would help - you reduce the current draw from the battery which reduces the losses on the internal resistance, whilst also massively reducing the losses in the regulator, so you claw back some of that wasted energy for a longer running time. But it still isn't a lot - at 200mA draw on the output, and assuming you have a 90+% efficient switching regulator, theoretically that would give you around 5 hours running time (factoring in the internal resistance). And that is not accounting for the discharge curve - the voltage will drop off much sooner than 5 hours, and as it does the switching regulator will start drawing more and more current from the battery to try and maintain the output voltage meaning more losses internally in the battery.

A standard alkaline AA battery by comparison has a capacity of around 2500mAh or more and an internal resistance of <0.5 Ohm. The trouble is the voltage - 1.5V. There are however many simple switcher ICs and modules out there that can run off a single AA or AAA cell and step up to a 3.3V output. This combination would give you around 4.7 hours with one cell and a boost converter. The main reason for the lower run time is there will be a much higher current draw from the battery than at the output as is the way with boost converters, so there will be more lost in the internal resistance. But even still you get a similar run time as a PP3 in less space, and with batteries that tend to be far cheaper. Or you could use the same approach but go for a D cell battery for example, those have a lower resistance and much higher capacity (closer to 15Ah), so with one of those and a boost converter you would have a run time of around 30 hours - 6 times longer than a PP3.

If you were to use more than once cell, i.e. go for say 3 AA batteries in series, your voltage will go up (capacity stays the same) and so will the run time. With 3 in series and a step down converter, you would have a run time of closer to 16 hours (at 200mA). You could even simply use a low drop out linear regulator to bring that down to 3.3V - it would hurt efficiency, but you would still be able to get a running time of around 12 hours - so still much more than the PP3.

| improve this answer | |
\$\endgroup\$
2
\$\begingroup\$

No matter how you try to do it, a that type of 9V battery can't supply enough current. I suggest that you use a larger cell type, perhaps 1 x 18650 Li-Ion or 3 x AA NiMH in series then you will get a useful runtime and "probably" not need to regulate the voltage, although ultimately your actual required runtime will determine the battery cell array that is required to get there.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Why do you think it can't supply enough current? even if it can supply 100mA at 9V (and I believe it can do more), it's equivalent to around 270mA at 3.3V if using a decent regulator. \$\endgroup\$ – Eugene Sh. Jul 13 '15 at 19:18
  • \$\begingroup\$ @EugeneSh., it can but according to the discharge curves, it won't do so for very long. \$\endgroup\$ – Mewa Jul 13 '15 at 20:16
  • 1
    \$\begingroup\$ It can't supply 100mA at 9V. It can supply 100mA at a depressed voltage below 9V and drop in voltage very quickly so as that voltage drops the current rises higher and higher so the voltage drops faster and faster. Could you get it to work for a minute? Probably, but that's like saying you can drive blindfolded... (but only until you hit something). \$\endgroup\$ – Dave C Jul 15 '15 at 1:06
0
\$\begingroup\$

You could use a simple step-down module like this one, available on AliExpress for < $5 for 10pcs (search for mini-360):

mini-360 step-down module

Of course you could try building a power supply yourself, but at this price, it would only make sense as exercise.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ Link only answers are discouraged because they're useless when the link goes dead. Your answer should stand on its own. You can include the link for reference - while it lasts. \$\endgroup\$ – Transistor Aug 20 '17 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.