+ All Categories
Home > Documents > Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE...

Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE...

Date post: 25-Feb-2016
Category:
Upload: teresa
View: 29 times
Download: 0 times
Share this document with a friend
Description:
Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard Velez. Motivation. Goals & Objectives. Block Diagram. Microcontroller. How Efficient?. EEPROM. Programming the Microcontroller. Displaying Content to User. LCD Screen. - PowerPoint PPT Presentation
Popular Tags:
40
Group 32 Watts The Matter? Home Power Consumption Monitor CpE: Daniel Allen EE: Jonathan Nguyen CpE: Richard Velez
Transcript
Page 1: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Group 32Watts The Matter?

Home Power Consumption Monitor

CpE: Daniel AllenEE: Jonathan NguyenCpE: Richard Velez

Page 2: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Motivation

Many people are aggravated at the end of the month when they see their electric bill and have no idea why it is so high

There is a curiosity as to what consumes the most power in a house or apartment and while many people have a good idea as to what devices do, they do not know the exact numbers

In an effort to reduce power consumption in a reasonable manner it would be useful to have a system in place that can report in a familiar measurement (kW/h) as to how much is being used

Page 3: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Goals & Objectives

Measure and report power consumed by each device plugged into an outlet

Give users the ability to set goals that can be met during a month or longer period

Forecast power consumption and turn off offending devices (with permission) that will prevent the user from reaching previously set goals

Accurately predict the users bill given the kWh rate by the user as well as their billing cycle

Record a users history for long term storage so that it can be reflected on in the future through the use of graphs and other analysis

Page 4: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Block Diagram

Page 5: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Microcontroller

Parallax P8X32A-Q44

44-Pin Quad Flat Package (QFP) Chip (32 GPIO)

8 Independent Cores running on same system clock

System Clock Speed: DC to 80 MHz

32 KB Ram + 32 KB ROM

Up to 40 mA per I/O

VDD 3.3 V

Capable of producing VGA/NTSC/PAL signal

Can run assembly and C within the same program, support for other languages as well

MSRP $7.99

Page 6: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

How Efficient?

Page 7: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

EEPROM

Microchip Technology IC EEPROM

512K (64K x 8)

400kHz

Interfaces with I²C

Requires 2.5 ~ 5.5V (will use 3.3V)

8 pin SOIC package

Will be used for holding the main program and the users history

Page 8: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Programming the Microcontroller

There were two routes that could be taken and those include USB or serial

The option selected was a 9 pin D Sub connector to allow programming over a serial connection

Programming is completed upon booting the microcontroller if serial connection exists

Page 9: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Displaying Content to User

The use of a DE-15 connector will be needed to output a VGA signal to an LCD screen

Requires 5V on pin 9

8 resistors will be used to get the appropriate timings for the RGB signals

Page 10: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

LCD Screen

7” Resistive Touch LCD panel

Inputs include HDMI, VGA, and 2 AV sources

Driver Board Included

640x480 Resolution

Touchscreen used to eliminate the need of a mouse or keyboard

Page 11: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

4 Pin FFC Connector

Flat flex cable connector is needed to obtain the input from the resistive touch film from the LCD panel

Analog signal will need to be converted to digital using two 1nF capacitors, a 100kΩ resistor, and two pins on the microcontroller in conjunction with the cog counters

Sigma Delta conversion will be used

Page 12: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Quad 1-2 Demultiplexer

Used to change inputs on the touch screen

Supply voltage: 4 - 5.5V

Less than 0.25ns max delay through switch

No circuit bounce

Close to 0 standby current

Page 13: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Real Time Clock

Maxim DS1302

Accept to voltage inputs from battery and power source

Selects the greater of two sources

Use with 32.768 kHz crystal

Trickle Charger

2.0V to 5.5V

CR1220 Battery used

3 wire serial interface

Page 14: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Power Source

CUI Inc Barrel Power Connector (SMT)

Rated for 16VDC and 5A

2.1mm ID, 5.5mm OD

CUI Inc Wall Adapter

Can accept 90-264 VAC

Outputs 12V and 2A

2.1mm ID, 5.5mm OD

Page 15: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Power Regulation

Step down from 12VDC 2A to 5V 2A and with slight modification 5V to 3.3V 2A

Page 16: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Power Regulation Cont

Texas Instruments TPS54331 Switching RegulatorCapable of handling 3.5V to 28V input

Transient voltage protection

Small Outline Integrated Circuit (SOIC) 8 package

Supported by SwitcherPro software

Includes PowerPAD technology for better cooling

High Efficiency at Light Loads

Page 17: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Initial Startup

Page 18: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Program Flow

Page 19: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Schematic (Main Board)

Page 20: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Kilowatt Hour Meter

Determine power drawn from appliances

Transmit data back to central hub

Correctly read in Voltage and Current

Capable of cutting off power to an outlet

Page 21: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Kilowatt Hour Meter

Connects directly to live and neutral wires of outlet

Break in both the live and neutral line for the design

Location will be between outlet and device being monitored

Page 22: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Microcontroller

Name Frequency GPIO ADC Flash

ATMega32 16 MHz 32 8 32 KBytes

ATMega382 20 MHz 23 8 32 KBytes

MSP430AFE 12 MHz 11 3 8 KBytes

Parallax Propeller

80 MHz 32 0 64 KBytes

Page 23: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Microcontroller

Parallax P8X32A-Q44

Same microcontroller as VGA Board

Working knowledge

Uniformity between device and VGA

Page 24: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Voltage/Current Measurement

HCPL-7800

Isolation Amplifier

Ignores High CMSR (at least 10kV/ms)

Sigma Delta / Analog Digital Converters

Page 25: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Voltage/Current Measurement

Voltage Divider (1001:1)• 1 MOhm : 1 kOhm• Used to step down AC voltage to a safe level from

170V to 0.17VPP

Vline = 1001*Vdivider

Current Sensing Resistor (0.2 Ohm)

I = Vcurrent/(0.2)

Page 26: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Voltage, Current, Power Calculations

VI=Voltage across current sensory = sample size (1000 in this case)

Page 27: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

COM-10924 Relay SPDT

Used to manual and automatically turn off power to an outlet

Located inside outlet casing

Feed 5VDC signal to trigger relay

Single Pole - Double Throw

Rated up to 2000VAC @ 20A

Page 28: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

GFCI Outlet

Ground Fault Circuit Interrupters

Used as a safety hazard

Will cut power in the event of a ground fault

Reacts within as little as 1/40 of a second

Reacts when a difference of 5mA is detected between current and entering and leaving device

Page 29: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

KWH Schematic

Page 30: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Software Process

Foreground and Background process

Foreground will initialize all hardware and software components

UART, ADC, Clock, I/O, Timer, etc

Background will handle the data/sample collection

Page 31: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Radio Communication

In order for this system to operate, it needs to communicate between each of the microprocessors and the central hub to relay the data to be displayed.

Since we will be tracking multiple outlets in different parts of the room, it becomes necessary to use radio transmitters to accomplish this.

Page 32: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Choosing A Transmitter

The XBee Series

LINX NT Series

Atmel RF

Multitudes of choices on Amazon/Ebay

Attributes vary, but so too does the quality and reliablility.

Page 33: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Name Frequency Power Output Max Range RF Data Rate

Xbee Pro 900 HP

900 MHz 250 mW 15.5 km 200 Kbps

Linx TRM 900 NT

900 MHz 18 mW 914m 56 – 300 Kbps

Atmel AT86RF212B

769- 900 MHz 10 mW 1 km 1 Mbps

MX-05V RF (eBay)

433MHz 10mW 200m 4Kbps

Choosing A Transmitter

Page 34: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Xbee 802.15.4 Series 1

Can handle supply voltages up to 2.8-3.4 VDC

Has a range of up to 100m line-of-sight

Frequency Band of 2.4 GHz

Tiny and easily programmable

Uses Universal Asynchronous Receiver Transmitter (UART) @ 250 Kbps

Page 35: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Power Down adjusts power levels to extremely low levels • (< 10.0uA)

Operates on 2.8-3.4V

Data_IN• Logic Low: 0.3V to (0.2V*Vcc)• Logic High: (0.7V*Vcc) to 5.5V

Data_Out• Logic Low: 0.3V to 0.4V• Logic High: (0.5*Vcc) to (Vcc-0.4V)

Absolute Max voltage: 3.4V

Max Temperature: 85° C

Specifications for LINX 900NT

Page 36: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Interfacing

Possible Bluetooth capability

Ability to transmit to smartphone devices able to pick up the signal

An app could then be created to simulate the same display and touch capabilities of the main screen.

Page 37: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Environments

Paralax Propeller development to be used for main system

Eclipse equipped with Android tools would be used for the development of the app if that option is taken• Both chosen for familiarity with language and

convenience.

Page 38: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Product Quantity Price Budget($1433.12)

LCD Screen (1) $78.55

Xbee Series 1 (3) $54.00

HCPL-7800 (4) $5

Parallax (2) $15.00Voltage Regulator

(DC-DC)(4) $6.88

PCI Serial Port Card

(1) $16.95

Real Time Clock (1) $3.05

24LC512 EEPROM (8) $12.48

AC/DC Adaptor (3) $38.89

Misc: Resistors, Capacitors, Diodes

~$90

PCB Fabrication ~$300Total Spent ----- ------ ~$800

Page 39: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Distribution of Work

Jon Daniel Richard

VGA Display X X

RF Transmission X X

Circuit Breaker X X

kWh Meter X X

Page 40: Group 32 Watts The Matter? Home Power Consumption Monitor CpE : Daniel Allen EE: Jonathan Nguyen CpE : Richard  Velez

Questions?


Recommended