Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PIC input using PHOTOTRANSISTOR

Status
Not open for further replies.

aljamri

Member
Hi,
I've got a some questions about PIC input using PHOTOTRANSISTOR OPTOCOUPLER of type CNY-17 Data sheet file address:

http://www.tranzistoare.ro/datasheets/270/101963_DS.pdf'

In the attached circuit, how much is the required input voltage ( Pin 1 & 2 ) to the transistor to conduct the required voltage to make RTCC reads logic 1
 

Attachments

  • 101963_DS.pdf
    232 KB · Views: 747
Last edited:
Sorry

:eek:

Sorry this is the circuit
 

Attachments

  • CNY-17.GIF
    CNY-17.GIF
    6.3 KB · Views: 934
Last edited:
hi,

This is for +5V supply to Rs.
 
Last edited:
Thanks for replys,

if my Supply voltage is 2V ac as i measured it ( I am not sure i have to check again if it is ac or dc ), so:

- is that enough ?,
- is (ac dc) makes any differents

Note:
I'll be able to measure it again and check for ac ro dc.

thanks
 
blueroomelectronics said:
It's in the datasheet, typical 1.35V
Don't forget to add a current limiting resistor or you can damage the LED.

But it is written as Emitter Input Forwarding Voltage, and my voltage will be applied across the photodiod.
 
aljamri said:
Thanks for replys,

if my Supply voltage is 2V ac as i measured it ( I am not sure i have to check again if it is ac or dc ), so:

- is that enough ?,
- is (ac dc) makes any differents

Note:
I'll be able to measure it again and check for ac ro dc.

thanks

Hi,
>>> But it is written as Emitter Input Forwarding Voltage, and my voltage will be applied across the photodiod.

The opto emitter is a LED device, which when driven by the correct voltage/current it emits 'light'.
Its the photo detector diode [or transistor] in the opto which detects and amplifies the 'light', then it goes to the PIC input.

A opto emitter will work from a range of 'dc' voltages, BUT it must be connected to the voltage via a resistor, else it will be damaged.

Use the simple formula to calculate the value of the series resistor.
If the emitter requires say 30mA and it has a forward voltage drop of 1.2V at this current and its connected to a +2Vdc supply, then...........

Series Resistor = [2-1.2]/.03 = 27R

IF its 2Vac then check the datasheet to see if the emitter diode can accept a 2Vac reverse voltage.

Is this clear.?
 
Last edited:
For AC operation, it is good practice to connect a reverse polarity diode across the emitter LED, to take care of any possibility of voltage spikes coming from the AC mains.
 
yes

ericgibbs said:
Use the simple formula to calculate the value of the series resistor.
If the emitter requires say 30mA and it has a forward voltage drop of 1.2V at this current and its connected to a +2Vdc supply, then...........
Series Resistor = [2-1.2]/.03 = 27R
i measured across the diode ( pin 1 & 2 ) and got 0.8 volt.

ericgibbs said:
IF its 2Vac then check the datasheet to see if the emitter diode can accept a 2Vac reverse voltage.

Is this clear.?

yes its clear and by the way, the input voltage is ac
 
Last edited:
aljamri said:
i measured across the diode ( pin 1 & 2 ) and got 0.8 volt.
yes its clear and by the way, the input voltage is ac

hi,
If its 2Vac and you have a 27R resistor is series with diode emitter and the emitter spec sheet says
the nominal forward voltage drop is 1.2V, you should have 1.2V across the emitter.

You must take into consideration that the emitter is only passing current for the positive half cycle of the 'ac' input
and blocking on negative half cycle.

How did you measure the 0.8V, was the meter on 'dc' or 'ac',
its best to use an oscilloscope this will give a 'true' indication of whats across the emitter diode.

I hope you didn't connect the emitter without a series resistor, if you did, the emitter may be damaged.

Do you get any pulses out of the detector output?
 
On Sunday

ericgibbs said:
How did you measure the 0.8V, was the meter on 'dc' or 'ac', .
meter was on ac (as i remember)

ericgibbs said:
its best to use an oscilloscope this will give a 'true' indication of whats across the emitter diode.

i'll try to use our old oscilloscope, i hope it is still working :D

ericgibbs said:
I hope you didn't connect the emitter without a series resistor, if you did, the emitter may be damaged.

no

ericgibbs said:
Do you get any pulses out of the detector output?

my project in my office/lab and i'll not be able to go there until next Sunday, i'll write all your comments and try to take notes. i'll let you know about any progress.

Thanks :)
 
hi,

>> meter was on ac (as i remember)

Across the emitter diode the waveform will not be sinusoidal therefore you will not get a true 'ac' voltage reading..

It will swing below ground by 2Vrms and above ground by 1.2Vdc.
 
Status
Not open for further replies.

Latest threads

Back
Top