Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use HY-S301: Examples, Pinouts, and Specs

Image of HY-S301
Cirkit Designer LogoDesign with HY-S301 in Cirkit Designer

Introduction

The HY-S301 is a wireless RF transmitter and receiver module designed for low-power communication at a frequency of 433 MHz. It is widely used in remote control applications, such as wireless doorbells, home automation systems, and remote-controlled toys. Its compact design and ease of integration make it a popular choice for hobbyists and professionals working on wireless communication projects.

Explore Projects Built with HY-S301

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO-Based Smart Irrigation System with Motion Detection and Bluetooth Connectivity
Image of Copy of wiring TA: A project utilizing HY-S301 in a practical application
This circuit is a microcontroller-based control and monitoring system. It uses an Arduino UNO to read from a DHT22 temperature and humidity sensor and an HC-SR501 motion sensor, display data on an LCD, and control a water pump and an LED through a relay. The HC-05 Bluetooth module allows for wireless communication.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Battery-Powered Hyperhidrosis Treatment Device with OLED Display
Image of Copy of RM Gloves: A project utilizing HY-S301 in a practical application
This circuit is a hyperhidrosis treatment device that uses an ESP32 microcontroller to control current flow through electrodes based on user input from a potentiometer and a pushbutton. It features an OLED display for user feedback, a real-time clock for session timing, and a battery management system for power regulation.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Beehive Monitoring System with Battery Power
Image of Hive: A project utilizing HY-S301 in a practical application
This circuit is a beehive monitoring system that uses an ESP32 microcontroller to collect data from various sensors, including a DHT22 for temperature and humidity, an MQ135 for air quality, an SW-420 for vibration, and an HX711 with a load cell for weight measurement. The system is powered by a 18650 Li-ion battery with a TP4056 charging module and includes a buzzer for alert notifications when sensor thresholds are breached.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32 Nucleo F303RE Controlled Ultrasonic Sensing with RGB Feedback and I2C LCD Display
Image of CS435-final: A project utilizing HY-S301 in a practical application
This circuit features a STM32 Nucleo F303RE microcontroller interfaced with three HC-SR04 ultrasonic sensors for distance measurement and a 20x4 LCD display over I2C for data output. Additionally, there is a WS2812 RGB LED strip controlled by the microcontroller for visual feedback. The power supply provides a common 5V to the LCD, ultrasonic sensors, LED strip, and the microcontroller's +5V input, with all components sharing a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with HY-S301

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Copy of wiring TA: A project utilizing HY-S301 in a practical application
Arduino UNO-Based Smart Irrigation System with Motion Detection and Bluetooth Connectivity
This circuit is a microcontroller-based control and monitoring system. It uses an Arduino UNO to read from a DHT22 temperature and humidity sensor and an HC-SR501 motion sensor, display data on an LCD, and control a water pump and an LED through a relay. The HC-05 Bluetooth module allows for wireless communication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of RM Gloves: A project utilizing HY-S301 in a practical application
ESP32-Based Battery-Powered Hyperhidrosis Treatment Device with OLED Display
This circuit is a hyperhidrosis treatment device that uses an ESP32 microcontroller to control current flow through electrodes based on user input from a potentiometer and a pushbutton. It features an OLED display for user feedback, a real-time clock for session timing, and a battery management system for power regulation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Hive: A project utilizing HY-S301 in a practical application
ESP32-Based Beehive Monitoring System with Battery Power
This circuit is a beehive monitoring system that uses an ESP32 microcontroller to collect data from various sensors, including a DHT22 for temperature and humidity, an MQ135 for air quality, an SW-420 for vibration, and an HX711 with a load cell for weight measurement. The system is powered by a 18650 Li-ion battery with a TP4056 charging module and includes a buzzer for alert notifications when sensor thresholds are breached.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CS435-final: A project utilizing HY-S301 in a practical application
STM32 Nucleo F303RE Controlled Ultrasonic Sensing with RGB Feedback and I2C LCD Display
This circuit features a STM32 Nucleo F303RE microcontroller interfaced with three HC-SR04 ultrasonic sensors for distance measurement and a 20x4 LCD display over I2C for data output. Additionally, there is a WS2812 RGB LED strip controlled by the microcontroller for visual feedback. The power supply provides a common 5V to the LCD, ultrasonic sensors, LED strip, and the microcontroller's +5V input, with all components sharing a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Wireless remote controls (e.g., garage doors, lighting systems)
  • Home automation and IoT devices
  • Wireless data transmission between microcontrollers
  • Remote-controlled vehicles and drones
  • Security systems and alarms

Technical Specifications

General Specifications

Parameter Value
Operating Frequency 433 MHz
Operating Voltage 3.3V - 5V
Transmitter Current ≤ 10 mA
Receiver Current ≤ 5.5 mA
Transmission Distance Up to 100 meters (line of sight)
Modulation Type Amplitude Shift Keying (ASK)
Data Rate Up to 10 kbps
Operating Temperature -20°C to +70°C

Pin Configuration and Descriptions

Transmitter Module

Pin Number Pin Name Description
1 VCC Power supply input (3.3V - 5V)
2 DATA Data input pin for transmitting signals
3 GND Ground connection

Receiver Module

Pin Number Pin Name Description
1 VCC Power supply input (3.3V - 5V)
2 DATA Data output pin for receiving signals
3 GND Ground connection

Usage Instructions

How to Use the HY-S301 in a Circuit

  1. Power Supply: Connect the VCC pin of both the transmitter and receiver modules to a 3.3V or 5V power source. Ensure the GND pins are connected to the ground of the circuit.
  2. Data Connection:
    • For the transmitter, connect the DATA pin to the data output of a microcontroller or a signal source.
    • For the receiver, connect the DATA pin to the data input of a microcontroller or a decoding circuit.
  3. Antenna: Attach a 17 cm wire to the antenna pad (if available) on both modules to improve signal range and stability.
  4. Testing: Use a microcontroller (e.g., Arduino UNO) to send and receive data between the transmitter and receiver.

Important Considerations and Best Practices

  • Line of Sight: For optimal performance, ensure there are no significant obstacles between the transmitter and receiver.
  • Power Supply: Use a stable power source to avoid noise and interference in the signal.
  • Antenna Placement: Position the antenna vertically and away from other electronic components to reduce interference.
  • Data Encoding: Use a suitable encoding/decoding library (e.g., VirtualWire or RadioHead for Arduino) to ensure reliable data transmission.

Example Code for Arduino UNO

Below is an example of how to use the HY-S301 with an Arduino UNO to send and receive data.

Transmitter Code

#include <VirtualWire.h> // Include the VirtualWire library

void setup() {
  vw_set_tx_pin(12); // Set pin 12 as the transmitter data pin
  vw_setup(2000);    // Set the transmission speed to 2000 bps
}

void loop() {
  const char *msg = "Hello, World!"; // Message to send
  vw_send((uint8_t *)msg, strlen(msg)); // Send the message
  vw_wait_tx(); // Wait for the transmission to complete
  delay(1000);  // Wait 1 second before sending the next message
}

Receiver Code

#include <VirtualWire.h> // Include the VirtualWire library

void setup() {
  Serial.begin(9600);  // Initialize serial communication
  vw_set_rx_pin(11);   // Set pin 11 as the receiver data pin
  vw_setup(2000);      // Set the transmission speed to 2000 bps
  vw_rx_start();       // Start the receiver
}

void loop() {
  uint8_t buf[VW_MAX_MESSAGE_LEN]; // Buffer to store received messages
  uint8_t buflen = VW_MAX_MESSAGE_LEN;

  if (vw_get_message(buf, &buflen)) { // Check if a message is received
    Serial.print("Received: ");
    for (int i = 0; i < buflen; i++) {
      Serial.print((char)buf[i]); // Print the received message
    }
    Serial.println();
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Signal Received

    • Solution: Check the power supply connections and ensure the VCC and GND pins are properly connected.
    • Solution: Verify that the transmitter and receiver are operating at the same frequency (433 MHz).
    • Solution: Ensure the antennas are properly connected and positioned.
  2. Short Transmission Range

    • Solution: Use a longer antenna (17 cm wire) and ensure it is placed vertically.
    • Solution: Minimize obstacles and interference between the transmitter and receiver.
  3. Data Corruption

    • Solution: Use a reliable encoding/decoding library (e.g., VirtualWire) to handle data transmission.
    • Solution: Reduce the data rate if interference is suspected.

FAQs

  • Q: Can the HY-S301 operate at a different frequency?
    A: No, the HY-S301 is designed to operate specifically at 433 MHz.

  • Q: What is the maximum range of the HY-S301?
    A: The module can achieve a range of up to 100 meters in an open, line-of-sight environment.

  • Q: Can I use the HY-S301 with a 3.3V microcontroller?
    A: Yes, the module supports an operating voltage range of 3.3V to 5V, making it compatible with 3.3V microcontrollers.

  • Q: Do I need an external antenna?
    A: While the module can work without an external antenna, adding a 17 cm wire as an antenna significantly improves range and signal quality.