You Are Here: Home » AVR ATmega Projects » Introduction to Octocoupler and Interfacing with ATmega8

Introduction to Octocoupler and Interfacing with ATmega8




In this tutorial we are going to interface an Optocoupler with ATMEGA8 microcontroller. Octocouplers are fascinating devices used to isolate the electronic and electrical circuits. This simple device isolates the sensitive electronics from robust electronics like motors, yet keeping the load in control over the source.

Introduction to Octocoupler and Interfacing with ATmega8

Octocoupler with ATmega8 Microcontroller

Say we want to control the speed of an AC motor like fan, with control logic from a controller. We can fed the signal from controller to system of control which drives the motor. But during the process we also take the noise from the motor speed control system. Because its AC circuit and that too motors we will have to do a lot of noise filtration. With OPTOELECTRONICS we can avoid the direct contact of controller unit from motor driving unit. By this we avoid noise transmission between systems yet we could keep the load in total control.




OPTOELCTRONICS, as the name itself says, we will have light triggering system included. We will send signal to a light emitting device at the source end and there will be a light trigger switch at the load end. We will discuss this more in description. Here we are going to interface 4N25 a 6 pin IC to ATMEGA8 controller. When the switch is pressed at the controller end, an LED connected at load end gets turned ON.

Components Required

Hardware: ATmega8 microcontroller, Power supply (5v), AVR-ISP PROGRAMMER, 4N25 OPTOCOUPLER, 1KΩ resistor (3 pieces), LED

Software: Atmel Studio 6.1, Progisp or Flash magic.

Circuit Diagram and Explanation

The circuit diagram for OPTOCOUPLER interfacing with AVR microcontroller is shown in figure,Schematic Introduction to Octocoupler and Interfacing with ATmega8

Here PINA and PINC are connected to the source side.

PINB, PINC, PINE represent the load side.

From the diagram it is clear that there is a LED (Light Emitting Diode) at the source end and there is a PHOTOTRANSISTOR at the load side. The system is framed inside a chip so the gain of PHOTOTRANSISTOR is high.

 

Now when a signal is passed to the LED at the source side, the LED emits light radiation, since the photo transistor is adjacent to LED, on light reception the transistor gets tuned ON. So control signal from controller gets converted to light for triggering the light sensitive load driver.

For more detail: Introduction to Octocoupler and Interfacing with ATmega8

Leave a Comment

You must be logged in to post a comment.

Read previous post:
How to establish UART communication between ATmega8 and Arduino Uno
How to establish UART communication between ATmega8 and Arduino Uno?

Here we are going to establish a communication between an ATmega8 microcontroller and Arduino Uno. The communication established here is UART...

Close
Scroll to top