Skip to the content
2 layersEsp32 spot welder, the printed circuit board in 3D

Spot welder made from microwave oven transformer, controller based on ESP32 and solid state relay using ESP-IDF framework.

Copper layers
2
Thickness
1.6 mm
Parts
6
Nets
37
Pads
53
Tracks, vias
61, 0
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
28 Mar 2020
Updated
2 Feb 2026

Overview

Esp32 spot welder is an open-source printed circuit board by spasoye, from the spasoye/esp32_spot_welder repository on GitHub. It is a 2-layer board with 6 parts on 37 nets, routed with 61 tracks and 0 vias.

Its parts include 5 connectors and 1 IC. It belongs with the radio and wireless boards and the ESP32 boards of this library.

README

README.md

ESP32 DIY Spot Welder Controller

Project Status: Inactive

DIY Spot Welder

A precision pulse controller for building a spot welder from a microwave oven transformer (MOT). Features configurable timing, safety controls, and an intuitive rotary encoder interface.

⚡ What It Does

Converts a dangerous MOT into a safe, controllable spot welder for battery tab welding, metalworking projects, and electronics repair. The ESP32 generates precise current pulses while the solid-state relay handles the high-power switching safely.

🎯 Key Features

  • Configurable pulse timing - Adjust ON/OFF duration and pulse count via rotary encoder
  • Safety-critical design - Software-controlled SSR prevents accidental activation
  • Real-time feedback - 16x2 LCD shows current settings and pulse count
  • Precise control - Microsecond-level timing for consistent welds
  • Easy interface - Rotary encoder for parameter adjustment without recompilation

🔧 Hardware Requirements

  • ESP32 development board
  • 16x2 I2C LCD display (HD44780-compatible)
  • Rotary encoder
  • Solid state relay (SSR) rated for mains voltage
  • Microwave oven transformer (MOT)
  • Foot pedal or momentary switch (trigger)
  • Power supply (3.3V/5V for ESP32, mains for MOT)

⚠️ Safety Warning: MOTs output extremely high current (1000+ amps). Improper construction can be lethal. Only attempt if you understand high-voltage/high-current safety practices.

📐 Circuit Diagram

Schematics available in /kicad directory. Key connections:

  • ESP32 GPIO → SSR control input
  • SSR output → MOT primary winding
  • Rotary encoder → ESP32 GPIO (with debouncing)
  • LCD → ESP32 I2C bus
  • Trigger switch → ESP32 GPIO (with pull-up)

🚀 Building & Flashing

Prerequisites

  • ESP-IDF v4.x or later
  • Git

Clone with submodules

bash
git clone --recursive https://github.com/spasoye/esp32_spot_welder.git
cd esp32_spot_welder/firmware

Build and flash (choose one method)

Using idf.py (recommended):

bash
idf.py build
idf.py -p /dev/ttyUSB0 flash monitor

Using legacy make:

bash
make all -j8
make flash

🎮 Operation

  1. Power on - LCD displays current pulse settings
  2. Adjust parameters using rotary encoder:
    • Pulse ON time (milliseconds)
    • Pulse OFF time (milliseconds)
    • Number of pulses (1-10)
  3. Press trigger (foot pedal/switch) - LED indicates welding in progress
  4. Release trigger - System returns to idle state

📊 Technical Highlights

  • ESP-IDF framework - Professional-grade embedded development
  • Hardware timer control - Precise pulse generation independent of task scheduling
  • Interrupt-driven encoder - Responsive UI without polling overhead
  • I2C LCD library - Clean abstraction using esp32-i2c-lcd1602
  • State machine design - Safe mode transitions prevent accidental activation

📝 Configuration

Edit main/config.h to customize:

  • GPIO pin assignments
  • Default pulse parameters
  • LCD I2C address
  • Encoder sensitivity

🔗 Dependencies

See CHANGELOG.md for version history.

⚠️ Disclaimer

This project involves high voltage and high current electricity. The author assumes no responsibility for injury, death, or property damage resulting from construction or use of this device. Build at your own risk.

📄 License

MIT License - See LICENSE file for details


Built by Ivan Spasić | Portfolio | GitHub

Parts

6
QtyValueFootprintReferences
1ESP32-DEVKITC-32DESP32-DEVKITC-32D:MODULE_ESP32-DEVKITC-32DU2
1LCD_PINSConnector_PinHeader_2.00mm:PinHeader_1x04_P2.00mm_VerticalJ2
1POWERTerminalBlock_Philmore:TerminalBlock_Philmore_TB132_1x02_P5.00mm_HorizontalJ6
1ROT_ENCDConnector_PinHeader_2.00mm:PinHeader_1x05_P2.00mm_VerticalJ3
1SSR_CONTerminalBlock_Philmore:TerminalBlock_Philmore_TB132_1x02_P5.00mm_HorizontalJ5
1SWITCHTerminalBlock_Philmore:TerminalBlock_Philmore_TB132_1x02_P5.00mm_HorizontalJ4

Similar boards

  • 2 layers18.5 × 11.1 mmSwitch, the printed circuit board in 3D

    Switch

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    6 parts4.3kMIT
  • 2 layers14.6 × 33 mmBrain board SD Card 1, the printed circuit board in 3D

    Brain board SD Card 1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    6 parts1.2k
  • 2 layers9 × 9 mmDpoint, the printed circuit board in 3D

    Dpoint

    Jcparkyn/dpoint

    Open-source digital stylus using camera tracking and inertial measurements

    6 parts1.1kMIT
  • 2 layers51.5 × 16.6 mmMicroswitchXY Endstop, the printed circuit board in 3D

    MicroswitchXY Endstop

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    6 parts1.1kGPL-3.0
  • 2 layers21.9 × 76.7 mmAmiga External, the printed circuit board in 3D

    Amiga External

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    6 parts1kGPL-3.0
  • 2 layers88.9 × 50.8 mmBusinesscard, the printed circuit board in 3D

    Businesscard

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    6 parts915
  • 2 layers20.3 × 15.2 mmL0 RGB led, the printed circuit board in 3D

    L0 RGB led

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    6 parts546MIT
  • 2 layers9 × 3.6 mmOpticalEncoder, the printed circuit board in 3D

    OpticalEncoder

    adamb314/ServoProject

    Getting the most out of your hobby servo

    6 parts545

Questions

What parts does the Esp32 spot welder use?

6 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Esp32 spot welder KiCad files?

From the spasoye/esp32_spot_welder repository on GitHub, at the commit this page was made from: the board is kicad/esp32_spot_welder.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp32 spot welder design in my own project?

Its repository states no licence, so its author keeps all rights: ask spasoye before reusing the design.