ArduinoGeneral

Relay Shield for Arduino V2.1 conecting problem

userHead deustaquio 2015-10-22 03:21:22 21309 Views15 Replies
Hi,

I have recently bought a Relay Shield for Arduino V2.1 and cant actuate the 4 relays. For a test, I uploaded de sample code to the arduino, disconected de USB cable and conected the 9VDC power supply. Nor the LED nor the relays work. It seems to be a power suply problem. Whats missing in my steps?

Thanks
2015-10-28 03:17:59 Hi, leff, I only have protroboards for testing and have tested with a similar type as this shield and works fine (with the code in the wiki and one made by me). I cant understand, with USB or with USB+9VDC its all working correctly but in only 9VDC its all dead and don't make anything. userHeadPic deustaquio
2015-10-28 03:17:59 Hi, leff, I only have protroboards for testing and have tested with a similar type as this shield and works fine (with the code in the wiki and one made by me). I cant understand, with USB or with USB+9VDC its all working correctly but in only 9VDC its all dead and don't make anything. userHeadPic deustaquio
2015-10-28 03:01:54 Hi,

Wierd, as long as the shield could work properly when you use both the 9V external power supply and usb cable connected, I think the Relay shield is ok, because it don't need any communication with the arduino card below. Just Digital IO pin 2.7,8,10 connected with arduino as well as the power pins.

Do you have other modules could be applied on your arduino card? Can they work properly?
userHeadPic Leff
2015-10-28 03:01:54 Hi,

Wierd, as long as the shield could work properly when you use both the 9V external power supply and usb cable connected, I think the Relay shield is ok, because it don't need any communication with the arduino card below. Just Digital IO pin 2.7,8,10 connected with arduino as well as the power pins.

Do you have other modules could be applied on your arduino card? Can they work properly?
userHeadPic Leff
2015-10-28 01:36:28 Hi,

I have tested again with the first skech and it's only working with usb power supply. With 9VDC it's just do nothing. I have measured the 9VDC power with a multimeter and its sending the correct power. Is it a defect board?
userHeadPic deustaquio
2015-10-28 01:36:28 Hi,

I have tested again with the first skech and it's only working with usb power supply. With 9VDC it's just do nothing. I have measured the 9VDC power with a multimeter and its sending the correct power. Is it a defect board?
userHeadPic deustaquio
2015-10-27 18:56:36 I just tested it without usb cable, it's working all right with the first sketch.

byte relayPin[4] = {2,7,8,10};
  
//D2 -> RELAY1
//D7 -> RELAY2
//D8 -> RELAY3
//D10 -> RELAY4
  
void setup(){
  for(int i = 0; i < 4; i++)  pinMode(relayPin[i],OUTPUT);
}
  
// an sample to switch the 4 relays
  
void loop(){
    
  int i;
  for(i = 0; i < 4; i++)  digitalWrite(relayPin[i],HIGH);
  delay(1000);
  for(i = 0; i < 4; i++)  digitalWrite(relayPin[i],LOW);
  delay(1000);
   
}
userHeadPic Leff
2015-10-27 18:56:36 I just tested it without usb cable, it's working all right with the first sketch.

byte relayPin[4] = {2,7,8,10};
  
//D2 -> RELAY1
//D7 -> RELAY2
//D8 -> RELAY3
//D10 -> RELAY4
  
void setup(){
  for(int i = 0; i < 4; i++)  pinMode(relayPin[i],OUTPUT);
}
  
// an sample to switch the 4 relays
  
void loop(){
    
  int i;
  for(i = 0; i < 4; i++)  digitalWrite(relayPin[i],HIGH);
  delay(1000);
  for(i = 0; i < 4; i++)  digitalWrite(relayPin[i],LOW);
  delay(1000);
   
}
userHeadPic Leff
2015-10-27 14:50:26 I have tried the 2 sketch in the wiki and my shield only Works with the poder (USB+9vdc) conected. This cantora be right, the hás to be capable of working only in 9vdc right or else the datasheet is not correct. userHeadPic deustaquio
2015-10-27 14:50:26 I have tried the 2 sketch in the wiki and my shield only Works with the poder (USB+9vdc) conected. This cantora be right, the hás to be capable of working only in 9vdc right or else the datasheet is not correct. userHeadPic deustaquio
2015-10-24 01:31:35 Have you tried the first sketch on the wiki? the second one needs you to type some command to control the relay through USB. userHeadPic Leff
2015-10-24 01:31:35 Have you tried the first sketch on the wiki? the second one needs you to type some command to control the relay through USB. userHeadPic Leff
2015-10-24 00:31:29 I got te shield working with several types of code but need to have both 9V power and USB cable conected. This cant be right. userHeadPic deustaquio
2015-10-24 00:31:29 I got te shield working with several types of code but need to have both 9V power and USB cable conected. This cant be right. userHeadPic deustaquio
2015-10-22 03:21:22 Hi,

I have recently bought a Relay Shield for Arduino V2.1 and cant actuate the 4 relays. For a test, I uploaded de sample code to the arduino, disconected de USB cable and conected the 9VDC power supply. Nor the LED nor the relays work. It seems to be a power suply problem. Whats missing in my steps?

Thanks
userHeadPic deustaquio