The 4N25 is an optoisolator (or optocoupler) manufactured by IC. It integrates a light-emitting diode (LED) and a phototransistor within a single package. This component is designed to transfer electrical signals between two isolated circuits, ensuring electrical isolation and protecting sensitive components from high voltages or noise.
Below are the key technical details of the 4N25 optoisolator:
Parameter | Value |
---|---|
Manufacturer Part ID | IC |
Input LED Forward Voltage | 1.2V (typical), 1.5V (maximum) |
Input LED Forward Current | 10mA (typical), 60mA (maximum) |
Output Phototransistor Voltage | 30V (maximum) |
Collector Current | 50mA (maximum) |
Isolation Voltage | 5000V RMS |
Current Transfer Ratio (CTR) | 20% to 300% |
Operating Temperature Range | -55°C to +100°C |
Package Type | 6-pin DIP |
The 4N25 is housed in a 6-pin Dual Inline Package (DIP). The pinout is as follows:
Pin Number | Name | Description |
---|---|---|
1 | Anode (LED) | Positive terminal of the internal LED. Connect to the input signal. |
2 | Cathode (LED) | Negative terminal of the internal LED. Connect to ground or the return path. |
3 | NC (No Connect) | Not connected internally. Leave unconnected or use as a mechanical support. |
4 | Emitter | Emitter terminal of the phototransistor. Connect to the output circuit. |
5 | Collector | Collector terminal of the phototransistor. Connect to the output circuit. |
6 | Base (optional) | Base terminal of the phototransistor. Typically left unconnected. |
Input Side (LED):
Output Side (Phototransistor):
The following example demonstrates how to use the 4N25 to isolate a digital input signal for an Arduino UNO:
// 4N25 Optoisolator Example with Arduino UNO
// This code reads the output of the 4N25 and toggles an LED based on the input signal.
const int optoInputPin = 2; // Digital pin connected to 4N25 collector
const int ledPin = 13; // Onboard LED pin
void setup() {
pinMode(optoInputPin, INPUT); // Set optoInputPin as input
pinMode(ledPin, OUTPUT); // Set ledPin as output
}
void loop() {
int optoState = digitalRead(optoInputPin); // Read the optoisolator output
if (optoState == LOW) {
// If the optoisolator output is LOW, turn on the LED
digitalWrite(ledPin, HIGH);
} else {
// Otherwise, turn off the LED
digitalWrite(ledPin, LOW);
}
}
No Output Signal:
Output Signal Always High:
Output Signal Always Low:
Signal Distortion or Noise:
Q: Can the 4N25 be used for analog signal isolation?
A: The 4N25 is primarily designed for digital signal isolation. While it can transfer analog signals, the linearity and bandwidth are limited.
Q: What is the maximum switching speed of the 4N25?
A: The 4N25 has a typical switching speed of 2-10µs, making it suitable for low- to medium-speed applications.
Q: Can I use the base pin (Pin 6)?
A: The base pin is typically left unconnected. However, it can be used to adjust the phototransistor's gain if needed.
Q: Is the 4N25 suitable for high-frequency applications?
A: No, the 4N25 is not ideal for high-frequency applications due to its limited switching speed. For such cases, consider high-speed optoisolators.