Wednesday, December 19, 2007

final project - The Mediatative Mind

project homepage
http://itp.nyu.edu/~jsl398/mind/

xbee library(processing files)
one sensor
http://itp.nyu.edu/~jsl398/mesh/xbee_onesensor.zip
two sensor
http://itp.nyu.edu/~jsl398/mesh/XBee2.zip

AT command for the Meditative Mind

ATMY2-> Tea set
ATMY3 -> Book
ATMY1-> big screen
ATMY4-> LED panel

ATDLFFFF-> for broadcasting to everyone

------------------------------

--------
analogue output sender 1
--------------------------------------
+++ --> Enter into Command mode
ATID9201 --> PAN ID
ATMY2 --> my address 2
ATDL1 --> destination address 1 (broadcast to Xbee below)
ATD02 --> input 0 in analog mode
ATD12 --> input 1 in analog mode
ATD22 --> input 2 in analog mode
ATD32 --> input 3 in analog mode
ATIR64 --> sample rate 100 milliseconds (hex 64)
ATIT1 --> transmitting just 1 sample!
ATWR --> write settings to firmware


--------------------------------------
digital output sender 2
--------------------------------------
+++ --> Enter into Command mode
ATID9201 --> PAN ID
ATMY3 --> my address 3
ATDL1 --> destination address 1 (broadcast to Xbee below)
ATD03 --> input 0 in digital mode
ATD13 --> input 1 in digital mode
ATD23 --> input 2 in digital mode
ATD33 --> input 3 in digital mode
ATIR64 --> sample rate 100 milliseconds (hex 64)
ATIT1 --> transmitting just 1 sample!
ATWR --> write settings to firmware

-------------------------------------------
input XBee radio connected to computer
-------------------------------------------
+++ --> Enter into Command mode
ATID9201 --> PAN ID
ATMY1 --> my address 1
ATDL0 --> destination address 0 (we don't have a destination for now)
ATDH0 --> destination address 0

mid-term music shirts -push and play!

push and play! documentation page

http://itp.nyu.edu/%7Ejsl398/push/

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;