Giter Site home page Giter Site logo

maciejkwasek / spotweldercontroller Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 394 KB

Arduino based spot welder controller for 18650 cells

License: MIT License

C++ 75.68% C 24.32%
arduino spotwelder e-bike e-scooters avr atmega328p li-ion-batteries 18650

spotweldercontroller's Introduction

SpotWelderController

What it is

SpotWelderController is a firmware for spot welders used in building li-ion battery packs for e-bikes, e-scooters, uniwheels, hoverboards etc. The firmware works on arduino boards like Uno, Nano or Pro mini. It should also work on other plaftorms like Arduino Mega.

How it works

Main schematic about how SpotWelderController works is shown below.

Main Diagram

SpotWelderController after pushing TRIG key sends two pulses on TRIGGER line. These pulses activate thyristors and high-power tranformer which causes spot welding on electrodes. Between the pulses is a time gap. The second pulse is optional and it is possible to weld with only one pulse. The resolution of the pulses width and the time gap is 1ms.

In order to limit the shock current, transformer activation should be done at maxium voltage of sine. To do that, additional signal SYNC is used for zero crossing detecion. After detecting zero crossing SpotWelderController waits 5ms for maximum volatage of the sine and then sends a pulse on the TRIGGER line.

Parameters of the pulses and the gap are shown on the oled display and can be easily changed with only one SET button. In addition, SpotWelderController measures continuously high-power transformer temperature and shows on the display.

Hardware

High voltage is dangerous. Before operating make sure that you have appropriate skills and equipment.

Project of dedicated hardware is available in repository SpotWelderTrigger_Hw.

You can alse build entire device yourself. Type of thyristors depends on your high-power tranformer. In most cases, high-power transformer will be retrived from old microwave oven. Such transformer has power about 700-800W. You have to remove secondary windings and rewind 3-5 turns with thick cable (e.g. 25mm2). The thicker cable the better result. Sample driving circuit with zero crossing detector can look like below.

Sample driving circuit

Prototype

First prototype is not very pretty but it works :). On the left you can see arduino board, oled display and SET key. There are also a couple of passive elements. The TRIG key is a footswitch connected with the cable to the board. On the right, there is a circuit built according to the schematic above.

Prototype

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.