Upload
silas-randall-charles
View
218
Download
1
Tags:
Embed Size (px)
Citation preview
ObjectivesHousehold Power MonitoringOutlet specific power monitoring and
controlLight control Keyless Door Entry
Specification
Power readings must be accurate to 2 kWh
Delay must be less than 5 secondsMust accommodate at least 256 nodes
(8 bit addresses)
RequirementsPower Readings must be accurateDevices must be:
◦ Self-contained◦ Small◦ Low Power◦ Safe
The user must be able to add/subtract devices easily
The user must always have control over their home
Entire system must be “plug and play”
XBee Routing Protocol
TTTTTTTT indicates device Type that is SENDING the message 00000000: hub 00000001: light 00000010: outlet 00000011: door lock 00000100 – 11111111: reserved for possible future use
AAAAAAAA indicates the Address of the End device (10 bits = 1024 possible devices)
CCCCCCCC indicates command requested (from hub) or responding to (from device) 00000000: CHECK_STATE 00000001: TOGGLE 00000010: SET_ON 00000011: SET_OFF 00000100: READ_CURRENT 00000101: READ_VOLTAGE 00000110: OPEN_DOOR 00000111 – 11111111: reserved for possible future use
<’$’> <TTTTTTTT> <AAAAAAAA> <CCCCCCCC>
Whole House Power Monitoring
Monitor whole house power without messing with existing wiring
Use existing equipment: The residential power meter outside
Use a camera to record the meter and “read” it with software
CameraRequirements
◦Weather Resistant◦Built-in lights◦Wireless streaming
Camera we chose:◦Wansview
NCB541W
SoftwareImage processing software
◦Will “read” the power meter to monitor power use
◦Will be hosted on our web server◦Using C#◦Built mostly from scratch
Simple imaging functions from existing library
Aforge.NETAn open-source imaging libraryProvides basic imaging functions
◦Color, blurring and size filters, for resizing or grayscale conversion, etc
◦Provides Canny Edge Detector class
Classifying the Meter
3 types of meters◦“Clock-style” digit meter◦Digital 7-segment digit meter◦Analog rolling digit meter
Our system reads digital meters◦Becoming more common◦Easier to interpret – standard digit
structure (7-segment rectangular digit)
Digit LocationsMulti-purposeoSetting digit locations for the first time
will also provide the system with its first meter reading
Given by user on website◦Website shows a frame from the
camera◦User clicks image to determine digit
locations◦Individual digit reading given
immediately to help get it just right
“Read” the meter
Reading digits will be similar to finding them, using the same template key points.
Quicker, because digit locations are known, so only check there
Combine the individual digit readings to get the full meter reading
Storing DataReading history, along with
account data and all of the calibration settings, will be saved in a SQL database
Database will be hosted on the same web server as the website and the software
Outlet Power Monitoring Overview• Device will plug directly into a home
outletoWeb control grantedoObtain Power usage•Sent to web for user viewing
Outlet Power Monitoring DesignVoltageoObtained directlyoWired to A/D pinoRun through peak detecting circuit
Outlet Power Monitoring DesignVoltageoObtained directlyoWired to A/D pinoRun through peak detecting circuitoOver voltage protection via Zener
(D1)
Outlet Power Monitoring DesignCurrentoObtained using Indirect Current
Sensor• Monitor gives time dependent AC output• Wrapped insulated live wire through
sensor 4x for higher precision• Wired to A/D
Outlet Power Monitoring DesignCurrent Reading Software
• Stores 200 readings at a time into an array• More than necessary to cover a 60 Hz time period
• Low pass digital filter applied to array • Current value is averaged with 4 previous readings• Used for noise reduction
• Maximum and minimum values are found in array• ((MAX – MIN) – TYP_NOISE) * GAIN_FACTOR
Outlet ControlType C Relay usedoSPDToNormally closed track connected to
120VCoil connected to ATMega
controlled BJT
Light ControlDevice will grant control of
existing light◦Push Button Switch◦Digital Switch (via application)
Light Control DesignAnalog Controlo5V out connected to push button
switchoState of switch monitored by I/O pin• Change of state = Change state of Input
to BJT
Door Lock ChallengesFront door must always be
accessibleoLost PhoneoPower Outage
Front door lock must also accept key
eHome
Door Lock DesignElectric Door Strike
◦1.5A◦3-7V◦Perfect for use with ATMega
MOSFET used to give logic level input◦Handles 1.5A Safely
Website OverviewObjectives
◦Display current/projected bill◦Display outlet power consumption◦Toggle devices over internet◦User login
Website User AccountAccount
Settings◦ Change password◦ Prompt for Cell phone
number
Registration◦ Create username and
password
Website Device PageLists current connected devices
◦Can then monitor power (where enabled) and change state of device
Work Distribution
0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Hardware Design
Hardware Implementation
Software Design
Image Processing
Communication
Website Design
Website Implementation
Matt
Travis
Kyle
DJ
Expenditures & BudgetPart Name Cost/Unit Total Units Total Cost
Arduino Duemilanove $19.50 3 $58.50
Ethernet Shield W/ POE $59.95 1 $59.95
Wireless Shield $14.95 3 $44.85
Xbee Antennae $22.95 3 $68.85
IP Camera $49.99 1 $49.99
Door Strike $29.46 1 $29.46
Current Sensor $14.08 1 $14.08
Relays $2.82 3 $8.46
Switch $2.99 1 $2.99
Wire $3.99 50’ $3.99
MOSFET $1.99 1 $1.99
Paper $21.57 1 $21.57
PCB Layout $30 3 $85
Components $20 X $20
Enclosures $8 3 $24Total Expenditures (Projected):
$493.68
Initial Budget: $400.00
Additional funds required:
$93.68