Hi,
I'm a novice at designing circuits. The more I read about the optocoupler PC817, linked to a raspberry Pi, the more confused I get.
I would like to connect a 5VDC source via a pushbutton and a resistor to pin1 of the PC817, and pin2 to ground.
Pin4 (collector) is going to another powersource (is 3.3VDC sufficiant), and pin5 (emitter), via another resistor to my GPIO pin.
With all information like voltage dop, forwarding voltage, CTR percentage,... I'm not able to figure out what resistors I have to take to get a 3.3V/0.5mA signal om my Pi.
Can someone explain a few things to me?
Thanks,
Martin
I'm a novice at designing circuits. The more I read about the optocoupler PC817, linked to a raspberry Pi, the more confused I get.
I would like to connect a 5VDC source via a pushbutton and a resistor to pin1 of the PC817, and pin2 to ground.
Pin4 (collector) is going to another powersource (is 3.3VDC sufficiant), and pin5 (emitter), via another resistor to my GPIO pin.
With all information like voltage dop, forwarding voltage, CTR percentage,... I'm not able to figure out what resistors I have to take to get a 3.3V/0.5mA signal om my Pi.
Can someone explain a few things to me?
Thanks,
Martin