Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[arduino source code for KC868-Uair-8] RF 433MHz wireless remoter decode
#1
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(digitalPinToInterrupt(13));
}

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();
  }
}


download arduino IDE source code file: 

.zip   RF-receiver.zip (Size: 393 bytes / Downloads: 301)
Note: install "rcswitch" library online firstly.
   
Reply


Messages In This Thread
[arduino source code for KC868-Uair-8] RF 433MHz wireless remoter decode - by admin - 01-04-2022, 01:16 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)