+ All Categories
Home > Documents > Smart power strip - UC DRC Home

Smart power strip - UC DRC Home

Date post: 19-Feb-2022
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
33
Smart Power Strip A thesis submitted to the Faculty of the Electrical Engineering Technology Program of the University of Cincinnati in partial fulfillment of the requirements for the degree of Bachelor of Science in Electrical Engineering Technology at the College of Engineering & Applied Science by TIM CLARK Bachelor of Science University of Cincinnati June 2011 Faculty Advisor: Xuefu (Frank) Zhou
Transcript
Page 1: Smart power strip - UC DRC Home

Smart Power Strip

A thesis submitted to the

Faculty of the Electrical Engineering Technology Program

of the University of Cincinnati

in partial fulfillment of the

requirements for the degree of

Bachelor of Science

in Electrical Engineering Technology

at the College of Engineering & Applied Science

by

TIM CLARK

Bachelor of Science University of Cincinnati

June 2011

Faculty Advisor: Xuefu (Frank) Zhou

Page 2: Smart power strip - UC DRC Home

Department of Electrical and Computer Engineering Technology

Smart Power Strip

Tim Clark

June 7, 2011

Submitted in partial fulfillment of the degree of

Bachelor of Science in

Electrical Engineering Technology

Student Signature ______________________________

Advisor Signature ______________________________

Page 3: Smart power strip - UC DRC Home

P a g e | 0

Smart Power Strip

Table of Contents

Abstract ........................................................................................................................................... 2

Introduction ..................................................................................................................................... 3

Problem ........................................................................................................................................ 3

Solution ........................................................................................................................................ 4

Credibility .................................................................................................................................... 5

Goals and Methodology............................................................................................................... 6

Overview ..................................................................................................................................... 7

Discussion ....................................................................................................................................... 8

Project Concept............................................................................................................................ 8

Design Objectives ........................................................................................................................ 8

Technical Approach ................................................................................................................... 10

Background math ................................................................................................................... 10

Voltage Measurement ............................................................................................................ 11

Current Measurement ............................................................................................................. 11

Isolation, Amplification, and Offset ....................................................................................... 12

Supply..................................................................................................................................... 13

Physical Design ................................................................................................................... 13

Budget ........................................................................................................................................ 15

Page 4: Smart power strip - UC DRC Home

P a g e | 1

Smart Power Strip

Timeline ..................................................................................................................................... 15

Problems encountered ................................................................................................................ 16

Future Recommendations .......................................................................................................... 16

Conclusion .................................................................................................................................... 17

References ..................................................................................................................................... 18

Appendix A ................................................................................................................................... 19

Photographs ............................................................................................................................... 19

Appendix B ................................................................................................................................... 21

Schematics ................................................................................................................................. 21

Analog Capture circuit ........................................................................................................... 21

Arduino Uno ........................................................................................................................... 22

Arduino Ethernet Shield ......................................................................................................... 23

Appendix C ................................................................................................................................... 24

Datasheets .................................................................................................................................. 24

Agilent HCPL-7520 Isolated Linear Sensing IC.................................................................... 24

Ohmite 13FR200E.................................................................................................................. 25

Arduino Uno ........................................................................................................................... 26

Atmel ATmega328 ................................................................................................................. 27

Arduino Ethernet Shield ......................................................................................................... 28

WIZnet W5100 ....................................................................................................................... 29

Page 5: Smart power strip - UC DRC Home

P a g e | 2

Smart Power Strip

Abstract

As the cost of living increases, people often look for ways to cut spending any way they can.

With energy cost on the rise, power consumption increasing and green technologies gaining

momentum, knowing how much an appliance cost to use can be very helpful information when

trying to save money. My Smart Power Strip is the solution. The Smart Power Strip is a power

strip will have the ability to be monitored and controlled from any Ethernet capable device. The

main objective is to develop hardware that will allow for easy deployment of a localized,

Ethernet capable, AC power monitoring/control system. This will allow for a user to monitor live

power consumption of the connected loads.

Page 6: Smart power strip - UC DRC Home

P a g e | 3

Smart Power Strip

Introduction

The following report outlines the three-quarter process involved in imagining, developing,

designing, prototyping, and completing the Smart Power Strip.

The Smart Power Strip is a power strip that has the ability to be monitored and controlled from

any Ethernet capable device. The main objective is to develop hardware that will allow for easy

deployment of a localized, Ethernet capable, AC power control system. This will allow for a user

to monitor live power consumption of the connected loads.

Problem

Being an energy customer, I often wonder how much it really costs to run my home

entertainment center, computer or other house hold appliances. Not only that, but it would be

nice to collet this data over time so that power consumption can me managed. Right now there is

not an easy solution to this problem available.

As the cost of living increases, people often look for ways to cut spending anyway they can.

With energy cost on the rise, power consumption increasing and green technologies gaining

momentum, knowing how much an appliance cost to use can be very helpful information when

trying to save money

Page 7: Smart power strip - UC DRC Home

P a g e | 4

Smart Power Strip

Solution

The solution that I intend to implement to solve this problem is the Smart Power Strip. The main

functionality of the Smart Power Strip will be to provide a plug and play power strip that will

broadcast live usage via Ethernet. In its simplest form, the Smart Power strip function like any

other power strip, however there will also be a RJ-45 jack for Ethernet conductivity. This will

allow for a user to plug in appliances of their choice, and broadcast its power usage to other

devices on the network. See figure 1.

To wall outlet

User Appliance IN

User Appliance IN

User Appliance IN

User Appliance IN

User Appliance IN

RJ-45 Cat5e cable Network

Figure 1: Smart Power Strip prototype drawing

Page 8: Smart power strip - UC DRC Home

P a g e | 5

Smart Power Strip

Credibility

The knowledge I have spans 10 years of personal and professional experiences in dealing with

computers, networking and electronics. During my senior year in high school I was taking prep

courses towards my A Plus and Net Plus certifications. After graduation I enrolled and Gateway

Community and Technical College where I prepped for CCNA and MCSE certifications and

studied basic electronics. Ultimately I graduated with an Associates in Applied Science geared

towards electronics and information technologies. During this time I worked full time at Sega

GameWorks as a Game Technician, working on and troubleshooting just about any electrical

systems you can think of. I moved up from Technical apprentice to Game Technician as I

progressed through school. After Gateway I enrolled at UC in the EET program. I stayed on

fulltime at GameWorks until my first Co-op where I dropped to part-time until my second co-op.

The first co-op was a Premier Network Solutions. While there I learned the ins and outs of home

and office automation by programing and designing systems. I also provided computer and

network support because of my previous experiences. The final co-op was with L-3

Communication FOS where I worked within a R&D group designing fuses for munitions

systems. Since the end of my co-ops I have been working part time in telecommunications at a

place called Electronauts. So as you can see, I have always worked closely within the electronics

industry.

Page 9: Smart power strip - UC DRC Home

P a g e | 6

Smart Power Strip

Goals and Methodology

This project will consist of two main parts, hardware and software. The primary objectives for

this system will be to collect and transmit live data to a remote device. This will be met by

implementing a hardware system that is designed to capture an incoming AC signal, power the

integrated system, collect live current and voltage measurements and provide outlets for AC

loads. The software will analyze and transmit this data over Ethernet via network protocol.

This functionality, major components and their relationship can be seen in Figure 2 below. This

block diagram shows the different functions of the hardware, software and the communications

between them.

Page 10: Smart power strip - UC DRC Home

P a g e | 7

Smart Power Strip

Case

Network

Serial to

Ethernet

Module

On/Off Relay

Current

Sensing Circuit

AC Outlets

AC IN

DC Power

Circuit

Ethernet

Protocol

AC Voltage

Sensing Circuit

Micro-Processor

Serial

Communication

Figure 2: Early System Design Flowchart

Overview

The remainder of this final report outlines in detail how the project was completed. This report

includes the following sections: project concept, design objectives, technical approach, budget,

timeline, problems encountered, and future recommendations.

Page 11: Smart power strip - UC DRC Home

P a g e | 8

Smart Power Strip

Discussion

Project Concept

This project boils down into few different requirements. Voltage collection, current collection, a

microprocessor for computing and an Ethernet interface. I was able to do this with three main

components: An isolated analog collection circuit, an Arduino development board and an

Arduino Ethernet Shield. The analog circuit will provide the current and voltage measurements

while the Arduino development board provides the microprocessor and the needed analog to

digital converter. And finally the Arduino Ethernet Shield provided the means to transmit this

information onto a network.

Design Objectives

In order to meet the above requirements, the Smart Power Strip needs to operate as follows.

Figure 3 contains the flow of the project that can be used a reference to follow along

Page 12: Smart power strip - UC DRC Home

P a g e | 9

Smart Power Strip

Figure 3: Final Functionality flowchart

.

AC voltage and current readings are gathered while remaining electrically isolated from

the microcontroller. Use of the HCPL-7520 Linear Optpisolator accomplishes this.

(Figure 11)

The analog values are then sent through an A-D converter. Provided on the Arduino

Microcontroller uses the gathered data to compute the power usage. (The SD card could

be used to create a database) Provided on the Arduino

The microcontroller takes this and creates a basic HTML webpage that is sent to the

WizNet W5100, which converts the data to a TCP/IP signal and sent off to the network

and displayed on in any modern web browser (Figure 9). Provided on the

Arduino Ethernet Shield.

Page 13: Smart power strip - UC DRC Home

P a g e | 10

Smart Power Strip

Technical Approach

The technical approach taken during the design, development, and testing of the Smart Power

Strip was in-depth and multi-faceted. The systems engineered into the Smart Power Strip are

discussed in detail below. All system schematics are available in Appendix B, and component

specific details may be found in the datasheets located in Appendix C.

Background math

In an AC circuit voltage, current, and power are defined as the following:

When the load is purely resistive, voltage and current are in phase. When the load is either

inductive or capacitive, voltage and current are out of phase.

Using several trigonometric identities, the power can be expressed as:

The average (real) power, P. Real power is the energy that flows to the load. It is what the

electric company bills home users for. It can then be written as:

Reactive power, Q, is the energy that flows back and forth in an inductive or capacitive load. On

average, no reactive power is consumed. It can be written as:

Page 14: Smart power strip - UC DRC Home

P a g e | 11

Smart Power Strip

Together, real power and reactive power form complex power. This is the actual power that the

electric company is supplying. It can be written as:

The magnitude of complex power is called apparent power, |S|, in units Volts-Ampere. The

power factor, PF, a measure of efficiency is defined as:

Voltage Measurement

To measure voltage, the idea is to use a very large voltage divider to divide the 170 V peak-to-

peak signal down to level which can be sampled by the ADC. Using a 1001:1 voltage divider

(with 1 MΩ and 1 kΩ), as shown in the Appendix B schematic, 170 V peak-to-peak is divided

down to 0.17 V peak-to-peak. A very large resistor (1 MΩ) was used in the divider to limit the

current between AC live and neutral. Assuming a 170 V drop, only 0.17 mA flows through the 1

MΩ resistor, dissipating 0.03 W, well within the power ratings of the resistor. To calculate the

line voltage from the voltage divider output, the following equation can be used:

(Eq. 1)

Current Measurement

To measure current, the idea is to break the neutral line and insert a very small current-sensing

resistor (0.2 Ω). This would create a small voltage difference across the resistor. Since we know

the voltage drop and the resistor value, we can mathematically determine the current through the

neutral line. Since the resistance is very small, very little power is dissipated through it. The

Page 15: Smart power strip - UC DRC Home

P a g e | 12

Smart Power Strip

resistor is rated for 3 W. To calculate the line current from the current-sensing resistor voltage

drop, the following equation can be used:

(Eq. 2)

Isolation, Amplification, and Offset

The Avago Technologies HCPL-7520 linear optoisolator are the main components of the design

that I ended up using. This device has a linear transfer characteristics curve for input range -256

mV to 256 mV. The input is differential and the output is scaled to Vref. The gain is Vref / 0.512.

This single chip allows us to bias the signal to Vref / 2, amplify it, and isolate it. It results in a

solution that is simple and cheap to build. The HCPL-7520 was used for both voltage and current

measurements. Vref was set to Vcc (5 V) of the Arduino. To calculate the input voltage of the

HCPL-7520 from the output voltage, the following equation can be used:

(Eq. 3)

Combining the voltage divider (Eq. 1) and current-sensing (Eq. 2) equations with (Eq. 3), we get:

(Eq. 4)

(Eq. 5)

The voltage output was connected to Port AD0 of the Arduino. The current output was connected

to Port AD1.

Page 16: Smart power strip - UC DRC Home

P a g e | 13

Smart Power Strip

Supply

On the high voltage side, the optoisolators were powered using a salvaged 5 V DC regulated

power supply. On the low voltage side, the optoisolators were powered using Vdd and Gnd of the

Arduino board. The Arduino board was powered using another salvaged regulated power supply,

this time operating at 9 V DC.

Physical Design

For physical design, a perf-board was used to place my circuit. One side of the board contained

high voltage elements. The other side contained Arduino inputs. The two sides were completely

isolated. Cables from a recycled extension cord were used to connect AC lines. The extension

cord connector head was used to connect our device to the wall. Devices under test were

connected via a wall socket. Everything was contained inside a plastic two din wall box for

safety. See Figure 4 and 5.

Page 17: Smart power strip - UC DRC Home

P a g e | 14

Smart Power Strip

Figure 4: All boards and outlet loaded into case

Figure 5: Smart Power Strip fully assembled

Page 18: Smart power strip - UC DRC Home

P a g e | 15

Smart Power Strip

Budget

Then intention of this project was to cost as little as possible without straying away from the

primary objective. Figure 6 below show the final list of parts along with their cost:

Figure 6: Build of Materials

Timeline

Figure 7: Gantt Chart Illustrating Project Timeline

As seen in Figure 7 above, the Smart Power Strip had a completion date of May, 5th 2011. This

was the date of the tech expo. The chart starts at the beginning of December, leaving about five

months to have completed the Smart Power Strip.

Figure 1: Functionality flowchart

Page 19: Smart power strip - UC DRC Home

P a g e | 16

Smart Power Strip

Problems encountered

I ran into two problems in the process of building the Smart Power Strip. The first being and

issue with keeping the AC circuit isolated from the digital side of things. The HCPL-7520 linear

optoisolator was able to isolate these two circuits and solve this issue.

The other problem encountered was due to incomplete programing. I was able to decipher the

digital inputs enough to calculate the power on purely resistive loads. However, the power

calculations for non-resistive loads never seemed to work correctly. I feel it was because of the

complex programing required to calculate power, as seen above in the background math.

Future Recommendations

The only recommendation I have for this project is to figure out the whole scope early on. I was

not able to accomplish in the programing. Knowing this I could have planned ahead better and

maybe partnered up with a CET (Computer Engineering Technology) student. It would be nice

to have been able to take advantage of the SD card to allow for a database collection and plotting

usage over time. This would be a great addition to the web interface. This too could be fixed with

a more proficient programmer.

Page 20: Smart power strip - UC DRC Home

P a g e | 17

Smart Power Strip

Conclusion

It is my belief that an aware consumer is a smart consumer. I feel that if given the opportunity,

most people like to save money whenever possible. The Smart Strip will enable the average

consumer to take control of their power consumption by providing an easy to use link between

the outlet and their everyday appliances.

The Smart Strip can benefit anyone that uses electricity. It will allow its users to become more

aware of the power being used for the connected appliances. Knowing this information, the user

can make educated decisions about how their appliances are used based on their needs.

The final version of the Smart Power Strip has meet most of the original design criteria. The

system is able to collect and process the required data and communicate this in a user friendly

manner. The system’s network communication has been tested on several different devices with

great success.

Page 21: Smart power strip - UC DRC Home

P a g e | 18

Smart Power Strip

References

1) All About Circuits : Free Electric Circuits Textbooks. Web. 05 June 2011.

<http://www.allaboutcircuits.com/>.

2) "AC Power." Wikipedia, the Free Encyclopedia. Web. 05 June 2011.

<http://en.wikipedia.org/wiki/Ac_power>.

3) "AC Power Plugs and Sockets." Wikipedia, the Free Encyclopedia. Web. 05 June 2011.

<http://en.wikipedia.org/wiki/Power_socket>.

4) "Analog-to-digital Converter." Wikipedia, the Free Encyclopedia. Web. 05 June 2011.

<http://en.wikipedia.org/wiki/Analog_to_digital_convertor>.

5) "Power (physics)." Wikipedia, the Free Encyclopedia. Web. 05 June 2011.

<http://en.wikipedia.org/wiki/Power_(physics)>.

6) Arduino - Arduino Home Page. Web. 06 June 2011. <http://arduino.cc/>.

Page 22: Smart power strip - UC DRC Home

P a g e | 19

Smart Power Strip

Appendix A

Photographs

Figure 8: Breadboard prototype

Page 23: Smart power strip - UC DRC Home

P a g e | 20

Smart Power Strip

Figure 9: Webpage interface with 40 Watt light as load

Figure 10: Test setup

Page 24: Smart power strip - UC DRC Home

P a g e | 21

Smart Power Strip

Appendix B

Schematics

Analog Capture circuit

Figure 11: Analog circuit design

Page 25: Smart power strip - UC DRC Home

P a g e | 22

Smart Power Strip

Arduino Uno

Figure 12: Arduino Uno schematic

Page 26: Smart power strip - UC DRC Home

P a g e | 23

Smart Power Strip

Arduino Ethernet Shield

Figure 13: Arduino Ethernet Shield schematic

Page 27: Smart power strip - UC DRC Home

P a g e | 24

Smart Power Strip

Appendix C

Datasheets

Agilent HCPL-7520 Isolated Linear Sensing IC

Page 28: Smart power strip - UC DRC Home

P a g e | 25

Smart Power Strip

Ohmite 13FR200E

Page 29: Smart power strip - UC DRC Home

P a g e | 26

Smart Power Strip

Arduino Uno

Page 30: Smart power strip - UC DRC Home

P a g e | 27

Smart Power Strip

Atmel ATmega328

Page 31: Smart power strip - UC DRC Home

P a g e | 28

Smart Power Strip

Arduino Ethernet Shield

Page 32: Smart power strip - UC DRC Home

P a g e | 29

Smart Power Strip

WIZnet W5100

Page 33: Smart power strip - UC DRC Home

P a g e | 30

Smart Power Strip


Recommended