Hello,
I just got my two new relay boards (Keyes funduino 2x relay board and another one with 4 relays).
Just like this one-> http://www.hobbytronics.co.uk/8-channel-relay-board
I've been trying and searching the web for a couple of hours now, but I simply can't get it to work correctly, I guess I simply don't understand how the wiring, especially the power connection, is done right.
The power LED on the relayboard and the status LED for the specific relay light up according to the sketch, but there's no audible "click", which indicates the relay is switching--- since, well... It' isn't switching
I wired it this way:
Relayboard -> Arduino
VCC-> Arduino 5v Pin
GND-> Ardnuino GND Pin
IN1-> Arduino Digital Pin 6
I left the jumper on the relay board ( COM + GND ).
I Powered the Arduino with an external 12V power supply.
The relays are SRD-12VDC-SL-C . So I figured, maybe the board needs another 12V power supply since the arduino only delivers 5V. I'm just not sure how to wire it or how the jumper affects all of it. After so many hours, I am totally lost. Found some diagrams but I can't make sense of it.
A detailed wiring instruction would be a great help... thanks in advance.
Here's one of the sketches I tried:
#define RELAY1 6
#define RELAY2 7
#define RELAY3 8
#define RELAY4 9
void setup()
{
pinMode(RELAY1, OUTPUT);
pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT);
pinMode(RELAY4, OUTPUT);
}
void loop()
{
digitalWrite(RELAY1,LOW);
delay(2000);
digitalWrite(RELAY1,HIGH);
digitalWrite(RELAY2,LOW);
delay(2000);
digitalWrite(RELAY2,HIGH);
digitalWrite(RELAY3,LOW);
delay(2000);
digitalWrite(RELAY3,HIGH);
digitalWrite(RELAY4,LOW);
delay(2000);
digitalWrite(RELAY4,HIGH);
}