Contents

Interfacing RXB61 315/433MHz RF Receiver Module with Arduino

RXB61 RF Receiver Module Features

Electronic devices need to be connected wirelessly in so many cases. In such cases, Radio Frequency or RF equipments are used. RF modules include all radio waves that can travel different distances and reach the receiver according to their frequency and amplitude.

The RXB61 module is produced in two different types: 315MHz and 433MHz.

Note

All modules that use the 315/433MHz frequency band can communicate with each other and there is no information security in this type of communication. If you need security, you must use encryption (locking) on the receiver and transmitter.

Note

This module only receives information but cannot send them. So, on the transmitter side, we have used a type of radio transmitter according to the receiver frequency.

RXB61 RF Receiver Module Pinout

This module has 5 pins:

  • VIN: Module power supply
  • GND: Ground
  • Data: Data line for sending or transmitting
  • ANT: Antenna (connection is optional)
  • SHUT: Module Shut down pin

Required Materials

Hardware Components

Arduino UNO R3 × 1
RXB61 433MHz Receiver Module × 1
RXB61 315MHz Receiver Module × 1
Male to Female Jumper Wire × 1

Software Apps

Arduino IDE

Interfacing RXB61 RF Receiver Module with Arduino

Step 1: Circuit

The following circuit shows how you should connect the Arduino Board to the RXB61 module. Connect wires accordingly.

Step 2: Library

Install the following library on your Arduino IDE.

https://github.com/sui77/rc-switch

Tip

If you need more help with installing a library on Arduino, read this tutorial: How to Install an Arduino Library

Step 3: Code

Upload the following code to your Arduino.

/*
  Simple example for receiving
  
  https://github.com/sui77/rc-switch/
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(0);  // Receiver on interrupt 0 => that is pin #2
}

void loop() {
  if (mySwitch.available()) {
    
    int value = mySwitch.getReceivedValue();
    
    if (value == 0) {
      Serial.print("Unknown encoding");
    } else {
      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();
  }
}

This code is to test the connection between the transmitter and receiver.

The receiver can see the sent data in the Serial monitor.

Liked What You See?​
Get Updates And Learn From The Best​

Leave a Reply

Your email address will not be published. Required fields are marked *