Due to conflicting information, there is a good chance i connected one of these up wrong, switching Gnd and 5v. Now i can't seem to get it to work.
Did you ever have it working? Assuming you have a matching transmitter then try the below sketch to see what you get.
void setup() {
pinMode(3,INPUT); // ISR 1 Pin
pinMode(7,OUTPUT); // TX Pin
pinMode(13,OUTPUT); // Onboard LED
attachInterrupt(1,rxISR,CHANGE);
}
void rxISR(){
digitalWrite(13,digitalRead(3)); // Echo pin state to LED
}
void loop() {
digitalWrite(7,HIGH);
delay(100);
digitalWrite(7,LOW);
delay(100);
}
EDIT: Adding explanation...
Connect arduino pin 7 to the TX module DATA pin.
Connect arduino pin 3 to the RX module DATA pin.
Connect arduino 5V & GND to VCC & GND respectfully on both modules.
Upload sketch and run it and the arduinos on-board LED (pin 13) should flash on/off as the transmitter is turns on/off.