Am fairly new to all this, so hopefully this is a simple question. I have bought a small relay board to allow me to use the Arduino to switch AC power (see photo). A couple of basic questions:
What is the little plastic jumper for in the bottom left?
You will see that I have connected the middle and lower connectors of the switched side of the relay to my high load circuit. I don't have the connectors yet to connect the relay to the Arduino, so just connected this to power to test my wiring. The load (a bulb) came on, which is not what I expected.
I am wondering whether I am using the wrong 2 connectors on the output side of the relay, or maybe the jumper controls whether the relay defaults to on or off? Or both??
I can't find any useful documentation online, so wondered if anyone else has such a board and can advise?
Leave the jumper where it is!
The connection you have done til to the contacts "normallt closed"/NC.
Use center contact, move the other wiew end to the oposite side. This will be connectet to the "normally open"/NO
There is a schematic where you can see the actual connections on the board. This will explain the jumper..
see the schematic here..
The jumper connects power to the coil from your 5V input.
If you remove the jumer you must supply power to coil from other source
Jumper shall NEVER connect to GND. (leave it where it is or remove)
OK so this is all working fine, now that the required connectors have arrived. The relay switches on and off as expected. However, a question related to the active low point raised already. Here is the simple code:
With the Arduino connected to the relay board, when the Arduino is powered up via USB the relay clicks on and off about 5 times very rapidly before running the Sketch code. I have included the digitalWrite(pin, HIGH) as suggested earlier.
Whilst this is not the end of the world, it feels unhealthy depending on what is connected to the power side of the relay - at the moment only a light bulb, but if it was something like a pump or fan that would not feel like a good thing to do.
Any suggestions on how to suppress this behaviour?