Difference between pages "LED Lighting" and "DIY-battery"

From E-Bike Wiki
(Difference between pages)
Jump to navigation Jump to search
(Created page with "Led lighting. a complex subject where the leds range from really good to absolute crap with seemingly little rhyme or reason. I hope to try and answer some of these questions ==Led Size== First off, you might see leds called '5050' or '5630' or '2835' but what do those model numbers mean? Well they are SMD codes for the size of the led in 0.1mm. so a 5630 is 5.6mm x 3.0mm and a 5050 is 5mm x 5mm. 5050 is going to be generally the biggest LED you find commonly and is a...")
 
 
Line 1: Line 1:
Led lighting. a complex subject where the leds range from really good to absolute crap with seemingly little rhyme or reason. I hope to try and answer some of these questions
'''Intent:''' This page is created as a guideline whether if assembling/designing your own battery pack is a viable option compared to buying a pre-made battery.


==Led Size==
First off, you might see leds called '5050' or '5630' or '2835' but what do those model numbers mean? Well they are SMD codes for the size of the led in 0.1mm. so a 5630 is 5.6mm x 3.0mm and a 5050 is 5mm x 5mm.


5050 is going to be generally the biggest LED you find commonly and is a nice square led so tends to fill light strips nicely. Bigger numbers are not always better, as for example the 5630 has less surface area then the 5050 since its rectangular, you have to compare the first two digits and last two separately.
==Prerequisite software/knowledge==


Bigger does not always mean brighter however. Large leds can be made with very low current ratings, so high quality small leds will beat very cheap large leds. The best indicator of led performance is the rated current as most sellers lie about the rated wattage.
Ability to draw 2D schematics/diagrams. - you need to do this if you are trying to make a pack with a certain dimension constraint. use of CAD is encouraged.


==About LED Strips==
You know how to use the [[Simulator]] - You need to know how much current your battery will be drawing.
When dealing with light strips, they generally will tell you an 'led/meter' figure that tells you how many leds you'll find per meter. The most common sizes are 30, 60, 120, 144 led/m.
100, 180, 204, 280 and 300 led/m also exist but are rare
The highest density you will find for 5050 leds is generally going to be 120 or 144led/m. I believe 120/144 is the highest fill (leds to dark area ratio) you'll find for leds as higher led/m just use much smaller leds.
Individually addressable LED strips require a controller to turn on or do anything. You can tell if its individually addressable because they will call it such and often describe it using a control IC like WS2812B. You must match your controller with the control IC.
Individually addressable LED strips come in 30, 60 and 144 led/m, while dumb led strips that just require power be applied come in 30, 60, 120, 180, 204, 280 and 300 led/m.
Basic and intelligent LED strips often come in 1M/2M/3M/4M/5M lengths, but only the 1M lengths seem to be commonly sold in 120/144 led density, likely due to the high current draw required.


They also make dumb 'RBG' strips where every led of the same color is connected to its own power wire, I believe these you could configure to any color by using a PWM controller or just large resistors in series with individual color inputs. I have noticed these in 30, 60 and 120 led/m, with some 'dual row' RGB+white strips being 120led/m but since its two rows its only as dense as 60led/m.
Ohm's law. Since we are not going into AC power, complex number/angle is not needed.  


Led strips are commonly available in bare (PCB only), silicone coated or silicone tube waterproof. They are generally not sealed very well and would need additional sealant on the ends of the tube to become truly water proof.
Ability to read battery cell datasheet. - As the wiki page becomes older, more cell info will be added to the page; but for cells that are not on this wiki/internet in a simplified format, reading datasheet will be necessary. [https://www.batemo.de/products/batemo-cell-library/lg-energy-solution-inr21700-m50lt/ Simplified datasheet of M50LT, courtesy of Batemo.de]


==COB leds==
You will most likely see terminologies that you've never encountered before, this will be explained along the article.
Next we have COB leds. Or 'chip on board' where the led dies are welded/soldered directly to the PCB and then some goop is put on top of the LED. While these often look like a continuous light panel they are still individual leds, and nobody seems to offer any indication of LED density. Some do still show individual led dots, often due to resistors and other circuity under the goop blocking light.
COB are available in all kinds of square/rectangular sizes. up to about 20cm long. They are generally a single fixed color and I have not seen any RGB cob lights or intelligent ones.
Note that not all cob leds are designed to run without a heat sink but many are. They seem more suited to stuffing into incandescent fixtures like turn signals.
Most are bare boards with solder terminals or wires, but a small number of COB boards prepackaged into a water proof case do exist, most commonly very cheap 14 and 17cm white led strips


==Led Brightness==
==Safety==
[https://www.youtube.com/watch?v=l_jeTcT6qBQ Batteries become explosives if they are uncontrollably discharged.] Therefore, at all times, you must respect the cell and equipment that you are using and know how to operate them. This would mean:


Led brightness is a difficult issue. It will be affected by many things such as the viewing angle as if the viewing angle is 2x as wide, the light will be 1/4 as bright because it has to cover 4x as much area with the same amount of light.
*Do not solder directly onto cells, unless you know what you're doing. you are thermally stressing the cell. In practical term, this would be putting soldering iron onto cell junction for extended period of times. The industry uses spot welders or screw-on terminals to reduce thermal stress on cells.


Also the wattage of most leds is often extremely exaggerated and is best ignored. What you should do is find out the current draw and multiply it by the rated voltage. so a 0.5A led * 12v = 6W led. You can expect an led watt to be about 7 times as bright as an incandescent bulb, so a 6W led becomes the equivalent of a 42W incandescent bulb.
*Do not leave individual cells outside packaging unkept. Store them in a container, if possible.
As for efficiency of an led, In general most multiple led products are designed to run multiple leds in series to make it more efficient at 12v, getting about 70% of the power to the leds, or may even have some kind of SMPS that makes running the leds 80 to 90% efficient. But it is possible for them to just run one led in series and you would only get 30% efficiency. This would be rather rare however, so its generally safe to assume that most of the power given to an LED will actually be used to produce light, but that higher quality led products may be 20%+ more efficient then cheap led products, before even taking into account the lens and optics.


==Powering lights from E-bikes==
*Do not use used cells, if possible. Used cells are not recommended because they will have different internal resistance (IR) and it will be harder for BMS to balance packs with different IR and increase chance of cell failure.
As for how to power you lights from your e-bike, while you will find a small range of lighting products designed for 36/48/52/60 and sometimes even 72v batteries, we have had much better success buying a 36~72v to 12v converter off ebay/amazon and just buying 12v automotive/motorcycle lighting and controls as there is a much better section in 12v then 36v+. Most decent lighting designed for e-bike voltages is also rather expensive. You can also get 12v blinkers and brake light flashers very cheaply on ebay.


==How many watts do I need?==
*Do not make a battery pack without a BMS. Always use BMS from reputable sellers with appropriate discharge rating. For example, 30A battery should have at most, 30A BMS, preferably slightly lower for safety margin)
Incandescent car turn signals are around 27W for turning and another 8W for running light. this translates to about 3.8W for each LED turn signal and 1.1W for each LED running light. While you don't need to be as bright as a car I would highly suggest it is something to aim for and even consider exceeding. Car headlights are typically 50W each or about 7W in LED equivalent watts. LED strip lights come in wattages from 5 to 43W per meter. While led strips make poor headlights, they can be used for rather nice turn signals and running lights. Consider for on road headlights that the optics are of extreme importance to put the light where you need it and not into the eyes of other drivers. Many e-bikers have bought high power LED flood/spot lights expecting them to be good headlights only to find out they don't let you see very well and tend to blind all on coming traffic. Consider DOT or similar rated motorcycle headlights just because they tend to have optics that put the light in the correct direction.
 
*Do not place/use conductive objects when making battery, if possible. This is generally unavoidable when using spot welders. In this case, cover the areas that you are not working on to reduce likelihood of shorts.
 
*Do not charge batteries unattended. Especially a battery pack you built for first time.
 
*In case of actual fire, do not try to put out the fire, Li-ion fires are uncontrollable and specialized fire extinguishers are needed. [https://www.youtube.com/watch?v=HQFff-KQ7EY Even this is not enough for large li-ion fire]
 
'''If this is your first electronics project, stop what you're doing. You're most likely to screw something up and burn your house down. If you don't know how to use a soldering iron and doesn't know how to use a multimeter, consider doing some other electronics project (learn from makerspace) then try again later.'''
 
(Reminder: add self-served knowledge assessment. - kopaz)
 
==Equipment requirement==
 
===Soldering iron===  
depending on design, you may not even have to solder anything, but you most likely will for balance wires. Balance wires are used by the Battery Management System (Hereinafter BMS) to read a pack's voltage for charge/discharge/storage.
Pinecil will work for balance wires, but a higher power soldering iron will be necessary if you are soldering bus wire/plates.
 
===Battery case===
The shape/volume of the case determines how much cell you can fit in the case. You can 3D Print a battery case, and this will be explained further. In general, injection-molded/hardcase plastic battery case (if designed/manufactured well) will be almost always superior to a 3D printed/handmade case. Therefore, the latter cases are for more experimental purpose that market does not provide i.e. very large in dimension, custom mounting/hole for heatsinking, etc.
 
===Spot welder===
Spot welder of your choice, and something that won't fail after using it for an hour. They are either battery-powered, or supercap-powered. [https://www.nasa.gov/sites/default/files/atoms/files/prc-0009_current.pdf NASA's guideline on spot welding.]
Most li-po based spot welders on ecommerce site doesn't seem to last long. Expect anything under $100 be a "lottery", more or less.
 
===Multimeter===
used for troubleshooting. Red probe goes on V+, Negative probe goes on V-. '''Do not mix these up.'''
Cheap, reliable multimeter will do. we're not measuring high voltage here. Something like fluke 101 works.
 
===2D/3D CAD software===
To your preference - there are hobbyist/entry level software that usually has limited/featureset comapred to hobbyist-level and professional (career)-level software, but for this purpose, as long as you can do 2D sketch and do 3D model using sketch, it will work. Example: [https://www.tinkercad.com/ Tinkercad] [https://www.autodesk.com/products/fusion-360/free-trial Fusion 360] [https://www.freecad.org/index.php FreeCAD]
 
==Start-to-Finish cycle==
 
*Decide equipment of your choice first. depending on how complicated you want your design to be, CAD software may be recommended, but a simple sketch drawing might also do.
 
*Calculate power & speed requirement of your ebike. Refer to the [https://ebikewiki.com/index.php/Simulator|Grin simulator]. Hint: Faster ebike usually need a battery of higher voltage, or a motor with high KV rating (how much the motor will spin per volt), with enough power output to sustain this power (usually a peak at startup due to torque requirement, then gradually slopes down).
 
*Plan out what cell sizes you will be using (the most common sizes are 18650 (18mm*65.0mm) and 21700 (21mm*70.0mm). I hope you already have a battery case designed/purchased. If not, purchase/design a battery case first to your shape/dimension, make a mockup of your cells, including busbar/nickel strip so you don't mess up and burn your house down. Feel free to ask for help on our [https://discord.gg/ATZ8eet6fy Discord server].
 
*Select cells. You will most likely end up spending some time doing this, if you've never done something like component selection before. In general - Cells are characterized by (to price, cheaper to expensive):
Low power density, low max/continuous power output (usually the cheapest - prismatic cells fall into this sort of category, and entry level cells that are commonly found in powerbank packs)
 
Medium~high power density, low~medium continuous power output (something like LG M50 series linked above falls into this category). Slightly higher than the entry level cells, but still not the best. Example:
 
Medium power density, medium~high power continuous power output. Example: [https://litechpower.com/htmledit/uploadfiles//20210628200957892.PDF Molicel INR-21700-P42A]
 
The "easiest" way of choosing cells without risking thermal runaway would be simply choosing cells like P42A, bundle them in parallel to have desired Amp-hour, then wire them in series to have desired nominal voltage of your pack. Naturally, by doing this, you will run into cost issue.
 
*'''The best way of buying cells at cheapest rate is by buying them in hundreds or thousands. The price difference will vary from sellers, but they all follow this trend, one way or another (unless there is a sale/clearance). This is the break-even point you need to consider before making your pack, if cost is priority.
'''
Typically, nominal voltage for e-bike packs are usually multiples of 12 - 36, 48, 60, 72V (with exception of 52V). Above 72V is the area where you're pretending that you are an e-bike, but really isn't an e-bike (more like a dirtbike/motorcycle. again, depending on max power/speed due to different motor winding, this varies).
*Along with cells, buy other consumables for your battery, like cell holders '''(Unless you know what you are doing, always use a cell holder)''' and nickel strips (don't forget BMS and some padding). You can get screw-on style for making batteries parallel without having to spot welder, namely, by screwing terminal caps. Example [https://vruzend.com/ here] and [https://18650.lt/ here]. This is actually fairly common design choice outside PEVs, but they take up more volumetric space and more expensive (and proprietary) than simply spotwelding strips directly onto cells.
 
*For safety precautions, measure cell voltage one by one before connecting them in parallel. Every cell should be at same voltage level to 2~3 decimal points. They should all be on storage SOC (60%) per ICAO transportation reasons (I am not linking here, but feel free to read the legalese on your own). This means about 3.8V per series. You have a questionable/sus supplier, if you have cells that are fully charged/drained. Contact supplier and decide if you want to share the supplier to us on our [https://discord.gg/ATZ8eet6fy Discord server].
 
*Connect cells in parallel. Depending on dimension/shape, you may not be able to simply line them up (i.e., 1s*x amount of p-group, on a line). If you've been following this rundown, you should already have layout of your battery pack. Simply follow that, wire balance leads (V- goes to the V- of first series group, S1 goes to V+ of first series group, and so on, to the last series group). The last series group and V+ should be on a separate junction (series group balance lead should be soldered onto your busbar/nickel plate, other should be on output i.e., V+). Appropriately pad the battery pack to the case and, organize your balance wires so they aren't spaghetti. This might sound funny, but having balance lead that aren't spaghetti will be easier for you to troubleshoot & reduce likelihood of accidental shorts.
 
*Place thermistors onto cells wherever appropriate. this will be explained further.
 
*Program the BMS as necessary. The things you should be looking out for the most is:
 
1. Battery capacity (in amp-hour)
 
2. Nominal voltage (in Volts)
 
3. Maximum continuous discharge (in amps. this is NOT amp-hour)
 
4. Peak discharge (usually to 10s, also in amps. Refer to your cell datasheet and independent tests)
 
5. Charge-voltage cutoff, and Discharge-voltage cutoff (and alarm)
*Do not configure your pack to discharge from 100% SOC to 0% SOC, and vice versa. This will reduce your battery lifespan significantly. [https://www.nrel.gov/transportation/battery-lifespan.html Further read]
 
6. Charge/discharge temperature protection (High temperature and low temperature). Refer to your cell's datasheet. Do not leave your battery unattended.
 
==Design==
You use the simulator to find power requirement of your setup, then you use the peak power consumption as your baseline.
 
Depending on your design decision/riding habit, this can be flexible to some degree. 10s should be the absolute maximum for "peak" power output of your battery (this will also depend on the cells you are using). Dimension is also fairly simple - Either you find a case that fits on wherever you are placing battery on, or you design a custom case and use that as a baseline.
Custom design cases will be explained in detail in a separate article.
'''Note: Continuous output will vary, such as terrain grade, speed, air resistance and weight of rider/bicycle. Only use example cases below, as examples only.'''
 
===Example case 1===
Let's say we have an e-bike setup that will do 2000W continuous with a battery pack that has nominal voltage of 52V. Each series group would need to have continuous output of 39A; at 52V nominal voltage, you would need 14 cell groups in series.
 
===Example case 2===
We want to make an e-bike setup that will do 4000W continuous with a battery pack that has nominal voltage of 60V. Each series group would need to have continuous output of 67A; at 60V nominal voltage, you would need 16 cell groups in series.

Revision as of 08:01, 16 September 2023

Intent: This page is created as a guideline whether if assembling/designing your own battery pack is a viable option compared to buying a pre-made battery.


Prerequisite software/knowledge

Ability to draw 2D schematics/diagrams. - you need to do this if you are trying to make a pack with a certain dimension constraint. use of CAD is encouraged.

You know how to use the Simulator - You need to know how much current your battery will be drawing.

Ohm's law. Since we are not going into AC power, complex number/angle is not needed.

Ability to read battery cell datasheet. - As the wiki page becomes older, more cell info will be added to the page; but for cells that are not on this wiki/internet in a simplified format, reading datasheet will be necessary. Simplified datasheet of M50LT, courtesy of Batemo.de

You will most likely see terminologies that you've never encountered before, this will be explained along the article.

Safety

Batteries become explosives if they are uncontrollably discharged. Therefore, at all times, you must respect the cell and equipment that you are using and know how to operate them. This would mean:

  • Do not solder directly onto cells, unless you know what you're doing. you are thermally stressing the cell. In practical term, this would be putting soldering iron onto cell junction for extended period of times. The industry uses spot welders or screw-on terminals to reduce thermal stress on cells.
  • Do not leave individual cells outside packaging unkept. Store them in a container, if possible.
  • Do not use used cells, if possible. Used cells are not recommended because they will have different internal resistance (IR) and it will be harder for BMS to balance packs with different IR and increase chance of cell failure.
  • Do not make a battery pack without a BMS. Always use BMS from reputable sellers with appropriate discharge rating. For example, 30A battery should have at most, 30A BMS, preferably slightly lower for safety margin)
  • Do not place/use conductive objects when making battery, if possible. This is generally unavoidable when using spot welders. In this case, cover the areas that you are not working on to reduce likelihood of shorts.
  • Do not charge batteries unattended. Especially a battery pack you built for first time.

If this is your first electronics project, stop what you're doing. You're most likely to screw something up and burn your house down. If you don't know how to use a soldering iron and doesn't know how to use a multimeter, consider doing some other electronics project (learn from makerspace) then try again later.

(Reminder: add self-served knowledge assessment. - kopaz)

Equipment requirement

Soldering iron

depending on design, you may not even have to solder anything, but you most likely will for balance wires. Balance wires are used by the Battery Management System (Hereinafter BMS) to read a pack's voltage for charge/discharge/storage. Pinecil will work for balance wires, but a higher power soldering iron will be necessary if you are soldering bus wire/plates.

Battery case

The shape/volume of the case determines how much cell you can fit in the case. You can 3D Print a battery case, and this will be explained further. In general, injection-molded/hardcase plastic battery case (if designed/manufactured well) will be almost always superior to a 3D printed/handmade case. Therefore, the latter cases are for more experimental purpose that market does not provide i.e. very large in dimension, custom mounting/hole for heatsinking, etc.

Spot welder

Spot welder of your choice, and something that won't fail after using it for an hour. They are either battery-powered, or supercap-powered. NASA's guideline on spot welding. Most li-po based spot welders on ecommerce site doesn't seem to last long. Expect anything under $100 be a "lottery", more or less.

Multimeter

used for troubleshooting. Red probe goes on V+, Negative probe goes on V-. Do not mix these up. Cheap, reliable multimeter will do. we're not measuring high voltage here. Something like fluke 101 works.

2D/3D CAD software

To your preference - there are hobbyist/entry level software that usually has limited/featureset comapred to hobbyist-level and professional (career)-level software, but for this purpose, as long as you can do 2D sketch and do 3D model using sketch, it will work. Example: Tinkercad Fusion 360 FreeCAD

Start-to-Finish cycle

  • Decide equipment of your choice first. depending on how complicated you want your design to be, CAD software may be recommended, but a simple sketch drawing might also do.
  • Calculate power & speed requirement of your ebike. Refer to the simulator. Hint: Faster ebike usually need a battery of higher voltage, or a motor with high KV rating (how much the motor will spin per volt), with enough power output to sustain this power (usually a peak at startup due to torque requirement, then gradually slopes down).
  • Plan out what cell sizes you will be using (the most common sizes are 18650 (18mm*65.0mm) and 21700 (21mm*70.0mm). I hope you already have a battery case designed/purchased. If not, purchase/design a battery case first to your shape/dimension, make a mockup of your cells, including busbar/nickel strip so you don't mess up and burn your house down. Feel free to ask for help on our Discord server.
  • Select cells. You will most likely end up spending some time doing this, if you've never done something like component selection before. In general - Cells are characterized by (to price, cheaper to expensive):

Low power density, low max/continuous power output (usually the cheapest - prismatic cells fall into this sort of category, and entry level cells that are commonly found in powerbank packs)

Medium~high power density, low~medium continuous power output (something like LG M50 series linked above falls into this category). Slightly higher than the entry level cells, but still not the best. Example:

Medium power density, medium~high power continuous power output. Example: Molicel INR-21700-P42A

The "easiest" way of choosing cells without risking thermal runaway would be simply choosing cells like P42A, bundle them in parallel to have desired Amp-hour, then wire them in series to have desired nominal voltage of your pack. Naturally, by doing this, you will run into cost issue.

  • The best way of buying cells at cheapest rate is by buying them in hundreds or thousands. The price difference will vary from sellers, but they all follow this trend, one way or another (unless there is a sale/clearance). This is the break-even point you need to consider before making your pack, if cost is priority.

Typically, nominal voltage for e-bike packs are usually multiples of 12 - 36, 48, 60, 72V (with exception of 52V). Above 72V is the area where you're pretending that you are an e-bike, but really isn't an e-bike (more like a dirtbike/motorcycle. again, depending on max power/speed due to different motor winding, this varies).

  • Along with cells, buy other consumables for your battery, like cell holders (Unless you know what you are doing, always use a cell holder) and nickel strips (don't forget BMS and some padding). You can get screw-on style for making batteries parallel without having to spot welder, namely, by screwing terminal caps. Example here and here. This is actually fairly common design choice outside PEVs, but they take up more volumetric space and more expensive (and proprietary) than simply spotwelding strips directly onto cells.
  • For safety precautions, measure cell voltage one by one before connecting them in parallel. Every cell should be at same voltage level to 2~3 decimal points. They should all be on storage SOC (60%) per ICAO transportation reasons (I am not linking here, but feel free to read the legalese on your own). This means about 3.8V per series. You have a questionable/sus supplier, if you have cells that are fully charged/drained. Contact supplier and decide if you want to share the supplier to us on our Discord server.
  • Connect cells in parallel. Depending on dimension/shape, you may not be able to simply line them up (i.e., 1s*x amount of p-group, on a line). If you've been following this rundown, you should already have layout of your battery pack. Simply follow that, wire balance leads (V- goes to the V- of first series group, S1 goes to V+ of first series group, and so on, to the last series group). The last series group and V+ should be on a separate junction (series group balance lead should be soldered onto your busbar/nickel plate, other should be on output i.e., V+). Appropriately pad the battery pack to the case and, organize your balance wires so they aren't spaghetti. This might sound funny, but having balance lead that aren't spaghetti will be easier for you to troubleshoot & reduce likelihood of accidental shorts.
  • Place thermistors onto cells wherever appropriate. this will be explained further.
  • Program the BMS as necessary. The things you should be looking out for the most is:

1. Battery capacity (in amp-hour)

2. Nominal voltage (in Volts)

3. Maximum continuous discharge (in amps. this is NOT amp-hour)

4. Peak discharge (usually to 10s, also in amps. Refer to your cell datasheet and independent tests)

5. Charge-voltage cutoff, and Discharge-voltage cutoff (and alarm)

  • Do not configure your pack to discharge from 100% SOC to 0% SOC, and vice versa. This will reduce your battery lifespan significantly. Further read

6. Charge/discharge temperature protection (High temperature and low temperature). Refer to your cell's datasheet. Do not leave your battery unattended.

Design

You use the simulator to find power requirement of your setup, then you use the peak power consumption as your baseline.

Depending on your design decision/riding habit, this can be flexible to some degree. 10s should be the absolute maximum for "peak" power output of your battery (this will also depend on the cells you are using). Dimension is also fairly simple - Either you find a case that fits on wherever you are placing battery on, or you design a custom case and use that as a baseline. Custom design cases will be explained in detail in a separate article. Note: Continuous output will vary, such as terrain grade, speed, air resistance and weight of rider/bicycle. Only use example cases below, as examples only.

Example case 1

Let's say we have an e-bike setup that will do 2000W continuous with a battery pack that has nominal voltage of 52V. Each series group would need to have continuous output of 39A; at 52V nominal voltage, you would need 14 cell groups in series.

Example case 2

We want to make an e-bike setup that will do 4000W continuous with a battery pack that has nominal voltage of 60V. Each series group would need to have continuous output of 67A; at 60V nominal voltage, you would need 16 cell groups in series.