Relay Board Schematic Design

Here’s the schematic plan I’d use for the separate 10-channel 220 VAC relay board.
High-level architecture

Text


Control board harness
10x coil drive signals
        │
        ▼
Relay coil interface / flyback protection
        │
        ▼
10x 24 VDC relay coils

AC mains input
L / N / PE
        │
        ▼
Main protection ~50 A
        │
        ▼
AC live bus
        │
        ├── CH1 fuse 15 A ─ relay contact ─ output terminal CH1
        ├── CH2 fuse 15 A ─ relay contact ─ output terminal CH2
        ├── ...
        └── CH10 fuse 15 A ─ relay contact ─ output terminal CH10

Neutral and protective earth distributed to all output terminals
Schematic blocks to create 1. AC mains input
Use a high-current terminal block for:
  • AC_L_IN
  • AC_N_IN
  • PE_IN
For 220 VAC and high current, I would keep this as a physically separated high-voltage section with clear labeling and wide spacing.
2. Main input protection
Add one main protection device before the per-channel distribution.
Recommended options:
  • Panel-mount / chassis-mount breaker or fuse, not PCB-only, for ~50 A mains input.
  • If represented on the PCB schematic, use a connector or symbol for an external 50 A breaker/fuse.
  • Do not rely on a small PCB fuse holder for 50 A mains protection.
Suggested net flow:

Text


AC_L_IN → MAIN_FUSE_OR_BREAKER → AC_L_PROTECTED
AC_N_IN → AC_N_BUS
PE_IN   → PE_BUS
3. Ten relay output channels
Each channel should have:
  • HANKUK HR85AKS-DC24 relay
  • Replaceable 15 A fuse on the live output path
  • AC output terminal, preferably 3-pin:
    • switched live
    • neutral
    • protective earth
Recommended per-channel topology:

Text


AC_L_PROTECTED → CHx_FUSE_15A → relay COM
relay NO → CHx_L_OUT
AC_N_BUS → CHx_N_OUT
PE_BUS   → CHx_PE_OUT
I’d use the relay in normally-open mode unless you explicitly need fail-on behavior.
4. 24 V relay coil power input
Add a low-voltage power connector:

Text


+24V_COIL_IN
0V_COIL_IN
Then distribute:

Text


+24V_COIL → one side of all relay coils
coil low side → harness drive signal / transistor driver return path
Important question: are the 10 incoming control signals already low-side coil drivers, or are they just ESP32/logic-level signals?
  • If they are already ULN2803/open-drain low-side outputs from the control board, this relay board only needs coil connections and flyback handling.
  • If they are logic-level signals, this relay board needs transistor/MOSFET/ULN2803 drivers.
5. Harness connector from control board
Use a harness connector with at least:
  • COIL_DRV_1
  • COIL_DRV_2
  • COIL_DRV_10
  • 0V_COIL
  • optional +24V_COIL if coil power is also delivered through the harness
  • optional spare / key / detect pin
For reliability, I’d prefer the 24 V coil supply on a separate higher-current connector, not the signal harness, unless the harness is sized for relay coil current.
6. Coil flyback protection
Each 24 V relay coil needs suppression.
Options:
  • Diode across each coil: simple, low-cost, slower relay release.
  • TVS or diode + Zener: faster release, better for relay contact timing.
  • If the control board already has ULN2803A, note that ULN2803 includes clamp diodes, but the relay board still needs the correct COM clamp connection to +24V.
For a separate relay board, I’d put local flyback diodes or TVS protection on the relay board so protection stays close to the coils.
Safety/layout constraints to carry into the schematic
  • Keep low-voltage harness/24 V coil section physically isolated from 220 VAC contact/output section.
  • Use large creepage/clearance between:
    • AC live/neutral/PE and low-voltage control
    • relay contact pins and coil pins
    • adjacent high-current channels
  • Use wide copper or copper pours for 15 A paths.
  • Consider using slots/cutouts between relay coil/control pins and contact pins.
  • Label all high-voltage nets clearly.
  • Prefer external/chassis wiring for the full 50 A main feed if PCB copper thickness/width cannot safely support it.
Open design decisions before schematic capture
  • Are the incoming 10 control signals logic-level inputs or already coil-driver low-side outputs?
  • Should each output socket switch live only, or live and neutral?
  • Should the board include current sensing or status feedback per channel?
  • What connector style/current rating do you want for the AC input and outputs?
  • Will the 50 A main protection be on-board, panel-mounted, or external?
My recommended starting schematic is: external/main 50 A breaker → live bus → 10× 15 A fused normally-open relay channels, with neutral and PE distributed directly to each output, and local flyback suppression for all 24 V relay coils.
Use low-side drivers
Add relay drivers
Switch live only
Specify connectors
Create schematic plan

Refine this doc
Ask about this doc
Uploaded File Review — 10-Channel AC Power Sequencer
Source files reviewed
  • flux_prompts.md: staged Flux Copilot prompts for building a 10-channel AC 220 V power sequencer.
  • sequence_power_BOM.md: concept BOM and pin assignment for the same design.
Stated design intent
  • 10-channel AC 220 V sequencer.
  • Per-channel load target: 2500 W, approximately 11 A.
  • Total power target: approximately 9900 W.
  • Architecture: separate control board and relay board.
  • Controller: ESP32 DevKit / ESP32-WROOM-32.
  • Outputs: two 74HC595 shift registers, 16 available outputs, 10 relay channels used.
  • Inputs: two 74HC165 shift registers for latching channel buttons, setup buttons, and cascade input.
  • Display: I2C OLED, SSD1306 or SH1106.
  • Channel indication: 10 front-panel LEDs with series resistors.
  • Relay drive: ULN2803 arrays driving 24 V relay coils.
  • Relays: HANKUK HR85AKS, 40 A contacts, 24 V coil.
  • Manual override: per-channel latching button, diode-OR arrangement, and transistor driver.
  • Power input: external certified 24 V SMPS; onboard 24 V to 5 V buck; 5 V to 3.3 V regulator.
  • AC protection: per-channel 15 A replaceable fuse and approximately 50 A main protection.
  • Cascade: one contact input and one isolated output using PC817 or similar.
  • AC voltage sensing: isolated potential transformer (PT) from AC 220 V to low-voltage AC, followed by rectifier, filter, and low-voltage divider into ESP32 GPIO36 / ADC1. Do not connect a resistor divider from AC mains directly to the ESP32 ADC.
Missing requirements / decisions needed before schematic work
  1. Safety and compliance target
    • Intended use is not defined: personal use, fixed installation, portable device, rack equipment, stage/audio equipment, or commercial product.
    • Applicable standards are not selected. For 220 V / high-current equipment, this affects enclosure, grounding, spacing, fusing, wire gauge, thermal design, labeling, and test requirements.
  2. AC topology
    • It is not specified whether each channel switches live only, neutral only, or both live and neutral.
    • Protective earth handling is not defined.
    • Input/output connector type, cable gauge, strain relief, and chassis bonding are not defined.
  3. Load characteristics
    • Load type is not defined: resistive, SMPS, motor, transformer, lighting, audio equipment, or mixed loads.
    • Inrush current requirements are missing. A 2500 W nominal load can create much higher relay contact stress during turn-on.
    • Sequencing direction, delay range, timing resolution, default delay, and power-loss behavior are not defined.
  4. Relay/contact requirements
    • The BOM names a 40 A relay, but contact rating must be verified for the exact load category and voltage.
    • Relay footprint, coil current, coil suppression arrangement, and thermal spacing need datasheet confirmation.
    • Mechanical relay lifetime under load is not specified.
  5. Power budget
    • 24 V SMPS current rating is not calculated.
    • Relay coil current for 10 simultaneous relays is unknown until the HR85AKS datasheet is checked.
    • 5 V and 3.3 V rail current budgets are not complete.
  6. Buck regulator selection
    • LM2596 or MP1584 is too broad for implementation. The exact part/module/IC must be chosen because inductor, diode, capacitor values, layout, compensation, and current rating differ.
    • If using a prebuilt buck module versus discrete IC, the schematic/layout approach changes.
  7. ESP32 DevKit power approach
    • It is unclear whether the ESP32 DevKit will be powered through its 5 V/VIN pin or directly through 3.3 V.
    • If using a DevKit, it may already include a regulator, USB interface, boot circuitry, and EN/IO0 pull-ups; duplicating power circuitry may cause conflicts.
  8. Shift-register voltage level
    • 74HC595/74HC165 should run at 3.3 V if directly connected to ESP32 GPIO. If powered at 5 V, input/output level compatibility must be verified or level shifting added.
  9. Manual override circuit ambiguity
    • The described diode-OR between ULN2803 path and NPN/button path is not fully defined electrically.
    • Because ULN2803 and an NPN low-side transistor both sink coil current, OR-ing should occur at the coil low side or at driver inputs with correct isolation; the two 1N4148 diodes may not be appropriate for relay coil current paths.
    • The latching button readback method into 74HC165 needs voltage conditioning and debouncing.
  10. AC voltage sensing safety
  • Requirement updated: AC input voltage measurement must use a galvanically isolated potential transformer (PT), not a direct mains resistor divider.
  • PT primary connects only to the AC mains side and must remain physically separated from the low-voltage control section with proper creepage/clearance.
  • PT secondary provides low-voltage AC, which is rectified, filtered, scaled with a divider to remain within 0–3.3 V, and then connected to ESP32 GPIO36 / ADC1 for Wi-Fi-compatible ADC measurement.
  • Remaining decision: select the PT voltage ratio, burden/loading requirements, rectifier/filter values, ADC scaling, calibration method, and overvoltage protection for GPIO36.
  1. PCB current and thermal requirements
  • 11 A per channel and up to about 50 A input is generally not suitable for ordinary narrow PCB traces.
  • Copper weight, trace width, busbar/wire jumpers, terminal temperature rise, relay spacing, and fuse holder current rating must be designed explicitly.
  1. Creepage and clearance
  • Required spacing between AC mains and SELV/control circuitry is not specified.
  • Board slots, keepouts, isolation barriers, and conformal coating assumptions are not defined.
  1. Protection details
  • MOVs, TVS, RC snubbers, relay contact suppression, surge protection, EMI filtering, and earth leakage strategy are not defined.
  • Per-channel fuse rating of 15 A may exceed the stated 11 A load, but fuse type, breaking capacity, voltage rating, and time-current curve are not specified.
  1. User interface and firmware behavior
  • Number and function of setup buttons is ambiguous: 3 or 4.
  • OLED menu behavior, saved settings, nonvolatile memory use, manual override precedence, Wi-Fi/MQTT behavior, fault handling, and cascade protocol are not defined.
  1. Mechanical/enclosure requirements
  • Enclosure type, panel layout, board dimensions, mounting holes, terminal access, fuse access, airflow, and physical separation between control and relay boards are missing.
Key risks
  • High severity: mains shock/fire risk. This project switches 220 V AC at high current. It needs expert safety review independent of schematic correctness.
  • Mitigated requirement: AC sensing approach. Direct mains-to-ADC divider is prohibited. Use an isolated PT with rectifier, filter, and 0–3.3 V ADC scaling into GPIO36; implementation details still require part selection and safety/layout review.
  • High severity: PCB current handling. 50 A input and 11 A channel paths require explicit high-current layout strategy, possibly busbars/wiring rather than PCB copper alone.
  • High severity: relay suitability. Relay contact ratings must be validated against real load type and inrush current, not just nominal watts.
  • Medium severity: control voltage compatibility. ESP32 GPIO requires 3.3 V logic; shift registers and OLED should be powered/selected accordingly.
  • Medium severity: power rail sizing. 24 V SMPS and regulators cannot be finalized without coil current, ESP32 peak current, display current, LED current, and margins.
  • Medium severity: manual override topology. The requested diode-OR/NPN circuit needs refinement before implementation.
  1. Confirm whether the design is for personal/prototype use only or intended for install/commercial use.
  2. Confirm switching topology: live-only or live+neutral per channel, and how protective earth is handled.
  3. Provide or approve relay datasheet for HR85AKS 24 V coil/contact variant.
  4. Choose whether the buck is a prebuilt module or a discrete regulator circuit.
  5. Select a suitable isolated PT and define the secondary rectifier/filter/divider values for 0–3.3 V input to GPIO36.
  6. Define load type and worst-case inrush current per channel.
  7. Define mechanical constraints: board separation, enclosure, terminal/fuse access, and expected wiring gauge.
Suggested schematic build order after decisions
  1. Low-voltage control/power section only: 24 V input, 5 V, 3.3 V, ESP32, shift registers, OLED, LEDs.
  2. One relay channel prototype with verified coil driver and manual override topology.
  3. Replicate relay channels after validating the single-channel circuit.
  4. Add AC switching/protection and PT-based voltage sensing only after confirming safety topology, connector ratings, creepage/clearance, fuse specs, PT isolation rating, and layout strategy.
  • Source files reviewed

  • Stated design intent

  • Missing requirements / decisions needed before schematic work

  • Key risks

  • Recommended next decisions before making project changes

  • Suggested schematic build order after decisions

10-Channel AC Power Sequencer thumbnail
Low-voltage control and power-control electronics for a 10-channel 220 V AC power sequencer using ESP32, shift registers, OLED display, and isolated/high-current AC sections to be added later.

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$6.18–$9.20

Digi-Key

$13.97–$20.25

HQonline

$6.20–$9.80

LCSC

$40.42–$44.80

Mouser

$22.08–$22.60

TME

$9.51

Verical

$4.42–$575.95

Controls