Hi I am new to this and trying to build a pedal switcher for my guitar pedals. I have followed the instructables guidance which was very good, but the relay I received does not seem to be switching on or off.
I have tried powering the relay from a power adaptor (5v 2A) without any luck.
I just watched a youtube video where someone was testing his relay module. The lights work on his one, but when I copy the exact same code he used, my relay does not show any lights at all. Does that mean it is dead?
I would presume you have given the relays thier very own power as it is highly doubtful the Arduino can supply the amount of current required for 8 relays.
And if you did supply them with thier own power I would assume you also included a common ground back to the Arduino.
I have also sent a ground back to the mega controller and still nothing. During testing just now with a multi meter, i accidentally shorted the ground on the relay board to IN1 and the rtelay came on on that IN1 Channel.
I tried shorting other channels ie IN2, IN£ etc .. and they all came on.
However, running this short code nothing happens. You can see the mega controller load up but nothing happens:
int relayPin1 = 40
void setup() {
pinMode(relayPin, OUTPUT);
}
void loop() {
digitalWrite(relayPin, LOW);
delay(500);
}
Help please. I am now not sure if the relay board is faulty or not? It clearly works when ground is shorted to any of the channels. I also tested with a multimeter and the mega is indeed sending 5v to the relay board.
When I run the code on the software installed directly to my PC version 1.8.5 everything works. So the relay board is fine and everything works.
However, can anyone explain as to why when I run the same code, same setup and same wiring on the online version of the software (web editor), nothing works?
That code verifies and uploads just fine on the web editor.
From that I can only presume it is something local to your computer.
As it works fine on the regular desktop IDE it might be better to have this moved to the WED EDITOR section.
There is more specific advice in there as to some of the minor issues people face that might be worth your reading up on.
Which browser did you install CREATE for.
EDGE works but I found it to be a little slow.
Chrome or Firefox work much better with Chrome being my preferred option.
Also do not forget to say YES to any of the CREATE boxes that will pop up as without them the CREATE AGENT just becomes a pretty Arduino icon doing nothing.