Go Down

Topic: Can an optoisolator do this or do I need a relay? (Read 2 times) previous topic - next topic

Grumpy_Mike

Well 175R gives you a current of 28mA so that should be OK, however you do need a diode across it or you will damage the output pin with revers voltage.

Quote
Are you thinking that the inrush current may be damaging to the Arduino


Inrush current concerns only really applies to capacitors and motors. A relay is an inductor and when you first apply apply a voltage to it there is a delay as the current increases. That is the inrush current starts off at zero and ramps up to the full value given by the resistance of the coil.

You might think a motor is an inductor but in that case the inrush current ramps up to the stall current, before the motor starts turning. Once going a DC motors take less current due to the constant change in direction of current in the rotor.

magagna

#11
Jan 06, 2010, 05:36 pm Last Edit: Jan 06, 2010, 05:39 pm by cmagagna Reason: 1
Hi Mike and Ben,

I found a 5v relay (Hanlin Breed HE3621A0510), it has a built in diode and if I did the math right it draws 10 ma (5v and 500 ohms).

I'm not sure if it's appropriate to include vendor links on this forum or not, but I bought it from Jameco:

http://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&productId=1860088&catalogId=10001&freeText=1860088&app.products.maxperpage=15&storeId=10001&search_type=jamecoall&ddkey=http:StoreCatalogDrillDownView

Chris
http://en.wiktionary.org/wiki/magagna <-- My last name.  Pretty apt.

Grumpy_Mike

Yes that relay looks OK for direct drive from an arduino. Things to note:-
1) You do order the one whose order code ends in 10 or 50 as that has the diode option.
2) This means the relay coil must be wired the right way round. If it is the wrong way round you will effectively short the output through the protection diode.
3) The contacts can only handle a small power 10W.

It is OK to post any relevant link on this forum.

magagna

http://en.wiktionary.org/wiki/magagna <-- My last name.  Pretty apt.

Go Up