Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to connect optocoupler to PIC MCU?

Status
Not open for further replies.

nikens

Junior Member level 2
Joined
Dec 20, 2009
Messages
23
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
slovenia
Activity points
1,503
I have a 12V signals that I need to get to PIC port.
The thing is that I would like NOT gate. Meaning that when there will be voltage present on foto diode there will be no voltage on PIC input and vice versa.
Will ILQ5 optocoupler be fine. Can I use below schem found in datasheet, and I use 1kohm resistor?
rfg-Captur.jpg
 

Yes....the said circuit should work fine. You may also try commonly used MCT2E opto..Cheers
 

what about this one ACPL-847-W00E? It's four chanel cost half €, compared to ILQ5 that cost 4 times more.
Slightly off topic question. Should I use optocoupler, voltage divider (2 resistors), or zener diode to bring slightly fluctant signal (round 12V) with possible spikes to the controler's input? The application will be in a car electrical system - spikes at cranking.
 

If you need to isolate microcontroller from the car’s ground then an optocoupler is the answer, otherwise you can just use a resistor with a Zener diode .. see this url:
**broken link removed**

Rgds,
IanP
 

If cost is a factor, look at 4N35.
At Mouser, each is $0.21 and $0.13/pc for 1000 pieces. Have a look at it.
Another common one is PC817.
Overhere in Bangladesh, each 4N35 is $0.2 and each PC817 is $0.1
 

what is the vcc of pc817?
if the input is 5v form mcu will the output of pc817 be 5v?
and will i need any connections or resistors?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top