Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Infrared Receiver node ====== Block diagram of how the IRnode fits into the system {{:livebox:irnode-block-diagram.png}} {{ :livebox:35200_pv.jpg?200}} By attaching a Infrared receiver to a JeeNode unit we can relay the signal transmitted from the Remote Control to the HAH and produce an xAP message. This message then becomes the hook for //User Applet// scripts to attach and take action. Typical configuration in the JeeNodeApplet.lua <code> IRNode = require("xap.irnode") ... local nodes = { [2] = IRNode{instance="jeenode:ir"}, } </code> This configures the JeeNode with ID of 5 and with an attached IR sensor to relay messages, via RF, to the HAH unit. The IR sensor data pin is connected to ^^ Port ^^ Type ^^ Arduino ^^ Signal ^^ Chip ^^ || Port 2 || DIO || Digital 5 || PD5 || pin 11 || Once the IRnode.pde sketch is loaded onto your jeenode and the HAH is correctly configured, pressing a button on your remote control should produce a message like this. <code> xap-header { uid=FF08DBFE source=dbzoo.livebox.jeenode:ir hop=1 class=IR.Comms v=12 } ir.received { value=550717623 type=1 bits=32 } </code> Note that this configuration is better suited to a JeeNode that is not battery powered. livebox/hah_hahnode/irrxnode.txt Last modified: 2014/01/20 09:03by brett