Skip to content

Br3nda/wallynet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wallynet

build status

Usage

2 methods, for sending beaconed messages over ultra cheap 433MHz transmitters.

In the arduino ide, in setup(), tell the library:

  • which pin the 433MHz transmitter was wired to,
  • which led to light to indicate transmission (Uno have a handy led on pin 11)
  • what your station is called.

wallynet_setup(int transmit_pin, int led_pin, String station_name);

Example

wallynet_setup(1, 11, "laundry");

Use wallynet_send_beacon to transmit.

wallynet_send_beacon(String reading_name, String reading_value)

e.g.

  float humidity = DHT.humidity;  
  wallynet_send_beacon("humidity", (String) humidity);
#include <WallyNet.h>

const int led_pin = 11;
const int tx_pin = 1;

void setup() {
  wallynet_setup(tx_pin, led_pin, "sensor-one");
}

void loop() {
  float sensor_reading = 123.22; // get this from your sensors
  wallynet_send_beacon("temp", (String) sensor_reading);
  delay(63000);
}

Recieving messages

#include <WallyNet.h>

const int led_pin = 13;
const int rx_pin = 2;

void setup() {
  Serial.begin(115200);  // What speed to output recieved messages at.
  wallynet_setup_rx(rx_pin, led_pin);
}

void loop() {
  wallynet_listen();
}

installation

  cd [arduino-instalation]/libraries
  git clone https://github.com/Br3nda/wallynet.git

Then restart you arduino ide

Hardware

  • reciever and transmitters are currently USD1.99 for a pair at dx.com
  • transmtters are current USD1.33 at dx.com

Dependencies:

Notes:

  • Messages are un-encrypted and trivially intercepted or jammed
  • Nothing checks that the message was recieved
  • Your own transmitters may all transmit over the top of each other, and garble each other.