Page 1 of 1
Networked On Air Light
Now that anyone can broadcast video over the Web, it's time to learn how to build your own "Now Streaming" light that checks to see if you're streaming!
- Author: Matt Richardson
- Time required: 2 to 3 hours
- Difficulty: Moderate
You may have seen those "On Air" lights at film, radio or television studios. Now that anyone can broadcast video over the internet, it's time to learn how to build your own "Now Streaming" light that even wirelessly checks to see if you're streaming!
This guide will show you how to:
- Set up the XBee Internet Gateway
- Connect your XBee to an Arduino to poll a web server for data
- Use Ustream's API to check if a channel is broadcasting
- Use a relay to control an incandescent light fixture
- Mount the light fixture a wood panel
Sections
- Mount the Light Fixture
- Connect the Relay in Line with the Light Fixture
- Set Up the XBee Internet Gateway
- Configure the XBee Radio
- Configure the XBee Radio, Continued
- Set up the Arduino
- Connect the power
- Finishing Touches
Tools
- Rotary Tool
- Soldering iron

- Wire cutter/stripper
- XBee Adapter, USB For configuring your XBee radio. Many options available. Also can use your Arduino as a serial pass through.
Relevant parts
- ConnectPort X2 Be sure you're ordering part number X2-Z11-EC-A as there are a lot of variants on this product.

- XBee Series 2 Wireless Module There are lots of variants of this part. You can't go wrong with part number XB24-Z7WIT-004.

Relevant parts (continued)
- Arduino microcontroller, Any type

- XBee Shield Any other kind of XBee adapter will work. This one sits nicely on top of the Arduino.

- Wall-Mount Oval Bulkhead Light Any wall-mount light will do. The style of this one goes nicely with this project.

- Relay Circuit Board Make your own or order a premade relay. Used to close the AC circuit using the digital pin of the Arduino.

- Cradled Wood Panel, 8x10", 2" Deep Available at art supply stores near the canvases
- Peel & Stick Vinyl Letters, 1/2" Black Can be found at an office supply or art supply store.
- Lamp cord
- Cube tap extension cord

- Velcro (6") Or use another mounting method such as standoffs or mounting tape.
- Lightbulb, Red, low wattage Look for "party" light bulbs
- View:
- Paginated
- Full width

Edit Step 3
— Set Up the XBee Internet Gateway
¶
Download the XBee Internet Gateway software.
Use an Ethernet cable to conenct the ConnectPort X2 to your router. Determine its IP address by using the software on the CD included with the ConnectPort or by checking your router's log for the MAC address.
The ConnectPort X2's MAC address is printed on the bottom of the unit.
Enter the ConnectPort's IP address into your web browser's location bar.
Under the Python menu, upload the two XBee Internet Gateway files: xig.py and _xig.zip.
Click "Auto-start settings" and add xig.py and enable it. Apply those settings.
Under the Reboot menu, click "Reboot."

Edit Step 4
— Configure the XBee Radio
¶
Attach the XBee to the USB adapter and launch a terminal program such as CoolTerm.
Select the port that matches your USB adapter and select "Local echo" and click OK and then "Connect."
In the terminal window, type "+++" to enter command mode. The modem will respond "OK"
Command mode is active for 10 seconds after you type "+++" or hit enter after an AT command. If you take too long, type the plus signs again to go back into command mode.
Type ATID AAAA to set the PAN ID to match your gateway. The modem will respond "OK".
Type ATDL 0 to set the low byte of the destination address to the ConnectPort X2, which is the coordinator of the network. Zigbee Network Coordinators always have the low address of 0. The modem will respond "OK".
Type ATDH 0 to set the high byte of the destination address to the ConnectPort X2, which is the coordinator of the network. Zigbee Network Coordinators always have the high address of 0 The modem will respond "OK".

Edit Step 5
— Configure the XBee Radio, Continued
¶
Type ATBD 7 and hit Enter to set the baud rate to 115200. The modem will respond "OK".
You can check any of the settings by typing the command without the parameter.
When you've confirmed that the settings are correct, type ATWR to write the settings to the modem's flash memory.
Disconnect and reconnect at 115200 baud.
Type help. The response should be information about the XBee Internet Gateway. If not, verify the ConenctPort and XBee settings.
Type in a web address such as http://www.google.com/ and hit Enter. If you see HTML, you've configured the XBee Internet Gateway correctly.
This guide has been completed 1 time.
Page 1 of 1
Comments 
Comments are onturn off
No comments.
