Skip to Content

AN-07: Drive a 12 V relay coil with OUT-4

Switch a standalone 12 V DC relay coil using OUT-4 and verify COM/NO/NC continuity while the relay contact circuit remains unpowered.

By Frank Kuster

AN-07: Drive a 12 V relay coil with OUT-4 featured image
AN-07: Drive a 12 V relay coil with OUT-4

KI MAKER / APPLICATION NOTE AN-07 · Revision 1.1 · November 2026

Switch a standalone 12 V DC relay coil with OUT-4 and check its contacts while the contact circuit stays unpowered.

Hardware: OUT-4, standalone 12 V DC relay

Scope and prerequisites

Energize an appropriately rated standalone 12 VDC relay coil through OUT-4, leaving the separate contact circuit unpowered. OUT-4 is not galvanically isolated. This is an instructional example, not validation of a specific relay model.

Functional connection diagram

Drive a 12 V relay coil with OUT-4: source functional connection diagram
Extracted from AN-07 Rev 1.1. Functional paths, not physical pin positions. Follow the actual board silkscreen and the equipment documentation. Power OFF before wiring.

Terminal-to-terminal wiring

FromTo
12 VDC source + / −CN1 DC+ / DC−
Controller D4 (example)CN2 IN1
Controller GND / PLC 0 VCN2 GND
Relay coil + (if marked)CN3 V+
Relay coil − (if marked)CN3 OUT1
Relay COM / NO / NCKeep unconnected to external circuits during coil test

Firmware example

Use the target controller and power/programming procedure described here. Generic Arduino-API pin numbers are examples, not universal pin assignments.

// D4 is an example: choose a suitable output pin
const int RELAY_PIN = 4;
void setup() {
  digitalWrite(RELAY_PIN, LOW);
  pinMode(RELAY_PIN, OUTPUT);
  delay(2000); // observe coil OFF
  digitalWrite(RELAY_PIN, HIGH);
  delay(5000); // one 5-second pulse
  digitalWrite(RELAY_PIN, LOW);
}
void loop() {
  // Stay OFF; reset re-runs the test.
}

Commissioning

  1. Select a 12 VDC coil compatible with the source, OUT-4 ratings, marked polarity and suppression.
  2. With coil disconnected, check CN1 voltage/polarity and PWR OK using a current-limited supply.
  3. Power OFF; wire coil to CN3 V+/OUT1 and controller GND to CN2 GND.
  4. Run sketch: after 2 s, command ON for 5 s, then remain OFF. Listen for relay action.
  5. Keep contacts unpowered. Verify conventional SPDT COM/NO/NC states with an appropriate meter. Move continuity probes only with system power OFF; check each pair during the pulse and afterward. Never use continuity mode on a powered contact circuit.
  6. Remove power for chatter, abnormal coil heat or incorrect output behavior.

Expected operation

Expected for a conventional SPDT changeover relay: coil OFF gives COM–NO open and COM–NC closed; coil ON reverses these states. Confirm actual contact pinout and type from the relay datasheet. LOW takes effect when firmware executes; it does not guarantee OFF at boot/reset or on loss of controller power.

Troubleshooting

ObservationFirst check
PWR OK darkMeasure CN1 voltage/polarity; remove power before inspection.
OUT1 LED never activatesCheck D4→IN1 command relative to CN2 GND and selected pin.
OUT1 LED ON; no clickPower OFF; check 12 V coil rating, V+/OUT1 and polarity/suppression.
Relay clicks; contacts unchangedWith contact circuit unpowered, verify COM/NO/NC pinout and contact type.

Ratings and references

OUT-4 Rev-A supply 5–24 VDC nominal (30 V absolute maximum); 1 A continuous/channel, 3 A total; no output short-circuit protection. DC coil only, no AC mains on OUT-4. OUT1 switches negative only. Paired V+/OUTx has onboard flyback protection for common coils; check built-in suppression, current and release behavior, and whether additional suppression is needed. External relay datasheet defines isolation/contact ratings. Optional PWR INTF 12 V supply is allowed only within available shared load/thermal budget.

Source: AN-07 PDF, revision 1.1. Refer to the released board owner’s manual, quick start and specification referenced in the original PDF.

Download AN-07 PDF (Rev 1.1) · Download AN-07 firmware (.ino)

Related application notes

Return to the application-note index

Product manuals and documentation · OUT-4 · OUT-4 quick start