Decoding a remote control

Thread Starter

TheForester

Joined Dec 3, 2021
4
I'm trying read a remote control signal.

The remote says that it is 433.92Mhz. My receiver is an MX-RM-5V which I was sold as 433.92Mhz.

I am using the RCSwitch.h library. Being unable to get the "Advanced" to work I used the "RecieveDemon Simple" just to try to get some type of output to the monitor.

I know the UNO and the receiver work. I tested them using a different sketch and a FS1000A transmitter , to get a readout on the serial monitor.

I get nothing at all when trying to read the remote.

Unless the remote or the MX-RM-5V are telling lies and one of them is not on 433.92Mhz I'm at a loss as to the issue.

I'm using Data pin 2 to input the data.

Thanks John

Code:
/*
  Simple example for receiving
 
  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();
  }
 
Top