Hello guys,
I am designing a uC based device and I want to detect the presence of 240VAC.
I am thinking to use the PS2505 optocoupler, I share with you the datasheet.
I would like to know if I am reading the datasheet correctly
It says forward current is 50mA, and in test says 10mA, I guess any value in between will be good, please let me know if I am wrong.
Assuming a peak current of 30mA, with 240VAC input (aprox 340V peak) we talk a resistor of 11.5kohm for the input.
At the output, it says collector current of 50mA, VCE 0.3V, so I am thinking to limit collector current with a 100ohm resistor.
The uC works at 3.3V, so I want to make the voltage divider with a 200ohm resistor, so output will be 3.3V, and add a 47uC capacitor to filter the ripple and warrantee the high logic output at zero crossing.
I share the schematic I am thinking to use

Does my logic make sense and will this work? can someone share any experience with this?
Thank you in advance.
I am designing a uC based device and I want to detect the presence of 240VAC.
I am thinking to use the PS2505 optocoupler, I share with you the datasheet.
I would like to know if I am reading the datasheet correctly
It says forward current is 50mA, and in test says 10mA, I guess any value in between will be good, please let me know if I am wrong.
Assuming a peak current of 30mA, with 240VAC input (aprox 340V peak) we talk a resistor of 11.5kohm for the input.
At the output, it says collector current of 50mA, VCE 0.3V, so I am thinking to limit collector current with a 100ohm resistor.
The uC works at 3.3V, so I want to make the voltage divider with a 200ohm resistor, so output will be 3.3V, and add a 47uC capacitor to filter the ripple and warrantee the high logic output at zero crossing.
I share the schematic I am thinking to use

Does my logic make sense and will this work? can someone share any experience with this?
Thank you in advance.
Attachments
-
348.8 KB Views: 9



