Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Industrial Technology

Optocoupler Basics: Function, Types, and Practical Applications

What is An Optocoupler,As a PCB designer, engineer, or hobbyist, you have a wide variety of switches, relays, and couplers to customize your PCB. With all the PCB components and options available on the market, it’s hard to decide which will suit your project the best.

For instance, you may be wondering what an optocoupler does and how it is different from any other relay. This is what the following guide hopes to elucidate. In it, we’ll explore the optocoupler, its various types, and how it can benefit you and your project.  

What is an Optocoupler

Optocouplers go by many names. You may refer to it as an optoisolator, photocoupler, optical coupler, optical isolator, or just optocoupler. Some people may even refer to them as options. Nevertheless, optocouplers are integrated electronic components. Generally, the most basic types consist of a rectangular body with four pins. Each pin is a subcomponent. The first pin is the anode, the second is the cathode, the third is the collector, and the fourth is the emitter.

Optocoupler Basics: Function, Types, and Practical Applications

LTV-816 1 channel opto-isolator

Source: Wikimedia Commons

Additionally, there is a circular indentation on the corner of the main body near the first pin. It allows us to identify the different pins. The body also contains some text bearing the optocoupler’s part number. Accordingly, we use it to identify the type of optocoupler and also find the manufacturer’s datasheet. 

Nevertheless, the optocoupler is essentially a solid-state relay that interconnects two separate electronic circuits. The first circuit will connect across the first two pins (pin 1 and 2), while the second circuit will connect to the last two pins (pin 3 and 4). This allows the first circuit to control the second circuit. 

It’s easy to mistake an optocoupler with an Integrated Circuit/microchip (IC) because of how it looks. This is especially true for TRIAC optocouplers.

Optocoupler Basics: Function, Types, and Practical Applications

Electronic Microchips in a white background

How Does an Optocoupler Work?

We can use the optocoupler to transfer electronic signals between two isolated circuits. This is one of its more important attributes. Sometimes voltage spikes and noise may occur in one circuit. Without the optocoupler isolating the circuits, these disruptions may spread to the second circuit and cause destruction. The optocoupler prevents this damage from occurring in both circuits. 

Additionally, the optocoupler will only allow electrons to flow in one direction because of its semiconductor materials. Consequently, this allows the two interconnected circuits to use different voltages and currents.

Furthermore, it allows you to expand your device’s capabilities. This is largely due to how it facilitates galvanic isolation between two separate circuits. For instance, we could add a transistor to the second circuit without interfering with the first in a two-circuit configuration. This would allow you to control even higher amounts of voltage and current. Moreover, it could potentially allow you to automate the circuit control by adding electronic components.

The Structure of an Optocoupler

Optocouplers come in a wide variety of types and configurations. However, to make things easier to understand, we’ll focus mainly on the phototransistor version. 

Optocoupler Basics: Function, Types, and Practical Applications

Phototransistor optocoupler circuit diagram   

Source: Wikimedia Commons

The above diagram illustrates a phototransistor connecting two circuits. If you look carefully at the phototransistor portion of the diagram, you’ll notice that there is an LED symbol on the left:

Optocoupler Basics: Function, Types, and Practical Applications

Image of LED symbol

Source: Wikimedia Commons

Contrastingly, there is a transistor symbol right: 

Optocoupler Basics: Function, Types, and Practical Applications

Image of transistor symbol

Source: Wikimedia Commons

We can easily spot the above figures that a phototransistor is a modified version of a normal transistor. Moreover, you can understand why we call the (third and fourth) terminals on the transistor side collectors and emitters. Furthermore, you can also see why we call the first and second terminals anode and cathodes.

Transistors generally have three terminals. However, there is a small difference here. The base pin in a normal transistor circuit is missing from the phototransistor circuit. This is because the transistor in an optocoupler works slightly differently. Instead of using electronic signals from the base pin, the transistor in an optocoupler uses light from the LED.    

The light shines from the LED and hits the transistor, switching it on and allowing current to flow in the main electrical circuit. They react to optical input as opposed to just electrical input current. Optocouplers come in two common topologies. The inner components can either sit on top of each other or next to each other.

Optocoupler Basics: Function, Types, and Practical Applications

Optocoupler topologies

Source: Wikimedia Commons

While we can’t see the inner workings of the phototransistor (unless it’s translucent), we can create our very own using a simple circuit. We’ll explore that further down this guide. But first, let’s explore the other optocoupler types.

Optocoupler Types

Optocoupler Basics: Function, Types, and Practical Applications

Optocoupler held between a pair of tweezers.

There are six most common types of transistors. They are:

How to Create a Simple Optocoupler Circuit

Optocoupler Basics: Function, Types, and Practical Applications

Optocoupler held between a pair of tweezers in front of a PCB

Part List:

Explanation and instructions:

Optocoupler Basics: Function, Types, and Practical Applications

Red LED and optocoupler

This simple optocoupler uses a simple light-dependent resistor (LDR) and a white LED. The LDR varies its load resistance based on the light exposure. Thus, in darkness, it has a very high resistance. Inversely, when we expose it to bright light, it has a meager resistance. In this context, it will function as our photodiode. 

In the primary circuit, we will need a white LED that has a voltage drop of 3 volts and uses 0.02 amps. Next, we will employ a 9-volt battery as a power supply and control the circuit using a switch. Because the white LED light requires a 3-volt current, we’ll need a resistor with a 6-volt drop. Thus, the resistor must have 300 Ohms of resistance ( (9V – 3V) ÷ 0.02A). 

So your primary circuit will consist of the battery, which positively connects to the switch, resistor, and the white LED light. You can use a breadboard or wire to connect the components. Altogether, this will act as our control circuit. 

We’ll have a red LED with a voltage drop of 2 Volts and an electric current of 0.02 Amperes on the secondary circuit.

We’ll use it as an indicator to show when the circuit is working. Additionally, we’ll connect the LDR to this circuit. Obviously, the LDR needs to sit adjacent to the white LED light. 

The LDR will provide a resistance of roughly 70 Ohms when we expose it to the light from the LED. You’ll need to connect the LDR to the red LED. To power the secondary circuit, we’ll employ another 9-Volt battery. Again, we’ll need a resistor to drop the voltage so the LED can work effectively. We suggest using two 150 Ohm resistors. However, one 300 Ohm resistor will be fine too. 

Nevertheless, once you’re done constructing the circuit, you’ll need to wrap some black tape around the LDR and white LED. You must make sure that you connect them. This will block the ambient light in the room. Alternatively, you can test the circuit in a completely dark room. 

When you press the primary circuit (input circuit) button, the white LED will turn on. Then it will shine a light against the LDR, which will turn the red LED on in the output circuit. The light from the white LED functions like an electrical signal in a switch. This project is simple enough to illustrate the inner workings of an optocoupler. However, you can improve it by implementing an infrared emitter along with a receiver. Instead of visible light, this project would use infrared light.     

Optocoupler Applications

Optocoupler Basics: Function, Types, and Practical Applications

Small PCB assembly with IC, capacitor, optocoupler, and other semiconductors

Now that we understand how optocouplers work, now we can explore where we can apply them. We can use optocouplers as simple light-activated switches. However, what electronic equipment and devices would suit them best? Here’s a list of where we could use optocouplers:

Optocoupler Benefits

Optocoupler Basics: Function, Types, and Practical Applications

A set of optocouplers

Why would you want to use optocouplers instead of electromechanical relays or switches? Here are just a few of the advantages: 

Conclusion

In the above text, we provided an easy-to-understand and in-depth guide on optocouplers. If you’ve reached this section of the guide, you have a deeper understanding of optocouplers. Nevertheless, we hope that you’ve found this guide to be helpful. As always, thank you for reading. 


Industrial Technology

  1. Plasma Cutting Explained: How It Works and Key Benefits
  2. Electrochemical Grinding Explained: How It Works & Key Benefits
  3. Understanding Inventory Accounting: Methods, Types, and Business Impact
  4. Understanding Ransomware: How It Works & Why It Matters
  5. Understanding LED StarBoard: Design, Function, and Heat Dissipation Benefits
  6. Vacuum Tube Diodes Explained: Function, History, and Modern Applications
  7. Refrigerator Alarm: The Smart Solution to Keep Your Food Fresh
  8. LED Fader Circuit Explained: How It Works & Why It Matters
  9. Neon Lamp Circuit Explained: Function, Applications, and Benefits
  10. NFC Antennas Explained: How They Work and Why They Matter