Problem in using 4 Relay Module to light LED
i have connected 4 relay module follows.
4 relay module 1st relay no port --> breadboard @ led
4 relay module 1st relay com port --> ground
breadboard @ other end of led --> 5v in uno board
4 relay module in1 port --> 4 port in uno board
4 relay module vcc port --> 5v port in uno board
4 relay module gnd port --> gnd port in uno board
the photos of setting follows.
https://drive.google.com/file/d/0b9ghszdnys15beuwms1kq2lla1e/view?usp=sharing
https://drive.google.com/file/d/0b9ghszdnys15zwpkc1nqwlrdtm8/view?usp=sharing
the coding follows. however when arduino executed, led not light. have tried light led without using relay module. works. there error in using 4-relay module?
_____________________________________________________
const int relaypin = 4;
void setup() {
serial.begin(9600);
// give max little time settle
delay(500);
pinmode(relaypin, output);
digitalwrite(relaypin, low);
delay(500);
}
void loop() {
// basic readout test
digitalwrite(relaypin, high);
delay(500);
}
4 relay module 1st relay no port --> breadboard @ led
4 relay module 1st relay com port --> ground
breadboard @ other end of led --> 5v in uno board
4 relay module in1 port --> 4 port in uno board
4 relay module vcc port --> 5v port in uno board
4 relay module gnd port --> gnd port in uno board
the photos of setting follows.
https://drive.google.com/file/d/0b9ghszdnys15beuwms1kq2lla1e/view?usp=sharing
https://drive.google.com/file/d/0b9ghszdnys15zwpkc1nqwlrdtm8/view?usp=sharing
the coding follows. however when arduino executed, led not light. have tried light led without using relay module. works. there error in using 4-relay module?
_____________________________________________________
const int relaypin = 4;
void setup() {
serial.begin(9600);
// give max little time settle
delay(500);
pinmode(relaypin, output);
digitalwrite(relaypin, low);
delay(500);
}
void loop() {
// basic readout test
digitalwrite(relaypin, high);
delay(500);
}
i can't see wires going, i've got assume something's wired wrong...
this might unrelated, current-limiting resistor not in series led.... led fried, or lack of resistor "killing" 5v , crashing arduino.
do hear relay clicking? if not, disconnect led , listen clicking.
this might unrelated, current-limiting resistor not in series led.... led fried, or lack of resistor "killing" 5v , crashing arduino.
do hear relay clicking? if not, disconnect led , listen clicking.
Arduino Forum > Using Arduino > General Electronics > Problem in using 4 Relay Module to light LED
arduino
Comments
Post a Comment