PC817 4 Channel Optocoupler Isolation Module 3.3V 5V to 24V Converter

$8.95 Inc. GST
You save

Quantity Discount (%) Price
1 — $8.95
2 - 4 5% $8.50
5 - 9 7.5% $8.28
10 - 19 10% $8.06
20 - 49 12.5% $7.83
50 - 99 15% $7.61
100+ 17.5% $7.38

Description

🔌 PC817 4-Channel Optocoupler Isolation Module – 3.3V / 5V to 24V Signal Converter | AuscomTech

The PC817 4-Channel Optocoupler Isolation Module is a compact and reliable solution for safely isolating low-voltage control signals from higher-voltage circuits.

Using four independent PC817 optocouplers, this module provides strong photoelectric isolation to protect sensitive microcontrollers from noise, voltage spikes, and ground loops, while enabling control of higher-voltage devices such as relays, transistors, and MOSFETs.

It is well suited to Arduino, ESP32, Raspberry Pi, PLCs, and industrial control applications where clean, isolated signal switching is required.


⭐ Key Features

🔢 4 Independent Optocoupler Channels
Each channel uses a dedicated PC817 optocoupler, allowing multiple isolated signals to be controlled simultaneously.

⚡ Wide Voltage Compatibility
Supports 3.3V or 5V logic input signals and switches output voltages from 3.6V up to 24V DC.

🔒 Photoelectric Signal Isolation
Optocoupler-based isolation protects control electronics from electrical noise, transients, and ground potential differences.

🔧 Configurable Output Logic
Onboard jumper allows selection between high-potential or low-potential output to suit different circuit requirements.

🧠 MCU & Driver Friendly
Capable of driving power transistors, MOSFETs, and low-power 24V relays.

📡 Pulse Signal Support
Designed for switching and pulse signals up to approximately 4kHz.


📊 Technical Specifications

Optocoupler: PC817
Channels: 4
Input Logic Voltage: 3.3V / 5V
Output Voltage Range: 3.6V – 24V DC
Max Output Current: 10mA per channel
Signal Frequency: ≤ 4kHz
Isolation Type: Photoelectric (optocoupler)
Board Length: 48 mm
Board Width: 38 mm
Mounting Hole Spacing (Long): 42 mm
Mounting Hole Spacing (Wide): 32 mm


⚠️ Important Notes

• Output current is limited to 10mA per channel
• Not suitable for high-speed signals above ~4kHz
• Voltage and current are inversely related — observe load limits
• For faster switching, use a high-speed optocoupler


🧩 Compatible With

• Arduino (Uno, Mega, Nano)
• ESP32 / ESP8266
• Raspberry Pi GPIO
• STM32 microcontrollers
• PLC digital I/O modules
• Relay, MOSFET, and transistor driver stages


⚙️ Typical Applications

• PLC signal isolation
• Microcontroller I/O protection
• 3.3V / 5V to 12V / 24V level shifting
• Industrial automation systems
• Relay, MOSFET, and transistor control
• Noise-sensitive or mixed-voltage circuits
• Ground loop and interference protection


📦 Package Includes

• 1 × PC817 4-Channel Optocoupler Isolation Module

📌 Code Examples & Usage – PC817 4-Channel Optocoupler Isolation Board

📋 What This Module Is For

The PC817 4-Channel Optocoupler Isolation Board provides electrical isolation between external circuits (input side) and your microcontroller (output side) using four PC817 optocouplers. This is useful when:

✔ Monitoring noisy or high-voltage signals
✔ Protecting microcontroller GPIOs
✔ Avoiding ground loops in mixed systems
✔ Interfacing with voltages outside logic levels

Each channel isolates an input signal from the output logic that the microcontroller sees.


🔌 How It Works

Each optocoupler pair consists of:

👉 An LED on the input side (activated by external voltage)
👉 A phototransistor on the output side (isolated, safe logic output to MCU)

When the LED on the isolated side gets current, it activates the transistor on the MCU side — but there is no direct electrical connection between isolated and MCU circuits.

This provides galvanic isolation, protecting your microcontroller from spikes, noise, and voltage differences.


📌 Wiring (General)

⚡ Isolated Input Side (High-Voltage / Field Side)

Module Pin Connect To
IN1–IN4 External signal (e.g., >MCU logic, up to ~30 V)
GND (Input) Ground/reference for external system
VCC (Input) Voltage for input LED (5–30 V depending on your field system)

🧠 MCU Output Side (MCU Logic)

Module Pin Connect To
OUT1–OUT4 Microcontroller digital inputs
GND (Output) Microcontroller ground
VCC (Output) Microcontroller logic voltage (3.3 V / 5 V)

🔌 Important: The input and output sides are isolated — do not share ground unless required with proper isolation strategy. The microcontroller side should be powered from its own logic supply.


🧪 Arduino Example — Reading Isolated Inputs

Use this example to read the state of four isolated channels.

const int isoPins[4] = {2, 3, 4, 5};

void setup() {
Serial.begin(9600);
for (int i = 0; i < 4; i++) {
pinMode(isoPins[i], INPUT_PULLUP); // PC817 output transistor pulls LOW when active
}
}

void loop() {
Serial.println(“Isolation Input States:”);

for (int i = 0; i < 4; i++) {
int state = digitalRead(isoPins[i]);
Serial.print(“IN”);
Serial.print(i+1);
Serial.print(“: “);
Serial.println(state == LOW ? “ACTIVE” : “INACTIVE”);
}

Serial.println();
delay(500);
}

How it works:

  • The PC817’s phototransistor pulls the MCU input LOW when the isolated side LED is driven.

  • Using INPUT_PULLUP makes the default state HIGH until triggered.


⚡ ESP32 Example — 4-Channel Isolation

If using ESP32 (3.3 V logic), connect the output side to 3.3 V and use INPUT_PULLUP just the same.

const int isoPins[4] = {15, 16, 17, 18};

void setup() {
Serial.begin(115200);

for (int i = 0; i < 4; i++) {
pinMode(isoPins[i], INPUT_PULLUP);
}
Serial.println(“4-Channel Isolation Reader Ready”);
}

void loop() {
for (int i = 0; i < 4; i++) {
int state = digitalRead(isoPins[i]);
Serial.print(“IN”);
Serial.print(i+1);
Serial.print(“: “);
Serial.println(state == LOW ? “ACTIVE” : “INACTIVE”);
}
Serial.println();
delay(500);
}


🧠 Typical Use Cases

🔹 1) Reading High-Voltage Switch Signals

Monitor 12 V / 24 V signals from external systems safely without exposing the MCU to those voltages.

🔹 2) Motor Control & Feedback

Read limit switches or sensor pulses from noisy motor driver circuits.

🔹 3) Multi-Input Control Panels

Connect multiple pushbuttons/switches from machinery panels up to the microcontroller without ground loops.


📊 Pull-Up Strategy

Because the PC817 output side uses a phototransistor that sinks current:

✔ The microcontroller input should use either:

  • Internal INPUT_PULLUP, or

  • External pull-up resistor (typically 10 kΩ) to VCC

This ensures the input line is HIGH when idle and goes LOW when the optocoupler triggers.


🧠 Isolation Notes

✔ The input field side and output MCU side are separated — no shared ground required
✔ If you must reference both systems to a common potential, use an isolated power supply
✔ Optocouplers help reduce EMI / noise by decoupling separate circuits
✔ Works with logic from 3.3 V up to industrial voltages on the input side (check datasheet)


🧪 Example – Isolated Button Input

This board works great for isolating multiple button or switch inputs:

[ External switch ~12–24V signal ]
↓
PC817 Input LED
↓
Isolated Output (MCU side)
↓
MCU Digital Input with Pull-Up

Additional information

Weight 40 g
Dimensions 260 × 160 × 20 mm

Reviews

There are no reviews yet.


Only logged in customers who have purchased this product may leave a review.