Picking up the dicsussion regarding proper earthing of the AxxSoldere here again:
Ah, well, the problem is not mains earth but the fact that when PE + GND are connected, you get a current from the heaters positive through the TC to the grounded tip
Precisely. When using a dc supply, the best setup seems to be
-connect the tip to earth
-the thermocouple will then be referenced to earth, so connect the control board supply negative also to earth
-use a floating and isolated smps for the heater and turn on and off its mosfet with an optocoupler
One can use an off-the-shelf isolated dc-dc converter to get the 24V down to 5V, for example something like PQQ6W-Q24-S5-S (https://www.mouser.com/ProductDetail/CUI-Inc/PQQ6W-Q24-S5-S?qs=zW32dvEIR3sbKuWv4BvdLw%3D%3D) to run the controller board.
After some research I too believe that using an isolated DC/DC converter for the MCU side seems to be the best option. However, all the measurement and detection needs galvanic isolation as well, so you don't introduce that ground connection again:
- both temperature sensing and current sensing need to be done with an isolated op-amp
- some I2C isolated temperature sensing IC?
- e.g. TI AMC1301 (or the cheaper AMC1101?) or Renesas RV1S9353A for current, but both are expensive. Maybe use a current sensing IC like ACS730?
- stand sense through optocoupler
- heater control through optocoupler
- handle sense (id pin) through
1) optocoupler if only checking for T245 vs. T210 or
2) through a) isolated op-amp or b) linear optocoupler as a future option to support other handle types (probably not the plan anyways, is it?)
So, the AxxSolder could then have a 3 pin supply connector VCC,GND,EARTH and it's up to the user what supply to use:
- Toroidal transformer, rectified: connect VCC, GND + optional EARTH
- Isolated SMPS (SELV / non-earthed) + optional EARTH
- Isolated SMPS (PELV / earthed secondary) + optional EARTH (or just bridge GND/EARTH if you're 100% sure you have a PELV, not SELV supply)
Another thing to note: without coupling primary and secondary side of the DC/DC converter, it will float (at the potential of the primary side, right?). I'm unsure if this creates any new problems.