Page 1 of 2

New pin-out for DFRobot RelayShield v2.1

PostPosted: Thu Aug 22, 2013 10:01 pm
by support
Hi everyone,

Our online assembly documentation was written with the older RelayShield in mind
for which the pin-out is different than it is with the latest DFRobot RelayShield v2.1.

So, if you're using the latest version of the DFRobot RelayShield (version 2.1), the
pin-out to be using is the following:

Com1: Digital Pin 2 (that one hasn't changed from the initial documentation)
Com2: Digital Pin 7 (used to be pin 3 in the initial documentation)
Com3: Digital Pin 8 (used to be pin 4 in the initial documentation)
Com4: Digital Pin 10 (used to be pin 5 in the initial documentation)

Note that Com4 won't work because it conflicts with the Ethernet shield which
also uses Digital Pin 10.

Also, whenever you make those changes to the INO file, remember to also make
the according changes within the iPhone app in your devices' settings.

Best regards,

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Sun Aug 25, 2013 5:03 pm
by Buggy222
The Wiki for this relay shield mentions the D10 conflict with the Ethernet shield and suggests removing the IO selector for the fourth relay and adding a jumper wire from the middle pin of the IO selector to the Digital IO section, green pin 2.

Can you help me understand how the UNO board drives these black/red/green Digital IO pins, and which one of them you would recommend using.

My other approach would be to snip off the male D10 pin so that the relay board does not connect to the Ethernet board, and then using a male/male jumper to feed D10 on the relay shield from D9 or some other driver pin. Do you see any problem with this?

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Sun Aug 25, 2013 6:33 pm
by support
Hi Buggy222,

We don't own the RelayShield v2.1, but our understanding is that you'd jumper wire the middle pin
from the IO selector for D10 and link that to the green pin of a digital pin of your choosing, one that
would not conflict in your particular setup. Obviously, you wouldn't use any of the following pins:

D2 - used by Relay Shield COM1
D7 - used by Relay Shield COM2
D8 - used by Relay Shield COM3
D10 - used by Ethernet Shield
D11 - used by Ethernet Shield
D12 - used by Ethernet Shield
D13 - used by Ethernet Shield

So you're left with any of the other digital pins, unless you have something else in your setup
we're not aware of.

By the way, if 3 relays are sufficient for you, you can simply use COM1, COM2 & COM3 without
doing anything. Just don't use COM4 and you should be fine.

Best regards,

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Wed Aug 28, 2013 8:14 pm
by gokart9
Relay 4 seems to energize on power up. I have Com1, 2 and 3 working by changing to use pin 2,7,and 8. Any way to have com4 (relay 4) disabled (ie no power to it). Using Ardquino Ethernet and relay shield v2.1

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Wed Aug 28, 2013 8:22 pm
by gokart9
To disable relay4 from working, pull jumper off IO3

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Wed Aug 28, 2013 9:19 pm
by support
Thanks for sharing that piece of information gokart9 ...

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Thu Jan 23, 2014 12:04 am
by Maunder
Hi Guys,

Can you confirm that for the V2.1, for COM1 to function you use D2? Specially, what colours of D2 are you using? Red & green or black & red or green & black?

john :?:

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Thu Jan 23, 2014 8:24 am
by support
Yes COM1 is operated using D2 if you have the "default" jumper in place. Not sure
about the colours you're talking about though ... Can you be more specific ?

Typically, you run 2 wires, 1 to COM1 and another to NO1. You attach those 2 wires to
your existing wall mount garage door button. When the relay gets high using power
to D2, it will energize and provide contact between COM1 and NO1 for 1 second,
hence simulating a momentary push to your wall mount garage door button, therefore
opening or closing the door.

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Mon Mar 03, 2014 1:13 pm
by aurelutz2007
Hi,

Need a bit of help to configure relay 4 using arduino uno)+ethernet shield+DFRobot relay shield.
As you know, the ethernet shield and DFRobot are in conflict on the digital pin 10.
On the DFRobot wiki page they say: http://www.dfrobot.com/wiki/index.php/R ... DFR0144%29

- connect the middle pin header after you unplug the jumper, to Arduino digital IO with jumper cables depend on your needed pin mapping to drive relays. Did exactly like in this picture: http://www.dfrobot.com/wiki/index.php/File:JUMPER.png

Changed in the .info file:

//static const uint8_t relayPins[] = { 9 }; // single device at pin #9
static uint8_t relayPins[] = { 2, 7, 8, 10 }; // select if using DFRobot RelayShield
//static uint8_t relayPins[] = { 2, 3 }; // two devices at pins #2 and #3
//static uint8_t relayPins[] = { 2, 3, 4, ... }; // even more devices at pins #2, #3, #4, etc ...

I also tried to put pin 9 instead of 10...no success at all.

The rest of the relays on pins 2,7,8 works perfect.

Any ideas on how to solve the problem?

Re: New pin-out for DFRobot RelayShield v2.1

PostPosted: Mon Mar 03, 2014 9:18 pm
by support
Hi,

We unfortunately don't own any v2.1 RelayShield boards (only the older model), so we can't say
for sure, but this has already been discussed multiple times in other topics/threads from our forums.

You will need to remove that "10" value from your relayPins[] array. Instead, replace that value with
the pin# you used as a replacement since pin #10 is already reserved for the Ethernet board operation.

Read more about this in this current thread, a few posts above ...

Also, there's this other topic/thread that discusses this in some details too:
viewtopic.php?f=2&t=70&start=20#p431

Hope this helps. Best regards,