livebox:hah_hahnode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
livebox:hah_hahnode [2014/01/20 09:01] – [Output Node] brettlivebox:hah_hahnode [2014/02/15 11:52] (current) – [Building your own] minerva9
Line 64: Line 64:
   * HAHnode PCB    * HAHnode PCB 
   * ATMega328P chip (pre-programmed)   * ATMega328P chip (pre-programmed)
-  * RFM12B - RF Transceiver module+  * {{:livebox:rfm12b.pdf|RFM12B}} - RF Transceiver module
   * Voltage regulator IC   * Voltage regulator IC
   * 16MHz ceramic resonator   * 16MHz ceramic resonator
Line 113: Line 113:
 </code> </code>
  
-Hit the return key a acouple of times. You should see the following menu of commands.+Hit the return key a couple of times. You should see the following menu of commands.
  
 <code> <code>
Line 150: Line 150:
  
  
-<note>Unlike the baseNode, the roomNodes do not transmit anything on the serial port. So there is no point in soldering up that 6way molex connector & plugging a roomNode into the HAH (this is why this part is not supplied with a roomNode kit). They only transmit via RF. Amongst other things, this saves precious battery power. Just use your baseNode hardware to program all the AVR chips (and, to avoid confusion, label the chips as you go!).</note>+<note>Unlike the baseNode, the roomNodes do not transmit anything on the serial port. So there is no point in soldering up that 6way molex connector & plugging a roomNode into the HAH (this is why this part is not supplied with a roomNode kit). They //only// transmit via RF. Amongst other things, this saves precious battery power. Just use your baseNode hardware to program all the AVR chips (and, to avoid confusion, label the chips as you go!).</note>
 ===== From scratch ===== ===== From scratch =====
  
Line 269: Line 269:
 dbzoo.livebox.jeenode:attic.light dbzoo.livebox.jeenode:attic.light
 </code> </code>
 +
 +See [[livebox/hah_hahnode/nanode_gateway]] for advanced integration concepts.
  
 ===== 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 I would use a TTL of 300 seconds. 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 I would use a TTL of 300 seconds.
  
-====== The Nodules ====== 
  
  
  
-===== 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").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. 
  
 ====== Nodule I/O pins ====== ====== Nodule I/O pins ======
  • livebox/hah_hahnode.1390208468.txt.gz
  • Last modified: 2014/01/20 09:01
  • by brett