Pages: [1]   Go Down
Author Topic: Chosing the right resistor on an optocoupler  (Read 3080 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I am planning on using the Sharp PC817 optocoupler:
http://www.datasheetcatalog.org/datasheet/Sharp/mXqyrss.pdf

What resistance should I use in my input (if any). I see in the datasheet of the PC817 a forward current of 50 mA and the Aruidno gives 5V, so should I simply use:
5V/0.05mA = 100 ohm?

thanks!

XBerg
Logged

Leighton Buzzard, UK
Offline Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

there is a drop across the diode of about 0.6 - 0.7 volts
so you could use 4.3v/0.05A = 86 ohm
then choose a resistor close to that
but 100 ohms would deliver 43mA which is close
after all you just want to ensure the diode is "glowing brightly"

looking at the data sheet
50mA is absolute maximum
typical seems to be 20 mA with a forward voltage of 1.2volts
so (5-1.2)/0.02 gives 190 ohms
180 or 220 would do nicely!
« Last Edit: August 10, 2011, 04:01:27 am by mmcp42 » Logged

there are only 10 types of people
them that understands binary
and them that doesn't

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks! Another few datasheets and I should be able to fly on my own smiley
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 289
Posts: 25697
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
a forward current of 50 mA and the Aruidno gives 5V, so should I simply use:
5V/0.05mA = 100 ohm?
Yes, but expect to shorten the life of your Arduino - don't forget the per-pin absolute maximum 40mA limit.

Edit: And having read the datasheet of the optoisolator, expect that running that at 50mA would shorten its life too - that is the absolute maximum rating too.
« Last Edit: August 10, 2011, 05:13:06 am by AWOL » Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

For people getting started, an introduction to choosing resistors for LEDs....

http://www.arunet.co.uk/tkboyd/ele1led.htm
Logged

Pages: [1]   Go Up
Jump to: