Difference between revisions of "Zigbee Application Guide"
Line 18: | Line 18: | ||
The Zigbee, LCD and Switch E-Blocks all need to be powered via wire connections to the +V on their respective EB006 upstream processor board. | The Zigbee, LCD and Switch E-Blocks all need to be powered via wire connections to the +V on their respective EB006 upstream processor board. | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
− | |+Hardware Setup | + | |+Hardware Setup (Node 1 - Coordinator) |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| | | | ||
|EB006 | |EB006 | ||
|PICmicro multiprogrammer | |PICmicro multiprogrammer | ||
+ | |- | ||
+ | |Port A | ||
+ | |- | ||
+ | |Port B | ||
+ | |EB005 | ||
+ | |E-blocks LCD board | ||
+ | |- | ||
+ | |Port C | ||
+ | |EB051C | ||
+ | |E-blocks Zigbee board | ||
+ | |- | ||
+ | |Port D | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" | ||
+ | |+Hardware Setup (Node 2 - End Node) | ||
+ | |- | ||
| | | | ||
|EB006 | |EB006 | ||
|PICmicro multiprogrammer | |PICmicro multiprogrammer | ||
+ | |- | ||
+ | |Port A | ||
+ | |- | ||
+ | |Port B | ||
+ | |- | ||
+ | |Port C | ||
+ | |EB051R | ||
+ | |E-blocks Zigbee board | ||
+ | |- | ||
+ | |Port D | ||
+ | |EB007 | ||
+ | |E-blocks switch board | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" | ||
+ | |+Hardware Setup (Node 3 - End Node) | ||
+ | |- | ||
| | | | ||
|EB006 | |EB006 | ||
|PICmicro multiprogrammer | |PICmicro multiprogrammer | ||
|- | |- | ||
− | |Port | + | |Port A |
− | | | + | |- |
− | |||
− | |||
− | |||
− | |||
|Port B | |Port B | ||
|EB004 | |EB004 | ||
|E-blocks LED board | |E-blocks LED board | ||
|- | |- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|Port C | |Port C | ||
|EB051R | |EB051R | ||
|E-blocks Zigbee board | |E-blocks Zigbee board | ||
|- | |- | ||
− | |||
− | |||
− | |||
|Port D | |Port D | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
− | |||
− | |||
== Example 1: Simple two node connection example == | == Example 1: Simple two node connection example == |
Revision as of 08:06, 3 September 2014
Contents
Introduction
These examples demonstrate the use of the Flowcode Zigbee component.
In particular they make use of up to three sets of the EB051 E-blocks Zigbee boards, connected to EB006 E-blocks PICmicro multiprogrammers fitted with a 16F1937 microprocessor.
However, the examples are easily changed in Flowcode to support other microprocessors and platforms.
The Matrix TSL EB421SI6 Easy Zigbee bundle has all the items required for these sample applications and is an ideal introduction to Zigbee technology.
Setting up the project hardware
Connect the E-Blocks as indicated in the table below.
The Zigbee, LCD and Switch E-Blocks all need to be powered via wire connections to the +V on their respective EB006 upstream processor board.
EB006 | PICmicro multiprogrammer | |
Port A | ||
Port B | EB005 | E-blocks LCD board |
Port C | EB051C | E-blocks Zigbee board |
Port D |
EB006 | PICmicro multiprogrammer | |
Port A | ||
Port B | ||
Port C | EB051R | E-blocks Zigbee board |
Port D | EB007 | E-blocks switch board |
EB006 | PICmicro multiprogrammer | |
Port A | ||
Port B | EB004 | E-blocks LED board |
Port C | EB051R | E-blocks Zigbee board |
Port D |
Example 1: Simple two node connection example
Simple Two Node Connection Example (Node 1) Simple Two Node Connection Example (Node 2)
Example 1 is a simple 2 node system. The Coordinator node 1 starts up the network and then checks to see if node 2 is available. Once node 2 has been detected any incoming data from node 2 is displayed on the LCD display. The data on node 2 is specified by pressing a switch on the switch E-Block connected to Port D.
Example 2: Three node data transfer example
Three Node Data Transfer Example (Node 1) Three Node Data Transfer Example (Node 2) Three Node Data Transfer Example (Node 3)
In example 2 we will connect all 3 of the multiprogrammer boards to the Zigbee network. The Coordinator node will start up the network and then check that all nodes are present. Once all of the nodes have been successfully discovered the program then sends out a 0 which triggers the end nodes to start their main functionality. That is to send the switch data from node 2 to the LED board on node 3.