Transcript 8demo

Samantha Grist – President
Eric Shen – VP Hardware
Derek Lowes – VP Software
Andra St. Quintin – CFO and VP RF Tech
• 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
 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?”
 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
Setup Information
Cell Phone Requests
Sensor Data
Outputs
Watchbird
“Status” Texts to Users
Door Locking/Unlocking
 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.
User
User Cell Phones
Web Interface
Twitter and Email
Database
Ethernet and
Server
TCP/IP
RF Communications
Sensors and Sensor
End Circuitry
Base Station
Door Lock Actuator
Home Locations
Server
Base Station and Cell Phone
Messaging Processing
Server Program
Program reads
settings from
database
Internet Information
SQL Server
Service (IIS)
Database
Website read
from and
write to
database
Configuration
Web
Interface
 User Access Menu
 Log in
 Change Password
 Watchbird Configuration Menu
 User Profile
 Sensor List
 Format Validation
 Dynamic Website
 Visual Web Developer
 Microsoft ASP.NET
 C#
 Microsoft SQL Database
 SQL Update Command
Web Interface
SQL Server
Connection to server
Application
Query
Database
Message Format:
d Watchbird
Password
Request
(Actuator)
d Watchbird
1234abcd
lock
door
d Watchbird
1234abcd
unlock
door
d Watchbird
1234abcd
query
Resulting Email:
1234abcd lock door
6041234567 / ChickadeeTech
Sensor Status
Updates
Queries and
Lock/Unlock Requests
 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
ANT
To Microcontroller
3.3 V
ANT
TXM-418-LR
RXM-418-LR
 Linx LR RF receiver
and transmitter
 Mounted to PCB
10 μF
 Connected to
Microcontroller’s Digital I/O
PCB
10 Ω
 PICDEM.net 2 development
board
 Ethernet
 Analog and Digital I/O Pins
To Microcontroller
Base Station
Powered On
Connect to
Server
Send Machine
ID Number
Wait for Request
Receive Request
From Server
Query Each Sensor
Parse Message
Form Response
Message
Send Lock or
Unlock Request
Send Reply
to Server
 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-Down Transmitter,
Power-Up Receiver
Power-up
Transmitter
Receive Data
Send Data
Power-Down
Receiver
 Sent 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
 Sent by sensor end:
 10 address lines
 8 data lines
 Received by base station:
 10 address bits
 8 data bits
address
receiver,
decoder
address
encoder,
transmitter
sensor
timing delay
sensor input
 Timing delay
 Finish receiving before
beginning to transmit
 555 timer on each data line
received data
transmitted data
 Sensor input
 XNOR gate on each data line
 Sensor output connected to
each data line
 Redundancy provides error
checking
data sent
sensor closed
sensor open
1 0 1 0 1 0 1 0
1 0 1 0 1 0 1 0
0 1 0 1 0 1 0 1
 Bi-state switch:
single-pole double-throw
 Switch de-bouncing
 Prevent intermediate states
 2 NAND gates
 Flip-flop
VCC
normally
closed
S
VCC
normally
open
Q
R
S
R
Q
1
1
hold
0
1
0
1
0
1
address
receiver,
decoder
address
encoder,
transmitter
timing delay
comparators
timing extension
sensor
sensor input
locking system
 Comparators
 Check for unlock or lock
 Output normally high
 Output goes low if data matches
 Timing extension
 555 timer
 Longer time constant
trigger (comparator output)
555 timer output pulse
 Locking circuitry
 Voltage shifter from 3.5 V to 6 V
 H-bridge: permits locking and unlocking
 Modified H-bridge: use original locking mechanism
H-bridge
modified H-bridge
VCC
keypad circuit
motor
motor
05-Jan 12-Jan 19-Jan 26-Jan 02-Feb 09-Feb 16-Feb 23-Feb 02-Mar 09-Mar 16-Mar 23-Mar 30-Mar 06-Apr 13-Apr 20-Apr 27-Apr 04-May 11-May
Documentation
Research
Proposal
Identification of Suppliers
Progress Update
Functional Specification
Design Specification
Component Development
System Integration
System Testing
System Debugging
Post Mortem
Presentation Preparation
Item
Estimate Actual
Amount
Cost
Cost
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.12
Sensor End Components
$0 $269.47
$269.47
Sensors
$30
$12.60
-$17.40
Integration Components
$100 $101.64
$1.64
Cases
$0
$94.77
$94.77
Miscellaneous Costs
$100
$21.16
-$78.84
Demo Materials
$0 $108.93
$108.93
Total Costs
$755 $1,475.04
$720.04
 Higher-security data transfer (encryption, etc.) for
production level
 Elimination of Twitter
 Text-to-email functionality added to Chickadee
Tech server
 Addition of more types of sensors
 Hall effect
 Temperature
 Water
 Power usage
 Internet query
 Eliminates text message fee when user is near a
computer
Base Station Microcontroller and Circuitry
Base Station RF Receiver and Transmitter
Base Station Case, power supply, etc.
Base Station Total
$15
$15
$20
$50
Sensor End Circuitry
Sensor End RF Receiver and Transmitter
Sensor End Case, batteries, etc.
Sensor End Total
$6
$20
$10
$36
Door Lock Microcontroller and Circuitry
Door Lock RF
Door Lock and Actuator
Door Lock Case, batteries, etc.
Door Lock Total
$15
$15
$20
$10
$60
 Offer “Starter Kit”
 Base Station and 2 sensors
 ~$500 CAD
 Individual sensors to add on
 ~$150 CAD
 Door Lock to add on
 ~$225 CAD
 What worked?
 Documentation and planning
 Importance of functional and design specifications
 Importance of diverse talents and abilities in a
group
 What didn’t work?
 Budgeting
 Time estimates
 RF complexity
 Contingency time and money
 Watchbird™ prototype successfully created
 Fills need in market
 Estimated production level cost realistic for most
users
 Demonstrated interest from potential users
 Unique, versatile, and useful product
 Fred Heep for guidance and advice throughout the
term
 Gary Houghton and Marius Haiducu for machine shop
support
 Richelle Grist for artistic input
 Dr. Sarah Walshaw for testing and testimonial
 Microsoft ASP.NET website (www.asp.net)
 Wikipedia (www.wikipedia.org)
 Microsoft Developer Network
(http://msdn.microsoft.com)
 Linx Technologies technical support line, and Linx
Knowledgebase (http://www.linxtechnologies.com/
Support/Knowledgebase)
 Digikey (www.digikey.com)
 Microchip user guides and datasheets
 Microsoft Visual Web Developer and SQL Server
express logos - http://www.microsoft.com/Express
 Schlage LiNK door lock - http://www.amazon.com/
Schlage-Wireless-Keypad-Starter-System/dp/
B001NEK6K6
 Not currently available in Canada
 $299 USD (Amazon.com)
 Need data-enabled phone to send query/lock
 Can get text message updates on regular phone
when someone enters the home
 $12.99/month USD
 SQL Select Command
Web Interface and Server Program
SQL Server
Connection to server
Query
Application
Database
Information
SELECT * FROM UserProfile
WHERE TextPassword = @TextPassword AND Cell1 = @Cell
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
 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 error
Start in middle
of peak
Sample every 10 μs
until voltage changes
(max 200μs)
Wait 200 μs to find
middle again
 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-1
Encoded one:
Encoded zero:
 Timing delay
 Finish receiving before
beginning to transmit
 555 timer on each data line
received data
555 timer capacitor
555 timer output pulse
VCC
L
charging
discharge
LH
trigger
+
+
-
LL
H
R
H
LL
S
S
R
Q
1
1
hold
0
1
0
1
0
1
1
1
unstable
HLL
Q
Q
output
LH
off
on
on
A.S. Sedra and K.C Smith, Microelectronic Circuits, 5th ed. New York, NY: Oxford University Press, Inc., 2004.
Vcc
595 – CD74HC7266E
sensor
antenna
Vcc
Vcc
data out
data in data out
x8
receiver-decoder
(RXD-418-KH2)
address
x10
address
pins
(Vcc or
ground)
GND
delay
circuit
GND
8-bit
XNOR
x8
x1
x8
data in
Vcc
antenna
encoder - transmitter
(TXE-418-KH2)
transmit
enable
GND
address
x10
address
pins
(Vcc or
ground)
Vcc
595 – CD74HC7266E
sensor
antenna
Vcc
Vcc
data out
data in data out
x8
delay
circuit
receiver-decoder
(RXD-418-KH2)
address
x10
GND
GND
x8
address
pins
(Vcc or
ground)
8-bit
XNOR
x8
x1
x8
data in
Vcc
antenna
encoder - transmitter
(TXE-418-KH2)
transmit
enable
GND
address
x10
address
pins
(Vcc or
ground)
locking
circuit
Vcc
x8
8k2
…8…
…8…
680
Ω
Ω
x4
data from
receiver-decoder x8
trigger V.cc output
3M9
Ω
x4
Quad Timer
.NTE 926
RC time constants
4M7
… 8 RC pairs
Ω…
100
nF
x4
timing GND
to XNOR
x4
x4
trigger V.cc output
Quad Timer
.NTE 926
timing GND
x4
680Ώ
100nF
3.9M Ώ
8.2k Ώ
data from
receiver-decoder
x8
A
lock
code
(11000011)
x8
B
Vcc
595 – SN74HC688N
Vcc
8 bit
comparator
526 – NTE955M
10
Vcc output
.
ktrigger
Ω
GND equal
2M2
RC time
Ω
constants
1 μF
A
unlock
code
(11001100)
x8
B
Vcc equal
8 bit
comparator
GND
555 Timer
timing GND ctrl
10
kΩ
680
Ω
to level
shifter
10
nF
trigger V.cc output
555 Timer
timing GND ctrl
10
nF
680
Ω
Vcc (keypad)
D
D
G
555 Timer
timing GND
n
555 Timer
timing GND
G
G
S
p
n
S
S
6V
Vcc in
A in
B in
6V
V out
. ccA out
B out
G
Level Shifter
trigger V.cc output
D
D
AOP609
526 – NTE955M
trigger V.cc output
p
S
Vcc (circuit)
GND (keypad)
C in
C out
D in
GND D out
S
S
p
p
D
D
G
M
CD4504B
G
D
D
n
n
S
S
G
G
Keypad/Microcontroller
Controlled Power
p
n
p
RF
Controlled
Power
n
Transistor
Switch Circuit
Current flow when
locking the door
Current flow when
unlocking the door
Actuator