IMPORTANT: After forum data loss deleting half of this topic I recreated a newer and updated topic intro. If you haven't read this topic before, I recommend starting here: http://forum.mysensors.org/topic/146/building-an-ir-blaster/50
After discovering that I could create an IR device using MySensors, I wondered if I would use this as a substitute to SQ Blaster, iTACH, or USB-UIRT.
I tossed together an Arduino Nano, the NRF24L01, and an IR LED. I then created a simple program based to see what I could do with the IR device, and if I could get the Vera to use the Arduino as an IR transmitter.
Here is the program: I got rid of the # because it made the text a weird size in the forum.
include <Sensor.h>
include <SPI.h>
include <EEPROM.h>
include <RF24.h>
define ID 1
Sensor gw;
void setup()
{
gw.begin();
gw.sendSensorPresentation(ID, S_IR);
}
void loop()
{
delay(10000); // Wait 10 seconds
}
After adding the Arduino to the gateway, I encountered a problem. As soon as I add the IR device to Vera, the whole MySensors plugin glitches out, preventing all of my sensors from working. The first picture shows what the IR device looks like right after I add it, and then 20 seconds later, the second picture shows what happens until I delete the IR device from Vera.
Does anybody know what I am doing wrong? Thanks for your help!!
Steven