Sue B. Cue Light exploration using arduino and Xbee

Project Cue Light system using arduino and xbee

version 1

coordinator board Arduino to components. xbee shield not in view.

Receiver board: shown with out xbee shield to show all wiring connections

 

Wireless Cue Light Projectfall 2011 power point description includes original arduino content Fall 2011.

 

New version learned how to use ZIGBEE XBees this summer.

Version two of the system

Goals of version 2

1-Update the XBee units to Zigbee: “ XB24-ZB”.  Make sure no delays were contributed by networking devices. Update arduino code; add in the process of feedback so that the stage managers control box LED’s will light up only if the receiver’s box receives the turn on command.

End result: time delay gone. Feedback had a positive result.

 

 

XBEE radio’s are devices that furnish end users the ability to wirelessly connect devices in mesh networks. Xbee’s can be networked in pairs using the X-CTU software and hardware.

 

Version 6

Update XBEES!!

To create a network of xbee devices with more than two xbee devices. The challenge is the end user must network the devices wirelessly. First one unit will be defined as the controller, then each router is configured to look for and attach itself to the controller creating a network of devices.

 

Tools used to configure XBEE devices

Two HP PC laptops

1 with X-TCU software and hardware

1 with Terra term and spark fun XBEE explorer USB

The  X-TCU is needed to configure each unit

One unit as the “ZIGBEE COORDINATOR AT”

All other units as “ZIGBEE ROUTER AT”

Chart out all planned and permanent addresses of all units and label each with a unique name.

XBEE

ATNI

pan ID

ATSH

ATSL

ATDH

ATDL

LABEL

unit 1

COORDINATOR

1966

13A200

40795AA1

13A200

FFFF

C2

unit 2 ROUTER 1

1966

13A200 40795AD4

13A200

FFFF

R1

unit 3 ROUTER 2

1966

13A200 407695E4

13A200

FFFF

R 2

unit 4 ROUTER 3

1666

13A200 40769726

13A200

FFFF

R3

 

 

 

 

 

Basic terminal commands

+++ wake up
AT Hello
ATID current Pan ID
ATSH high address of xbee  always 13A200
ATSL low address of xbee
ATDH should always be 13A200
ATDL assignable low address of a AT router device
ATDN put xbee into transparent or working mode
ATRE return to factory defaults
ATWR save current cofiguration even after power down
ATMY show 16 bit address
ATNI network identifier
ATSC scan channel
ATND associated nodes command
ATDN destination node
ATNRO network reset command
ATNR network reset command ATNR0
ATVR what firmware in use
ATSC scan coordinators and routers must match to talk

 

Steps for coordinator

Put first device into the X-TCU board

Go to Modem Configuration tab in the X-TCU software

Click on restore in the modem parameters and functions tab

This will reset the current device parameters to factory specs

Change the function set to ZIGBEE COORDINATOR AT

Click on “Write” in the modem parameters and functions tab

When this is done click on “Read”

The function set should now say “ZIGBEE COORDINATOR AT”

At this point the pan ID should be selected, it will be the same  for all of the devices in the network.

Click on PAN ID top of the list inside your control window type in your pan ID.

Click on “WRITE” when sequence is done

Click on “READ” the pan ID should now be in blue and the ID you chose.

Now it is time to do the exact same process with each device you designate as a router

Steps for Router

Install second device into the X-TCU board

Go to Modem Configuration tab in the  X-TCU software

Click on restore in the modem parameters and functions tab

This will reset your current device parameters to factory specs

Change the function set to ZIGBEE ROUTER AT

Click on “Write” in the modem parameters and functions tab

When this is done click on “Read”

The function set should now say “ZIGBEE ROUTER AT”

At this point you need to select the SAME pan ID you selected for the controller.

It must be the same for all your devices.

Click on PAN ID top of the list inside your control window type in your pan ID.

Click on “WRITE” when sequence is done

Click on “READ” the pan ID should now be in blue and the ID you chose.

Steps to have coordinator talking to each router

Readying  Coordinator device for addressing

Put the coordinator device into in the X-TCU hardware unit

Every symbol typed in the terminal tab is colored blue

All xbee responses  are colored in  red

Type +++ into the terminal command line

The xbee will respond back with ok

The command line is only active for ten seconds and goes back into transparent mode for functionality

 

Type ATID

The unit will respond back with the assigned Pan ID number you chose earlier. Example: 4000

Reset network command ATNR0  ok

Save current configuration even after power down ATWR ok

Leave the coordinator in the X-TCU unit powered up ready to communicate

Readying  Router devices for addressing

You will prep one router at a time to communicate with the coordinator

Using the second laptop put one Router into the spark fun XBEE  explorer USB

Plug one of the router devices into the Xbee explorer USB unit

The terra term terminal is the same as the  X-TCU terminal

Every symbol typed in the terminal tab is colored blue

All xbee responses  are colored in  red

Type +++ into the terminal command line

The xbee will respond back with ok

The command line is only active for ten seconds and goes back into transparent mode for functionality

Type ATID

The unit will respond back with the assigned Pan ID number you chose earlier. Example: 4000

Reset network command ATNR0  ok

Save current configuration even after power down ATWR ok

Type ATND  device to look for associated destination node

A string of info will appear within ten seconds looking like this:

0000

0013A200                    high address of xbee coordinator

40795AA1                    low address of xbee coordinator

 

FFFE                             channel selected

0

0

C105

101E

 

Save current configuration even after power down ATWR ok

Next wait ten seconds for each unit to become transparent.

 

Type “ddd” in the terra term terminal screen. The “ddd” should appear instantly in the X-TCU terminal screen. Next type  “ggg” in the X-TCU terminal screen. The “ggg” should appear instantly in the terra term screen. If this last test works the units are now networked.

Follow the same process for each Router to be include in the system.

 

test video

 

2 Responses to Sue B. Cue Light exploration using arduino and Xbee

  1. admin says:

    Working on Version 6. New xbees!!

    • Jesper says:

      Thanks for the encouragement! I rellay appreciate it. My next big step is getting the on board serial to talk back over wireless so that I can publish it to a website or twitter. This is all for an automated garden project I’ve set up and I’d like to keep tabs on it when I’m at work.I’m curious, do you work with/for Contraptor.org? I think the stuff there is rellay great and I’d love to get my hands on the CNC set that is being offered there. Having one of those around the house would be a huge help in other projects.Good luck with keeping the man cave warm!Chris

Leave a Reply