RF Receiver

Z2M Part: EMC-00001-A

Receive wireless data with RF 433MHz receiver.

Circuit Diagram
Circuit diagram for RF Receiver
Wire Connections & Pin Configuration

Wire Color Connections:

Yellow → Digital Pin 2 to RF receiver DATA
Red → 5V to RF receiver VCC
Black → GND to RF receiver GND

Pin Configuration:

Arduino Digital Pin 2 → RF receiver DATA
Arduino 5V → RF receiver VCC
Arduino GND → RF receiver GND
Arduino Code
Edit
#include <RH_ASK.h>
#include <SPI.h> // Required for compilation

// Create RF driver object
RH_ASK driver;

void setup() {
  Serial.begin(9600);
  if (!driver.init())
    Serial.println(\"RF Receiver init failed\");
  else
    Serial.println(\"RF Receiver ready\");
}

void loop() {
  uint8_t buf[32];      // Buffer for received data
  uint8_t buflen = sizeof(buf);

  if (driver.recv(buf, &buflen)) {  // Non-blocking receive
    Serial.print(\"Message received: \");
    Serial.println((char*)buf);
  }
}

Instruction Details

Wiring: Connect RF receiver VCC to 5V, GND to GND, DATA to Digital Pin 2.
Library: Sketch → Include Library → Manage Libraries → search "RCSwitch" or "VirtualWire" → Install.
Upload Code: Tools → Board → Arduino Uno. Tools → Port → select your COM port. Click Upload button.
View Output: Open Serial Monitor at 9600 baud. Press RF remote buttons to see received codes. LED indicates reception.

How to Use

  1. Connect the required components as per the Pin Configuration above
  2. Open Arduino IDE and create a new sketch
  3. Copy and paste the code above
  4. Select your Arduino board and COM port from Tools menu
  5. Click the Upload button to upload the code to your Arduino
  6. Open Serial Monitor (if applicable) to see the output

Components Required

  • Arduino Uno
  • 433MHz RF Receiver Module
  • LED
  • 220Ω Resistor
  • Breadboard
  • Jumper Wires

Category: Communication