Difference between pages "Volts and Amps" and "DIY-battery"

From E-Bike Wiki
(Difference between pages)
Jump to navigation Jump to search
(Created page with "Volts, Amp, Amp hours, watts and watt hours, what do they mean for an e-bike? These are the units of measurements for batteries, controllers and motors. Lets dive into what each means in detail: ==Volts== Volts is directly related to max RPM for a given motor. For a given battery voltage will slowly decrease as it discharges (See https://cdn.discordapp.com/attachments/593205534862082075/620503053178503181/1545991790982-png.png for chart). ==Current== Current (measure...")
 
 
Line 1: Line 1:
Volts, Amp, Amp hours, watts and watt hours, what do they mean for an e-bike?
'''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.


These are the units of  measurements for batteries, controllers and motors. Lets dive into what each means in detail:


==Volts==
==Prerequisite software/knowledge==
Volts is directly related to max RPM for a given motor. For a given battery voltage will slowly decrease as it discharges (See https://cdn.discordapp.com/attachments/593205534862082075/620503053178503181/1545991790982-png.png for chart).


==Current==
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.
Current (measured in amps) is directly related to the torque of your motor. You will often see a controller specify its 'battery amps' and 'phase amps'. Phase amps are your peak torque at lower RPM, where the controller can exchange voltage for amps to give you extra torque at low speed. Battery amps are what will be drawn from the battery. You absolutely must have a battery rated for the same or more amps then your controller is rated to use or you will damage your battery when the controller draws too much.
==Watts==
Voltage * battery Amps = Watts. Watts are your power. In fact it takes 745.7watts to make one horsepower. While voltage determins your absolute max RPM, without more watts you won't go any faster unless you where limited by the motor reaching its max RPM before you ran out of watts.
==Amp Hours==
Amp hours are how many amps your battery can give for one hour. For example if it was 10 amp hours, it could give 10amps for one hour, or 20 amps for 30 minutes, or 5amps for 2 hours. You might be mistaken into thinking that amp hours are equal to range, but that is only true for a given voltage as watt hours are the true unit of energy storage.
==Watt Hours==
Watt hours are Amp hours * Voltage. They tell you the true power capacity of a battery. In fact you will often find electric vehicles energy efficency expressed in watt hours per KM or mile. (wh/km or wh/mi). For a very rough idea, you can assume about 10wh/km for very slow riding at 25kph or below on flat ground, 20wh/km for fast riding up to 45kph or on slightly hilly ground, and up to 40wh/km for very fast riding at up to 60kph or on very hilly ground.  Exact figures vary greatly but this gives you a rough idea.
==C Rating==
Cells have what is known as a C rating, this is basically how quickly they can be discharged, with 1C being the current needed to fully discharge the cell in exactly 1 hour. You can calculate the peak discharge current by multiplying the AH rating and C rating hence for a 3.3Ah cell, 1C would be 3.3A and take 1 hour to discharge at that current. For a 2.5Ah cell, 1C would be 2.5A and also take one hour to discharge. a 2.5AH cell at 2C would fully discharge the cell in 30 minutes and at 5A current, 4C is the rate that would fully discharge the cell in 15 minutes at 10A for a 2.5AH cell, and so forth.


Note that the C rating is only the maximum you can safely draw from the cell, if you only draw at a lower current the cell will take as long to discharge as a lower C rated cell of the same Ah value
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. [https://www.batemo.de/products/batemo-cell-library/lg-energy-solution-inr21700-m50lt/ 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==
[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:
 
*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.
 
*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.