433 MHz RF module

433 MHz RF module

This page is to Setup and Config 433 MHz RF module

Hardware and Software

Hardware

433 MHz RF module and Arduino

Software

1. Arduino IDE

Support :

Reference

    • (Project Level) http://arduinobasics.blogspot.hk/2014/06/433-mhz-rf-module-with-arduino-tutorial.html

    • (Good) http://randomnerdtutorials.com/rf-433mhz-transmitter-receiver-module-with-arduino/

    • (With Other Remote Control) http://www.princetronics.com/how-to-read-433-mhz-codes-w-arduino-433-mhz-receiver/

    • (Detail) http://www.instructables.com/id/RF-315433-MHz-Transmitter-receiver-Module-and-Ardu/

    • (Simple But Good) https://arduino-info.wikispaces.com/433-315Mhz-Pairs

    • (Detail and Project Level) https://www.pjrc.com/teensy/td_libs_VirtualWire.html

Example :

Sanki Notes

    • Download Drive : http://www.airspayce.com/mikem/arduino/RadioHead/RadioHead-1.41.zip

Examples

    • Receive

Send

        1. #include <RH_ASK.h> #include <SPI.h> // Not actualy used but needed to compile RH_ASK driver; void setup() { Serial.begin(9600); // Debugging only Serial.println("Start"); if (!driver.init()) Serial.println("init failed"); else Serial.println("init OK"); } void loop() { uint8_t buf[30]; uint8_t buflen = sizeof(buf); if (driver.recv(buf, &buflen)) // Non-blocking { int i; // Message with a good checksum received, dump it. Serial.print("Message: "); Serial.println((char*)buf); } }

        2. #include <RH_ASK.h> #include <SPI.h> // Not actually used but needed to compile RH_ASK driver; void setup() { Serial.begin(9600); // Debugging only if (!driver.init()) Serial.println("init failed"); else Serial.println("init OK"); } int iCount = 0; void loop() { const char *msg = "Hello World !"; //const char *msg = iCount; driver.send((uint8_t *)msg, strlen(msg)); driver.waitPacketSent(); Serial.println("Sending....."); iCount = iCount + 1; delay(500); }