watchbird tm demo
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 PresentationTRANSCRIPT
![Page 1: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/1.jpg)
![Page 2: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/2.jpg)
• 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
![Page 3: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/3.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/5.jpg)
![Page 6: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/7.jpg)
![Page 8: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/9.jpg)
User Access Menu Log in Change Password
Watchbird Configuration Menu User Profile Sensor List Format Validation
![Page 10: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/10.jpg)
Dynamic Website Visual Web Developer
Microsoft ASP.NET C# Microsoft SQL Database
![Page 11: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/11.jpg)
![Page 12: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/12.jpg)
ApplicationApplication QueryQuery DatabaseDatabase
Connection to serverConnection to server
SQL ServerSQL Server SQL Update CommandSQL Update Command
Web Interface
![Page 13: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/13.jpg)
![Page 14: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/14.jpg)
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:
![Page 15: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/15.jpg)
Queries andLock/Unlock Requests
Sensor StatusUpdates
![Page 16: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/16.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/17.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/18.jpg)
Base Station Powered On
Connect to Server
Send Machine ID
Number
Wait for Request
![Page 19: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/19.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/20.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/21.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/22.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/23.jpg)
addresaddresss
receiver,receiver,decoderdecoder
encoder,encoder,transmitttransmitt
erer
addresaddresss
addresaddresss
timing timing delaydelay
sensor sensor inputinput
sensosensorr
![Page 24: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/24.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/25.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/26.jpg)
VVCCCC
VVCCCC
normalnormally ly
closedclosed
normalnormally ly
openopen
SS
RR
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/27.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/28.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/29.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/30.jpg)
![Page 31: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/31.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/32.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/33.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/34.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/35.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/36.jpg)
![Page 37: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/37.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/38.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/39.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/40.jpg)
![Page 41: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/41.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/42.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/43.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/44.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/45.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/46.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/47.jpg)
RR
SS
++--
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/48.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/49.jpg)
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
![Page 50: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/50.jpg)
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
![Page 51: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/51.jpg)
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
kΩ
10
kΩ
680
Ω
10
nF
10
nF
2M2
Ω
1 μF
595 – SN74HC688N
526 – NTE955M
![Page 52: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/52.jpg)
.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
![Page 53: Watchbird TM Demo](https://reader035.vdocuments.us/reader035/viewer/2022062221/56813e03550346895da7e0a1/html5/thumbnails/53.jpg)
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