Skip to Content

AN-06: Control four 24 V DC loads with OUT-4

Wire four 24 V DC LED loads to OUT-4, map the controller GPIOs, and use the example sketch to check switching one channel at a time.

By Frank Kuster

AN-06: Control four 24 V DC loads with OUT-4 featured image
AN-06: Control four 24 V DC loads with OUT-4

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

Connect four 24 V DC LED loads to OUT-4 and check each channel with a sequential GPIO example.

Hardware: OUT-4

Scope and prerequisites

Connect four suitably rated 24 V DC LED loads, one active-HIGH input per channel. This is an instructional configuration, not a completed four-load test. Other DC load types require their own requirements and checks.

Functional connection diagram

Control four 24 V DC loads with OUT-4: source functional connection diagram
Extracted from AN-06 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
24 V source + / −CN1 DC+ / DC−
Controller GNDCN2 GND
Controller D4 (example)CN2 IN1
Controller D5 (example)CN2 IN2
Controller D6 (example)CN2 IN3
Controller D7 (example)CN2 IN4
LED 1 + / −CN3 V+ / OUT1
LED 2 + / −CN4 V+ / OUT2
LED 3 + / −CN5 V+ / OUT3
LED 4 + / −CN6 V+ / OUT4

Firmware example

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

// Example pins; select suitable GPIOs for your controller
const int CH[4] = {4, 5, 6, 7};
void setup() {
  for (int i = 0; i < 4; i++) {
    digitalWrite(CH[i], LOW);
    pinMode(CH[i], OUTPUT);
  }
}
void loop() {
  for (int i = 0; i < 4; i++) {
    digitalWrite(CH[i], HIGH);
    delay(1000);
    digitalWrite(CH[i], LOW);
    delay(500);
  }
}

Commissioning

  1. With loads disconnected, verify CN1 voltage/polarity and PWR OK.
  2. Tie controller GND to CN2 GND and verify selected pins map to IN1–IN4. Power the controller per its own guide.
  3. Power OFF; connect LED 1 to CN3 V+/OUT1, then power ON and check CH1.
  4. Power OFF before adding LED 2–4 individually at CN4–CN6, checking each.
  5. Observe each matching OUT LED and load following HIGH/LOW.
  6. Remove power if wiring, behavior or heating is abnormal.

Expected operation

Expected operation: sequentially energize one LED load at a time for 1 s, then OFF for 500 ms. The sketch does not command all four ON simultaneously or guarantee states before firmware starts. Record specified load demand individually: CH1 ___ mA; CH2 ___ mA; CH3 ___ mA; CH4 ___ mA. No completed four-load result is claimed.

Troubleshooting

ObservationFirst check
PWR OK darkCheck CN1 voltage/polarity; inspect with power OFF.
One channel does not switchCheck INx relative to CN2 GND, mapping and OUT LED.
OUT LED lit; load darkPower OFF; check matching CN3–CN6 V+/OUTx and rating/polarity.
Wrong load switches or heatingPower OFF; check input mapping, load wiring and current limits.

Ratings and references

Every load + connects to its matching V+ and load − to OUTx. V+ remains energized; OUTx is switched return, not permanent GND. Common logic ground is required. Never put 24 V on MCU GPIO. OUT-4 Rev-A / PCB V1.01: 5–24 VDC nominal, 30 V absolute maximum (not a target), 1 A continuous/channel and 3 A total. DC only, no mains; outputs lack short-circuit protection. For coils, motors or valves, follow manual and load-specific current, duty and suppression requirements.

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

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

Related application notes

Return to the application-note index

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