1
\$\begingroup\$

I bought this relay module and I tried connecting it to my raspberry pi. I attached the Vcc (one next to the inputs) to the 5v rail of the pi and gnd to gnd. I attached the input pins to various gpio pins and when I try and switch it on, it doesn't work. I followed this question and checked my module and all the tests passed. What should I try or should I just request a refund?

All answers appreciated!

EDIT: Powering up relay with JDVCC jumper on, and connecting each one of the input pins to ground does work. My power source is a 5v power supply up to 2 Amps. The states are switched on this relay, makes sense.

\$\endgroup\$
  • \$\begingroup\$ First check the relay module without the Arduino. (1) Install the JD-Vcc jumper. (2) Power up the relay board. (3) Connect each input to GND. The associated relay should pick up. (4) If that doesn't work measure the voltage between GND and Vcc. (5) Explain where the Vcc power is coming from. (6) Report back and put the information in your question and not in the comments. \$\endgroup\$ – Transistor May 1 '16 at 22:52
  • \$\begingroup\$ @transistor Added answer in original question. \$\endgroup\$ – skyguy126 May 1 '16 at 23:00
  • 1
    \$\begingroup\$ OK, relays working. Then your Arduino isn't pulling the relay inputs to ground. Load up the "Blink" sketch (or whatever it's called) and set the delay to 1000, connect the LED pin to the relay module input, run the sketch and report back. \$\endgroup\$ – Transistor May 2 '16 at 8:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.