New pin-out for DFRobot RelayShield v2.1

DFRobot RelayShield (current 2.1 version) related questions and discussions.

New pin-out for DFRobot RelayShield v2.1

Postby support » Thu Aug 22, 2013 10:01 pm

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,
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

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

Postby Buggy222 » Sun Aug 25, 2013 5:03 pm

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?
Buggy222
 
Posts: 1
Joined: Sun Aug 25, 2013 4:55 pm

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

Postby support » Sun Aug 25, 2013 6:33 pm

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,
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

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

Postby gokart9 » Wed Aug 28, 2013 8:14 pm

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
gokart9
 
Posts: 2
Joined: Wed Aug 28, 2013 8:11 pm

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

Postby gokart9 » Wed Aug 28, 2013 8:22 pm

To disable relay4 from working, pull jumper off IO3
gokart9
 
Posts: 2
Joined: Wed Aug 28, 2013 8:11 pm

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

Postby support » Wed Aug 28, 2013 9:19 pm

Thanks for sharing that piece of information gokart9 ...
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

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

Postby Maunder » Thu Jan 23, 2014 12:04 am

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 :?:
Maunder
 
Posts: 2
Joined: Mon Jan 06, 2014 11:16 pm

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

Postby support » Thu Jan 23, 2014 8:24 am

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.
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

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

Postby aurelutz2007 » Mon Mar 03, 2014 1:13 pm

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?
aurelutz2007
 
Posts: 22
Joined: Mon Feb 24, 2014 1:06 pm

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

Postby support » Mon Mar 03, 2014 9:18 pm

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,
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

Next

Return to DFRobot RelayShield v2.1



cron