Jeenode IR transmitter node (V01)

2 replies [Last post]
garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011

All,

After playing with Brett's excellent examples and a few? hours on google I have managed to get an IR transmitter node up and running and thought I'd share it. It works great with my home cinema/audio kit with a nice MOTE gui forIPAD control :)

(would be just as good on joggler too i'm sure but I ain't got one...yet! )

In summary there is an IRTxNode.pde sketch that can send IR commands for the following protocols:

NEC, Sony, JVC, RC5, RC6.

I have included one wire just for the hell of it (attached to pin4 same as roomnodes) - but it can be ommited by not including the endpoint in the jeenodeApplet.

In order to use this, put the irtxnode.lua decoder in your plugboard directory and modify your Jeenode applet to include the following:

IRTxNode = require("irtxnode").IRTxNode

and

   [2] = IRTxNode{base="dbzoo.livebox.jeenode:lounge", endpoints={IRTxdata=1,temp=1}, ttl=360},

(where [2] is your jeenode ID)

Flash a jeenode with the sketch (after first configuring its ID etc)

Attach an IR LED to any one of the I pins on any of the ports.

Once done, a message like so will send a control command to the jeenode sketch:

xap-header
{
v=12
hop=1
uid=FF000F00
class=xAPBSC.cmd
source=dbzoo.livebox.demo
target=dbzoo.livebox.jeenode:lounge.IRTxdata
}
output.state.1
{
id=*
state=on
text=N482c00ff
}

The code (sent within the text key) should be up made as follows:

the first digit is the protocol, J=JVC, N=NEC, R=RC6, r=RC5, S=Sony.

then there needs to be eight characters for the HEX IR command. For example, J0000c5e8 sends a JVC power on/off code. The example above is an NEC code for power on/off of my digibox.

I think that's it for instructions.

Version two will attempt to integrate Brett's IRnode to allow transmit and receive from the same jeenode.

I'll post info if and when I get that working.

Having a rest for now, this took me way longer than I thought it would but its all learning ain't it.

Hope its useful for someone.

Garry

AttachmentSize
IRTxNodepde.txt5.43 KB
irtxnode.lua1.34 KB
AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Really like this, excellent

Really like this, excellent job! im a fair way away from intergrating IR into my HAH but when i do i will know where to come back too

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Hey Gary that is pretty

Hey Gary that is pretty slick, nice job.  Good to see that the LUA jeenode framework does much of heavy work for you as there wasn't a lot to code in your applet to get some great things happening.

Brett

Hardware Info