used to control the LED and send commands to
SmartThings.
Now that you have your circuit built, you can transfer
your XBee Pro from the USB programmer to your new
circuit and continue on to the next section about loading
the firmware. If you’re using
the ZB-LED PCB (Figure 8),
make sure you plug in your
XBee as shown.
Step 3) Loading
the Propeller
Firmware.
Load the
zB_LedDemoA2.Spin
program from the article
link and configure the pin
assignments for your circuit. If you’re using the ZB-LED
PCB, the pin assignments will be correct (Figure 9).
Once you have the pins set correctly, save the settings
and then load the program (zB_LEDDemoA2.SPIN, also at
the article link) to the Propeller’s EEPROM. Bring up the
January 2016 41
Cmd Setting Description
ZS 0x2 Set ZigBee stack to 2
NJ 0x5A Set network join time to 90 seconds
EE 0x1 Enable the use of encryption keys
EO 0x1 1 = Use trust center to get network key
KY 0x5A6967426565416C6C69616E63653039 This is the trust center link key
BD 0x7 Set baud rate to 115200
D6 0x1 Turn on RTS flow control
AP 0x1 Enable API mode
AO 0x3 Explicit API mode with ZDO pass-through
Table 4.
FIGURE 7. ZB-LED PCB for
Propeller Mini.