Stufin
Home Quick Cart Profile

433 MHz RF Transceiver Module

Buy Now

Pin Configuration

  • 433 MHz RF Transceiver Module Documentation
  • Pinout Description
  • The 433 MHz RF Transceiver Module is a popular wireless communication module used in various IoT and wireless projects. It has 8 pins, each with a specific function. Below is a detailed description of each pin:
  • Pin 1: VCC
  • Function: Power Supply Pin
  • Description: This pin is used to supply power to the module. It should be connected to a 3.3V to 5V DC power source.
  • Connection: Connect to a 3.3V to 5V power supply or a power rail on your PCB.
  • Pin 2: GND
  • Function: Ground Pin
  • Description: This pin is used to provide a ground connection to the module.
  • Connection: Connect to a ground pin on your PCB or a GND pin on a power supply.
  • Pin 3: DATA
  • Function: Data Input/Output Pin
  • Description: This pin is used for serial communication between the module and a microcontroller or other devices. It transmits and receives data in a serial format.
  • Connection: Connect to a digital pin on a microcontroller (e.g., Arduino, Raspberry Pi) or other serial communication devices.
  • Pin 4: EN (Enable)
  • Function: Enable Pin
  • Description: This pin is used to enable or disable the module. When the pin is high (VCC), the module is enabled, and when it's low (GND), the module is disabled.
  • Connection: Connect to a digital pin on a microcontroller or a switch to control the module's enable state.
  • Pin 5: NC (Not Connected)
  • Function: Not Connected
  • Description: This pin is not connected to any internal circuitry and should be left unconnected.
  • Connection: Leave unconnected.
  • Pin 6: ANT (Antenna)
  • Function: Antenna Pin
  • Description: This pin is used to connect an external antenna to the module for improved wireless communication.
  • Connection: Connect to an external antenna (e.g., a wire antenna, a PCB antenna, or a SMA antenna connector).
  • Pin 7: SCK (Serial Clock)
  • Function: Serial Clock Pin
  • Description: This pin is used to provide a serial clock signal for synchronous serial communication.
  • Connection: Connect to a digital pin on a microcontroller or other serial communication devices.
  • Pin 8: MISO (Master In Slave Out)
  • Function: Master In Slave Out Pin
  • Description: This pin is used for serial communication between the module and a microcontroller or other devices. It receives data from the master device.
  • Connection: Connect to a digital pin on a microcontroller or other serial communication devices.
  • Connection Structure
  • Here is a general connection structure for the 433 MHz RF Transceiver Module:
  • VCC -> 3.3V to 5V power supply
  • GND -> GND pin on power supply or PCB
  • DATA -> Digital pin on microcontroller (e.g., Arduino, Raspberry Pi)
  • EN -> Digital pin on microcontroller or switch
  • NC -> Leave unconnected
  • ANT -> External antenna (e.g., wire antenna, PCB antenna, or SMA antenna connector)
  • SCK -> Digital pin on microcontroller or other serial communication devices
  • MISO -> Digital pin on microcontroller or other serial communication devices
  • Note: The connection structure may vary depending on the specific application and microcontroller used. Ensure that the module is properly connected and configured according to the datasheet and your project's requirements.

Code Examples

433 MHz RF Transceiver Module Documentation
Overview
The 433 MHz RF Transceiver Module is a low-power, low-cost wireless communication module designed for IoT applications. It operates on the 433 MHz frequency band and supports bi-directional communication. This module is widely used in remote control systems, wireless sensors, and IoT devices.
Key Features
Frequency: 433 MHz
 Data Rate: Up to 20 kbps
 Range: Up to 100 meters (line of sight)
 Power Consumption: Low power consumption (<20 mA)
 Operating Voltage: 3.3V to 5V
Pinout
| Pin | Function |
| --- | --- |
| VCC | Power Supply (3.3V to 5V) |
| GND | Ground |
| TX | Transmission Pin |
| RX | Reception Pin |
| ANT | Antenna Connection |
Hardware Connection
To use the 433 MHz RF Transceiver Module, connect it to a microcontroller or a development board as follows:
VCC to 3.3V or 5V power supply
 GND to Ground
 TX to a digital output pin on the microcontroller
 RX to a digital input pin on the microcontroller
 ANT to an antenna (optional)
Code Examples
### Example 1: Using the 433 MHz RF Transceiver Module with an Arduino Board
In this example, we will demonstrate how to use the 433 MHz RF Transceiver Module to send and receive data between two Arduino boards.
Transmitter Code (Arduino Board 1)
```c++
#include <RH_NRF.h>
#define TX_PIN 2  // Digital output pin for transmission
#define RF_freq 433e6  // 433 MHz frequency
RH_NRF nrf = RH_NRF();
void setup() {
  pinMode(TX_PIN, OUTPUT);
  Serial.begin(9600);
  nrf.init();
}
void loop() {
  char message[] = "Hello, world!";
  nrf.send((uint8_t )message, strlen(message));
  delay(1000);
}
```
Receiver Code (Arduino Board 2)
```c++
#include <RH_NRF.h>
#define RX_PIN 3  // Digital input pin for reception
#define RF_freq 433e6  // 433 MHz frequency
RH_NRF nrf = RH_NRF();
void setup() {
  pinMode(RX_PIN, INPUT);
  Serial.begin(9600);
  nrf.init();
}
void loop() {
  uint8_t buffer[32];
  uint8_t buflen = sizeof(buffer);
  if (nrf.recv(buffer, &buflen)) {
    Serial.print("Received message: ");
    Serial.println((char )buffer);
  }
  delay(1000);
}
```
### Example 2: Using the 433 MHz RF Transceiver Module with a Raspberry Pi (using Python)
In this example, we will demonstrate how to use the 433 MHz RF Transceiver Module to send and receive data between a Raspberry Pi and a remote device.
Transmitter Code (Raspberry Pi)
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)  # TX pin
while True:
    # Send a message
    message = "Hello, world!"
    for bit in message:
        GPIO.output(17, GPIO.HIGH)
        time.sleep(0.001)
        GPIO.output(17, GPIO.LOW)
        time.sleep(0.001)
    time.sleep(1)
```
Receiver Code (Remote Device)
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO pins
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.IN)  # RX pin
while True:
    # Receive a message
    message = ""
    while GPIO.input(23) == GPIO.LOW:
        message += str(GPIO.input(23))
    print("Received message:", message)
    time.sleep(1)
```
Note: In the above examples, the 433 MHz RF Transceiver Module is connected to the corresponding pins on the Arduino boards or Raspberry Pi. The antenna connection is optional, but recommended for better signal quality.