DMX-Controlled Relay Design


flux

Great—next is adding copper cutouts/keep‑outs (for isolation and the metal enclosure), then doing initial placement.
What the Flux docs say about copper cutouts
“This tutorial will explain how to accomplish this in Flux.
There are two options for creating copper cutouts:
  • Keep Out Rule: can be applied to any object. Will keep copper fills (and any other object) away from the element that the rule is applied to.
  • Zones: is an object on its own. Can be placed on the design and configured to create a cutout on any layer.”
    Source
Do this now
  • Isolation barrier cutout
    • Create a rectangular Zone (or apply a Keep Out rule) that runs between the mains section and the logic/DMX section on both layers. Keep all pours and traces out of this band, especially under U2.
  • Mounting hole and edge keep‑outs
    • Add a copper cutout around each mounting hole (Hole1, Hole2, Hole3, Hole4) so fills don’t reach the metal standoffs.
    • Add a narrow copper‑free band along the board edges in the mains area to avoid planes touching the metal enclosure.
Placement checklist (inputs on one side, outputs on the other)
  • Inputs side: place IECIn and DMXIn together.
  • Outputs side: place IECOut and DMXOut together.
  • Relay path: place K1 between IEC input Line and IEC output Line so the high‑current path is short and straight. Neutral can route directly input→output.
  • Isolated DMX: place U2 straddling the isolation band, with its DMX side facing the XLRs and logic side facing U1. Keep no copper under its isolation gap (use the cutout above).
  • Aux AC‑DC: keep U7 in the mains section, away from logic; route mains to it short and direct.
  • Coil driver and snubber: keep U4 close to the relay coil pins on [K1], and place the RC snubber across the relay contacts.
  • Termination and ESD: put SW1 and TVS1 right next to the XLR pins; keep the A/B pair tight and symmetrical.
  • Indicators: place LED1 (Relay ON) near the output side; LED2 (DMX present) near the DMX input.
Confirm after you:
  1. Add the isolation and hole/edge cutouts, and
  2. Rough‑place the parts per the checklist.
Then I’ll guide trace width targets for the mains path, final routing order, and a quick DMX termination/bias check before routing.
Ask about isolation zone sizing
Clarify cutout implementation
Request DMX termination guidance
Ask about mains trace widths
Ask about enclosure grounding

Flux stopped


Schematic of DMX Relay
SW1
U2 ~RE - R2 P1
U2 ~RE - R2 P1
U1 VDDIN - C5 P1
GND
U1 PA08 - ENC1 A
U2 Z - DMXIn 2
U1 PA08 - ENC1 A
U2 ~RE - R2 P1
U1 VDDIN - C5 P1
Y1 P2 - C15 P1
U6 IN - C11 P1
C15 P2 - GND GND
U1 ~RESETN - R1 P1
U1 VDDIN - C5 P1
IECIn L - L1 P1
U2 Y - DMXIn 3
U1 PA07 - ENC1 S1
U1 ~RESETN - R1 P1
U1 PA07 - ENC1 S1
U1 PA09 - ENC1 B
U2 Y - DMXIn 3
U2 Z - DMXIn 2
R1 P2 - R4 P2
U2 DE - R3 P1
U2 DE - R3 P1
U1 VDDIN - C5 P1
U2 Y - DMXIn 3
U6 IN - C11 P1
U1 VDDIN - C5 P1
U6 IN - C11 P1
Y1 P1 - C14 P1
U2 Z - DMXIn 2
U1 PA30 - LED1 A
IECIn N - L2 P1
U1 PA22 - U5 DIO
U1 VDDIN - C5 P1
U1 PA23 - U5 CLK
U1 VDDANA - C1 P1
U1 PA31 - LED2 A
U3 VIN+ - C7 P1
R1 P2 - R4 P2
U2 Z - DMXIn 2
U7 +Vo - C13 P1
C15 P2 - GND GND
U2 DE - R3 P1
U2 Y - DMXIn 3
U1 VDDIN - C5 P1
U1 PA09 - ENC1 B
U2 Y - DMXIn 3
IECIn L - L1 P1
IECIn N - L2 P1
U1 VDDANA - C1 P1
R2
Resistance
10kΩ
L1
Inductance
10 uH
R1
Resistance
10kΩ
R4
Resistance
10kΩ
R5
Resistance
680 Ω
R3
Resistance
10kΩ
L2
Inductance
4.7 uH
ENC1
Hole2
K1
C2
Capacitance
100 nF
Hole1
Hole3
C3
Capacitance
100 nF
C4
Capacitance
100 nF
Hole4
C1
Capacitance
100 nF
U2
U4
Y1
U7
End of Life
DMXIn
U1
IECOut
U3
TVS1
IECIn
DMXOut

DMX Relay