Go Down

Topic: Chosing the right resistor on an optocoupler (Read 7634 times) previous topic - next topic



I am planning on using the Sharp PC817 optocoupler:

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?




Aug 10, 2011, 10:57 am Last Edit: Aug 10, 2011, 11:01 am by mmcp42 Reason: 1
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!
there are only 10 types of people
them that understands binary
and them that doesn't


Thanks! Another few datasheets and I should be able to fly on my own :)


Aug 10, 2011, 12:11 pm Last Edit: Aug 10, 2011, 12:13 pm by AWOL Reason: 1
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.
"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.


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


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131