You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Receiver Specifications

DetailSpecificationImage
Product ModelXD-RF-5V

Operating voltage5V
Quiescent Current4 mA
Receiving frequency 433.92MHZ
Receiver sensitivity-105DB



Transmitter Specifications

DetailSpecificationImage
Product ModelXD-FST

Launch distance20-200 meters (different voltage, different results)
Operating voltage3.5-12V
Operating modeAM
Transfer rate4KB / S
Transmitting power10mW
Transmitting frequency433M
Pinout from left → rightDATA; VCC; GND



Antenna

Length should be cut to a 1/2 to a 1/4 of the wavelength. Since our wavelength is 69.24 cm. A 1/4 of that would be 17.31 cm. The antenna can be coiled to make it shorter.


How does it work?

Our RF signal will use Amplitude Shift Keying.



A digital 1 turns the carrier on while a digital 0 turns tit off.


Sample Code


#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(115200);
  Serial.println("\n\nRF Sniffer\n\n");
  
  mySwitch.enableReceive(0);  // Receiver input on interrupt 0 (GPIO 0)
  pinMode(LED_BUILTIN, OUTPUT); 
}

void loop() {

  

  if (mySwitch.available()) {
    Serial.print("Received ");
    Serial.print( mySwitch.getReceivedValue() );
    Serial.print(" / ");
    Serial.print( mySwitch.getReceivedBitlength() );
    Serial.print("Bit ");
    Serial.print(" // ");
    Serial.print("Protocol: ");
    Serial.println( mySwitch.getReceivedProtocol() );
    digitalWrite(LED_BUILTIN, HIGH); // Toggle the onboard LED  

    delay(1);

    digitalWrite(LED_BUILTIN, LOW);
    mySwitch.resetAvailable();
  }
}


Reference

  • No labels