Connecting an Optoisolated Relay Module: Inputs, Coil Power and Isolation Checks
An optocoupler on a relay module is useful, but it does not answer every interface question. The controller still needs a compatible input circuit, the relay coils need the correct supply, and any intended galvanic isolation must survive the board's jumpers and external wiring.
PMD Way's optoisolated relay module range includes different coil-voltage and channel-count options. Treat each selected version as a specific assembly. A label such as “5 V relay board” may describe the coil supply rather than the voltage that a controller should apply to every input.
Draw three separate parts of the system
Begin with the controller interface, the relay-coil power path and the switched load circuit. Give each part its own box on a sketch and mark every connection between them. This makes hidden assumptions about common grounds and supply sharing easier to spot.
| Part | Details to establish |
|---|---|
| Control inputs | Active polarity, input voltage and current, reference connection and default state. |
| Coil power | Required voltage, all-channels-on demand, jumper arrangement and suppression. |
| Contacts | COM/NO/NC mapping, load type, switching limits and terminal capability. |
Obtain the schematic or an equivalent connection document for the actual board revision. Similar-looking modules may connect their optocouplers differently. Do not adopt a wiring diagram solely because the number of relays and the PCB colour match.
Find out how the input is activated
An active-high input operates when driven to its specified high condition. An active-low input operates when pulled to its specified low condition. Some boards expect a controller to sink current through an optocoupler LED; others use a different input circuit or selectable trigger mode.
Read the allowed input conditions before connecting a microcontroller. Confirm whether its output can supply or sink the required current while maintaining valid logic levels. A 3.3 V controller is not automatically compatible with a board whose relays use 5 V, nor is it automatically incompatible: the input circuit decides.
The store listing does not establish a universal trigger polarity or input current for every variant. Resolve those details for the selected board before applying signals. Testing unknown inputs by connecting them repeatedly to different supply rails is not a substitute for a documented interface.
Understand what isolation actually requires
An optocoupler transfers information through light between its input and output sides. Texas Instruments' explanation of optical and galvanic isolation emphasises the need to maintain separate power and ground domains when signal isolation is intended.
A jumper or shared ground trace can connect domains that otherwise appear isolated. USB connections to a computer, test instruments and external supplies can introduce additional paths. Removing a jumper does not prove isolation if another connection still bridges the same boundary.
With all power disconnected, continuity checks can help trace common nets. However, a meter showing no continuity does not certify an isolation barrier's voltage capability. Component ratings, PCB spacing, connectors, contamination and enclosure design all affect the finished system. Vishay's optocoupler application guidance discusses creepage and clearance as part of that wider design problem.
Size the coil supply for the whole board
Add the demand of the relays that can operate simultaneously, along with indicator and driver consumption. Do not size a multi-channel board from a single-relay demonstration. Coil current also depends on the selected voltage version; changing from one variant to another can change the power arrangement.
As a hypothetical example, four coils drawing 70 mA each require 280 mA before the board's other circuitry is included. Those are illustrative figures, not specifications for the PMD Way range. Obtain the actual board demand and allow an appropriate supply margin.
Keep coil-current paths away from sensitive signal returns where the design allows. If supply voltage collapses as relays switch, the board may chatter or the controller may reset. Suppression on the relay coils does not eliminate voltage drop caused by an inadequate supply or poor wiring.
Establish a predictable off state
During reset, a controller pin may temporarily be an input rather than the driven output the application normally uses. A relay board that behaves correctly after software starts can therefore produce a brief unwanted operation at startup.
Design the input interface with a defined inactive state, using components and values appropriate to its documented circuit. Configure software outputs in a safe order and test the actual boot sequence. Avoid relying entirely on a late software command to correct an earlier hardware ambiguity.
Decide what “off” means at the contacts. A de-energised coil connects COM to NC on a changeover relay, so a load wired through NC may be powered when the control board is off. Label the chosen contacts by their actual function in the project.
Test channels with the load disconnected
- Confirm the selected board variant, supply and input requirements.
- Inspect the jumpers and compare them with the wiring plan.
- Power the board appropriately with its contact loads disconnected.
- Operate one channel and verify its contact continuity independently of the LED.
- Repeat for every channel, recording the control-to-terminal mapping.
- Test reset, controller disconnection and power restoration before connecting the real load.
An indicator LED shows some part of the drive circuit's state, but it is not feedback proving that a contact moved or that a load has power. If the application needs verified operation, add a suitable independent feedback method instead of treating a lit LED as confirmation.
Validate the load and installation separately
The relay's printed contact rating does not automatically apply to every motor, lamp or capacitive load at that current. Omron's relay precautions discuss load-dependent switching behaviour and the need to validate the actual application. Board tracks, terminals and wiring also have their own limits.
Begin with a modest low-voltage load in a protected bench setup. Keep mains work out of an exposed module experiment. Compare the relay module board collection only after documenting the inputs, coil power, contact load and intended isolation. That complete picture is what makes a relay module a reliable part of a project.