Contents
How do you drive a relay with a microcontroller?
A relay can be easily interfaced with microcontroller using a transistor as shown below. Transistor is wired as a switch which carries the current required for operation of the relay. When the pin RB7 of the PIC microcontroller goes high, the transistor BC547 turns On and current flows through the relay.
How do I use optocoupler relay?
So what is an Optocoupler Relay? A relay operating on the principle of opto-isolation, i.e. there is no direct or hardwire connection between the controller and the relay. And because there is no hardwire, the controller will remain protected against the high voltages that might harm the controller.
How is an optocoupler used in a microcontroller?
They are interfaced with microcontrollers like a led interacing with microcontroller. I will explain it in later part of this article. optocoupler is also called optoisolator, photocoupler and optical isolator. It is used to provide isolation between two electrical circuits.
How is a microcontroller relay connected to a µC?
Input of the circuit can be connected to the selected output port of the µC through the input terminals. However keep an eye on the supply polarity. Logic 1 (H = 5V) at the input of the optocoupler PC1 (CNY17-1) will switch on the electromagnetic relay, and logic 0 (L=0V) will turn it off.
Why is an optocoupler called an optical isolator?
I will explain it in later part of this article. optocoupler is also called optoisolator, photocoupler and optical isolator. It is used to provide isolation between two electrical circuits. It is a electrical component which is used to transmit input signal by using light energy signals.
Which is an application of an optocoupler interfacing?
It have many application in power electronics project like firing angle control circuits and ac power control circuits . optocouplers also have many applications in communication based projects. similarly they also have application in microcontroller based projects.