Electronic – arduino – Question about relay module

arduino

I just discovered a Sainsmart 4-Channel 5V Relay Module for PIC ARM AVR DSP Arduino MSP430 TTL Logic, I don't know how to make links, so I copy the URL here. http://www.sainsmart.com/arduino-pro-mini.html .Maybe the moderator can edit it a little bit.
And I have a question. I'm in need of an array of isolation relays for a project, and wonder if I can use this device by simply providing a +5v VCC and contact closures between GND and INx.

Thanks for your help a lot.

Best Answer

Per the specifications at the meb page linked in the question, the control input is a simple series curcuit: VCC is connected to a resistor (limits the current through the remainder of the series) which is connected in sereies with an optoisolator diode, which, in turn, is connected in series with a LED indicator. The optoisolator, (and consequently, the relay) and the LED will be turned on if 5V (more or less) is applied between VCC and INx.

So, yes, the device may be controlled by contact closures between INx and ground as you indicated. Alternately, the INx terminal could be connected to an open-collector or open-drain driver circuit to allow for uC control.

A coulple of things to keep in mind:

  • the circuit driving the INx must be able to handle (sink) 20mA, per the device description.

  • if you want to isolate the relay coil drive voltage from the optocoupler VCC, you will need to drive the node labelled JD-VCC with another 5V supply, connected between JD-VCC and ground. (In this case, the first 5V supply would connect to VCC only - this supply's ground would not be connected to the relay board. When the contact connected to the INx pin is closed, a return path will be formed through the INx pin.)

Related Topic