Project tutorial
Radio Hello World

Radio Hello World

Easy 'Hello World' with an RF 433MHz transmitter/receiver module and Arduino.

  • 2,834 views
  • 0 comments
  • 10 respects

Components and supplies

Apps and online services

About this project

Radio Hello World

Hello World message between two Arduino boards via an RF443MHz transmitter / receiver module.

Code

Receiver CodeArduino
//RECEIVER

// RadioHead - Version: Latest 
#include <RH_ASK.h>
// SPI - Version: Latest
// Not actualy used but needed to compile 
#include <SPI.h>

RH_ASK driver; 

void setup()
{
    Serial.begin(9600);
    if (!driver.init())
         Serial.println("init failed");
}

void loop()
{
    uint8_t buf[12];
    uint8_t buflen = sizeof(buf);
    if (driver.recv(buf, &buflen))
    {
      int i;
      Serial.print("Message: ");
      Serial.println((char*)buf);         
    }
}
Transmitter CodeArduino
//TRANSMITTER

// RadioHead - Version: Latest 
#include <RH_ASK.h>
// SPI - Version: Latest
// Not actualy used but needed to compile 
#include <SPI.h>

RH_ASK driver; 

void setup()
{
    Serial.begin(9600);
    if (!driver.init())
         Serial.println("init failed");
}

void loop()
{
    const char *msg = "Hello World!";
    driver.send((uint8_t *)msg, strlen(msg));
    driver.waitPacketSent();
    delay(1000);
}

Schematics

Fritzing Mounting Plate
Fritzing plate pdzmxxgf0u

Comments

Similar projects you might like

Arduino Bluetooth Robot for Android Device

Project showcase by aip06

  • 3,617 views
  • 2 comments
  • 16 respects

Simplest Way for Voice Recognition Project Using c#toarduino

Project tutorial by Jalal_Mansoori

  • 13,702 views
  • 30 comments
  • 58 respects

Morse Code Communication Using Arduino

Project tutorial by Jalal_Mansoori

  • 7,587 views
  • 17 comments
  • 30 respects

Auto-Keyer for Radio "Fox Hunting"

Project tutorial by nfarrier

  • 4,205 views
  • 3 comments
  • 7 respects
Add projectSign up / Login