In this article I have explained regarding how to connect and illuminate a few 5mm LEDs using a 3.7V Li-Ion cell, normally used in cell phones.
I keep receiving requests from the readers who seem confused with the connection details of 5mm LEds with a 3.7V Li-ion cell. The requests inspired me to write this post, hopefully it would answer the many related queries.
Using a Cellphone Li-ion Cell
Since standard 3.7V Li-Ion cells which are normally used in cell phones are rated at around 800 to 1100mAh, are quite capable of supporting a few 5mm LEDs, and would be able to keep them illuminated for quite sometime.
A normal 5mm white LED requires about 20mA current at 3.3V for getting illuminated optimally.
The circuit involved for illuminating 5mm LEds through a 3.7V Li-Ion cell is actually too simple, primarily because the parameters are closely matched with each other.
Here, connecting the 5mm LEDs in series wouldn't be feasible because the maximum volts from the cell is just 3.7V while even two LEDS in series would call for above 6V.
Therefore the only option left is putting them in parallel.
Ideally when parallel connections are involved, a series limiting resistor becomes imperative with each LED in the array. This helps ensure uniform light distribution or emission from the LEDs.
However it's not an absolute requirement, especially when the driving voltage is close to the forward voltage of the LEDs.
Also taking the simplicity factor into account, a single limiting resistor may be used in such cases and therefore here too we have eliminated individual resistors.
How to Connect the LEDs
The circuit diagram below shows a simple configuration comprising of a 3.7V Li-ion cell, 5nos 5mm LEDs and a limiting resistor R1. The procedure shows how simply a Li-ion cell may be used for illuminating 5mm LEDs for a reasonably long period of time.
Each LED is supposed to consume 20mA current, therefore 5nos would together consume around 100mA, therefore R1 may be calculated as follows:
The Formula
R = (Supply voltage - LEd forward voltage)/LED current
= (3.7 - 3.3)/100 = 0.4/0.1 = 4 ohms.
The required wattage would be 0.4 x 0.1 = 0.04W, so a 1/4 watt resistor would be more than enough.
Assuming the cell to be rated at 800mAH, with 5 LEDs, the approximate back up time available from the cell could be calculated using the following cross-multiplication.
800/100 = x/1100x = 800x = 800/100 = 8 hours ideally.
However practically you would find the above calculated back up time to be considerably less due to many inherent inefficiencies associated with the system or the circuit.
More LEDs can be added, if you are ready to compromise the backup time proportionately.





Comments
Hello, good afternoon, Mr. Swagatam. Thank you for your quick response. After the 220nf capacitor, can I put a diode bridge and then use an LM7805? Then, with a resistor to power an LED and the optocoupler? Thank you very much.
Thanks Carlos! yes, definitely you can do that…
Regarding the question of connecting the PC817 to 220 VAC… Can an LED be added to indicate when the activation signal is present? Thank you very much.
Yes an LED with a series 1k can be added parallel to the opto LED pins….
Hi, thanks for a great article.
I am working on a portable and rechargeable table light that I would like to keep as small as possible but with decent battery life, hence what attracted me to the 3.7 lipos. The light is mainly decorative, although I would like it to give off a strong glow when at full power.
I stumbled on your article while trying to figure out some of my options and thought I would ask for your opinion as my knowledge of electronics is limited!
In my first prototype I am using a repurposed aquarium light that has 3 LEDs (LEDs: 2.75mmx3.15mm), one resistor and runs off two 3V button batteries that emits about the right brightness for what I would like my design to reach when at full power.
These are my other project parameters;
– Use a PWM with potentiometer to control brightness and act as the on/off switch.
– Have a relatively good battery life (+10hrs)
– Recharge using a wireless connection
Is this something you can offer any further guidance on?
Many thanks
EN. I approached the issue differently. I have 12 Led. Only 1 Led is lit at a time. But oddly enough, if you turn on only 1 Led, the illumination is weaker than when you turn on 12 Led dynamically. Lamp and circuit consumption 8-10 mA at 3.2-4.2V(Li-on). I didn’t make a spotlight, but lighting at night or when there was no light. Autonomy 2.5 months, if used only in the dark.
Hello, good afternoon, Mr. Swagatam. I would like to ask you to explain how to connect a PC817 optocoupler directly to 220 VAC. Should I use a 2.2 uF capacitor at 400 V? Or would a high-value resistor be sufficient? Thank you very much in advance.
Hi Carlos,
A 0.22uF/400V with a 12V zener diode, 1N4148, and a 100uF/25V filter capacitor connected across the opto LED should be enough to drive the opto coupler LED through 220V AC….
Hi, thanks for your question.
I can certainly help you to make the PWM controller for controlling the brightness of your LED lamp efficiently, with long battery life.
However, making the wireless charger can be difficult and may require some experimentation.
For the PWM circuit you can refer to the first diagram from the following article:
https://www.homemade-circuits.com/how-to-use-ic-555-for-generating-pwm/
Please make sure to use the IC 7555 and not 555, because only 7555 can work with low voltage supplies such as 3V.
You can use upto 7 LEDs in parallel across the pin#3 of the IC and ground. The LEDs can be any standard type, rated at 20 mA, 3.3V.
Since 3V is used as the supply, you wouldn’t require any limiting resistors.
For the wireless charger you can try experimenting with the following design:
https://www.homemade-circuits.com/wireless-cellphone-charger-circuit/
Let me know if you have any further questions or doubts.
Hi, first thanks for this post. Im not very good in electricity. I work on my Rc truck, i have 18650, i know is rated 3.7volts but fully charge the battery give 4.2volt. My set up is for 8 x white led 3.3volts. Did i use 50 ohm resistor for each led anyway or a bigger one at the begining of the circuit will be simple? If yes, which one? Thanks.
Hi, here’s the calculation:
R = 4.2 – 3.3 / 8 x 0.02 = 5.6 ohms
Therfore the resistor value can be 5.6 ohms 1/4 watt
Thanks a lot. 🙂
You are welcome!…. the configuration will be the same as given in the above article.
If you will I am trying to conform to existing legalities with existing lighting. Thank you
Mike
Hi Swagatam, I was inspired by what I have read. I have a particular situation I have been unable to solve. If you could help it would be appreciated more than you can imagine. Picture if you will, 4 red leds in parallel powered by 2 aa batteries. I need to add a switch and circuit to the existing that will allow a regular flash of said leds. if you see a second switch causing flash the first switch a constant light
Hi Mike, I think you can try the following design and see how it works:
https://www.homemade-circuits.com/wp-content/uploads/2023/08/LED-flasher-with-a-switch.jpg
Thank you for your prompt reply. I assembled this circuit this morning. Unfortunately I could not make it work as intended. I will continue to ponder the question as to where I went wrong.
Are the LEDs flashing? It is a simple transistor astable oscillator circuit and is a tested design, it should work.
Please send me a solar powered 3.7 v LED flip flop circuit diagram. Thank you
Try this circuit, connect it to a 5 V solar panel
https://www.homemade-circuits.com/wp-content/uploads/2021/02/3V-LED-flasher-circuit.png
I used 16 number of 5MM led with 4v rechargable battery which is charged by solar panel. do inneed to use resister?? and which one?
Yes, with 4 V you must have a resistor for 3.3V LEDs. The formula as given below:
Resistor = 4 – 3 / LED Current.
If your LED current is 20 mA then:
Resistor = 4-3 / 0.02
= 1 / 0.02
= 50 ohm
So you must use a 50 ohm resistor in series with each of the 16 LEDs.
Can an outdoor security lighting system consisting of 8 high power LEDs each individually separated from a 3.7 volt lithium ion battery bank by 100 feet of 14 ga copper wire work?
Can’t say without practically checking it, because the resistance of the 100 feet wire is not known.
If I connect three LEDs in parallel together with 3.7v lithium battery, what value of resistor can I connect with it to obtain bright light and still prevent the LEDs from being burnt?
Ideally you must have one individual resistor for each LED, but if you want to have a common resistor for all the parallel LEDs, it is also possible. You can calculate the resistor value using the following formula:
R = Supply voltage – LED Forward voltage / Total LED current
Thanks for your response sir. But I’ve done that calculation before and I got 20ohms but when I used 20 ohms resistor with three LEDs (connected in parallel) and 3.7v lithium battery, the light is not as bright as it supposed. Thanks
Assuming the current of each LED is 20 mA, for 3 LEDs in parallel the total current becomes 60 mA. The full charge voltage of the Li-Ion cell will be 4.2V. Thus, the equation can solved in the following manner:
R = 4.2 – 3.3 / 0.06 = 15 ohms
Did you follow the above method, the result will be absolutely correct using this method.
Hi Swagatem,
Lots of good info here, thanks.
I would like to recell some 3 volt flashlights with Lipo cells connected in parallell, nominal voltage 3.7, initial voltage 4.2 to power 3 volt LED. Is this too much power for the bulb please?
Thanks,
Mike
Hi Mike,
Yes a fully Lipo cell may reach up to 4.2V, which is too high for a 3.3 V standard LED. You will have to connect a series resistor with the LED to limit the current.
Considering a 3.3 V 20 mA LED. The resistor value will be:
4.2 – 3.3 / .02 = 25 ohms 1/ 4 watt
Once this resistor is connected, you can add any number of cells in parallel, that will not matter.
I am trying to drive an LED holiday display using a 3.2v LiFePo4 cell. The catch is that the display has strands with some of the LEDs in a forward voltage configuration and some in a reverse configuration. In order to light all of the LEDs the polarity of the leads feeding the strands goes from positive to negative quickly enough to make them all appear to be lit at the same time. The white LEDs light well at 2.6v and draw 15mA. I am at a loss as to how to design a circuit that can change the polarity of it’s output. Can you help? Thanks!
If the reverse forward LED strings are connected in parallel, then you can feed an AC voltage to the strings through an appropriately calculated resistors so that all the LEDs appear to be illuminated simultaneously.
Thank you for your reply and the solution to my issue. The LED strings are connected in parallel. I will now try to figure out a circuit to do this. You are providing a wonderful service to all of us trying to make our projects work. Thanks again!
Thank you, hope you are able to figure it out soon..
Hi Swagatam, Very new to this, first project with Lipo, still much to learn. I’m attempting to build a 5S2P pack for a power tool. Cells are new, capacity tested but not matched. I would like to get 4000mAh out of each 2P. Would I be able to parallel cells of slightly different capacities as long as they total the 4000mAh I’m looking for from each pair? For example, parallel a 1970mAh cell with a 2030mAh cell and a 1985mAh cell with a 2015mAh cell, each pair to produce the necessary 4000mAh? Thanks much!
Hi Mike, that’s possible, you can easily put batteries in parallel with different mAh ratings, provided their voltage rating are similar.
Greetings Swagatam. I stumbled on your technically inspiring article about how to connect a 5mm led light to a 3.7v. li-on cell battery. I am a DIY enthusiast with keen interest on electrical concerns. I am not a pro.
My search for some explanation for reason why 2pcs of 3.6v rechargable 2032 coin cell batteries blew up each led bulb (two reading glasses lamps) one after the other. Normally the forward voltage of the led lights needed to power the mini led bulb is 2 pieces 3.0v. li-on coin cell batteries.
Please shed some light on this case for this and other learners. Is 3.6v rechargable coin battery too powerful for a single 3.0v power 5mm led light?
Secondly, I noticed that when both coin batteries are placed together in series as should be loaded in the led lamp battery compartment, there is tiny spark at contact. Is this normal?
Thanks.
Thank you Bernardese, Glad you liked the post.
An LED can blow due to two basic reasons, either an over-current or overheat. An Over voltage can also burn an LED, but only if it is backed up with high current. If the current low, then over voltage cannot affect the LED since the voltage would never rise and drop to the LED level, due to low current.
In your case, the li-ion cell has a very high current content, which means even at 3.7 V, it can drive the LED in an over current situation, because 3.6 V is 0.3 V higher than the optimal 3.3 V limit of the LED. Moreover, the 3.7V li-ion when fully charged can reach upto 4.2V which is extremely high for any 3.3 V LED.
That is why a series resistor is required for limiting the current to the LED and to safeguard it from over current.
If your LED is a power LED, like the 1 watt LEDs, then along with a resistor you will also need to attach an heatsink to the LED to safeguard it from over heat, and thermal runaway.
…the sparking is not normal, it simply shows that your LED is consuming abnormally high current
Hello, I would like a diagram of a solar dusk to dawn light. The goal is using the smallest solar panel, one bright white led that produces 55 lumens with a 18650 3.7v battery. The light should last every night 10-12 hours. Any help would be greatly appreciated.
Hi, you can probably try the last circuit from this article with some minor modifications:
https://www.homemade-circuits.com/solar-garden-light-with-programmable/
Hello, I am try to find a way to avoid expensive Owl predator flashing lights–My knowledge of electrical mini devices is limited to + and –
I bought some red flashing led diodes, I would like to wire in a photocell and use a solar charging system with a rechargeable 3.7 battery as power-
I do not understand the electronic schematics and their icons. think You all might show me in a + and neg.- graphic (pencil drawing) the circuit I could solder my pieces into place.You may not have time .to decipher this writing.
Hello, you can configure the LED solar panel with a transistor to achieve your idea, as shown below:

sir, Greetings..
i tried several times with this formulae but failed .i use only 5 led.The problom is when after charging the lion battery output voltage should 4.2 volt then this voltage pass through led immediately burn one or two leds.Anyway to maintain constant current irrespective of voltage?expecting your valuable reply.
Sison, I have tried this in many applications and has worked without any problems, in fact all cheap emergency lamps use the same concept. If it is not working for you then better use each resistor separately for each of the LEDs. Use the same the formula for calculating the values. In the formula the current will now reduce since a single LED is being calculated.
Nobody can tell as there are thousands of different LEDs – you’d have to look up your particular LED and its specifications.
Hi Juan, different mobiles have different ratings for the flash LED, so you will have first confirm the current rating of the LED, then I can suggest the resistor value.
Greetings, sir. I want to connect a flash LED like what the cell phones use to a 3.7v battery equally the one used by cell phones, which resistance recommends me to use in this case? First hand thank you very much
Thanks
Single resistor is enough if the LED specs are identical.