PCB-Design – Is It OK to Place 220V AC Traces on Arduino PCB

pcb-design

I want to control an AC 220V relay with my Arduino Nano, and I want to place everything on one PCB. I worry about 220V tracks, their width is 2mm – is it enough for 220V? Can this create electrical interference to signal (5V) tracks placed nearby?


UPD:

  • AC 220 OUT will be connected to several LED lamps, nothing special
  • Yes, I will add flyback diode to this project, but it's still working without it

My PCB in KiCAD

Best Answer

The important thing is not so much track width (which must be rated for current, not voltage) but track spacing. See Clearance and Creepage.

For example, if you rotate the relay 180 degrees, you can keep the coil driving pins closer to the Arduino and not have to route them so close to the mains. You might also consider putting low voltage and high voltage on the opposite sides of the PCB.

(do you have enough power from the Arduino for that relay coil? Do you need a flyback diode?)