The 433MHz RF Transmitter module is a compact and efficient wireless communication device that operates at the radio frequency of 433MHz. It is widely used for short-range communication in various applications such as remote control systems, home automation, wireless sensor networks, and telemetry. The module is favored for its simplicity, low power consumption, and ability to transmit data over distances typically up to 100 meters in open space.
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3V to 12V DC) |
2 | GND | Ground |
3 | DATA | Data input for modulation |
4 | ANT | Antenna connection (typically a 17cm wire) |
// Include the RadioHead Amplitude Shift Keying library
#include <RH_ASK.h>
// Create an instance of the ASK object
RH_ASK rf_driver;
void setup() {
// Initialize ASK object
if (!rf_driver.init()) {
Serial.println("init failed");
}
}
void loop() {
const char *msg = "Hello World";
rf_driver.send((uint8_t *)msg, strlen(msg));
rf_driver.waitPacketSent();
delay(1000); // Wait for a second before sending the next message
}
Note: The RadioHead library is required for this code. Install it using the Arduino Library Manager.
Q: Can I use multiple transmitters in the same area? A: Yes, but you may need to implement a protocol to avoid signal collision and interference.
Q: What is the maximum range I can achieve with this transmitter? A: The range depends on many factors, including supply voltage, antenna design, and environmental conditions. Under ideal conditions, the range can be up to 100 meters.
Q: Is it legal to use the 433MHz frequency for communication? A: The 433MHz band is commonly used for low-power devices and is license-free in many countries, but always check your local regulations.
Q: Can I connect this transmitter directly to an Arduino UNO? A: Yes, you can connect the DATA pin to a digital output on the Arduino UNO and use the example code provided to transmit data.