Pages: [1]   Go Down
Author Topic: LED's & Relay Boards  (Read 2390 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Old School Programmer - ARGH ( COBOL ) - Yes I still pump blood, lol.

New to arduino & electronics and don't want to burn anything up...

HardWare:
Arduino: Mega 2560 - RadioShack
Relay: 12V 8 Channel Relay Module Expansion Board For Arduino, PIC, AVR, DSP, ARM, SCM

Relay Link: http://www.ebay.com/itm/12V-8-Channel-Relay-Module-Expansion-Board-For-Arduino-PIC-AVR-DSP-ARM-SCM-/221028171239?pt=LH_DefaultDomain_0&hash=item33764e3de7


Q: Can I add an LED between the arduino pin and the input pin on the relay board?

    IF SO: Do I need to add a resistor?

Q: Do TTL relay boards consume current from the arduino as do the LED's?

     IF SO:   How do I determine the amount of current required by each relay?

     AND:    How do I find the maximum available current for (Each Pin) and (Entire Board)

I would like to run 6 of those 8 channel boards with my arduino and would like status LED's


Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8967
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Q: Can I add an LED between the arduino pin and the input pin on the relay board?

    IF SO: Do I need to add a resistor?

Not 'between' so much as 'along side'.  You do need a resistor to limit the current going through the LED.  Pick your LED's and use the highest resistance that gives you adequate brightness.  Something around 440 ohms should work.  Don't go below 100 ohms.  Connect the Anode (+) side of the LED to the Arduino output pin.  Connect the Cathode (-) side of the LED to the resistor.  Connect the other side of the resistor to Ground.  Since the LED will typically need 20 mA or less there will be no problem connecting the relay drivers (5 mA) to the same output pins.  The Arduino pins can handle 25 mA easily.
« Last Edit: October 10, 2012, 11:54:51 pm by johnwasser » Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

France
Offline Offline
Edison Member
*
Karma: 38
Posts: 1012
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, I'm not sure because I'm also beginner, but I did some research because I have a similar project involving a 16 relays board and an arduino mega:

The relay board must be powered by external 12V power supply

On that relay board are opto isolators, one for each relay, it's basically a small LED, so the Arduino must provide a small current for just lighting those LEDs, about 5mA for each opto isolator. That's all the Arduino have to do, lighting a LED to turn ON a relay smiley

You want 48 relays: do you have enough pins, as each relay will use one pin? If you don't, there is still a solution which is, using shift registers (search google "74HC595 arduino")

And here you can find useful infos about relays board: http://arduino-info.wikispaces.com/ArduinoPower

Good luck smiley
Logged

Offline Offline
Edison Member
*
Karma: 36
Posts: 1340
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Old School Programmer - ARGH ( COBOL ) - Yes I still pump blood, lol.

New to arduino & electronics and don't want to burn anything up...
smiley-grin I want to write a program, but I don't want to create any bugs... smiley-grin

Hardware errors aren't as common as software errors, which is an indication of how difficult programming is...    But sooner or later, you are going to hook-up something wrong, or backwards, and something bad is going to happen.  I'm an old-time hardware guy and it still happens to me once in awhile.

Be careful, and hopefully you won't burn-out your Arduino or your relay board.    When it comes to LEDs, resistors, capacitors, and cheap IC's or other cheap parts...  Buy extras! smiley-wink 
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you so much for the responses.

I thought running a led in parallel with the relay board would work, thanks

I look forward to being a member of this community smiley
Logged

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

I have been using a relay card from another manufacturer with almost the exact same design as that for the past month (except my input is active low), and I have not had any problems with the GPIO 5V output driving the coils or drawing and/or feeding anything bad back into the pi, although I don't dare turn all 8 relays at the same time (480ma through all the coils). I did discover on mine that between the active low problem and the fact that the 3.3V output of the GPIO pins was not enough to drive the optoisolator, I needed to use transistors to convert the 3.3V input to 5V and everything works fine now.
Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In further research of my relay options, I came across these relay boards available in 2, 4, 8, 16 relay's.

http://www.ebay.com/itm/New-5V-2-Channel-Relay-Module-Shield-for-Arduino-ARM-PIC-AVR-DSP-Electronic-10A-/120973608102?pt=LH_DefaultDomain_0&hash=item1c2a96c4a6

Since I use a converted ATX power supply for my projects 12V requirements, It seems I have a spare 36 Amps on the 5V rail smiley

With the above relay board, do I remove the jumper between JD-VCC ^ VCC on the three pin header and connect my atx supply to the VCC & GND pins on the 3 Pin header?

Then Connect the 4-pin header GND to arduino GND and IN1, IN2 TO D5, D6 and leave the VCC Pin empty?

The current older boards I have use 12V coils on relay and only have TTL pins for the connection, ie GND + 8 TTL, The 12V is on screw terminals.



« Last Edit: October 12, 2012, 12:10:26 pm by NobleNoob » Logged

Pages: [1]   Go Up
Jump to: