I purchased some very inexpensive one, two and four relay modules on AliExpress that I believe are commonly used with Arduinos. I noticed that the two relay modules have a three pin jumper block (JD) which a jumper came pre installed on. I have not been able to get any documentation on these modules. I'm hoping someone conversant in the art can tell we what the jumpers do, what they would be used for and/or how to use them. The four relay modules also have a jumper but only two pins as shown on the bottom.
2 Answers
OK, I found this diagram. It appears that the relay(s) can be opto-isolated or not (the default jumper position) so that the power for the coil can be separate (supply on pin JD-VCC) or use the same power as the input (reference?) voltage. I got the impression I should be using 3.3v on VCC since my signal is 3.3v gpio and 5v on JD-VCC. 
From what I have seen I think the jumper controls whether the relay(s) are active when the input line for each relay is× high or low. Upon further consideration it is more likely that those three pins are "power-supply" ones and have been brought together so the two non-ground supplies can BOTH be powered from 5V or the input part split off and driven by a 3.3V one; it is a bit nasty though in that if you move the jumper over to split the supplies you would be wanting to apply 5V to the JD-VCC pin and could feed the 3.3V in via the 4 pin connector carrying also Gnd(0V) and the two control signals - however you might be tempted to "park" the jumper on the VCC and Gnd pins - thereby shorting out the 3.3V rail to ground!
<rant>Be careful what you use these for, though, because most of these modules (from the Far East) are NOT safe to use on High (Mains) Voltages (at least in the UK), unless the rest of the control circuitry (your Pi and anything hanging off of it) is properly isolated from any user. Although the relay might be rated for 250VAC 10A the gap between the contacts in the relay and particularly the COM connection pin is not far enough away from the Coil and the pins for it to be a safe distance (5-8mm in air). HiPot or Flash test are things that come to my mind when I think on this.</rant>
- 3,631
- 1
- 20
- 46

