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

Compare with Current View Page History

« Previous Version 8 Next »



Receiver Specifications

DetailSpecification
Product ModelXD-RF-5V
Operating voltage5V
Quiescent Current4 mA
Receiving frequency 433.92MHZ
Receiver sensitivity-105DB


Transmitter Specifications

DetailSpecification
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


/*
   -Arduino 433MHz RF Sniffer
   -Based on an example from the RCSwitch Library
   -https://github.com/sui77/rc-switch/
   -Hardware: Arduino Nano & Generic 433MHz RF Receiver
   -T.K.Hareendran/2018
*/


#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(0);  // Receiver input on interrupt 0 (D2)
  pinMode(13, OUTPUT); // D13 as output- Optional
}

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(13, HIGH); // Toggle the onboard LED  if serial is available - Optional

    delay(1);

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


Reference

  • No labels