Cheap, Different, very DIY

jeremy777

New member
Joined
Apr 8, 2018
Messages
15
The Story So Far...


I have some unusual system requirements.

I don't live in a house, though we have a house we don't live in. Compared with a normal house-based lifestyle my electrical power requirements are quite low, but there's no Grid power here up this mountain and sometimes the sun disappears for weeks, and we prefer not to use generators and petrol powered tools like chainsaws etc.

We've been making our own power for more than ten years now, though when we started with solar we just had a 100W solar panel and a leisure battery. Before that we just had a phone charger in the car and nothing else. So we've lived without, decided it's good, but have since decided to bring some technology back into our lives. Slowly building up what we really want into our life.


We understand the health problems caused by standard electrical installations. I don't want to live in the middle of a giant oscillating electromagnet so I keep everything DC as much as possible, and where conversion is required use converters with low emissions. Especially important is during sleep, so everything must become electrically quiet at night. This is why I live beyond the grid.

I came late to the Lithium party because my experiences (mainly with laptops) of lithium cells longevity was pretty disappointing. Why spend time, money, effort, on something that would fail in a year or two? I already had enough of that with the lead-acid batteries we'd been using (none have lasted more than 3 years - it's impossible with many users and only solar charging to maintain appropriate charge in a lead battery) but with the information and experiences of many lithium builders I could see that it could be quite different, and worth an experiment. So I bought a batch of 80 laptop batteries and a cheap tester, and got started with opening them to see what was inside.

They were mostly 4-cell packs and because our power system at the time was drastically underperforming - the new Nickel-Iron cells we'd bought the year before were only storing of the charge they were supposed to - I had to be very careful charging the laptop cells not to drain the house battery overnight. I also had only one tester, and in order to do 2 discharge tests per day I charged the cells separately. I was using LM2596 buck circuits with a constant-current control on them to do the charging, but I only had three - so to speed things up I was charging the packs up BEFORE separating them. they were mostly 8-cell 14.8V packs so charging them to 16.8V at 1A worked nicely. Testing the cell voltages before and during charging with a DMM I could find the bad cells quickly. What I found was that most cells even if they were discharged down to 0.5V would charge up and rejoin the rest of the pack within a few minutes having the same voltage as the rest of the pack and staying that way all the way to the top. If it was lower than 0.2V, though, it would probably be heavily self-discharging and would get hot instead of charging. In the end more than 85% were usable.

I could test 8 cells every 12 hours so it took a month to get them all tested, taking time off for bad weather. I decided to keep the welded copper strips (these were OEM batteries probably from a company fleet being sold on) because I didn't see the point of throwing away connecting material only to replace it, and I wanted them as soldering tags so as not to heat the cells. But this meant that I couldn't use the plastic cell-holders that are so popular. I'd decided they were too expensive anyway (I'd looked on banggood and found that for the number of cells I had I'd need to spend more than 25% of the cost of the batteries, which seemed disproportionate to me - 50 compared to 180 for the batteries - I later found them for half that price on aliexpress but by then I'd already decided) so that didn't bother me.

I also had to find a way to do it with much less copper than others, since I couldn't find anything new or old with big solid copper wire in it here in Italy. I spent some time thinking about the 'standard' way everyone was doing it on youtube etc. with a heavy wire loop and connections on the end. I started doing somemath looking at how the voltages of the cells would differ under load, and decided that it really needed the heavy copper to work since it was such an ineffective way to do it. I didn't have the heavy copper (except for sheet copper from a roofing supplier) so I started from scratch. I had some thin plywood left from other projects and thought about tying cells to it with cable-ties - 2 pairs tied by two cable-ties. Then I wanted to fix the wires to the edges and decided that the least expensive way (though not the fastest) was to use short pieces of thin copper wire wrapped through holes in the plywood and over the top of the main connection wire, then soldered together to fix. The connection wire needed a connection loop and though I had thought about using sheet copper for this, in the end it was easier to just twist a loop into the wire. A 20cm7.5cm piece of plywood with 8 pairs of cells tied to it, 0.6mm wire making the negative connection and fine strands from some offcuts of microphone cable that I had tested to blow at about 5 amps forming fuses to the positive ends of the pairs forms one 'card'.


image_bojgcg.jpg

image_rjfppw.jpg

image_tuaclt.jpg


Because I was wanting the cards to all pass their current directly to the next one nearest to it, I decided they should all have equal capacity, so after sorting into 7 equal packs I then sub-sorted them all into equal cards, and then attached the larger 4 pairs in the centre (since they would carry proportionally more of the current as the packs were charged or discharged).

I was originally imagining longer cards hung from the top end on hooks or screwed to a wooden bar, but since I'd decided to subdivide the pack so far this no longer made sense and I thought about putting them on a shelf instead. The ends of the cards stuck out for fixing, so I designed a slotted shelf that they would slot into, made by attaching thin 4cm wide strips to a plank. The cards weren't stable in the slots so I thought about having a slotted lid, but after a while this felt too complicated and prevented removing single cards from the battery, so I decided to stabilise and fix them via their electrical connections. the attachment loops are small and maleable but it is easily secure enough once the copper strips it was screwed to are fixed at one end. The screws were small self-tapping types that can be simply screwed into the copper with a 2.5mm hole drilled, or screwed into wood.


image_seabsu.jpg

image_nlzlxj.jpg

image_rsbxpw.jpg

image_yjutmy.jpg

image_uohujs.jpg

image_zdxxax.jpg


Then I attached it in place of the NiFe's and waited for it to charge. The cells were all at random, quite low charge levels (I always stopped the recharge part of the test cycle because we had so little stored charge and I wanted to keep testing every 12 hours) so some balancing was needed at first. I did this with some 3W 2.2? resistors (2 in series making 4.4?) putting them on the higher voltage layers to drop about an amp, till they came into line. I've been running them like this for a few months with no BMS (I'll make one soon) checking that things are still good every few days with my DMM and it hasn't needed balancing since. I have overdischarged it once (2 of the layers I had broken a fuse wire with my screwdriver during assembly so these ones ended up at about 1.5V) but it recharged and has been fine since, especially since soon after that I finished the second 7s80p since which our usage hasn't taken it down below 40% charged.

I have the PCM60X set to charge it to 28.3 which equates to about 4.05V/cell so there is some leeway. I also don't plan to take it much below 3.3V/cell, there's very little power down there anyway, and with these limits I hope the cycle life will be extended - though it will really only get a cycle when we have a long period of no sun, like 2 weeks, that we sometimes have 2 or 3 times a year. Since lithium cells have little to no calendar degradation this battery could last a very long time...

When I saw how much difference the first lithium battery made to our lives I immediately went and got 200 more laptop packs. I've processed 100 of these, a set from a German ebay seller which appear to be all from a replacement laptop battery company (Lavolta). Testing them they seem to be mostly new cells, and I got better than 95% good cells from this batch, making the 560 cells into a 7s80p with 5 cards per row in the same way as the first, except now I could use the charger to charge them since we had a power storage that actually stored power. But this was going slowly so I ordered 2 more of the same cheap charger (Litokala Lii500). I had felt that maybe there was some inaccuracy between the measuring bays of the first tester so when they arrived I started noting which bay of which charger each cell was charged in, and chose one cell-pair to re-test in every bay so I could see the differences. The differences turned out to be small, 2.5% on the discharge test and 2% on the charge (fast) test, although this amount of variation also turned out to be similar to the difference between a cold day and a very cold day.

When building the second battery I used my test results as a calibration to adjust the tested values according to which bay they were tested in. This turned out quite complex because I had to feed the adjusted values to the sorting algorithm and then seek back to the value written on the cell to actually find it. I did succeed in making a spreadsheet do this, and ended up needing to print 3 different sheets of figures to do the sorting. Trying to find each cells proper place from 35 different options wasn't easy! As I'd tested them I had taped them into bundles of 6 pairs and I'd entered the data in with these bundles as rows so as well as the table of cell values to row & card I also printed a "hint sheet" for each row saying which cards each cell in that bundle should go in, and a reference sheet for the hint sheet.


image_mxmvkr.jpg

image_glaptc.jpg

image_oyjcir.jpg

image_wfhlno.jpg

image_nqvblx.jpg


7 hours of sorting later I was ready to fix the cells to the cards and assemble the second battery, this time using M34mm screws into pre-tapped M3 holes in the copper strips, and I offset the screw holes along the copper strips instead of trying to fit them both in the width, but otherwise everything else was pretty similar.

The total cost of the materials to build this combined 7s144p pack was just 40. The batteries the cells came from cost 330. Total power storage (total of cell measurements) 8.2kWh.

cost breakdown:

Calculated for 7s144p in 2 stages: 7s64p & 7s80p

Money:

Item Qty Cost/ea Cost total

lead-free solder 240g 2.51 5.02
1mm wire 310m 1.99 5.97
0.6mm wire 117m 1.99 1.99
4mm plywood 46040 3 12
cable-ties 510 1.26 6.30
M3 screws 350 0.98 2.94
copper sheet 24cm*30cm 40/m 2.88

total 14.26 (=16.36)
total 22.84 (=19.91)

(rate 1=1.15 on 10th April 2018)

Combined Total 39.20 or 34.17

euro prices are the costs of buying these items locally, in supermarkets and diy stores. Sterling prices are from internet sellers (ebay and banggood)

Time: (not including pack dismantling and testing)

Action Hours

Cutting/Drilling Cards 3h (with knife not bandsaw)
Sorting 12.5
Attaching 12.5
Soldering 12.5
Base 2h
Cutting/Drilling Copper2h
Assembly 3h

Total 47.5h



I still have another 100 packs to dismantle, but I'm in no hurry now. Having attached that one below the first I am no longer even slightly worried about running out of power, even if the sun doesn't shine for a week, but I am planning to set up a fridge here for the first time this summer. Since I don't want an inverter running all the time for the fridge I'm going to set it up so that the fridges thermostat switches the inverter (next step would be a 24V DC compressor fridge, but they're super-expensive) for which I'm going to get a cheap chinese inverter just big enough to start the induction motor in the fridge. I don't care too much if it breaks, I'll just rebuild it better...

We currently have a lot of legacy 12V stuff, since for many years we ran only a 12V system. We still have 12V lead acid running our two inverters (400W for small loads, 3000W for tools etc.) so a step-down was needed for that. I also run a 35V system round the house and a 50V system down network wires to outlying buildings. All of this is done via non-isolating DC-DC converters that can be left on permanently because their quiescent current is just a few milliamps. They are also all based on high-quality toroidal inductors which means they put out very little EMR and because none of them have fans there is never any noise. I've put more details in another thread.

The 12V system has a monitoring system which I built myself from an arduino (pro micro) and a raspberry PI a few years ago. I plan to rebuild this system for monitoring the 7s lithium battery as well as everything else by using an stm32duino (maple mini clone) attached to 185V differential inputs in place of the pro micro. The design of this is already complete, I just need to get started with making it. Attached to this, for balancing purposes, will be a 7-way transformer based regenerative balancing circuit that I will also build myself, capable of up to 6-amps of balancing current. The whole BMS I expect to cost me less than 30, though writing the program for it may take a few weeks.



This is mainly an introduction to my system. It is a work in progress and I will update this thread as I do more.
 
One hell of an intro! welcome
 
YAY someome who cares about efficiency enough to not use TP4056! I am using LM2596 myself for my upcoming 6+6 bay charger + discharger
awesome build!! we need to see some wiring! haha
 
The LM2596 is a voltage regulator. How would you use that as a replacement for the TP4056? Or are you controlling the CC/CV with an external mcu?
 
Very nice story !

I love the cheap diy way

Korishan
The LM2596 is a voltage regulator. How would you use that as a replacement for the TP4056? Or are you controlling the CC/CV with an external mcu?

No mcu required.

What you need is shunt resistor in the (-) side, a simple voltage reference with a pot and a comparator which output highers (not sure if this verb really exist but I hope you get what i mean) the feedback input of the LM2596 when then current is higher than the set limit.
There is even a way to detect when reaching a low current limit for end of charge.

There are lots of these modules for sale on amazon or aliexpress for les than 2$ with keywords "LM2596 CC CV".
Beware that only the ones with the 3 pots are real CC. Despite what the description say the ones with only one pot are just "normal" buck without the CC. And afair none of them has the auto-shutdown for end of charge, they only light a led but the that shouldn't be very difficult to switch a mos or relay with that signal

There is a video showing the schematic for these modules on youtube. I'll try to find it later (at work now)
 
Jeremy, can you say a bit more about your community? I'de love to know a few more details, how much off-grid (on several aspects) do you manage to get? how many people /houses?
Cheers
 
Here is a quick and durty schematic for the CC/CV with an LM2596

NOT TESTED and might require a few capacitors in the current loop for stabilisation but you should get the idea.


image_sgdqje.jpg


Edit : New picture uploaded. So quick and so durty that the comparator inputs were inverted ! Sorry for that !
 
Excellent work. I am curious to see what you end up with for a BMS. I was going to use Arduino myself, but haven't had much time to make a start.
 
SuperBrainAK said:
YAY someome who cares about efficiency enough to not use TP4056! I am using LM2596 myself for my upcoming 6+6 bay charger + discharger
awesome build!! we need to see some wiring! haha

Wiring is all very ad-hoc at the moment, the system is still transitional from the original 12v lead batteries so the charge reg. is still far away (next job to move it closer for better regulation close to full). I have a side project for a 10-cell analyser that discharges back to the power source (battery assumed) when measuring cells :)


FrnanduMarti?ski said:
Jeremy, can you say a bit more about your community? I'de love to know a few more details, how much off-grid (on several aspects) do you manage to get? how many people /houses?
Cheers

I'm not sure I fully understand you question - there is no grid-power connection to the area so all of our electrical power is generated on-site. We are connected to internet by 3G, so I buy stuff from outside. We try to grow our own food as mmuch as possible, but this is still not much. There is a process of buying more land in progress, new families arriving, and new home projects in progress as well, but at this moment there are 13 dwellings (most are not full dwellings, many are just a bedroom) and our group house, which no-one lives in but everyone can use. Some of these have their own power systems, some have power and data supplied from the group house. Our population and social structure are in flux right now, but I last counted 24 people living here most of the time (including 7 children). Does this help?


DK100 said:
Nice writeup on your system and methods.

Ha! I am in Denmark this week! nice and sunny, unlike our mountain in italy...
 
TurtleHermit said:
Here is the video about LM2596 CC-CV :


The full screen schematic (reverse engineering) is at the very end of the video.

To Jeremy : Apologies for hijacking your thread :blush:

you've hardly hijacked my thread ... the mod you suggest for end-of-charge shutdown would be just a resistor from the led drive (from the op-amp output?) to the nfb pin of the 2596, but I wonder why it is needed? instead of continuing maintaining 4.20V you allow the cell to float and internally equalise. is there some benefit to this?


Geek said:
Excellent work. I am curious to see what you end up with for a BMS. I was going to use Arduino myself, but haven't had much time to make a start.

The design is quite simple, the stm32 has a 12-bit dual 1Mhz ADC which I will feed with as many 5V-reduced-to-3.3V differential inputs as needed. It can sample these and send the results via serial (one-way) to the raspberryPI for logging and presentation as a rapidly updating webpage for viewing realtime data over our local network. I plan to have ~7 lines of control (2 PWM and 5 basic digital) for controlling when some things turn off at low levels and on again as it recharges (such as the fridge inverter, the 35V and 50V boosters etc). one of the PWM's would be for a heater loop, to stop charging from occurring at low temperatures by heating the cells with that energy till they can be charged. The balancing is being done by a 7-primary transformer operating single-ended at about 80% duty so that will want to be turned on and off according to balance state and load. This type of balancing circuit operates as if the 7 series cells were instead connected in parallel, so it becomes more difficult to monitor the amount of correction that is happening and detect faults in the cell packs - but with accurate cell voltage measurement the current that is flowing through from each cell can be calculated from the total resistance through each coil of the transformer (including mosfet and connecting wire). The second PWM operates the balancing to keep it's total dissipation low enough if the battery is under heavy load. I plan that all settings can only be made via USB so a direct presence is needed to make operational changes, making it unhackable. I haven't yet decided whether to make the serial connection to the rPI long and current-mode, or keep it short with the rPi in the same box and move the network connections (probably the latter). For the current sensing I'm planning on using ACS712 based hall-effect transducers in various places in the system so I can see what's going on. Where currents greater than the 20-amp range of the sensor are expected (everywhere) series-parallel arrangements of 1m? resistors can extend the range up to hundreds of amps. They have a 5V output range.

I posted a note about the multiplexed differential inputs on an stm32duino forum here.

http://www.stm32duino.com/viewtopic.php?f=19&t=2699&p=35744#p35744
 
Geek said:
Excellent work. I am curious to see what you end up with for a BMS. I was going to use Arduino myself, but haven't had much time to make a start.

So I know I've been very quiet for a long time - but I have been slowly working on battery things alongside the rest of what I must do...

in May I took the plunge and learned KiCad to get circuit boards made for my BMS and other electronic ideas. The BMS and some ridiculously high-power boost regulator boards (>2000W) were the result, but still after 4 months I've not built it, mostly because of the house I work in undergoing major rebuilding but also partly due to not having a firm idea of how the BMS will achieve balancing (it's primary purpose). It's not been a problem, my batteries are staying balanced without any work, the only thing that has been an issue is occasionally fuse-wires get broken (mechanically, not electrically) and then one layer will start cycling wider. The biggest issue is the location of the battery, there are rats living in the wall behind who come out from between the stones and have shat in between the cells. I'm fairly sure they're responsible for the broken fuses too...

I've been meaning to write an update on the BMS/balancing for a long time, but I wanted some positive progress or at least to have worked out why there is the issue with the design I described before (7-winding transformer) and come up with a next step...


image_mmqcxu.jpg

image_afsmnv.jpg


The 7-winding transformer basically works, but with a cumulative offset of about 12mV per cell meaning the top cell of the 7 ends up "balancing" to 0.1V higher than the bottom one. The reason for this seems to be the one-sided use of the transformer (the circuit pulls it magnetically in only one direction, letting it reset back to zero between cycles). While switching to a push-pull circuit might work (doubling the cost and complexity in the process), while thinking about it I decided maybe a slightly different approach might be better, and came up with what I call "Boost Balancing".

There are two potential ways to make this work, a "cheap-and-dirty" self-balancing way, and a BMS-integrated cell-by-cell-controlled way. Both are based on using an isolated boost regulator to transfer energy from the whole battery to a single cell. The cheap way has 8 windings on the inductor core - one primary driven by the boost driver and 7 secondaries each connected to a single cell via a schottkey diode. Energy is taken out of the whole battery into the inductor. If a cell is lower than the rest then the flyback dumps that energy into that cell. The lowest cell gets the most energy, and as they equalise then the energy gets distributed to all of them. There may be issues though with component tolerances (differences in voltage drop over the diodes making different cell voltages) and thermal overshoot (the diode that is getting the most current gets hot and a hot diode has a lower voltage drop which makes the voltage of that cell seems lower to the circuit). The more expensive way is basically the same idea but there are separate inductors and boost drivers for each cell, activated when the BMS microcontroller deems it necessary.

In both cases there is no direct way to bring down a high cell, which is why I call it Boost Balancing. Boosting all the other cells would bring down the high cell, since energy is being taken from the whole battery and not given back to the high cell.

I will let you all know what happens, but I'll need to draw up some new circuit boards and delivery could take a while...
 
The 2596 schematic is missing the shut down pin. This schematic is close to what I use for a pseudo MPPT charge controller that compares the panel voltage and ramps down current when panel voltage drops below a fixed voltage. The reference and op amp can be eliminated by using a TL431 to monitor voltage. What I really wanted to talk about is how fast that shut down pin is and I use it to control the chip instead of faking the the feedback pin. That pin is easy to lift up on these boards.
 
Turtle Hermit said:
Korishan
The LM2596 is a voltage regulator. How would you use that as a replacement for the TP4056? Or are you controlling the CC/CV with an external mcu?

No mcu required.

What you need is shunt resistor in the (-) side, a simple voltage reference with a pot and a comparator which output highers (not sure if this verb really exist but I hope you get what i mean) the feedback input of the LM2596 when then current is higher than the set limit.
There is even a way to detect when reaching a low current limit for end of charge.

I think the word you were looking for is raises. :)
And thank you for the info on the LM2596.
 
Back
Top