Makes, sense. here is one I tried
+-----------+
| MX-RM-5V |
| \\\ |
| |
| +-+ |
| |O| |
| +-+ |-- 1 VCC
| ___ |-- 2 Data
| |___| |-- 3 Data
+-----------+-- 4 Ground
+-----+
+----[PWR]-------------------| USB |--+
| +-----+ |
| GND/RST2 [ ][ ] |
| MOSI2/SCK2 [ ][ ] A5/SCL[ ] | C5
| 5V/MISO2 [ ][ ] A4/SDA[ ] | C4
| AREF[ ] |
| GND[ ] |
| [ ]N/C SCK/13[ ] | B5
| [ ]IOREF MISO/12[ ] | .
| [ ]RST MOSI/11[ ]~| .
| [ ]3V3 +---+ 10[ ]~| .
| [1]5v | A | 9[ ]~| .
| [4]GND -| R |- 8[ ] | B0
| [ ]GND -| D |- |
| [ ]Vin -| U |- 7[ ] | D7
| -| I |- 6[ ]~| .
| [ ]A0 -| N |- 5[ ]~| .
| [ ]A1 -| O |- 4[ ] | .
| [ ]A2 +---+ INT1/3[ ]~| .
| [ ]A3 INT0/2[2] | .
| [ ]A4/SDA RST SCK MISO TX>1[ ] | .
| [ ]A5/SCL [ ] [ ] [ ] RX<0[ ] | D0
| [ ] [ ] [ ] |
| UNO_R3 GND MOSI 5V ____________/
\_______________________/
arduino acii art source HTTP://BUSYDUCKS.COM/ASCII-ART-ARDUINOS
/*
Example for receiving
File > Examples > RC_Switch > ReceiveDemo_Advanced
https://github.com/sui77/rc-switch/
*/
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin #2
}
void loop() {
if (mySwitch.available()) {
output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
mySwitch.resetAvailable();
}
}
/*
Simple example for receiving
File > Examples > RC_Switch > ReceiveDemo_Simple
https://github.com/sui77/rc-switch/
*/
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin #2
}
void loop() {
if (mySwitch.available()) {
Serial.print("Received ");
Serial.print( mySwitch.getReceivedValue() );
Serial.print(" / ");
Serial.print( mySwitch.getReceivedBitlength() );
Serial.print("bit ");
Serial.print("Protocol: ");
Serial.println( mySwitch.getReceivedProtocol() );
mySwitch.resetAvailable();
}
}