Project tutorial
Radio Hello World

Radio Hello World

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

  • 929 views
  • 0 comments
  • 6 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 101 Packet Radio IMU

Project showcase by Phil V and Gregory O. Voronin

  • 6,902 views
  • 2 comments
  • 19 respects

"Mini-Vintage" Internet Radio

Project tutorial by Guilherme Schallenbach

  • 28,864 views
  • 24 comments
  • 135 respects

Arduino TEA5767 FM Radio Receiver

Project tutorial by Nick Koumaris

  • 20,025 views
  • 3 comments
  • 20 respects

Arduino / Raspberry Pi Internet Radio

Project tutorial by Anthony Kelly

  • 12,000 views
  • 2 comments
  • 33 respects

Simplest Way for Voice Recognition Project Using c#toarduino

Project tutorial by Jalal_Mansoori

  • 8,352 views
  • 28 comments
  • 48 respects
Add projectSign up / Login