Sei sulla pagina 1di 33

ZigBee

Calvin Choy
David Kim
Jason Chong
Devin Galutira

Project Focus
Universal switching to make Archimedes
projects wireless (i.e. toys)
To update and improve the previous ZigBee
design

i.e. Adding a sleep function, LED indicators

Create a manual for students and non-ZigBee


people and documentations.

Gantt Chart

Previous XBee Block Diagram

4 Switches
4 Relay Outputs
*Source Krystinas Xbee Group

Overall Block Diagram of System

Switch
Switch

Switch

Switch

Switch
Encoder
Switch

data in

Picaxe
sleep

Switch

XBee

XBee

(Transmit)

(Receive)

Picaxe

Switch

sleep

Relay

Relay

*Source Krystinas Xbee Group

Improvements
On/Off switch
Sleep function for ZigBee
Sleep status indicator
Power indicator
Standardized casing
Mounting holes
Embedded 3mm mono jacks

Previous Zigbee
Module Designs

Transmit Module

Receive Module
*Source Krystinas Xbee Group

Transmit Circuit

Serial Port

Serial Null Modem Download Cable


On board 3 pin connector
Download BASIC code into Picaxe

Encoder & Microcontroller

8:3 Line Priority Encoder M74HC148, DIP


Cmos, high speed, less voltage than transistor logic
version
5 inputs from switches to control device
2 inputs control time behavior of switch

T - Flip Flop
D - Flip Flop

3 Encoded bits to Microcontroller

Encoder Truth Table

Encoded Bits: LHH represents in6: Switch 4 is activated

Power Supply

9 Volt Battery
All components will run off of 5 V except Xbee 3.3V
Voltage regulators to ensure stable voltage
Xbee: 3.3V, Picaxe 2.4 5.5 V

XBee Transmit
Pin 1: 5 Vcc
Pin 3: DIN: UART Data in, from
Picaxe pin13, out7
Pin 5: RESET
Pin 9: SLEEP_RQ (sleep control)

From Picaxe pin12, out6

Pin 10: Ground


Pin 13: to Sleep Indicator
Pin 14: VRef

Sleep Indicator

New Feature on Zigbee module


Sleep Status Pin, pin 13 on Xbee
LED on indicates sleep mode

Receive Circuit

Microcontroller - Receive
Pin 2: Serial out
Pin 3: Serial in
Pin 4: Reset
Pin 5: Ground
Pin 6: Out 0 > CMOS pin 3 Control A
Pin 7: Out 1 > CMOS pin 5 Control B
Pin 8: Out 2 > CMOS pin 6 Control C
Pin 9: Out 3 > Relay pin 1

XBee Receive
Pin 1: 5 Vcc
Pin 2: DOUT UART Data out
To Picaxe pin17, in0

Pin 5: RESET
Pin 9: SLEEP_RQ (sleep control)
from Picaxe pin13, out7
Pin 10: Ground
Pin 13: to Sleep Indicator
Pin 14: VRef

Quad Bilateral Switch


Pin 1-Pin 2: to Output Switch 1
Pin 3-Pin 4: to Output Switch 2
Pin 5: Control B from Picaxe
pin7,out1
Pin 6: Control C from Picaxe
pin8,out2
Pin 7: Vss Ground
Pin 8-Pin 9: to Output Switch 3
Pin 13: Control A from Picaxe
pin 6, out0
Pin 14: VDD

I/O
O/I
I/O
I/O
Ctrl B
Ctrl C
Vss

Switch

VDD
Ctrl A
Ctrl D
I/O
I/O
I/O
I/O

Relays
Used to operate motors
Pin 10, control1: From Picaxe
pin9,out3
Pin 1,control2: From Picaxe
pin10,out4
Pin 7,8: to Output switch4 &
Output switch5

Printed Boards

Transmit Board

Receive Board

Tx Controller
Switch Address

Serial out

Switch type

Rx Controller
Data

Switch 1

Toggle 1

Latch 1

Switch n

Toggle n

Sleep

Latch n

XBee Test
Module A

Module B
Switch

Switch

Picaxe

XBee

XBee

(Transmit)

(Receive)

Picaxe

LED

2 way signaling
Morse Code test
Both Modules are transmitters and Recievers
Testing program between PicAxe and XBee

LED

Program Test

Test PicAxe selecting program


3 switches to select 5 LEDs
2 switches to determine type of switch

DFF
TFF

Encoder/Bilateral Test
LED
Switch

LED

Switch
Switch
Switch

Encoder

Picaxe

Picaxe

Switch

Quad

LED
LED
LED

Test 5:3 encoding with PicAxe


Test Bilateral with PicAxe

Remaining Tasks
Hardware

Circuit Board
Solder Components

Enclosure
Drill Holes Five plugs for
3mm mono jack outputs

Put module together

Remaining Tasks
Software

XBEE (ZigBee) Chip


Sleep Mode Implementation

Very Important
Power Management

PicAxe Chip
Sleep Mode Coding

Control On/Off of XBEE Chip

Remaining Tasks
Software

PicAxe Chip
Programming in Basic
Receiver

LED indicator
Activate relays/outputs

Transmitter

LED indicator
transmit data and instructions

Remaining Tasks
Testing

Software
Check programming

Hardware
Check connections

Module
Function properly
Test with electronic toy

Remaining Tasks
Educational Kit

Proper documentation
Progress
Technical aspects

Make instruction manual


Accessible for non-ZigBee users

Paperwork

Project Report

Potential Problems
Circuit Board

Error in PCB Circuit layout


Wrong external connections
Wires, outputs, etc.

Software

Implementing sleep pin


Transmit/receive coding

Unforeseen Errors

-EndThank You

Potrebbero piacerti anche