Tuesday, 24 November 2026

TIG button cover design in physCAD using Claude Code.

Let's see how Claude gets on with the challenge of designing a part that actually has curved surfaces.

Start with a prompt like this:

"I want to create a component that is based on an existing part.

  • Initially I'd like you to recreate that part in physcad, based on photographs that I will take for you.

  • I will then print it on a 3D printer to check the fit.

  • Then as a second step, I'd like to modify it to incorporate a PCBA that was created in Kicad by Claude Code and Adom Hydrogen (using an MCP for Kicad).

  • The part fits into a welding torch used for TIG welding and allows control of the arc using a pressure sensitive button on its surface, operated by the user.

  • The part should be 3D printable in PETG.

  • I can take photographs for you if you can give me guidance on how to do this, perhaps using a calibrated background and some key measurements. The part is approx 50x30x20mm and contains several organic external surfaces.

  • Attached are 3 view of the top and bottom of the component - and the assembled torch handle.

  • There is currently a push button (to enable the arc) and a rotary potentiometer (to vary the arc current) - these will be replaced with a simple finger operated button, where pressure from the finger will be processed to provide both signals.

  • The torch is also shown being held. The pressure sensitive resistor (PSR) is seen hanging out of the front - this will need to be folded back underneath the finger button. The PCBA will also be protected by the component we are designing."

That kicked off a process that led to the following initial part, once the legacy features (button and wheel) had been removed:


Getting there:



Clearly we'd need some clearance to prevent fouling of the pots and opamp, as seen here.



Once I'd shared the Kicad PCBA project (which included the 3D model), it was able to raise the front of the part.



Printed this one out. Are we getting closer to a nice fit?


Better but still no perfect cigar:



The PCBA is pretty much flush with the cover


Doesn't look ridiculous, although we still don't have an actual button. That comes next.


I have some black TPU filament. I've not used it before, so I've no idea how well it prints but I need a compliant (squashy) button, so let's see how that works out.

Here's what Claude proposes:

The button probably needs to be a bit more prominent, as it would be normal to operate the torch wearing gloves. You need to be able to feel it and also have something to press down on.

Beefed up the shelf under the PSR, made the button more prominent, with a domed head. The proposed spring concept isn't very clever though:


Can't imagine how I would be able to remove the cover once fitted. And the socket where the U-spring fits into the cover is very fragile. Try again, Claude!


The spring is inverted so that you could release it with a small flat bladed screwdriver but it's still very fragile looking and Claude is proposing the use of 2mm screws to hold it in place. That isn't going to work for more than a few seconds, besides which I don't have any fasteners that small. 

Seems to me we could simply fit a "modified omega"(?) shaped spring thaat would latch into the existing slot in the handle and a slot in the end face of the cover. I sent this to Claude:


That's better:


While "developing" this thing, I'll either just let it hang in there or possibly use a reusable cable tie to hold it in place. Then finally, when I've finished buggering about with it (ie lost focus and dived off down some other rabbit hole), I'll fit the spring and call it a good one.

Next - a few finishing touches to the model, try to print the TPU button and await the Rev 2 PCBAs...

The external appearance is rather clunky - it looks as if it's been designed by an engineer (oof!), so it needs smoothing off. Can Claude do that? And that slot for the spring is too wide - it leaves very little meat to support the load at the rear of the spring





Let's print one of these off. It only takes 20 mins, so it's easy enough to check out each change as it happens.

And look - Claude has even made me a template / build instruction for the spring:


Here's the original switch / pot assembly:


And the (direct form fit and function) replacement:


The whole thing is pretty small, so the printing layers are very evident. 


That's all for now. This time next week I should have the updated PCBAs and we can wrap this one up finally.

Sunday, 22 November 2026

TIG button sorted! RevB samples ordered

Let's modify the board to account for the very limited supply current available, now that I've actually bothered to check it - and found it to be very minimal (<2mA).

The mods are pretty simple:

  • Remove the (pointless) green LED that lights when the arc enable threshold is reached.
  • Remove the SSR and bridge the arc enable line to the top of the driver MOSFET.
  • Increase the reference voltage potchain to reduce quiescent current.

...then try the fucker.

First I need to locate some 12k and 22k resistors. I only have 1206, some mini-MELFs and a few 0805 resistors. Some time ago The Stupid Fat Bloke had the brilliant idea of removing all these resistors from the component drawers they had been happily living in for the past 25-30 years or so. This freed up the compt drawers, which of course have simply sat empty and unused ever since. Now, in order to find the values I need, I have to ream through this pile of assorted values. There must be 100+ different values, ranging from a few ohms to a megohm.


FFS, what a dumb idiot. The 12k came fairly quickly but I only found the 22k right at the very end of course. Must have taken me a good 20 minutes,


Now to remove the SSR, LED and two 0603s.


The 1206 resistors dwarf the 0603s and even the 0805s.


Finally I got them in place. In fact, the easiest positions for the replacement resistors was on top of the reference voltage decoupling cap and alongside the input filter cap. I've done worse. The +5V / GND pin swap is a travesty but here we are.


And?

And..... yes, it works! It's a bit of a handful to operate without any proper housing or button but with care it can be made to work.

You have to select remote control by pressing the button for 5 seconds after powering the machine on. And then pressing the PSR enables the arc, while varying pressure modulates the current accordingly.


Well that's another relief. So in the last 2 days I've:

  • Got the TIG welder to work in remote mode.
  • Got the TIG button to work.
Now, update the design to tidy up and incorporate these bodges, then place an order for another 5 sets. Then, while they are production / transit, I can finish buggering about with the housing I started a week or more ago. At least now I can see a reason for doing so, given that the welder and the button actually work.

Revised design:

I flashed up Adom and Kicad again, explained the required changes and let Claude implement the updates. 

Here's the updated schematic:


And the new layout:


Here's the summary specification generated by Adom. It's a half passible spec document, considering:

TIG PSR Remote, Rev 2: Specification

Finger-pressure TIG torch remote  ·  22 November 2026  ·  JLCPCB order W2026112300300990

Status: Figures are from the design calculations and simulation. The supply current, 5 V rail and FET enable have been bench-tested as a rework on the rev D board; the MCP6044 op-amp, REF3325 reference and new resistor values are untested until the rev 2 boards arrive.

Rev 2 board, top side (KiCad render)

1. Purpose and board

·         Function: finger-pressure throttle for a TIG torch. A pressure-sensitive resistor (PSR) sets the welding current, and a light press switches the welder on.

·         Board: 20.5 × 42 mm, 2-layer, 1.6 mm FR4, lead-free HASL; all parts on the top side.

·         Edge fingers: five, 2.0 mm pitch, on both sides of the board.

Finger

Signal

1

0 V

2

EN (enable loop, positive)

3

OUT (current demand)

4

+5 V

5

0 V

 

Fingers 4 and 5 are corrected from rev D, which had +5 V and GND swapped.

2. Supply

·         Welder's supply: 5 V behind about 2 kΩ; about 2.5 mA into a short circuit.

·         Supply current: about 0.09 mA idle, 0.18 mA at full press (rev D: about 1.7 mA idle, 14 mA enabled).

·         On-board rail: at least 4.38 V with the welder's supply at its 4.75 V low end, so the output keeps its headroom.

·         Protection: SMF5.0A TVS diode and ferrite bead on the 5 V input; ESD diodes at the sensor.

3. Output (finger 3)

Parameter

Value

Full scale

4.15 V (matches the torch's original 10k pot at full travel)

Reference

Absolute, 2.5 V REF3325: output does not sag with the board's own load

Full-scale change, 4.75–5.25 V supply

0.0 % (simulated)

Sag from the board's own load

0.001 % of full scale

Output at zero force

about 10 mV

Starting force

about 70 g (no output below this)

Linearity, 10–100 % of full scale

within 3.9 % of full scale

Filter / step response

15 Hz; settles in about 50 ms, no overshoot

Overpress

output limits at about 4.25 V (top of the rail)

Op-amp offset (±3 mV worst case)

±2.5 % of full scale, trimmed out with SENS

 

4. Adjustments (Bourns 3314G trimmers)

Trimmer

Sets

Range

Setting

Clockwise

SENS (RV1)

Force for full output

about 150–190 g to about 970 g

Mid-travel ≈ 300 g (2.9 N), 1.66 V/N

More sensitive

THRESH (RV2)

Enable point

about 3 % to 38 % of full scale

About 10 %; hysteresis 2.4–2.8 %

Higher threshold

 

5. Enable (fingers 2 and 1)

·         Switch: AO3400A MOSFET (Q1) shorts the welder's enable loop (about 1 V, 4 mA); voltage drop under 0.2 mV.

·         Changes from rev D: solid-state relay (U2) and green LED (D5) removed, which removed most of the supply current; Q1 gate pull-down now 1 MΩ.

·         Protection: SMF12CA bidirectional TVS diode plus RC filtering on the enable line.

6. Main parts

Ref

Part

Role

U1

MCP6044-I/SL

Quad op-amp, 1 µA per amplifier, rail-to-rail

U3

REF3325AIDBZR

2.5 V reference, 0.15 %

Q1

AO3400A

Enable switch

RV1, RV2

Bourns 3314G 50k

SENS and THRESH trimmers

PSR

User's FSR sensor

Soldered to the two pads at the narrow end



And the order is placed with JLCPCB again. 


That's about £65 for 5 PCBAs delivered ie £13 each. Unless I've managed to fuck something up again, this second lot should just plug in and work. Time will tell.....

So I will try to fit in the completion of the cover / button assembly for the torch handle in the meantime. I wonder if Claude can help me to design it?

TIG button cover design in physCAD using Claude Code.

Let's see how Claude gets on with the challenge of designing a part that actually has curved surfaces. Start with a prompt like this: ...