Pages: [1]   Go Down
Author Topic: Directly Using Relays  (Read 483 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've got a couple small relays connected directly to my Arduino. I need more relays with similar specs. Could someone point me to relays similar to this one http://www.radioshack.com/product/index.jsp?productId=2062478 on Digi-Key?

Thanks!
Logged

0
Offline Offline
God Member
*****
Karma: 2
Posts: 854
Arduino rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeah...don't connect an electromechanical relay directly to an Arduino pin.  
Logged

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16565
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yea, here you go:

http://www.allelectronics.com/make-a-store/item/RLY-515/5V-REED-RELAY/1.html

This one would only require 10ma of current draw from the Arduino I/O pin, about the same or less then a standard LED. It's still a good practice to wire a reversed biased diode across the relay's coil terminals. As long as you stay within max coil current specs and use a protection diode it's perfectly fine to drive a relay directly from a Arduino I/O pin.

Bye the way I couldn't find the coil current requirements of the radio shack relay you listed? You must keep the current draw from a Arduino I/O pn to less then 40ma max and less would be better.

Good luck

Lefty
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the link!

Is it safer/better to use a SSR in a situation like this?
Logged

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16565
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You didn't mentioned what you are switching (voltage type, level and current ) with the relay contacts so can't say if one or the other would be better. From the coil Vs SSR input there is no big difference as far as the Arduino is concerned.

Lefty
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 6
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've got a little point and shoot camera with a bunch of the buttons wired to relays so that I can "push" the buttons with the Arduino.
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6381
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
From the coil Vs SSR input there is no big difference as far as the Arduino is concerned.
Huh?  Coils have dangerous (to semiconductors) back-emf issues.  SS relays don't.

(On the other hand, many solid state relays are designed to switch AC only.)
Logged

Left Coast, CA (USA)
Online Online
Brattain Member
*****
Karma: 331
Posts: 16565
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Huh?  Coils have dangerous (to semiconductors) back-emf issues.  SS relays don't.

(On the other hand, many solid state relays are designed to switch AC only.)

With installation of a back EMF diode across the coil and the built in clamping protection diodes in a AVR chip I haven't ever had a problem driving low current relays, have you?

Lefty
« Last Edit: April 10, 2009, 10:19:46 pm by retrolefty » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can switch "push the button" with a transistor smiley

http://todbot.com/blog/bionicarduino/ <- class 3 page 11 about transistors as switches. Great stuff!
« Last Edit: April 11, 2009, 12:52:51 am by transam » Logged

Pages: [1]   Go Up
Jump to: