How Does An Optocoupler Work? PC817 Investigation

  Рет қаралды 22,842

Simple Electronics

Simple Electronics

Күн бұрын

Taking a look at the PC817 optocoupler and at the same time, I show equivalent circuits, how to use it in a circuit and also what it looks like on the inside!
Get yours here:
rover.ebay.com/rover/1/706-534...
Thanks for watching!
If you feel like supporting the channel please consider supporting on Patreon: / simpleelectronics
or buy anything on Banggood's site using my affiliate link:
www.banggood.com/custlink/mGv...
and if you feel so inclined, here is my Amazon wish list!
www.amazon.ca/hz/wishlist/ls/...

Пікірлер: 92
@Adhithya2003
@Adhithya2003 10 ай бұрын
The video was very intelligently scripted, introducing all the components step by step. Thank you.
@vipulakularathne3664
@vipulakularathne3664 3 жыл бұрын
This is the best illustration of optical coupler. Thank you sharing knowledge.
@pileofstuff
@pileofstuff 4 жыл бұрын
I remember as a teenager heat-shrinking an LED and photo-resistor together to make a crude opt-isolator. I'm so happy that these modern ones are so easily and cheaply available these days.
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
No kidding! you can totally DIY them still but I feel like a LED + a CdS + a transistor + heat shrink would be more expensive too!
@pileofstuff
@pileofstuff 4 жыл бұрын
@@SimpleElectronics Today, absolutely it would cost more, and wouldn't work as well. Kids these days have it easy!
@cameronmalchow1837
@cameronmalchow1837 3 жыл бұрын
@@pileofstuff I dunno if they really do. I for one, well I'm not a kid, but also couldn't wrap my head around the idea of a led and photo resistor being inside a tiny chip acting as a switch. Whenever I looked at datasheets and what not trying to figure it out I kept coming to the conclusion that one had to hook an LED up to it for it to work. I knew that didn't sound right either, so I did some digging and found pictures of a optocoupler cut in half and it clicked that it was possible. Seeing things as they are, not manufactured to the size of a fingernail. Do you think kids these days have any idea what transistors do? How they work? How they made computers possible? How they are put in patterns and designs which allow them to perform logic and math? How that equates to memory, ram, basically how does a computer actually work, at the most base level. I used to fix computers all through school, but didn't keep it up once I graduated from university. This was 19 years ago and I just recently, this year, learned how transistors work and all that other stuff. If things were bigger, more tangible, it would have made learning it easier and something that may have happened years ago instead of recently m
@frankowalker4662
@frankowalker4662 4 жыл бұрын
I first started using Opto-isolators last year, I've never looked back. They are in everything I make. (whether it needs it or not. LOL)
@frankowalker4662
@frankowalker4662 4 жыл бұрын
@Nate Higgers I make quite a few interfaces for my old 8 bit computers, if anything goes wrong with what I've plugged in, at least the computer is protected. I would cost a fortune to repair a 1981 Panasonic JR-100 in the UK.
@albyboy4278
@albyboy4278 3 жыл бұрын
I've known optocouplers practically since I became an electronics hobist twenty years ago 😄 Thanks for the lesson and for showing the circuit inside. It gives a much clearer idea to those who don't know it well.
@shalabyer
@shalabyer 3 жыл бұрын
It's one of the best explaining videos i have ever seen
@CrazyCoupleDIY
@CrazyCoupleDIY Ай бұрын
Very well explained mate, thanks for sharing
@thapsmedia2409
@thapsmedia2409 3 жыл бұрын
This helped me a lot as I was modifying a Samsung 55 inch power board. Thanks Mr.
@AimGobalWorldBibleSchool
@AimGobalWorldBibleSchool 9 ай бұрын
Thanks man...Good Job! that is short and simple...
@Sachinsk03
@Sachinsk03 3 жыл бұрын
Very well explained. Lots of effort taken. Thanks a lot.
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
Thanks for watching!
@cashgarman
@cashgarman 4 жыл бұрын
Excellent video, very clearly described. Will definitely help me with a hack project I'm working on with a friend (also an electronics newbie) on his motorcycle. Thanks! *heads straight to the internet to order a ton of optocouplers*
@thecelebspy
@thecelebspy 3 жыл бұрын
Good work. Thank you. Very informative
@custodiopereira9410
@custodiopereira9410 3 жыл бұрын
Very good explanation I appreciate your work .hats off to you.
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
Thank you so much for the kind words!
@electroumit
@electroumit 3 жыл бұрын
Thank you. Very good and useful work.
@shivnnarasareddy8335
@shivnnarasareddy8335 2 жыл бұрын
Nice explain e Nice explained
@squidben5780
@squidben5780 Жыл бұрын
Excellent video, great explanation!!!
@SimpleElectronics
@SimpleElectronics Жыл бұрын
Thank you!
@deankq4adj125
@deankq4adj125 4 жыл бұрын
Great video my friend. These little devices are very cheap and can save lot’s of dollars when something goes wrong. I am using a Uno with a D1 mini and heavy duty relays to control my 220V pool pumps and this was the first component on my proto-board!
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
5Kv is nothing to shake a fist at! Thanks for the support!
@hycron1234
@hycron1234 3 жыл бұрын
Fantastic video, thank you! 🙂
@youtuup
@youtuup 3 жыл бұрын
I finally got it. Thanx!
@DamianAI9
@DamianAI9 4 жыл бұрын
Such a useful part
@chandrasamsung337
@chandrasamsung337 3 жыл бұрын
great explanation
@iot_enthusiast
@iot_enthusiast 4 жыл бұрын
brilliantly done !
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
Thank you!
@meagrebones
@meagrebones 4 жыл бұрын
Thank you. I barely knew what they were. Now I understand them and what they're for.
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
Sweet! Do you have any cool project ideas?
@GeorgeJFW
@GeorgeJFW 4 жыл бұрын
Fantastic work man 👏
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
Thank you sir!
@divingquokka
@divingquokka 4 жыл бұрын
They are cool little things. I made a bench power supply from an old ATX PSU. I bought this really cool LED-lit momentary switch to turn it on. Turned out however, I needed a latching switch for it. OK, no worries, built a latching power switch with a MOS-FET and a transistor. This worked switching a regular load, but somehow disturbed the PSU. So optocoupler to the rescue! I had some laying around I salvaged from old phone chargers. It is between the latching circuit and the PSU. I don' t know what was bothering the PSU, but it is sufficiently isolated now.
@thodwrhsgabrihlidhs7480
@thodwrhsgabrihlidhs7480 2 жыл бұрын
Very nice video thx for help about information optocoupler
@harshbhadani537
@harshbhadani537 3 жыл бұрын
Very good video ...thanks..
@SamanthaP_123
@SamanthaP_123 Жыл бұрын
Others may have already pointed this out but its counter clockwise pin 1, 2, 3, 4 so 3 and 4 are backwards in sketch. Also D2 on the relay control is a diode to dampen the high voltage spike that the relay coil would have when de-energized, and so it protects on that board for high voltage spiking the optoisolator.
@AnotherMaker
@AnotherMaker 4 жыл бұрын
Very cool video. Thanks for the awesome explaination! Those relay boards on Aliepress don't always come with the optos. It's important to look for that little chip.
@justicerainz
@justicerainz 3 жыл бұрын
What a great video!
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
Thanks! I appreciate the comment!
@ErCanEverything
@ErCanEverything 2 жыл бұрын
This is very good video🙂🤝🤝🤝
@SimpleElectronics
@SimpleElectronics 2 жыл бұрын
Thank you very much!
@dwjw1
@dwjw1 Жыл бұрын
Just a heads up - the Sharp datasheet for the PC817 lists the pin numbers starting at the dot as pin 1, pin 2 next to pin 1 then pin 3 across from pin 2 with pin 4 at the top across from pin 1. Pretty standard on DIP packaging.
@AllOfTheAboveChannel
@AllOfTheAboveChannel 3 жыл бұрын
Thanks man, great tutorial. Its like a great Scott video for beginners😅
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
Wow I'm honored to be in the same sentence as Great Scott!
@Ilikeridin
@Ilikeridin 4 жыл бұрын
Great video. Although I knew how they work, it was still enjoyable to watch the video. Cheers
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
I'm really glad you liked it!
@paulmarian5570
@paulmarian5570 Жыл бұрын
A very good video, i like'd it a lot! Now is not so much fog about mu questions about optocouplers, thank you! By the way, i like very much how you explain everything. This is the first time when a see a video from you, and i simply enjoyed it!
@SimpleElectronics
@SimpleElectronics Жыл бұрын
Thank you, I am happy it was helpful!
@noggin73
@noggin73 4 жыл бұрын
Great video. They are super cheap. I bought 100 PC817s on AliExpress for £1.46 (2.50 CAD). Free shipping too!
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
Yeah I think I either got 50 or 100 for dirt cheap
@Sanctum_sepra
@Sanctum_sepra Жыл бұрын
How did u cut open optocoupler? Please share detailed method
@keithcitizen4855
@keithcitizen4855 2 жыл бұрын
A good device to use on a USB port for remote turn on/off for audio amps etc - midi protocol an interesting use of opto isolation.
@MarinusMakesStuff
@MarinusMakesStuff 4 жыл бұрын
Very nice, two tips: use a higher voltage on the left side to illustrate the use and purpose better. Second, would've been cool to see if you could light up the opto-diode after grinding it open. I know it's a wavelength out eyes probably can't see, but I am pretty sure your phone camera can see the IR spectrum :) Anyway, thanks, I just made my first optocoupler circuit yesterday to separate 24v from a 3D printer board logic input in order to be able to use my inductive probe for automated bed leveling. Nifty little things those PC817's!
@simdeleon8904
@simdeleon8904 3 жыл бұрын
what will happen if the opto isolator is defective? how does it affect the unit or the tv? thanks😁
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
Not sure what you mean by TV and unit, but if it is defective it will not turn on!
@screwi3
@screwi3 4 жыл бұрын
Nice video, and as you apparently hasn't broken it when you decapped it. you could actually show when the ir-diode lights up if you have something that can film it and doesn't filter out IR. Maybe the camera has a night mode or something :)
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
it does not, I tried :(
@screwi3
@screwi3 4 жыл бұрын
@@SimpleElectronics ok too bad :/
@devrajkonaherkanaidu3836
@devrajkonaherkanaidu3836 3 жыл бұрын
Perfect explanation! Any need to observe polarity, please?
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
Yes sir, polarity is important because it's a transistor and a LED - both polarized devices
@Hydroculator
@Hydroculator 2 жыл бұрын
This may be a dumb question. He mentions a few times that the two circuits use different grounds and are air-gapped. However, a single pcb psu is powering both circuits from a single power cord. Doesn't that mean that the two circuits do share a 5v and ground? Does the psu somehow branch the 5v and ground into two isolated 5v and ground sources?
@SimpleElectronics
@SimpleElectronics 2 жыл бұрын
No dumb questions. If the same power supply is used, no air gap can exist unless you have isolated transformers. In normal use, both sides would have independent power supplies.
@StalePhish
@StalePhish Жыл бұрын
To my surprise the PC817 output side seems to be directional. I'm not sure if there's a diode in there or what, but I was surprised that if I swapped my wires coming out, then my device started working!
@SimpleElectronics
@SimpleElectronics Жыл бұрын
Well there is a transistor inside which is more or less directional.
@chrisvandenheuvel1078
@chrisvandenheuvel1078 Жыл бұрын
My question: Cguld an optocoupler (PC 817 on board) used tot switch on te backlight LEDS of my dead TV. There is no voltage on the plus side on the powerboard. The backlights have a serial connection though it has to be a rather high voltage. (low amperage)
@SimpleElectronics
@SimpleElectronics Жыл бұрын
Not directly, but you would use this to trigger a more powerful MOSFET to turn them on - these are used to isolate both sides of the circuit from each other.
@edoha3646
@edoha3646 4 жыл бұрын
Hey mate nice video ! i wonder if you can make a video and explain how you can diy ws2812b strips react to music with an arduino nano or uno r3
@SimpleElectronics
@SimpleElectronics 4 жыл бұрын
You know, I don't think that's too difficult to do, I don't have any ws2812b strips on hand but I will keep it in mind
@edoha3646
@edoha3646 4 жыл бұрын
@@SimpleElectronics thanks man keep it up!
@roysutton3722
@roysutton3722 Жыл бұрын
If your breadboard power supply has a common ground and common 5v then the two circuits are technically not isolated. It would be best to teach electrical isolation with two independent power supplies, say a mains DC adaptor on one side and a battery on the other.
@RRIDDICC
@RRIDDICC 3 жыл бұрын
can u take an infrared photo of that open optocoupler?
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
I have nothing with the IR filter removed
@-sturmfalke-
@-sturmfalke- 3 ай бұрын
Optocouplers were always my favourite electrical component. They are like gods compared to relais. I really wonder how relais even exist still. Probably because they can break?
@SimpleElectronics
@SimpleElectronics 3 ай бұрын
Optocouplers are really only good for a few hundred milliamps, relays can drive a few hundred amps in some cases! Horses for courses
@-sturmfalke-
@-sturmfalke- 3 ай бұрын
Thank you, that is indeed a limiting factor. But can't the optocoupler then switch a thyristor? It would still be seperated from the initial switching circuit, but drives way higher loads. This should still be able to compete with relais very well.
@aniketnshukla
@aniketnshukla 3 жыл бұрын
thanks a ton, I've disliked and have been avoiding electronics and stuff for a long time, as I could never understand or it seemed too complicated, things have definitely changed now.
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
Take it one step at a time! I'm not THAT great at it either, but we're all learning together!
@jp040759
@jp040759 4 жыл бұрын
Voltage does not flow. Current flows. Voltage is pressure or potential difference between 2 points in a circuit..
@Ove_Bjerknes
@Ove_Bjerknes 3 жыл бұрын
Nice video :) but you draw your LED's wrong. The arrows must point to the ground side. :) i think?
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
I skipped around and couldn't find where I made the mistake, can you timestamp it please?
@Ove_Bjerknes
@Ove_Bjerknes 3 жыл бұрын
Simple Electronics look at your drawings. The two arrows between led symbol point towards positive side of led. I think.
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
oh you mean the arrows depicting the light transmission? I didn't think there was a direction to that!
@Ove_Bjerknes
@Ove_Bjerknes 3 жыл бұрын
@@SimpleElectronics I'm not an expert, but all the schematics i have seen have the arrows pointed towards the ground side. But i'm not sure. Keep up the good videos btw :)
@techtopics5782
@techtopics5782 2 ай бұрын
you need to sell T-shirts that say "re-conjigering"
@mattc825
@mattc825 Жыл бұрын
Omg bro. So does it work or not lol
@riatramadani7608
@riatramadani7608 3 жыл бұрын
You just placed number 3 and 4 on the wrong sides.
@SimpleElectronics
@SimpleElectronics 3 жыл бұрын
I see 3 and 4 are reversed, oops!
@riatramadani7608
@riatramadani7608 3 жыл бұрын
It happens to me all the time.
@jeffbeck6501
@jeffbeck6501 2 жыл бұрын
almost forced to subscribe.
How Optocouplers Work and How to Use Them - DC To Daylight
10:56
element14 presents
Рет қаралды 26 М.
Let's build a voltage multiplier!
16:32
Ben Eater
Рет қаралды 2 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 14 МЛН
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
БИМ БАМ БУМ💥
00:14
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 3,6 МЛН
120/240V to logic level optoisolator (with schematic)
20:21
bigclivedotcom
Рет қаралды 168 М.
The Most Important Circuit for our Electrical Future?! (PFC) EB#55
11:26
#1502 PC817 Optocoupler
9:10
IMSAI Guy
Рет қаралды 4,9 М.
How a Mechanical Watch Works | Explained in 5 Minutes
5:01
Red Dead Restoration
Рет қаралды 2 МЛН
FOC Driver + Feedback Magnetic Sensor - Arduino
14:34
Electronoobs
Рет қаралды 31 М.
How INDUCTOR's work & How to make your own
15:55
Schematix
Рет қаралды 863 М.
All About Optocouplers (PC817)  What Is an Optocoupler Optocoupler Circuit
14:20
Top 3 Optocouplers Projects 2023  / PC817
9:19
ZAFER YILDIZ
Рет қаралды 80 М.
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 184 М.
Лазер против камеры смартфона
1:01
Newtonlabs
Рет қаралды 739 М.
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 15 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 28 МЛН