Tuesday, December 22, 2009

Lab10-Wireless

XBee Breakout Board
The XBee breakout board was soldered with male headers on one side and female sockets on the other. The XBee was then mounted to the breakout board, which in turn was mounted to the breadboard.


XBee Connections
The XBee was connected to 3.3V power and ground. The XBee DOUT was connected to Arduino RX, and the XBee DIN was connected to Arduino TX.

Switch Input
A momentary switch and 10K Ohm pull down resistor were added between power and Arduino digital input 2.


Buzzer Output
A speaker was connected to work as a buzzer between Arduino digital pin 5 and ground.


Configure XBees
Both XBee radios were configured with the XBeeConfigTerminal software. Using ATID, ATMY, and ATDL commands, the radios were paired reciprocally.

Program the Arduino Doorbell
The provided code was uploaded to both Arduino boards. When the momentary switch was pressed, the speaker outputted a tone. This verified the wireless connection was made.

Program the Arduino Feedback Doorbell
An LED and 200 Ohm resistor were added to the Switch Input board. The provided code was uploaded to both boards. The updated code allowed the newly added LED to light up when the Buzzer board received a signal and replied. This was tested and confirmed.

No comments:

Post a Comment