Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optocoupler / Optoisolator #29

Open
tonilopezmr opened this issue Oct 9, 2018 · 0 comments
Open

Optocoupler / Optoisolator #29

tonilopezmr opened this issue Oct 9, 2018 · 0 comments

Comments

@tonilopezmr
Copy link
Owner

When a microcontroller with low voltage wants to control high voltages and current you need to isolate the low voltage circuit (cold) to the high voltage circuit (hot) to not burn the low voltage circuit.

Problem example:

image

This circuit has the problem of link the negative part of the battery with 220v AC wich it is a dangerous connection because high voltage could reach the cell and exploit it. Optocoupler / Optoisolator will protect the battery isolating hot side from the cold side.

Optocoupler schematic

image
MOC3041 schematic which is zero-crossing

How it works

Optocoupler has a diode in the cold side which emit infrared light when it is exciting, on the cold side there is a TRIAC composed by photo transistors or photo diacs which is open while the diode isn't excited, when the diode emit infrared light to the photo transistors, it closes the HOT circuit and turn on the 220v bulb for example.

image

This is an example of using optocoupler for switch on/off a 220v bulb with TRIAC controlled by 5v.

References

First time I read about optocouplers
Video Using a TRIAC to Switch AC line power
Optocoupler MOC3021 datasheet
Optocoupler MOC3041 zero crossing datasheet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant