530 likes | 544 Views
Learn about WatchbirdTM, a user-friendly smart home security system with SMS commands for remote monitoring and control. Explore its features, setup, and benefits for peace of mind.
E N D
WatchbirdTM Demo Samantha Grist – President Eric Shen – VP Hardware Derek Lowes – VP Software Andra St. Quintin – CFO and VP RF Tech
WatchbirdTM Demo: Objectives May 5 2009 Outline • 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
WatchbirdTM Demo: Background May 5 2009 Watchbird™ Goals and Motivation • 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?”
WatchbirdTM Demo: Background May 5 2009 System Overview • SMStext 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 Setup Information Cell Phone Requests Sensor Data Watchbird “Status” Texts to Users Door Locking/Unlocking
WatchbirdTM Demo: Background May 5 2009 Quick Locking Demo
WatchbirdTM Demo: Background May 5 2009 Existing Alternatives • 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.
WatchbirdTM Demo: Background May 5 2009 High-Level System Design User UserCellPhones WebInterface TwitterandEmail Database Server EthernetandTCP/IP BaseStation RFCommunications DoorLockActuator Sensors and Sensor EndCircuitry HomeLocations
WatchbirdTM Demo: Web Interface and Database May 5 2009 Watchbird™ Server Server Base Station and Cell Phone Messaging Processing Server Program Program reads settings from database Internet Information Service (IIS) SQL Server Configuration Web Interface Website read from and write to database Database 8
Web Interface WatchbirdTM Demo: Web Interface and Database May 5 2009 • User Access Menu • Log in • Change Password • Watchbird Configuration Menu • User Profile • Sensor List • Format Validation 9
Web Interface WatchbirdTM Demo: Web Interface and Database May 5 2009 • Dynamic Website • Visual Web Developer • Microsoft ASP.NET • C# • Microsoft SQL Database 10
Database WatchbirdTM Demo: Web Interface and Database May 5 2009 11
WatchbirdTM Demo: Web Interface and Database May 5 2009 Database Access Method • SQL Update Command • Web Interface SQL Server Connection to server Application Database Query 12
Server-Cell Phone Interface WatchbirdTM Demo: Server May 5 2009
Server-Cell Phone Interface WatchbirdTM Demo: Server May 5 2009 Message Format: Resulting Email: 1234abcd lock door 6041234567 / ChickadeeTech 14
Server Functionality WatchbirdTM Demo: Server May 5 2009 Sensor Status Updates Queries and Lock/Unlock Requests
Server Software WatchbirdTM Demo: Server May 5 2009 • 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
WatchbirdTM Demo: Base Station May 5 2009 Base Station Hardware ANT • PICDEM.net 2 development board • Ethernet • Analog and Digital I/O Pins • Linx LR RF receiver and transmitter • Mounted to PCB • Connected to Microcontroller’s Digital I/O PCB ANT TXM-418-LR RXM-418-LR To Microcontroller To Microcontroller 10 μF 10 Ω 3.3 V
Base Station Software WatchbirdTM Demo: Base Station May 5 2009 Base Station Powered On Connect to Server Send Machine ID Number Wait for Request
Base Station Software WatchbirdTM Demo: Base Station May 5 2009 Receive Request From Server Query Each Sensor Form Response Message Parse Message Send Reply to Server Send Lock or Unlock Request
WatchbirdTM Demo: Base Station May 5 2009 Base Station Interface to RF • 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 Power-Down Transmitter, Power-Up Receiver Receive Request Power-up Transmitter Receive Data Power-Down Receiver Send Data
RF Communication Protocol WatchbirdTM Demo: SEC and Door Lock May 5 2009 • 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
RF Communication Protocol WatchbirdTM Demo: SEC and Door Lock May 5 2009 • Sent by sensor end: • 10 address lines • 8 data lines • Received by base station: • 10 address bits • 8 data bits
Sensor End Circuitry (SEC) address timing delay sensor WatchbirdTM Demo: SEC and Door Lock May 5 2009 address address receiver,decoder encoder,transmitter sensor input
Sensor End Circuitry (SEC) WatchbirdTM Demo: SEC and Door Lock May 5 2009 • Timing delay • Finish receiving before beginning to transmit • 555 timer on each data line received data transmitted data
Sensor End Circuitry (SEC) WatchbirdTM Demo: SEC and Door Lock May 5 2009 • Sensor input • XNOR gate on each data line • Sensor output connected to each data line • Redundancy provides error checking
Sensor Design WatchbirdTM Demo: SEC and Door Lock May 5 2009 • Bi-state switch: single-pole double-throw • Switch de-bouncing • Prevent intermediate states • 2 NAND gates • Flip-flop VCC normally closed S VCC Q normally open R
Door Lock Actuator address sensor input timing delay sensor WatchbirdTM Demo: SEC and Door Lock May 5 2009 address receiver,decoder encoder,transmitter timing extension comparators locking system
Door Lock Actuator WatchbirdTM Demo: SEC and Door Lock May 5 2009 • 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
Door Lock Actuator motor motor WatchbirdTM Demo: SEC and Door Lock May 5 2009 • 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
WatchbirdTM Demo: Conclusion May 5 2009 Timeline Progress
WatchbirdTM Demo: Conclusion May 5 2009 Budget Overview
WatchbirdTM Demo: Conclusion May 5 2009 Project Expansion Ideas • 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
WatchbirdTM Demo: Background May 5 2009 Business Plan: Manufacturing Costs
WatchbirdTM Demo: Background May 5 2009 Business Plan: Sales • Offer “Starter Kit” • Base Station and 2 sensors • ~$500 CAD • Individual sensors to add on • ~$150 CAD • Door Lock to add on • ~$225 CAD
WatchbirdTM Demo: Conclusion May 5 2009 What was Learned? • 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
WatchbirdTM Demo: Conclusion May 5 2009 User Testimonial
WatchbirdTM Demo: Conclusion May 5 2009 Conclusion • 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
WatchbirdTM Demo: Acknowledgements May 5 2009 Acknowledgements • 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
WatchbirdTM Demo: Information & References May 5 2009 Sources of Information • 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 References • 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
WatchbirdTM Demo: Questions? May 5 2009 Questions?
WatchbirdTM Demo: Further Information May 5 2009 SchlageLiNK Internet Door Lock • 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 41
WatchbirdTM Demo: Further Information May 5 2009 Database Access Method • SQL Select Command • Web Interface and Server Program SQL Server Connection to server Application Query Database Information SELECT * FROM UserProfile WHERE TextPassword = @TextPassword AND Cell1 = @Cell 42
Server-Base Station Communication WatchbirdTM Demo: Further Information May 5 2009
WatchbirdTM Demo: Further Details May 5 2009 Base Station Interface to RF • 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 Sample every 10 μs until voltage changes (max 200μs) Start in middle of peak Wait 200 μs to find middle again
WatchbirdTM Demo: Further Details May 5 2009 Base Station Interface to RF • 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 zero: Encoded one:
Timing Details WatchbirdTM Demo: Further Details May 5 2009 • Timing delay • Finish receiving before beginning to transmit • 555 timer on each data line received data 555 timer capacitor 555 timer output pulse
555 Timer Details + + - - charging L L discharge H L H L L Q H L H L L H H L off on on WatchbirdTM Demo: Further Details May 5 2009 VCC output Q R S trigger • A.S. Sedra and K.C Smith, Microelectronic Circuits, 5th ed. New York, NY: Oxford University Press, Inc., 2004.
Sensor End Circuitry (SEC) x1 x8 x8 x8 8-bitXNOR x10 WatchbirdTM Demo: Further Details May 5 2009 Vcc 595 – CD74HC7266E sensor Vcc encoder - transmitter(TXE-418-KH2) antenna data in Vcc Vcc delay circuit receiver-decoder(RXD-418-KH2) data out data in antenna data out transmit enable GND address GND GND address x10 address pins(Vcc or ground) address pins(Vcc or ground)
Sensor End Circuitry with Lock x1 x8 x8 x8 8-bitXNOR x10 x8 WatchbirdTM Demo: Further Details May 5 2009 Vcc 595 – CD74HC7266E sensor Vcc encoder - transmitter(TXE-418-KH2) antenna data in Vcc Vcc delay circuit receiver-decoder(RXD-418-KH2) data out data in antenna data out transmit enable GND address GND GND address x10 address pins(Vcc or ground) address pins(Vcc or ground) locking circuit 49
Delay Circuit x4 x4 x4 x4 x4 x4 x8 … 8 … x8 WatchbirdTM Demo: Further Details May 5 2009 Vcc 680Ώ100nF3.9M Ώ8.2k Ώ 680Ω 8k2Ω … 8 … Vcc .Quad Timer trigger output RC time constants .NTE 926 timing 3M9Ω 4M7Ω GND data fromreceiver-decoder … 8 RC pairs … to XNOR 100nF Vcc output trigger .Quad Timer .NTE 926 timing GND 50