Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:08 28 Jun 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Opto-coupler for DIs

Author Message
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1324
Posted: 07:18am 24 Jun 2025
Copy link to clipboard 
Print this post

I am using the PC817 for digital inputs. Would an If ~5mA suffice? The datasheet warns about <1mA and I want to be safe.

PC817.pdf
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2566
Posted: 08:21am 24 Jun 2025
Copy link to clipboard 
Print this post

  Quote   Current transfer ratio (CTR : MIN. 50% at IF=5 mA, VCE=5V)
So it appears the output load can be up to 2.5mA for a drive of 5mA.
If the supply on the output side is 3.3v and the load resistor is 3.3kΩ just 1mA can flow so it should be ok.

Edit.
Fig.6 Current Transfer Ratio vs. Forward Current shows best CTR @ If = 2.5mA.
Edited 2025-06-24 18:29 by phil99
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1324
Posted: 08:50am 24 Jun 2025
Copy link to clipboard 
Print this post

Cheers Phil. 2.5mA feels good  
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5016
Posted: 10:23am 24 Jun 2025
Copy link to clipboard 
Print this post

Phenix,

Speed on these PC817 is not overwhelming.
For more speed use digital isolators, or digital optocouplers.

Volhout
PicomiteVGA PETSCII ROBOTS
 
PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1324
Posted: 10:54am 24 Jun 2025
Copy link to clipboard 
Print this post

Cheers, Harm.

These are only 24V signals from proximity sensors. I software debounce anyway so speed isn't an issue.  
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025