watchbird tm demo

53

Upload: misha

Post on 07-Jan-2016

31 views

Category:

Documents


1 download

DESCRIPTION

Watchbird TM Demo. Samantha Grist – President Eric Shen – VP Hardware Derek Lowes – VP Software Andra St. Quintin – CFO and VP RF Tech. Watchbird TM Demo: ObjectivesMay 5 2009. Outline. Background and Introduction System Operation Video Watchbird™ Web Interface and Database - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Watchbird TM  Demo
Page 2: Watchbird TM  Demo

• Background and Introduction• System Operation Video• Watchbird™ Web Interface and Database• Watchbird™ Server• Watchbird™ Base Station• Sensor End Circuitry and Door Lock• Conclusion• Questions• Demo

Sam Grist
Sam to do this part.
Sam Grist
Eric to do this part
Sam Grist
Derek to do this part
Sam Grist
Derek to present most of this section. Derek - If you think you have too much to present, maybe Eric could take some of the Server stuff or Andra could take some of the Base Station stuff? I can make the slides for Base Station Hardware and interface to RF.
Sam Grist
Andra to do this section
Sam Grist
Sam to do this section
Page 3: Watchbird TM  Demo

Goals User-Installable User-Expandable No Monthly Fee Peace-of-mind away from home

Motivation All similar products expensive and do not offer all of Watchbird™’s features Who hasn’t wondered “Did I lock my door?” or “Is my oven off?”

Page 4: Watchbird TM  Demo

SMS text message to query sensor status Text message reply with sensor status

SMS text message to lock or unlock door Door is locked or unlocked Text message reply with new status of all sensors

Inputs

Outputs

Watchbird

Setup InformationCell Phone Requests

Sensor Data

“ Status” Texts to UsersDoor

Locking/Unlocking

Page 5: Watchbird TM  Demo
Page 6: Watchbird TM  Demo

Security System Monthly Fee Does not generally lock/unlock door Difficult/expensive to query remotely if available Does not give status of appliances

Internet Door Lock Monthly Fee Can only query over the internet (user needs a smartphone if away from a computer) Will not give status of oven, windows, etc.

Page 7: Watchbird TM  Demo
Page 8: Watchbird TM  Demo

Server

Server Program

DatabaseConfigurati

on Web Interface

Base Station and Cell Phone Messaging Processing

SQL Server

Program reads settings from database Internet Information

Service (IIS)

Website read from

and write to database

Page 9: Watchbird TM  Demo

User Access Menu Log in Change Password

Watchbird Configuration Menu User Profile Sensor List Format Validation

Page 10: Watchbird TM  Demo

Dynamic Website Visual Web Developer

Microsoft ASP.NET C# Microsoft SQL Database

Page 11: Watchbird TM  Demo
Page 12: Watchbird TM  Demo

ApplicationApplication QueryQuery DatabaseDatabase

Connection to serverConnection to server

SQL ServerSQL Server SQL Update CommandSQL Update Command

Web Interface

Page 13: Watchbird TM  Demo
Derek Lowes
I think this section might benefit having 2 pictures of a cell phone sending a request text message and receiving a response text message. I don't have a camera, but if someone does, perhaps we can add those sometime before the actual presentation?
Andra St. Quintin
Hi Derek - here are the low-res pictures. Not sure where you want to place them. Maybe when we're done emailing, I will put in slightly higher res ones.
Page 14: Watchbird TM  Demo

d Watchbird

Password

Request (Actuator)

d Watchbird

1234abcd lock door

d Watchbird

1234abcd unlock door

d Watchbird

1234abcd query

Resulting Email:Resulting Email:

1234abcd lock door1234abcd lock door

6041234567 / 6041234567 / ChickadeeTechChickadeeTech

Message Format:Message Format:

Derek Lowes
I think this section might benefit having 2 pictures of a cell phone sending a request text message and receiving a response text message. I don't have a camera, but if someone does, perhaps we can add those sometime before the actual presentation?
Andra St. Quintin
Hi Derek - here are the low-res pictures. Not sure where you want to place them. Maybe when we're done emailing, I will put in slightly higher res ones.
Page 15: Watchbird TM  Demo

Queries andLock/Unlock Requests

Sensor StatusUpdates

Page 16: Watchbird TM  Demo

Check for Connecting Base Stations Listen on server socket Store connection and wait for machine ID Add base station to connection map

Check for Queries Check and parse emails Get information from database Store Waiting Message Request (WMR)

Process WMRs Check and process replies from base stations Generate and send response message to user Check for timeout conditions

Page 17: Watchbird TM  Demo

PICDEM.net 2 PICDEM.net 2 development development board board

EthernetEthernet Analog and Digital I/O Analog and Digital I/O PinsPins

Linx LR RF receiver Linx LR RF receiver and transmitter and transmitter

Mounted to PCBMounted to PCB Connected to Connected to Microcontroller’s Microcontroller’s Digital I/ODigital I/O

RX

M-4

18-L

R

TX

M-4

18-L

R

ANT

ANT

To MicrocontrollerTo Microcontroller10 μF

PCB

10 Ω

3.3 V

Page 18: Watchbird TM  Demo

Base Station Powered On

Connect to Server

Send Machine ID

Number

Wait for Request

Page 19: Watchbird TM  Demo

Receive Request From

Server

Parse Message

Send Lock or Unlock

Request

Query Each Sensor

Form Response Message

Send Reply to Server

Page 20: Watchbird TM  Demo

Digital I/O pins used to transmit and receive data Digital I/O pins used to power down receiver and transmitter when not in use Data is encoded and decoded by the base station software

Receive Request

Power-up Transmitt

er

Send Data

Power-Down Transmitter, Power-

Up Receiver

Receive Data

Power-Down

Receiver

Page 21: Watchbird TM  Demo

SSent by base station: 10 address bits 8 data bits Unique data bit codes for query, lock, and unlock

Received by sensor-end: 10 address lines Data relayed if address matches 8 data output lines

Page 22: Watchbird TM  Demo

Sent by sensor end:Sent by sensor end: 10 address lines10 address lines 8 data lines8 data lines

Received by base station:Received by base station: 10 address bits10 address bits 8 data bits8 data bits

Page 23: Watchbird TM  Demo

addresaddresss

receiver,receiver,decoderdecoder

encoder,encoder,transmitttransmitt

erer

addresaddresss

addresaddresss

timing timing delaydelay

sensor sensor inputinput

sensosensorr

Page 24: Watchbird TM  Demo

Timing delayTiming delay Finish receiving beforeFinish receiving before beginning to transmit beginning to transmit 555 timer on each data line555 timer on each data line

received received datadata

transmitted datatransmitted data

Page 25: Watchbird TM  Demo

Sensor inputSensor input XNOR gate on each data lineXNOR gate on each data line Sensor output connected toSensor output connected to each data line each data line Redundancy provides errorRedundancy provides error checking checking

data sentdata sent 11 00 11 00 11 00 11 00sensor sensor closedclosed 11 00 11 00 11 00 11 00sensor sensor openopen 00 11 00 11 00 11 00 11

Page 26: Watchbird TM  Demo

VVCCCC

VVCCCC

normalnormally ly

closedclosed

normalnormally ly

openopen

SS

RR

QQ

S R Q

1 1 hold

0 1 0

1 0 1

Bi-state switch:Bi-state switch: single-pole double-throw single-pole double-throw Switch de-bouncingSwitch de-bouncing

Prevent intermediate Prevent intermediate statesstates 2 NAND gates2 NAND gates Flip-flopFlip-flop

Page 27: Watchbird TM  Demo

timing timing delaydelay

sensor sensor inputinput

addresaddresss

addresaddresss

receiver,receiver,decoderdecoder

encoder,encoder,transmitttransmitt

erer

comparatcomparatorsors

timing timing extensionextension

locking locking systemsystem

sensosensorr

Page 28: Watchbird TM  Demo

ComparatorsComparators Check for unlock or lockCheck for unlock or lock Output normally highOutput normally high Output goes low if data matchesOutput goes low if data matches

Timing extensionTiming extension 555 timer555 timer Longer time constantLonger time constant

trigger (comparator trigger (comparator output)output)

555 timer output 555 timer output pulsepulse

Page 29: Watchbird TM  Demo

Locking circuitryLocking circuitry Voltage shifter from 3.5 V to 6 VVoltage shifter from 3.5 V to 6 V H-bridge: permits locking and unlockingH-bridge: permits locking and unlocking Modified H-bridge: use original locking Modified H-bridge: use original locking mechanismmechanism

motormotor

VVCCCC

motormotor

keypad keypad circuitcircuit

H-bridgeH-bridge modified H-modified H-bridgebridge

Page 30: Watchbird TM  Demo
Page 31: Watchbird TM  Demo

Item Estimate Cost

Actual Cost

Amount Overbudget

Microcontroller $200 $213.68 $13.68 Microcontroller Extras $100 $238.27 $138.27 Display and Keypad $64 $0.00 -$64.00 RF Transmitters/Receivers

$11 $303.64 $292.64

RF/Keypad Door Lock $150 $110.88 -$39.12Sensor End Components

$0 $269.47 $269.47

Sensors $30 $12.60 -$17.40Integration Components

$100 $101.64 $1.64

Cases $0 $94.77 $94.77 Miscellaneous Costs $100 $21.16 -$78.84Demo Materials $0 $108.93 $108.93 Total Costs $755 $1,475.

04 $720.04

Page 32: Watchbird TM  Demo

Higher-security data transfer (encryption, Higher-security data transfer (encryption, etc.) for etc.) for production level production level Elimination of TwitterElimination of Twitter

Text-to-email functionality added to Text-to-email functionality added to Chickadee Chickadee Tech server Tech server

Addition of more types of sensorsAddition of more types of sensors Hall effectHall effect TemperatureTemperature WaterWater Power usagePower usage

Internet queryInternet query Eliminates text message fee when user is Eliminates text message fee when user is near a near a computer computer

Page 33: Watchbird TM  Demo

Base Station Microcontroller and Circuitry $15 Base Station RF Receiver and Transmitter $15 Base Station Case, power supply, etc. $20 Base Station Total $50

Sensor End Circuitry $6 Sensor End RF Receiver and Transmitter $20 Sensor End Case, batteries, etc. $10 Sensor End Total $36

Door Lock Microcontroller and Circuitry $15 Door Lock RF $15 Door Lock and Actuator $20 Door Lock Case, batteries, etc. $10Door Lock Total $60

Page 34: Watchbird TM  Demo

Offer “Starter Kit”Offer “Starter Kit” Base Station and 2 sensorsBase Station and 2 sensors ~$500 CAD~$500 CAD

Individual sensors to add on Individual sensors to add on ~$150 CAD~$150 CAD

Door Lock to add onDoor Lock to add on ~$225 CAD~$225 CAD

Page 35: Watchbird TM  Demo

What worked?What worked? Documentation and planningDocumentation and planning Importance of functional and design Importance of functional and design specificationsspecifications Importance of diverse talents and Importance of diverse talents and abilities in a abilities in a group group

What didn’t work?What didn’t work? BudgetingBudgeting Time estimatesTime estimates RF complexityRF complexity Contingency time and moneyContingency time and money

Page 36: Watchbird TM  Demo
Page 37: Watchbird TM  Demo

Watchbird™ prototype successfully createdWatchbird™ prototype successfully created Fills need in marketFills need in market

Estimated production level cost realistic for Estimated production level cost realistic for most most users users Demonstrated interest from potential usersDemonstrated interest from potential users Unique, versatile, and useful product Unique, versatile, and useful product

Page 38: Watchbird TM  Demo

Fred Heep for guidance and advice Fred Heep for guidance and advice throughout the throughout the term term Gary Houghton and Marius Haiducu for Gary Houghton and Marius Haiducu for machine shop machine shop support support Richelle Grist for artistic inputRichelle Grist for artistic input Dr. Sarah Walshaw for testing and Dr. Sarah Walshaw for testing and testimonialtestimonial

Page 39: Watchbird TM  Demo

Microsoft Visual Web Developer and SQL Server Microsoft Visual Web Developer and SQL Server

express logos - express logos - http://www.microsoft.com/Expresshttp://www.microsoft.com/Express Schlage LiNK door lock - Schlage LiNK door lock - http://www.amazon.com/http://www.amazon.com/ Schlage-Wireless-Keypad-Starter-System/dp/ Schlage-Wireless-Keypad-Starter-System/dp/ B001NEK6K6 B001NEK6K6

Microsoft ASP.NET website (www.asp.net)Microsoft ASP.NET website (www.asp.net) Wikipedia (www.wikipedia.org)Wikipedia (www.wikipedia.org) Microsoft Developer Network Microsoft Developer Network (http://msdn.microsoft.com) (http://msdn.microsoft.com) Linx Technologies technical support line, and Linx Technologies technical support line, and Linx Linx Knowledgebase Knowledgebase (http://www.linxtechnologies.com/(http://www.linxtechnologies.com/ Support/Knowledgebase) Support/Knowledgebase) Digikey (www.digikey.com)Digikey (www.digikey.com) Microchip user guides and datasheetsMicrochip user guides and datasheets

Page 40: Watchbird TM  Demo
Page 41: Watchbird TM  Demo

Not currently available in CanadaNot currently available in Canada $299 USD (Amazon.com)$299 USD (Amazon.com) Need data-enabled phone to send Need data-enabled phone to send query/lockquery/lock

Can get text message updates on regular Can get text message updates on regular phone phone when someone enters the home when someone enters the home

$12.99/month USD $12.99/month USD

Page 42: Watchbird TM  Demo

ApplicationApplicationQueryQuery

InformationInformation

DatabaseDatabase

Connection to serverConnection to server

SQL ServerSQL Server

SELECT * FROM UserProfile WHERE TextPassword = @TextPassword AND Cell1 = @Cell

SQL Select CommandSQL Select CommandWeb Interface and Server Program

Page 43: Watchbird TM  Demo

Message Type ID

Data Size

Data

1 04 0123

ID Message Type

Message Contents

0 Startup Machine ID of Base Station

1 Query List of Sensor Numbers

2 Lock List of Sensor Numbers

3 Unlock List of Sensor Numbers

4 Status List of Sensor Statuses

Page 44: Watchbird TM  Demo

Software samples every 10 μs to find encoded data start sequence, ends in middle of peak For decoding data, “peak following” system used assuming a transmission period of 400 μs

Improved stability for small timing errorStart in

middle of peak

Sample every 10 μs until voltage changes (max

200μs)

Wait 200 μs to find middle again

Page 45: Watchbird TM  Demo

Each peak 400 μs long Each encoded bit consists of three levels, repeated once Address pins can float Encoded one: ‘010’ Encoded zero: ‘110’ Start sequence is encoded 1-0-1-0-1Encoded one: Encoded

zero:

Page 46: Watchbird TM  Demo

Timing delay Finish receiving before beginning to transmit 555 timer on each data line

received received datadata

555 timer capacitor555 timer capacitor

555 timer output 555 timer output pulsepulse

Page 47: Watchbird TM  Demo

RR

SS

QQ

QQ

++--

S R Q

1 1 hold

0 1 0

1 0 1

1 1 unstable

++--

VVCCCC

triggetriggerr

outpuoutputt

LLLL

LLHH

oonn

LL

HH

LLHH

LL

HHchargichargingng

LL

offoff

LL

HH

onon

LL

HH

dischardischargege

A.S. Sedra and K.C Smith, Microelectronic Circuits, 5th ed. New York, NY: Oxford University Press, Inc., 2004.

Page 48: Watchbird TM  Demo

encoder - transmitter

(TXE-418-KH2)

address

pins(Vcc or

ground)

x8

x8antenn

a

GNDtransmit enable

data in

8-bitXNOR

Vcc

Vcc

address

address

pins(Vcc or

ground)

x10

sensor

receiver-decoder

(RXD-418-KH2)

data outantenna

Vcc

GNDaddress x1

0

delay circuit

data in

data out

Vcc

GND

x8

x1

595 – CD74HC7266E

Page 49: Watchbird TM  Demo

encoder - transmitter

(TXE-418-KH2)

address

pins(Vcc or

ground)

x8

x8antenn

a

GNDtransmit enable

data in

8-bitXNOR

Vcc

Vcc

address

address

pins(Vcc or

ground)

x10

sensor

receiver-decoder

(RXD-418-KH2)

data outantenna

Vcc

GNDaddress x1

0

delay circuit

data in

data out

Vcc

GND

x8

x1

locking circuit

x8

595 – CD74HC7266E

Andra St. Quintin
Sorry Sam - could you please make the header match the rest - thanks!
Page 50: Watchbird TM  Demo

x4 .Quad Timer

trigger

output

timing

GND

RC time constants

data fromreceiver-decoder

Vc

c

.Quad Timer

trigger

output

timing

GND

Vc

c

to XNOR

Vcc

… 8 RC pairs … x4

x4

x4

x4

x4

x8

… 8 … … 8 …

680Ώ100nF3.9M Ώ8.2k Ώ

x8

8k2

Ω

680

Ω

3M9

Ω4M7

Ω100

nF

.NTE 926

.NTE 926

Andra St. Quintin
Sorry Sam - could you please make the header match the rest - thanks!
Page 51: Watchbird TM  Demo

8 bit compara

tor

A

equal

B

8 bit compara

tor

A equal

B

lockcode

(11000011)

unlockcode

(11001100)

x8

x8

.555 Timer

trigger

output

timing

GNDRC time

constants

data fromreceiver-decoder

Vc

c

.555 Timer

trigger

output

timing

GND

Vc

c

GND

Vc

c

Vc

c

GND

x8

to level shifter

Vcc

ctrl

ctrl

680

Ω

10

10

680

Ω

10

nF

10

nF

2M2

Ω

1 μF

595 – SN74HC688N

526 – NTE955M

Andra St. Quintin
Sorry Sam - could you please make the header match the rest - thanks!
Page 52: Watchbird TM  Demo

.555 Timer

trigger

output

timing

GND

Vc

c

.555 Timer

trigger

output

timing

GND

Vc

c

.

Level Shifter

M

6 V

p

n

p

n

Vcc (circuit)

A in

B in

C in

D in

A out

B outC outD outGND

Vcc in Vcc out

6 V

p n p n

Vcc

(keypad)GND

(keypad)

G

S

D

S

D

G

G

D

S

D

S

G

D

S

D

S

G G

D

S

D

S

G G

526 – NTE955M

CD4504B

AOP609

Andra St. Quintin
Sorry Sam - could you please make the header match the rest - thanks!
Page 53: Watchbird TM  Demo

Keypad/Microcontroller

Controlled Power

Actuator

RF Controlled

Power

Transistor Switch Circuit

Current flow when locking the door

Current flow when unlocking the

door

p n p n

Andra St. Quintin
Sorry Sam - could you please make the header match the rest - thanks!