Wednesday, November 7, 2007

11072007 class

coordinator

Router 1
Router 2
- ATNR
--> set the CH,channel
--> set the PAN ID

manual talble6-03. Networking Commands
Bit(Channel) 0(0x0B) -> ATCH B
0000 0000 0000 0001

pick a channel same as with PAN ID

send command("NI", "**_COORDINATOR"); -> name changed

send command("D1", byte(0x3)); -> digital pin setup

API - Application Programming Interface

ARDUINO CODE
Serial.available()>0
PROCESSING CODE
port.available()>0

int lengthMSB = port.read(); // high byte for length of packet
int lengthLSB = port.read(); // low byte for length of packet

int lengthTotal = (lengthMSB <<8) + lengthLSB; // bit shift and add for total

checksum
-> simple check to detect errors
0xFF = 255

API Identifier 0x8A

Sleep:
ATSM
ATSP : sleep period
ATST : time before sleep
ex) ATSM5, SP64, ST 14---> will wake up pin 9 high, and also every 1 sec.(1000ms) for 20ms

with micro controller -> set the one pin to detect signal to wake up xbee
without the micro controller -> set the sleep time to give interval period continuously to send radio signal

Wednesday, October 24, 2007

Sleeping the XBee

ATSM
1: pin hibernate, <10uA, 13.2 ms wakeup, users pin 9
2: pin foze, <50uA, 2ms wakeup
3:
4: cyclic sleep, also < 50uA, 2ms wakeup, module must be idle
5: cyclic sleep with pin wakeup

ATSP:Sleep period(*10ms)
ATST:Time before Sleep(*1ms)

Advanced AT Commands

ATWR : Write to firmware
ATRE : Factory settings REset
ATVR : Version
ATNI : Node Identifier
ATND : Node Discover
ATDN : Destination Node selection
ATDB : Signal strength in DB (RSSI)
ATGT : Guard Time
ATCT : Command mode Timeout
ATCH : set and read CHannel
ATBD : set and read BaUd rate
ATAP : set API mode

midterm_music buttons(T-shirts?)

DSC06899.JPG
idea diagram

DSC06900.JPG
1st prototype

DSC06906.JPG
DSC06907.JPG
fabrication

10242007 class

byte
int 16 bits
long

unsigned int myVar;

Wednesday, October 17, 2007

mid-term music shirts

music shirts panID 1-A

Tuesday, October 2, 2007