Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:hah_hahnode [2014/01/20 09:01] – [Output Node] brett | livebox:hah_hahnode [2014/02/13 14:57] – [Flashing from the HAH] minerva9 | ||
---|---|---|---|
Line 150: | Line 150: | ||
- | < | + | < |
===== From scratch ===== | ===== From scratch ===== | ||
Line 269: | Line 269: | ||
dbzoo.livebox.jeenode: | dbzoo.livebox.jeenode: | ||
</ | </ | ||
+ | |||
+ | See [[livebox/ | ||
===== Disabling / Renaming endpoints ===== | ===== Disabling / Renaming endpoints ===== | ||
Line 347: | Line 349: | ||
So 120 is too small... 180 is fine - Personally I would make the TTL at least 2x the reporting cycle, this way you can miss ONE event and it won't time out as the 2nd one will reset things. | So 120 is too small... 180 is fine - Personally I would make the TTL at least 2x the reporting cycle, this way you can miss ONE event and it won't time out as the 2nd one will reset things. | ||
- | ====== The Nodules ====== | ||
- | ===== Infrared Receiver node ===== | ||
- | |||
- | Block diagram of how the IRnode fits into the system | ||
- | |||
- | {{: | ||
- | |||
- | {{ : | ||
- | |||
- | Typical configuration in the JeeNodeApplet.lua | ||
- | < | ||
- | IRNode = require(" | ||
- | ... | ||
- | local nodes = { | ||
- | [2] = IRNode{instance=" | ||
- | } | ||
- | </ | ||
- | |||
- | 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. | ||
- | |||
- | < | ||
- | xap-header | ||
- | { | ||
- | uid=FF08DBFE | ||
- | source=dbzoo.livebox.jeenode: | ||
- | hop=1 | ||
- | class=IR.Comms | ||
- | v=12 | ||
- | } | ||
- | ir.received | ||
- | { | ||
- | value=550717623 | ||
- | type=1 | ||
- | bits=32 | ||
- | } | ||
- | </ | ||
- | |||
- | Note that this configuration is better suited to a JeeNode that is not battery powered. | ||
====== Nodule I/O pins ====== | ====== Nodule I/O pins ====== |