DIY Rovio TrueTrack beacons

This is based on the work of http://www.thingiverse.com/thing:7101


#include <Tone.h>

Tone tone1,tone2;

void setup()
{
  tone1.begin(9);
  tone2.begin(11);
  tone1.play(3150);
  tone2.play(2070);
  Serial.begin(9600);
}

void loop()
{
  if(Serial.available() >= 10)
  {
    char d[6];
    for(int x=0;x<5;x++)
    {
      d[x] = Serial.read();
    }
    d[5] = 0;
    int hx = atoi(d);
    Serial.println(hx);
    for(int x=0;x<5;x++)
    {
      d[x] = Serial.read();
    }
    d[5] = 0;
    int hy = atoi(d);
    Serial.println(hy);

    tone1.play(hx);
    tone2.play(hy);
  }
}
//1000,4000

Frequencies

  • Room 0 – 3030 & 2010 = 65535 strength
  • Room 1 – 3150 & 2070 = 43000 strength (or 1050 & 2080 = 65000 strength)
  • Room 2 – 4170 & 3210 = 10000 strength
  • Room 3 – 4290 & 3330 = 25000 strength
  • Room 4 – 1470 & 1150 = 65000 strength
  • Room 5 – 1190 & 2270 = 65000 strength

Leave a Reply