dragonlock2.github.io/_posts/2020/2020-01-16-bswelder-v1.md
2024-02-04 03:45:42 -08:00

81 lines
7.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: BSWelder v1
date: 2020-01-16
categories: projects
excerpt: It's about time I stop soldering wires directly to lithium batteries so I salvaged a microwave transformer to make a cheap battery spot welder.
header:
teaser: /assets/img/2020/bswelder_11.jpg
gallery:
- image_path: /assets/img/2020/bswelder_2.jpg
- image_path: /assets/img/2020/bswelder_3.jpg
gallery2:
- image_path: /assets/img/2020/bswelder_4.jpg
- image_path: /assets/img/2020/bswelder_5.jpg
gallery3:
- image_path: /assets/img/2020/bswelder_6.jpg
- image_path: /assets/img/2020/bswelder_7.jpg
- image_path: /assets/img/2020/bswelder_8.jpg
- image_path: /assets/img/2020/bswelder_9.jpg
- image_path: /assets/img/2020/bswelder_10.jpg
gallery4:
- image_path: /assets/img/2020/bswelder_11.jpg
- image_path: /assets/img/2020/bswelder_12.jpg
- image_path: /assets/img/2020/bswelder_13.jpg
- image_path: /assets/img/2020/bswelder_14.jpg
- image_path: /assets/img/2020/bswelder_15.jpg
- image_path: /assets/img/2020/bswelder_17.jpg
- image_path: /assets/img/2020/bswelder_16.jpg
---
When it comes to working with lithium batteries such as the 18650s I used in my lightsabers, its never really a good idea to solder wires directly to them. Prolonged exposure to high heat is a no go for their chemistry. The proper way is to spot weld nickel strips to them and then solder wires where necessary. Nickel is really easy to get solder to stick to compared to 18650 battery terminals. However a decent battery spot welder can easily be upwards of $150, which is a bit much for something Id seldom use. Considering the plethora of people online making their own battery spot welders, I decided to take the DIY route.
Generally speaking, a battery spot welder works by using a very high current 100s of amps to quickly heat and weld two pieces of metal together. The brevity and localization of the heat is what makes it perfectly safe for batteries. Producing and controlling this current pulse is the difficult part. A common way is to use high power batteries and a giant relay. Typically a car battery is used but those cost about a $100 which meant I wasnt taking that route. Another popular way is to modify a microwave transformer. After finally finding a broken microwave off the street, I was in business.
## Salvaging a Microwave Transformer
Note that taking apart a microwave is incredibly dangerous due to the high voltages it uses. Even unplugged, the high voltage capacitor inside can still pack a lethal punch so be careful if you do this. Make sure to discharge it before handling it. Also careful with the magnetron because the beryllium oxide in it is carcinogenic if airborne.
{% include figure image_path="/assets/img/2020/bswelder_1.jpg" %}
## Modifying the Transformer
After removing the transformer, I needed to remove the secondary coil so I could rewind my own. Theres two main approaches to this. The first and probably what I shouldve done is to take an angle grinder to the secondary to get the ends off and a screwdriver and mallet to get the rest out. The second is to take an angle grinder to the weld that connects the top block and remove the secondary that way. What I found strange is that the weld actually shorts all the laminations together, but turns out theres a reason for [that](https://electronics.stackexchange.com/questions/262187/why-there-is-welding-on-some-iron-transformers-core).
{% include gallery %}
Make sure to also remove the magnetic shunts and small middle coil. Just keep the primary. To make the new secondary, I used some 4 gauge welding cable, barely squeezing in just over a turn. Then I used a lot of Kapton tape to somewhat reconnect the top half. I get about 1.5V AC out.
## Controls
Next up is actually generating the pulses of current, which meant finding a way to quickly turn on and off a highly inductive load. If I learned anything from making my PCB laminator, its that TRIACs without a good snubber can have trouble turning off inductive loads. To make my life easier and to try something new, I bought an SCR. They can also have issues with inductive loads since internally they basically have a TRIAC with some control circuitry. I was prepared to spec out a snubber circuit, but to my surprise the SCR worked without one. To do viability testing I used some timing numbers from [here](https://www.avdweb.nl/popular/spotwelder/diy-spot-welder) and 3D printed an electrode holder to jerry-rig a little setup.
{% include gallery id="gallery2" %}
To my surprise, it worked really well. Not pretty since both the battery and the nickel strip were salvaged, but usable. The welds were stronger than the metal itself, which is a good sign. With that I proceeded to making rest of the electronics. Im the type of person that likes UI, so I used this as an opportunity to use an EC-11 encoder I got off eBay and experiment a bit with the code. It was also my first attempt at a double-sided PCB.
{% include gallery id="gallery3" %}
## Code
The code was pretty interesting to write. Nothing too complicated as I banged it out in about an hour including all the testing. I really liked the UI I developed for it, which was inspired by whats commonly used in 3D printers. Scrolling through different options is quite satisfying. One thing to note is that EC-11 encoders go through a full cycle with each detent, which corresponds to 4 ticks per detent using the common X4 encoding. It was also the first time I used EEPROM on Arduino. To reduce wear on it, I only save settings when a user selects the save option. Also note that uploading code to a standard Arduino erases its EEPROM, so I changed the fuse to stop that. Anyway, heres the [code](https://gist.github.com/dragonlock2/6870f7ceb84fbee1c6bae093452540c4).
## Case
With the electronics done, I put together a really simple case. Forgetting to bring home my caliper was certainly a problem but I got through it with solid estimations using a ruler. I also designed a proper electrode holder since PLA melts under the heat of the welder. Since I didnt have any good machining tools nor the stock, I bought some metal parts from Home Depot that work pretty well as holders.
{% include figure image_path="/assets/img/2020/bswelder_11.jpg" %}
## Testing
With everything finalized, I tried to make a little battery pack. Taking apart a friends broken battery bank to get some cells, I noted that all the terminals were scratched by a grinder of some sort. This is really clever since a clean metal surface is much easier to weld to, so I made sure to do this when I made my pack. To make a weld, simply place the nickel strip on the battery along with the electrodes. Apply a good amount of pressure and then press the trigger. I even made a foot switch, which I somehow didnt get a picture of before heading back to school, to help out with this.
{% include gallery id="gallery4" %}
To ensure thorough testing, I went a bit overkill with the number of welds for each strip. Ive noticed that one of two things happen with each weld. Most of the time the nickel strip gets red hot but sometimes theres only sparks which in my experience result in cleaner and just as strong welds. Itll take some more practice and tweaking to get this thing working perfectly.
Overall the welder cost about $40 to make, which was an absolute win. And the pack turned out perfect!