Pages: [1]   Go Down
Author Topic: v23092 relay on every pin  (Read 534 times)
0 Members and 1 Guest are viewing this topic.
berlin
Offline Offline
Full Member
***
Karma: 0
Posts: 154
fubbi.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I am currently overhauling an older project.

I have 64 v23092 relays http://pdf.dzsc.com/20090603/200903151022535524.pdf
each has a diode and a resistor on my board, but no transistor.


Now, what I want to do is tap in at the resistor with my new fancy mega screwshields to have each relay on a separate pin (2xMega with each 32 relays)


I am not good at reading data sheets and I wonder:

a. what happens if I have 32 of theses relays written to HIGH at the same time, will the Mega choke/burn/evaporate/create a black hole?
b. can I do this without a transistor, I really want to avoid having another board with 2x32 transistors. (I am well aware I SHOULD have one per channel).

thanks

fubbi


Logged

UK
Offline Offline
Faraday Member
**
Karma: 99
Posts: 4153
Where is your SSCCE?!?!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you even try and drive just one of these direct from the Arduino you will probably break it.

You *NEED* a transistor per relay.  Or, to save space, something like the ULN2803 which can do 8 relays at once.
Logged

Get 10% off all 4D Systems TFT screens this month: use discount code MAJENKO10

Canada
Offline Offline
God Member
*****
Karma: 7
Posts: 602
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Just a question, are you using these relays to drive something other than the LEDs we see in that picture?


Yeah, you must be.  So,  no.  Not a chance.  You will exceed the current capability of the entire MCU with just 3 or 4 of these on at a time.  Like Majenko said, you will need transistors to drive them. You will also need a separate power supply for them capable of delivering about 2 amps.
Logged

Facts just don't care if you ignore them.

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 46
Posts: 2883
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You ALSO NEED to learn how to read a data sheet. without doing so is like a journey without a plan, data sheets are 'local information"...

Doc
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

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

The relevant piece of the Relay data sheet is under "Coil data" where is says the nominal current for the 5V relay is 33.8mA.
And on the ATmega2560 datasheet under "absolute maximum ratings" where is says the max DC Current Vcc and Gnd Pins is 200mA (if it's going into or out of the IO pins, it pretty much has to be coming out of or into the power pins.)

So you might get away with driving 6 relays at once.  Maybe less if your driving the relay and the LED in parallel; I'm not sure where a resistor fits into any relay driving scheme relevant to an AVR microcontroller...

(that array of relays is pretty, though!)
Logged

Pages: [1]   Go Up
Jump to: