[TUT] how to record IR commands IR sender/receiver

Moderator: leecollings

Post Reply
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

[TUT] how to record IR commands IR sender/receiver

Post by Justintime »

Finally figured out how to record IR commands and to store them on the Mysensors EEPROM.

I am a NOOB and this is the NOOB way.

First compile the Arduino Sketch and change maximum stored codes. It depends on which board how much codes you can store. I have a UNO and 40 is okay. Just try and see if it can compile.

Code: Select all

#define           MAX_STORED_IR_CODES     40
IRCode            StoredIRCodes[MAX_STORED_IR_CODES];
Download this tool https://forum.mysensors.org/topic/838/w ... -mysensors And use the beta for V2.0 Mysensors lib.

Click on settings and select the communication port. I have a USB serial so i select the COM port. Otherwise you have to select the IP adres of the GW.

Connect and you will see the IR Rec/Playback2.0 node. highlight the node underneath you see "send message" select: "C-_set" subtype "V_IR_record" and payload is the stored position. So begin with 1 and end with max. 40 in this case.

Click send and press the desired button on the remote control
.
I find it convinent to connect the IR Sender/receiver node to another com port on the pc and read out the status with the Arduino serial monitor. So you will see if it's okay.

Repeat progress untill you are done.

In Domoticz Allow new hardware and press the remote buttons. New devices will be added.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest