Pages: [1]   Go Down
Author Topic: [help!] advice on an optocoupler array  (Read 1161 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i am building a switch board with twelve 4n25 optocouplers, to be controlled by my arduino.

i intend to connect each digital pin of my duemilanove to a 220 OHM resistor and then into the led anode. cathode goes straight to ground.

i am not sure about the amperage of the couplers, but here is the datasheet :: http://www.vishay.com/docs/83725/4n25.pdf

so, my question is: is it safe to connect all these couplers to the digital pins at the same time? will it fry my chip?

thanks!
Logged

-------http://ulfurhansson.com/

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 95
Posts: 4084
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Most of the test conditions in the datasheet specify IF = 10mA, and typical VF is 1.3V, so Mr. Ohm says R = V/I = (5 - 1.3) / 0.01 = 370Ω. So 220Ω may be a bit smaller than needed, I might try 330Ω, and then measure the current (or the voltage across the resistor, and calculate the current) and of course also see how it works.

Maximum current into an ATmega328 is 200mA, so twelve 4N25s at 10mA each should be around 120mA, but of course any other loads will have to be added to that.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

0
Offline Offline
Newbie
*
Karma: 0
Posts: 36
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi, thanks for the reply!

so using the 220 ohm resistors i would be at risk of frying the arduino? or perhaps only if ALL optocouplers are triggered at once?

and -how do you mean, into the atmega?

Logged

-------http://ulfurhansson.com/

Pages: [1]   Go Up
Jump to: