Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

433 MHz RF Transmitter and Receiver with Arduino Uno for Wireless LED Control

View and Edit Project In Cirkit DesignerImage of 433 MHz RF Transmitter and Receiver with Arduino Uno for Wireless LED Control

Circuit Documentation

Summary

This circuit involves two Arduino Uno R3 microcontrollers, a 433 MHz RF Receiver Module, an FS1000A 433MHz RF Transmitter, a red LED, and a 1k Ohm resistor. The circuit is designed to transmit and receive data wirelessly using the 433 MHz frequency. The transmitter sends a "Hello" message every 200ms, and the receiver turns on an LED when it successfully receives a message.

Component List

433 MHz RF Receiver Module

Arduino Uno R3

Resistor

LED: Two Pin (red)

FS1000A 433MHz RF Transmitter

Wiring Details

433 MHz RF Receiver Module

Arduino Uno R3 (Receiver)

Resistor

LED: Two Pin (red)

FS1000A 433MHz RF Transmitter

Arduino Uno R3 (Transmitter)

Code Documentation

Arduino Uno R3 (Receiver)

#include <VirtualWire.h>

void setup() {
  pinMode(3, OUTPUT); // Set pin for LED
  vw_set_rx_pin(2);   // Set the RX pin
  vw_setup(2000);     // Bits per second
  vw_rx_start();      // Start the receiver
}

void loop() {
  uint8_t buf[VW_MAX_MESSAGE_LEN];
  uint8_t buflen = VW_MAX_MESSAGE_LEN;

  if (vw_get_message(buf, &buflen)) { // Non-blocking
    digitalWrite(3, HIGH); // Turn on LED
  } else {
    digitalWrite(3, LOW); // Turn off LED
  }
}

Arduino Uno R3 (Transmitter)

#include <VirtualWire.h>

void setup() {
  vw_set_tx_pin(2); // Set the TX pin
  vw_setup(2000);   // Bits per second
}

void loop() {
  const char *msg = "Hello";
  vw_send((uint8_t *)msg, strlen(msg));
  vw_wait_tx(); // Wait until the message is sent
  delay(200);   // Send message every 200ms
}