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



Working on Version 6. New xbees!!
Nathaniel,I have a simple piece using a bouadrino, xbee and osc over wifi. My fellow officemate and I are using touch osc on iPhone to control a Processing sketch running on a netbook (with xbee connected). I am actually going to post about that next. Couldn’t find a simple way to control arduino wirelessly without a computer in the flow. We’ve pretty much completed a doorbot, which uses this. We’re waiting on a higher torque servo to come in the mail. The standard in these pics just isn’t cutting it.
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
Thanks for the comment! Let’s see if I can aewnsr this. Originally I had all my timer software on the arduino. The arduino, though, can only count time since it was turned on or you can set a date and put up with drift in the internal clock over time. Since I followed another project to build my arduino project I was using the first one, ie counting the number of hours in the day that the garden received light.However, every time I uploaded new code to fix a bug in my code it would reset the clock. So the arduino would begin counting the hours from that point, no matter if it was morning, noon or night! I personally wanted the light to come on in my apartment when I was asleep and during the day while I was away. The light is pretty annoying otherwise. This would mean I’d have to reset the arduino at night if I had reprogrammed it at any time during the day. I put up with this for a little while and then decided I needed a different solution.Using the computer to keep track of the time for me seemed to make a lot more sense. Now I don’t have to reset the arduino very often, but if I do it doesn’t care what time of day it was reset. The computer handles when the light should be on or off, saving me a lot of hassle. I’m sure there are other ways to fix this problem, like building a digital display and clock buttons onto the project, but I didn’t have those parts. And seeing as I wanted to have it send updates to Twitter I figured I could use that connection and save myself the trouble.Does that aewnsr your question? Let me know because I’d love to help with your project too.
You need a wired link from the telephone jack to the modem. If the modem is a modem / rouetr / switch / wireless access point integrated into one unit, you then can activate the wireless for all LAN devices but you MUST configure the rouetr and wireless portions via a wired pc to modem / rouetr / switch / wireless access point port.If you have a strict modem (not an integrated unit as described above), you need a wired link from modem feed to rouetr / switch / wireless access point WAN port as you will need a rouetr / switch / wireless access point integrated unit. You also need to use a pc with a wired link to a rouetr LAN port to configure the rouetr.VA:F [1.9.12_1141](from 0 votes)