Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868A-4 RF433MHz decoding.
#1
If I understood the meaning of the sample code. Once uploaded the code, opening the Serial monitoring to Arduino IDE I should see the code transmitted  from 433 MHz remote control.  I don't understand why to the monitor I don't see anything. I'm sure that the remote control and receiver module woks fine because to the receiver data pin, with a scope ,when I press one button to the remote control, I see the pulse train.
Below the Decoding sample code.
Code:
/*
  Simple example for receiving
 
  https://github.com/sui77/rc-switch/
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(115200);
  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();
  }
}
 
What can I do to see to the serial monitor, the remote control codes ?

Tank You
Reply


Messages In This Thread
KC868A-4 RF433MHz decoding. - by franco.demei@gmail.com - 05-06-2024, 07:04 PM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-07-2024, 12:04 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-07-2024, 12:12 PM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-10-2024, 03:21 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-10-2024, 10:43 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-10-2024, 10:56 PM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-13-2024, 11:42 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-14-2024, 01:10 AM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-14-2024, 10:35 PM
RE: KC868A-4 RF433MHz decoding. - by admin - 05-15-2024, 11:43 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)