Last time, we covered storing and charging a 3000 Farad supercapacitor to build a solar-powered, portable spot welder. Since then, I’ve made some improvements to the charging circuit and gotten it running. To recap, the charger uses a DC-DC buck converter to convert a range of DC voltages down to 2.6 V. It can supply a maximum of 5 A though, and the supercapacitor will draw more than that if allowed to.
After some failed attempts, I had solved that by passing the buck converter output through a salvaged power MOSFET. A spare NodeMCU module provided pulse width modulated output that switched the MOSFET on for controlled periods of time to limit the charging current. That was fine, but a constant-voltage charger really isn’t the right way to load up a capacitor. Because the capacitor plates build up a voltage as it charges, the current output from a constant-voltage charger is high initially, but drops to a very low rate in the end.
To make something more like a constant-current charger, and lacking a sense resistor, I connected the output to the ADC pin on the NodeMCU. It measures the voltage across the supercapacitor, and as it increases during charging, the NodeMCU increases the amount of time the MOSFET allows current to pass. In other words it increases the duty cycle as the capacitor charges. Note that the firmware I was using supported integer math only, which is why I didn’t just divide by 1.6 in the code:
pwm.setup(1, 1000, 900) pwm.start(1) function set_charge_rate() val = adc.read(0) duty = 800 - (val/2 + val/9) pwm.setduty(1, duty) end tmr.alarm(1, 3000, 1, function() set_charge_rate() end)
This worked much better, but the charge rate was still slower than it could be above around 2.1 volts. To speed it up a bit, I just increased the duty cycle to a fixed value above that point:
pwm.setup(1, 1000, 900) pwm.start(1) function set_charge_rate() val = adc.read(0) if val < 635 then duty = 800 - (val/2 + val/9) print (val) print (duty) pwm.setduty(1, duty) elseif val > 634 then duty = 180 print (duty) pwm.setduty(1, duty) else end end tmr.alarm(1, 3000, 1, function() set_charge_rate() end)
After that last modification, the charge rate was much better and the components involved would get hot, but not alarmingly so. I set the output of the DC-DC converter to 2.6 V, and was able to charge the capacitor past 2.5 V without issue.
Now that the charger was satisfactory, it was time to add electrodes. I had some large copper ring terminals, which were the right size for some steel bolts I had lying around. Crimping wire into these required quite a bit of hammering, but the connection was extremely solid. For cabling, I used three-phase power cable with all three wires attached together to make one thick cable.
I bolted the ring terminals to the copper plates of the supercapacitor holder and to two short, thinner solid core wires that were the electrodes. While ugly, this gave the electrodes good mobility. It was pretty easy to apply them to metal plates and such. Finally, where there was exposed copper, I used heat shrink tubing as insulation.
So far, everything had gone pretty well, so I charged it up, grabbed a spare lithium cell and some tab wire, and gave it a try. When I applied the electrodes, a small spot on the tab wire got yellow-hot very fast without sparking. I quickly removed them… and the tab wire didn’t adhere at all. No matter how I tried, I couldn’t get it to weld in place, although it did heat up whatever material I touched the electrodes to rather well without any part of the device getting particularly hot itself. It feels like it just barely didn’t work, which was a bit frustrating. It did nicely obliterate the tab wire if left on too long though:
In hindsight, there are a few things I could have done better from the start. Most importantly, I should have used both capacitors to make a 5.4 V, 1500 F capacitor bank. Since I don’t know the internal resistance of the supercapacitor (I had incorrectly guessed around 30 mΩ), I should have erred on the side of pessimism. Looking at this working build that uses supercapacitors to weld copper, they had used four supercapacitors of similar size! So I charged both capacitors, sanded the electrodes clean, and hooked them up in series in a box for a quick test.
What a difference that made! When the electrodes touched the tab wire, they sparked lightly as expected rather than just heating the metal, and it welded into place. Certainly not the best weld, but with some practice I think it could be serviceable. (The actual welds are those spots on the left. The tab was damaged from previous attempts.)
So while this works with a charge of 5.2 V, I suspect it would be better with a third capacitor at 7.8 V. A question remains though: why do some builds seem to work well with only a single supercapacitor? I suspect that these unbranded capacitors didn’t pass quality control, and were sold gray market. A higher than expected internal resistance or lower capacity than claimed are not out of the question and would certainly affect the performance of a spot welder. Lesson learned: for spot welders use genuine parts. I’ve half a mind to open it up, expecting to see a smaller capacitor inside along with a whole bunch of sand. That being said, for $4 these would have been fantastic as part of a trickle charge system for a solar-powered sensor.
Failing that, these questionable parts would make excellent ballast or a terrible casserole. Your project suggestions are welcome!
In any case, it was time to put it in a better box, make it portable, and attach a solar panel. That turned out to be refreshingly straightforward. I went and bought a larger weatherproof plastic box to enclose the supercapacitors. They’re arranged just as if they were large AA batteries.
I bought some slotted angled steel. This is pretty much my favorite construction material, it’s more or less scaled up Meccano. An interesting fact is that the existence of Meccano is what prevented a general patent for slotted angled steel, which allowed it to be emulated worldwide. I’ve seen buildings made from it.
I built a steel frame to fit a solar panel on top and contain all the parts. This is so it can be strapped to a motorbike or worn as a backpack using bungee cord — inspired by [Joe Kim]’s art for the first article. The solar panel is a 10 W, 18 V monocrystalline unit that I kept around to charge devices during long power outages that used to occur weekly (the power grid is much better now).
In sunlight, the charge time is limited more by the charge controller (in software) than the solar panel output. At the specified limit of 5 A, it just runs too hot. As a compromise, each capacitor has its own charge circuit, which can easily take 15 minutes to get from 1 V to a practical voltage.
Overall it works… but calling it amazingly practical would be quite a stretch. A more modest build using three or four smaller, branded supercapacitors would have likely worked better, charged faster, as well as being lighter, smaller, and cheaper… perhaps to the point of borderline commercial viability for people who need to weld battery tabs when the power is out. Or I could just give up portability and solar power altogether and use a microwave transformer to build the spot welder.