Hello,
I have a question about how to connect optocoupler.
I am bringing 12V to PIN 1 on optocoupler. PIN 2 and pin 3 are connected to the ground and PIN4 is connected to pull up (5V) and to the arduino GPIO.
My question is how big of a resistor (in series with pin 1) do I need to not destroy the LED inside the optocoupler.
Optocoupler: QTM357 QT-Brightek
I cant seem to understand nor find the max current allowed through the diode. Could someone help me out ?
Currently I am using 1.2kOhm resistor but I dont think it's enough since I destroyed the led inside of opto.
Please choose the forum category carefully when you post ➜ Could you take a few moments to Learn How To Use The Forum. It will help you get the best out of the forum in the future.
Thank you.
PS/ I moved your post out of the Uncategorized category
Typical Vf is 1.24V so I need voltage drop of almost 11V. With my calculations (If=10mA datasheet) that would mean I need a resistor of about 1.1 kOhm so I used 1.2kOhm (just in case), Does that make sense?
It's not the voltage you need to limit but the current.
The less you need, the better. Arduino pins have a total max source + sink capacity of 200mA. You don't really want to use half of that.