+ Post New Thread
Results 1 to 10 of 10
  1. #1
    Full Member level 4
    Points: 1,282, Level: 8

    Join Date
    Sep 2016
    Posts
    192
    Helped
    1 / 1
    Points
    1,282
    Level
    8

    Optocoupler with LIVE wire

    Click image for larger version. 

Name:	PC814.PNG 
Views:	7 
Size:	7.7 KB 
ID:	149485

    The input will vary from 150VAC to 280VAC.If the supply is available means the LED have to glow....
    I'm new to this circuit.So I don't known in-depth.I tried with hardware,if the voltage is low means the LED not glowing,so I changed the resistance value to low(56K). If the resistor value is low means when high voltage across the IC become faulty.
    If the resistance value is high means,at low voltage the LED not glowing...
    How to solve this issue and to make the LED glow in specified voltage range.

    •   AltAdvertisment

        
       

  2. #2
    Super Moderator
    Points: 66,750, Level: 63
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    13,627
    Helped
    3118 / 3118
    Points
    66,750
    Level
    63

    Re: Optocoupler with LIVE wire

    Hi,

    electronics works with voltage and current. you canīt calculate with "glow" or "faulty".
    This is why there are datasheets. full of usueful values.

    You need to specify at which input voltage RMS you want the LED safely to be OFF.
    You need to specify at which input voltage RMS you want the LED safely to be ON.
    (inbetween there is a grey area, LED might be OFF, dimmed, or ON)

    *********
    Input side resistors. Max current = min resistor value:
    Optocoupler datasheets tells the max. input (LED) recommended operating current..
    Input voltage is up to 280V RMS, this means 280V x 1.414 peak voltage.

    Now itīs just ohmīs law: R = V / I --> R_L_min = peak_input_voltage / max_input_current.

    Power dissipation of resistor: P = V^2 / R = 280V^2 / R_L
    ****
    Go on this way.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  3. #3
    Full Member level 4
    Points: 1,282, Level: 8

    Join Date
    Sep 2016
    Posts
    192
    Helped
    1 / 1
    Points
    1,282
    Level
    8

    Re: Optocoupler with LIVE wire

    Quote Originally Posted by KlausST View Post
    Hi,

    electronics works with voltage and current. you canīt calculate with "glow" or "faulty".
    This is why there are datasheets. full of usueful values.

    You need to specify at which input voltage RMS you want the LED safely to be OFF.
    You need to specify at which input voltage RMS you want the LED safely to be ON.
    (inbetween there is a grey area, LED might be OFF, dimmed, or ON)

    *********
    Input side resistors. Max current = min resistor value:
    Optocoupler datasheets tells the max. input (LED) recommended operating current..
    Input voltage is up to 280V RMS, this means 280V x 1.414 peak voltage.

    Now itīs just ohmīs law: R = V / I --> R_L_min = peak_input_voltage / max_input_current.

    Power dissipation of resistor: P = V^2 / R = 280V^2 / R_L
    ****
    Go on this way.

    Klaus
    Click image for larger version. 

Name:	Image_2png.png 
Views:	5 
Size:	6.9 KB 
ID:	149967

    I removed the LED and it connected to controller for sensing purpose.And changed the resistor value to 5.5K 2WATTS.Now also their is no response from the optocoupler.The resistor is used as an pullup resistor for the controller.



  4. #4
    Super Moderator
    Points: 66,750, Level: 63
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    13,627
    Helped
    3118 / 3118
    Points
    66,750
    Level
    63

    Re: Optocoupler with LIVE wire

    Hi,

    sadly still no useful specifications.

    Your calculation of the resistor is wrong.
    You calculated 5.5kOhms.

    this gives 280V/5500Ohms = 50.1mA

    According datasheet 50mA is the absolute maximum limit. Once you cross this limit, just for a short moment - you risk to kill the device.
    50mA is NOT the usual operating current.
    Now you should know that 280V is the RMS voltage and thus the maximum voltage is 280V x 1.414 = 396V
    at 5.5kOhms this gives a maximum current of about 72mA --> expect the PC814 to be killed sooner or later.

    The dissipated of the resistor power is in the range of 14W --> thus the 2W resistor will be killed, too.

    This is very basic electronics stuff. You really should know this .. especially when dealing with dangerous high voltage.
    I expect there is even more lack of technical knowledge... thus you risk your and otherīs lives.

    Please learn how to calculate and deal with voltage, current, resistance, power, AC waveform.. and how to treat dangerous high voltage (circuits)...

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisment

        
       

  5. #5
    Full Member level 4
    Points: 1,282, Level: 8

    Join Date
    Sep 2016
    Posts
    192
    Helped
    1 / 1
    Points
    1,282
    Level
    8

    Re: Optocoupler with LIVE wire

    Quote Originally Posted by KlausST View Post
    Hi,

    sadly still no useful specifications.

    Your calculation of the resistor is wrong.
    You calculated 5.5kOhms.

    this gives 280V/5500Ohms = 50.1mA

    According datasheet 50mA is the absolute maximum limit. Once you cross this limit, just for a short moment - you risk to kill the device.
    50mA is NOT the usual operating current.
    Now you should know that 280V is the RMS voltage and thus the maximum voltage is 280V x 1.414 = 396V
    at 5.5kOhms this gives a maximum current of about 72mA --> expect the PC814 to be killed sooner or later.

    The dissipated of the resistor power is in the range of 14W --> thus the 2W resistor will be killed, too.

    This is very basic electronics stuff. You really should know this .. especially when dealing with dangerous high voltage.
    I expect there is even more lack of technical knowledge... thus you risk your and otherīs lives.

    Please learn how to calculate and deal with voltage, current, resistance, power, AC waveform.. and how to treat dangerous high voltage (circuits)...

    Klaus
    What specification I have to give..?
    About design or something else..?



  6. #6
    Super Moderator
    Points: 66,750, Level: 63
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    13,627
    Helped
    3118 / 3118
    Points
    66,750
    Level
    63

    Re: Optocoupler with LIVE wire

    Hi,

    you didnīt read post#2?

    Klaus

    added:
    did you try an internet search: "how to calculate optocoupler circuits"?
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisment

        
       

  7. #7
    Full Member level 4
    Points: 1,282, Level: 8

    Join Date
    Sep 2016
    Posts
    192
    Helped
    1 / 1
    Points
    1,282
    Level
    8

    Re: Optocoupler with LIVE wire

    Click image for larger version. 

Name:	Image_3.png 
Views:	3 
Size:	17.3 KB 
ID:	149968Click image for larger version. 

Name:	Spec_1.png 
Views:	2 
Size:	75.0 KB 
ID:	149970Click image for larger version. 

Name:	Spec_1.png 
Views:	3 
Size:	84.0 KB 
ID:	149969


    This is my circuit.When the Input signal is available means the LED have to glow...
    Normally input supply will be 230VAC.But the voltage may vary from the 160VAC to 280VAC(Maximum Voltage).
    The controller have to sense the available of input voltage,and have to glow the LED,if the voltage is varying also means.

    This is my requirement.


    1 members found this post helpful.

  8. #8
    Full Member level 4
    Points: 1,282, Level: 8

    Join Date
    Sep 2016
    Posts
    192
    Helped
    1 / 1
    Points
    1,282
    Level
    8

    Re: Optocoupler with LIVE wire

    Calculated the resistor value for 5 different voltage range and averaged them.The final value is 11K...
    Have to provide resistor on Negative input side also..?



  9. #9
    Super Moderator
    Points: 248,954, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    43,324
    Helped
    13170 / 13170
    Points
    248,954
    Level
    100

    Re: Optocoupler with LIVE wire

    2x 5.5k series resistor seems to keep the maximum input current ratings, but due to wide PC814 CTR range of 20 to 300%, there's no way to get a useful input voltage threshold (if required). You have apparently calculated the resistors to work with minimal CTR of 20%, the backside is that an opto coupler with 300 % CTR reduces the input threshold to below 15 VAC.

    Not sure about your specification in this regard.



  10. #10
    Advanced Member level 5
    Points: 30,435, Level: 42
    Achievements:
    7 years registered

    Join Date
    Sep 2008
    Location
    cambridge
    Posts
    6,363
    Helped
    467 / 467
    Points
    30,435
    Level
    42

    Re: Optocoupler with LIVE wire

    you could go for say 3mA opto LED current at mains peak (the minimum mains peak of the minimum mains that you want to bother detecting)
    So mains peak at 160 vac is 226V.
    So do 0.003 = 226/R

    That gives you R.

    Then be sure you size the opto transistor side pullup resistor to sucessfully get pulled down low enough when this 3mA flows...so you will have to see what is the min CTR at this 3mA current level.

    Or are you doing a mains zero cross detector...if so, then you will have to do a bit of timing between highs and lows to get the zero cross.



--[[ ]]--