Home
Senior Design 1 Final Paper - Department of Electrical Engineering
Contents
1. The screens quick response time and visual display seemed to be perfect for our application We will be using this screen to change features view options and show an estimation of the total power used and the cost in dollars This screen will also communicate with the microcontroller to activate or deactivate these features such as Master slave mode Motion sensing and or estimated power and cost modes 4 1 4 Motion sensor For the passive infrared motion sensor we decided to select the Parallax PIR Sensor Rev B Seen above in the figure is an image of the sensor we felt that because of the low voltage draw and its high range of visibility it would work best with our design The voltage in take of this device can be any where from three to six VDC This device also carries a jumper to be set to either standard mode which detects up to thirty feet or in reduced sensitivity mode which changes the range to about fifth teen feet away The sensor has a sight of about forty seven degrees from the top to the base Figure 21 PIR motion sensor Permission requested from www parallax com tabid 768 productid 83 default aspx This sensor also contains an LED light for quick visual response to acknowledge if motion has been detected in its range Another factor was the size of the device We sought to minimize the motion sensor to entail more space for other larger components such as the Bluetooth mate and the LCD screen display This motion sens
2. 4 1 7 Solid State Relay There was not much competition since both parts were pretty similar in rating and from the same manufacturer This is always closed relay which means that it require a voltage to turn it on The relay will be through hole designed and contain 4 pins Two of the input pins are current pins where the wall AC current will connect to and the second pin lead to the current sensor The other two pins are input positive and negative The microcontroller digital I O pins will connect to them and send the voltage to turn the relay on Below are some key numbers from the datasheet Forward current is 50 mA RMS on state current 16 A On state voltage 1 5 V Repetitive peak OFF state voltage 400 A 4 2 Circuit Design 4 2 1 Current Sensor Circuit Here in figure 22 shows the relationship between the current sensor and the microcontroller When a device plugs into the A U M Device it will instantly draw power and current The current that it draws will create a magnetic that affects the current sensor to change the output voltage The output voltage will be transferred to the microcontroller to be analyzed The microcontroller comes equipped with 8 analog to digital converter It receives an analog signal from the sensor and transform that value into a digital number LOSCH CSLT6B100 Operational Current Sensor o Amplifier Atmegas24o Device plugged in the UM D Microcontraller Figure 22 Relationship between
3. e e f 3 SS SS SS E SS amp wey 19 W ON am om Ap wu um a o ny 28 AU OD Ma 0 Mi Mes op om Km SI ehh Si EN ia IAS DS EH DU 5 20 2 W aus om RI mm HN Dn mN up mu mp di 09 Au pp um on ou on mu ug GR si OE 1 od H SS 2 i a A 2 3 i S SS amp S E SS amp Week 022 LA Am AH A AF am Au HN HH 5 27 245 ST MR HI LG MM Ha WO Meaty La AM un D LN An Ip 15 Dia WA 7 fb Ha Gm wx um mm MP Aen ML ua Io om Gap 5 fp Gomm EB pe M Figure 1 Power ratings Permission granted from choice au 2 2 Goals and Objectives The main goal of our overall project is to create a device that improves energy efficiency demonstrate energy sustainability and can be completely monitored by the user We also aspire for the user to have minimal day to day interactions with the device With people always on the go we aimed at having at type of worry free device This design will entail a total of three outlets The A U M Device will look similar to a power strip with an LCD touch screen The A U M Device will also inform you how much energy your appliances are drawing as well as calculate your monthly electric bill 2 2 1 Cost Efficiency A major goal of ours is to fabricate a design that is low cost and effective This plays a huge part in the project when choosing parts and design methodology We examined our situation and tried to find ways of breaking the cost down little by little For example with the microcontroller we resear
4. ccccccceccceccccccccccececececcauacacscececeauauacscsteneeaeavces 74 4 3 5 Wireless Control 74 5 FOLOLY e 76 Os CSTNG BE 81 6 1 Hardware 81 Ball POWER SUD E 81 6 1 2 Current Sensor cru 81 6 13 SONG Slate Relay sirar E E AE T 81 SNE nl A UM E Le 82 OM CHI EE 83 SE D WVIOTION SC ll EE 83 CZ SO Aire SS WNC a E E EE 84 6 2 RR dn LEE 84 SE TIO We Ole EE 84 6 2 3 Master Slave mode arideneniensan nanena aaa aaa ea ia NNa 84 6 2 4 Molon Sense ModE EE 85 625 ON ORF MOJE sir asi ieredasd dena daneaustnanieesiaaneds 85 6 2 6 Estimated cost ANd power use 85 6 2 7 NIGFOCOMIONEr TeSUNG EE 86 0 2 6 WICFOCONMONCrACCUIAGCY E 87 EE ln E EE 89 EE e Tun left CONTE EE 91 8 1 Budget projection And Tmnancmg 91 E rel 92 8 3 OMG IMSION EEN 93 Figure Table Foa 1 POWGI dn e EE 8 Figure 2 Project Management Block Diagram ccccccceecseeeeeeeeeeeseeeeeeaeeeeeeeeesseeeeens 16 Self Complex Ge EE 17 PIQUIE 4 SAUNT PCSISION E 19 Figure 5 Open elei Be EUR EE 21 Figure 6 Glosed Loop Hall EE 22 PIQUE z Sold Stale E E 24 Foures E ele BE EE 25 Figure EE er 26 FIGUKE 10 CaDaACiIVE SCIEON EE 27 Figure 11 Surface Wave Acoustce scisco ia Eae kaa 28 Figure 12 Motion Sensor Block Diagram ccccseeceeeceeeeeeeceeeeeeeeaeeseeeeeeeeessueeeeeesaanes 30 Figure 13 Ultrasonic Motion Sengo censi saa cece dete a 30 Figure 14 Closed Loop Current Sensor nn000nnn0000nnoaaneooanneorannnornnnenrnnnrernnnnrrnnne
5. The Android device will connect to the A U M Device though Bluetooth technology which is a wireless connection and will be able to have a range from zero to 100m away We felt that this would work well with the major increase in popularity of Android devices on the market today Making the A U M Device more versatile and allowing users to power up and off their devices from a fairly far distance 2 2 5 Motion Sensor An infrared motion sensor will be placed on the front of the A U M Device at an inclined angle The incline angle will give the motion sensor a better field of view to detect presences The motion sensor will detect when a user has left the room for a certain amount of time which can be pre set by the user and will shut down all selected devices for motion control The motion controller will also help minimize the day to day interactions with A U M Device and be a major contributor of energy and power saving of the A U M Device 2 3 Scope of work A Power surge is a device that allows a user to plug multiple devices in order to increase number of outlets available and protects the peripherals plugged in With the increase in technology today we sought out to magnify its potential to a whole new device Which will carry more up to date feature such as wireless Bluetooth technology for distance Motion sensor for when the device is unattended for a certain period of time It will also display an estimated power consumption and sa
6. but it will be up to us and our kids to jump off of it We can t just keep following the bandwagon or else nothing will get done The world is going in circles in more ways than one and we ve got to break the circuit The Automated Utility Management Device is our offered circuit to do that Reflections Features excluded The group had many ideas for features and functions for the A U M Device Many features were removed due to the heavy amount of research and cost It and was decide it wasnt worth the time or effort to include them in the final project The group would have liked to create a web interface for the project The web interface would just basically be the same menu interface that s included on the touchscreen but available on the internet This would be extremely useful in case a person wanted to know the amount of the bill if they were in another location or to disable an outlet to save power Voice command was also removed but if it was implemented to the device it perform commands to the A U M Device A person could say outlet one off and that outlet would shut off Future Improvements With the technology growing every day there will always be ways to improve on something felts a huge improvement we could make in the future would be more outlets The A U M device only has three outlets that in turn does not save you much power or money but it will get the job accomplished If we increase the number of outlets that
7. to open For this project it would be beneficial if the relay was always on That way when the user wants to disable a socket There are many versions of relays but best two types of relays that for this project are electromechanical and solid state Below we investigate the advantages and disadvantages of each of these types of relays 3 1 9 Electromechanical Relay These relays have a magnetic core inside the system They have a movable arm ready to close or open depending if the relay is always on or off After an electrical signal flows through the system and a magnetic field moves the arm They have a huge disadvantage in the timing of arm to revert back to its original position The advantages the have are they need a heat sink since most of the work being done inside the relay is mechanical 3 1 10 Solid State Relay There many different solid state relays that have different mechanisms on how they dictate the flow of current in the circuit The most noted feature solid state relays have are no moveable parts inside of the device The way that the relay works in the figure 7 below is an LED turns on and it dictates whether the relay should turn or off instead of a magnetic field like the electromechanical relay Solid state relay LED Opto TRIAC Figure 7 Solid State Relay Permission Granted from pc control co uk 3 1 11 AC to DC conversion and Power Distribution Almost all of the components in the inner circuit of A U M
8. 1 8 9 10 30 11 31 14 17 18 20 21 29 32 33 40 Table 12 Pin design for the Atmega324p The current sensor circuit will be outputting an analog signal that will be measured by the microcontroller analog pins These analog signals will then be converted to a digital form inside the microcontroller proportional to the analog signal where they will be used for power calculation and to be shown on a display Pins thirty three to forty are reserved just for this type of function Unlike the analog ports the digital pins only send a high or low signal The relays require a digital signal to turn on so they will be assigned to any of the digital pins one through eight Pins 14 17 are called RX and TX pins Their purpose is to receive and transmit data through UART serial communication The LCD touch screen and the Bluetooth wireless modem will use these ports to transmit information to and from the microcontroller The VCC pin will receive 5 volts from the power supply to power the microcontroller 4 2 5 Schematics AC Source OTT Solid State Relay AC to current source F Microcontroller Signa VI Figure 27 Solid State Relay Circuit Jo microcontroller Figure 28 Current Sensor Circuit olid State Relay wolld State Relay old state Relay P AC Wal AC Wall AC Wall Figure 29 Relay and Sensor circuit 4 3 Software 4 3 1 Touch screen programming For our project we will be required to set up a menu type screen t
9. 768 productid 83 default aspx Thank you Michael Hello my name is Micheal Sriprashad and im an electrical engineering student at the university of central florida would like to request permission to use the following pictures of the LCG3 10 Outlets Power Strip my Senior design paper located on http catalog bitsltd us oower_strips ELCG3 Thank you Michael To jean lacombe gardylac knights ucf edu Yes it would be fine to use this information Regards Gary Gary L Turner Director of Sales amp Marketing Sensors Pacific Scientific OECO Meggitt Equipment Group 100 Cabin Branch Circle Hendersonville TN 37075 Tel 1 615 349 6439 tu com To sales pc control co uk To whom it may concern Iam a student at the University of Central Florida and currently working on a engineering design as a part of a course requirement I would like to ask if it is okay to use a screenshot from your website http www pc control co uk relays htm to use as part of our design document Thanks in advance Gardy Lacombe Hello Gardy The webpage you mentioned was actually submitted to us some time ago as part of an article for us to add to our website The images are therefore not within the scope of our copyright control We are actually currently re evaluating our website content with a view to removing anything which we do not have full traceable history for just to be sure of our non infringement copyright status Al
10. FLUX FEARRO MAGNETIT T IN MAGNETIC Cac UIT MAT HALL EFFECT MAGHETIC FIELD STRENGTH SENSOA CURREHT CARRY RSG COHDUEC TOR a GUTPUT TERMIMAL Figure 5 Open loop Hall Effect Permission Requested fwbell com The closed loop is pretty similar to the open loop version The main difference as shown in the figure 6 below is the fact it has a coil that s rapped around the wire lt doesn t have many advantages over the open loop except they have higher sensitivity One of the advantages are they are more accurate at higher temperatures The disadvantage is that they cant handle too much current The reason for this is shown in the picture below The have an amplifier hooked directly to the core and it cannot receive excessive current To compensate for there are bigger and cost higher than the loop version PRIMARY CURRENT FLOW WEAK FLUX SURROUNDING CONDUCTOR COMPENSATING COIL n TURNS AMPLIFIER FLUX FROM PRIMARY CURRENT BALLANCED BY FLUX FROM COMPENSATING WINDING ERROR SIGH AL Figure 6 Closed Loop Hall Effect Permission Requested form fwbell com lt must be noted that the output voltage from a Hall Effect current sensor will be very small The microcontroller will hardly be able to read it To remedy this situation an operational amplifier must be used to amplify the voltage 3 1 7 Current Sensor The Hall Effect transducer is the best way for finding the current values in this project Th
11. because a typical household is 2 700 square feet or about 250 square meters A 100m radius equates to 31 425 square meters much larger than the average household That s over 100 times the size of your house so even if you re down the road you ll still be able to interface with your A U M Device at home This method would also be fitting for our project because the user interface for the Bluetooth would be an android app or other smart phone application which would be easier to design and program than an entire website with username and password login information To connect to the Bluetooth on the A U M Device a Bluetooth ready phone would need to be near the power strip when using the app to find smart strips in the area The downside to this would be range You would have to physically be close enough to connect with the Bluetooth signal to be able to control the A U M Device The user wouldn t be able to turn the outlet off while on vacation The alternative to this would be that anyone they knew and trusted with a smart phone that has Bluetooth application would be able to turn off the outlet just by driving by the house The user would still need a neighbor or close friend to help but at least they wouldn t have to break in or even have a spare key to protect the user s house from overconsumption or electrical hazard 3 2 Components 3 2 1 ACS712 The ACS712 comes in three forms based on three tolerance of their input current There ar
12. current sensor and microcontroller From the current sensor it will output a proportional voltage That output voltage already has an output value associated with it To remove this value a Zener diode is added to an operational amplifier to negate the total offset effect The current sensor output voltage will be hooked up in a non inverting amplifier type of setup Using this equation the resistor values can be obtained Vout Sensitivty x current 2 5 For this project we decided that the maximum total current measure should not exceed 15 amps Vout 016 15 2 5 2 74 Volts Now that the current sensor output voltage at maximum current has been calculate the resistors values can be calculated the gain of the amplifier can be calculated First the total output of the output must rail when the current has reached the maximum value Vamp Gain 2 74 2 5 The rail of the amplifier should be 5 volts since the positive was given 5 volts DC and the negative terminal is grounded 5 Gain 2 74 2 5 Gain 20 84 From the design of this particular circuit the gain is the ratio of these two resistor values Cas R2 atn R Designing this circuit it was R1 9 kilo ohms and R2 187 5 kilo ohms Here it is shown in figure DK 1N4732A Figure 23 Non Inverting Amplifier 4 2 2 Solid State Relay Circuit The relay that was chosen for this device requires an input from the microcontroller That i
13. for interfacing the I S P with the microcontroller This is done by using wires to rearranging the physical placement of the serial input output pins on the microcontroller to fit the shape of the serial connection on the I S P cable The pin layout for the serial connection is shown below MISO 1 SCK 3 RESET 5 9 WCC 4 MOSI 6 GND Figure 19 AVRISPmkIl Serial connection cable header pin layout Permission requested from Atmel 4 1 3 LCD Touch Screen For our project we chose to go with the uLCD 32pt GFX touch screen We found that this one would be best for our project As seen in the figure above this display has high graphic and brightness capabilities a perfect component to be used in the dark if necessary This screen is a low cost screen with a diagonal diameter of about 3 2 inches It boasts a resolution of 240x320 QVGA and RGB 65k true to life colors It is a 4 wire resistive touch screen Figure 20 LCD Touch Screen Permission granted from 4dsystems com The 4D labs PICASO GFX2 processor also powers this touch panel Which has a total of 15k bytes of flash memory used for user input and code storage for programming the touch panel The touch screen also comes with an extensive graphics and system library functions to better help the user program Another great function of this board is the on board audio amplifier with a tiny speaker This can be used to add sounds to further enhance the touch screen user experience
14. fuse at the input of this power supply as a precaution just in case a spike occurs in the input current so the part or the PCB doesn t get destroyed It is a through hole component so it will be on the PCB Output voltage 5 or 15 V DC Output current 2 A Output power 1W Input voltage 100 240 V AC 4 1 6 Current Sensor The current sensor model CSLT6B100 was chosen out of all the other options from the research section It is a hall based so that makes it a non intrusive to the overall circuit and that helps the overall power calculation It has three ports VCC GND and VOUT and a circular area where the current from the wall will run through and be measured The VCC port only requires 5V which makes it very compatible with the VSK S1 power supply The VOUT pin send a proportional voltage that is based on the sensitivity of the part and the offset voltage It is a through hole designed component so it should be able to easily integrate with the printed circuit board Current range of 100 to 100 A Supply voltage of 5 volts Open loop sensor sensitivity 16 mV A Offset voltage of 2 5 V Supply current 7mMA There is a sort of a problem while using the hall based amplifier and that it is affected by other strong magnetic field presences That can be a problem because the majority of the calculations will be useless and utter nonsense So to compensate the sensor will be placed as far away from certain parts on the printed circuit board
15. if we could program the New A U M device to save files straight from the device to one of the new USB ports saving files such as monthly power bill or total cost to a universal serial thumb drive Work Cited AC to DC Power Supply Cui Inc N p n d Web lt http www cul com Product Resource DigikKeyPDF VSK S1_Series pdf gt ACS712 Fully Integrated Hall Effect Based Linear Current Sensor IC with 2 1 KVRMS Voltage Isolation and a Low Resistance Current Conductor Allegro MicroSystems N p n d Web 05 Dec 2012 lt http www allegromicro com Products Current Sensor Cs Zero 1 o Fifty Amp Integrated Conductor Sensor ICs ACS712 aspx gt Application Development for Bluetooth Embedded Systems Depparfment of Computer Science and Engineering North South Univevsily N p n d Web 04 Dec 2012 lt htip networks cs ucdavis edu sayeem Pub bluetooth inmic 04 pdf gt Asay Matt Android Users More of Them Then Fanbois but They Don t Use the Web The Register N p 28 Nov 2012 Web 04 Dec 2012 lt www theregister co uk 2012 11 28 open_ and_shut gt Aitmega 324p Atmel N p n d Web 04 Dec 2012 lt http www atmel com Images 8011S pdf gt Atmega 328 Atmel N p n d Web 04 Dec 2012 lt htip www atmel com Images doc8271 pdf gt ATMEGA BOOTLOADER TUTORIAL Society of Robots N p n d Web 04 Dec 2012 lt htip www societyofrobots com bootloader 50 robot shtml gt Atmel AVR D
16. into the dollar amount cost of each appliance Our A U M device differs since our LCD screen is located directly on the device We have also implemented the means of an Android operating system application which allows any Android device to display all functions and features as if you were standing right in front of the device interfacing with the LCD touch screen Our project also carries a motion sensor to report when a user presence has been detected stays in the room or area or leaves the area We felt that there idea of calculating the kilowatt per hour month or year and then converting it a dollar amount Then reporting it back to the user was great We decided to have this implemented in our own device as well After looking at all these commercial device and previous senior design projects we decided on what we can and cant do when it comes to the design of our A U M device We felt that adding Bluetooth wireless was an excellent feature to be able to control the device from any point in the house makes it easily accessible With the development of Android Application we will be able to link practically any Android enabled device to the A U M Device using the Bluetooth technology We want the application to almost be a replica of what is on the touch screen LCD to give it full functionality as if you were standing in front of the device Another feature we thought would be great from saving power was a motion controller We could use this
17. is an open source AVR programmer made for Windows operating system specifically designed for Atmel series microcontrollers This software is compatible with assembly language C and C programming languages It contains avr gcc a compiler avrdude a programmer and avr gdb a debugger The installation file is available free on sourceforge net and comes with volunteers that are always welcome to help fix bugs add features port or write documentation It also comes in a smaller version called Portable WinAVR which can fit on a USB and be taken to any computer or laptop needed if the project has to be programmed anywhere or in field Atmel Studio 6 The other program we looked at was the Atmel Studio 6 This toolchain was made by Atmel so it interfaces readily with all of the microcontrollers on its product line It also comes with advanced support from the company Atmel Studio 6 A S 6 comes with Atmel Gallery which is an app tool for purchasing and downloading any software or compiler from Atmel or any third party companies through the A S 6 software It also comes with Atmel Spaces which is a special new community based cloud space for sharing code with other developers safely over the internet This software would be great for our project because it comes with specific support that would help us as beginning embedded system programmers It can program in assembly language C or C programming language The app store would make any sof
18. it e Long life and reliability e High switching frequency No contact arcing and bounce Maximum switching capacity Vibration and shock resistance No electrical mechanical noise Phase angle control mode High switching speed Logic compatibility Low input current Here s a list from a tech newsletter that was very beneficial to our project The link is as follows http www crydom com en Tech Newsletters Solid 20Statements 20 20SSRs 20vS 20EMRs paft Now to investigate two different solid state relays the Sharp S108T01F and 116S01 po SOBTOIF SBSON S current voltage State voltage current On state voltage 5M Table 5 Sharp S108T01F Both tables show the similarities of both parts The only difference between the two parts is the S116S01 has a higher RMS on state current cycle stage current 3 2 4 LCD Screens After careful consideration and plenty of LCD research we decided to go with resistive touchscreens The pros vs cons ratio definitely outweighed the other choices We found them to be cheaper then the rest of the competition and also more versatile being able to function using a finger pen or any pointed object which cannot be done with the other choices It also doesnt need a specific humidity to operate and can function at any temperature It can also be used with gloves or any other hand wear The only disadvantage found was poor visibility in the sunlight but then again we are creating a power strip
19. of two transducers a glass panel and reflectors One of the transducers is placed along the x and the other placed along the y axes of the screen The reflectors are also placed on the glass They will reflect the electrical signal produced by the transducers Now the other transducer will to able to tell if the wave has been distorted by a touch This set up calls for no metallic layers just the glass panel which allows 100 percent of light from the screen Shown below in figure 11 is a basic representation of the surface acoustic wave touchscreen breakdown A disadvantage of this system would be the size of the touch A finger is about the smallest it would be able to read small objects like a pen tip have been proven to not work Also this system is by far the most expensive out of all the previously mentioned systems by far TRANSMITTING TRANSDUCER GLASS SUBSTRATE REFLECTIVE ARRAYS KE REFLECTED Y TRARBMITTING TRAN SOUCER RECEMAG TRA SOUC ER T RECEMAG TRAN SOUCER Figure 11 Surface Wave Acoustics Permission requested from www norteng com pages tselgd1 htm 3 1 17 Motion sensor In todays market there are multiple types of motions sensors that work in different and similar ways They are broken down into two categories local and area sensing Local sensing is the motion sensing referred at a designated location which includes Visible infrared light beam continuous wave piezoelectric sensors piezoresistive sensors piez
20. screens PET film Top circuit layer TO conductive coating Spacer dot TO conductive coating Bottom Circuit layer Glass or acrylic backing panel NOOR WD Another type of touch screen is called the capacitive system which is a glass panel that has a single overlay that stores electrical charge When your finger touches the screen electricity is discharged from the overlay and transferred to your finger Then the decrease in electricity is measured at the exact coordinates where it was touched In figure 10 you can see how the touch is processed in a Capacitive screen setup One huge advantage of the capacitive touch screen over the resistive screen would be a clearer picture A capacitive system transmits about 90 percent of the light from the screen versus the resistive which only transmits about 75 percent of the light from the screen But on the other hand the capacitive system is almost twice the price of a resistive touch screen Image procek Onis r mmn nmg Coxieoller of basch proia l 1 d mage of changes in i electrostatic held caused Be oY Touch screen sensor Conteeiler resokves basch reide fo actual touch pcan Ln od back bo operating systern Figure 10 Capacitive Screen Permission requested from http mobilephones pk reviews what are capacitive and resistive touch screens The last touch screen system is known as Surface acoustic wave system This system works with the use
21. that the microcontroller will burn out if it is completely reprogrammed over and over again in this manner Bootloader For this method a hardware programmer is still needed but only once at the beginning The hardware programmer loads the bootloader which is a self programming code file that is used to reprogram the microcontroller without having to use a hardware programmer This is useful for field upgrades such as mobile devices that are updated with new programs or operating systems by the bootloader The microcontroller receives the bootloader through the serial input pins and then it can be reprogrammed using the UART Universally Asynchronous Receiver Transmitter or receiver Rx and transmission Tx pins This means it can receive new programs through the wireless receiver and it doesnt need to be taken out of the integrated circuit 3 1 20 Software There is essentially one way to program a microcontroller and that s writing code How the code is written is completely up to the programmer however Code is the file that contains the instructions that tells the machine what to do The language that the microcontroller reads is called machine instruction code which is just a string of 1s and Os representing everything in code that humans cant read The programmer writes the code in a higher level language that is translated to machine code The three most popular ways to code a program that is to be used in an embedded system ar
22. this is definitely a problem for the relay To remedy this a resistor will be put in place to drop the voltage of the microcontroller output Also to help with the relay power dissipation when it s off SO a diode is going to be placed in parallel with it Turning off the power suddenly in devices can lead to high voltage spikes in certain devices To fight against transient voltage there would need to be design of a circuit that can limit these voltage spikes After much research the snubber circuit was designed especially for this case The snubber circuit can be a simple RC circuit 4 2 3 Overall Device The overall block diagram of the final circuit is shown below It encompasses the whole internal hardware system of the device The A U M Device is plugged to the wall to receive 120 volts That voltage is going to be split into two different paths The first path is straight to the power system where it is converted from 120 volt AC to 5 DC That 5 volt DC is used to power the motion controller solid state relay Hall Effect current sensor Bluetooth peripheral microcontroller and the motion detecting unit The second line connects to the solid state relay to control the flow of current to the outlet From the relay it will go through the open loop in the sensor The sensor will output a voltage that is proportional to the strength of the magnetic field due to the flow of current through the wire Once it passes through the conductor it
23. voltage applied to its input pins e Check the min voltage amount for the relay to open e Check the min voltage amount for the relay to open e Measure how long it take This test will come after the microcontroller has been tested and all of the parts are in a printed circuit board The microcontroller will send a small voltage to the relay and then a voltmeter will check if there is a voltage on the output after the signal has been sent Then the controller will send a 0 signal e Measure the voltage and current output when the relay is off e Measure the voltage and current when the relay is on 6 1 4 Entire A U M Device This will be the final round of testing after all the other components have been tested configured and proved to be functional and in the printed circuit board There will be 4 rounds of testing each of the available modes offered by the device and the power calculations Step One The first round will cover the master slave mode of the device This is when a master device has entered sleep mode all the other outlets turn off So a device that s plugged in the master outlet must have a sleep mode The device in slave mode will be a lamp e Check if the lamp actually closes e Measure the time it took for the lamp to close Step Two The second round of testing the unit is based on the motion sensing mode There will be one lamps plugged in the unit Everyone will leave the range of the motion sensor and after 10 minut
24. AM To WebMaster To whom it may concern Tam a student at the University of Central Florida and currently working on a engineering design as a part of a course requirement I would like to ask if it is okay to use a screenshot of the SIMPSON 06 709 RESISTORS SHUNT from your website to use as part of our design document Thanks in advance Gardy Lacombe http www k ext ti com sc technical support email tech support asp Thank you for your interest in Texas Instruments Semiconductor products and services Your request has been sent to Texas Instruments Semiconductor Product Information Center Americas Prefix First Name Last Name Job Title Company E Mail Phone FAX Country Address1 Address2 City State Postal Code Part Number End Category Application Design Stage Production Quanities Production Date Mr Benjamin Gruseck Electrical Engineering Student University of Central Florida lowengruseck knights ucf edu 321 890 7786 USA 1854 Grinnell Terrace Winter Park FL 32789 MSP430 Access and Licensing Consumer Electronics New design 1 units April 2012 Preferred Distributor Microcontroller Development amp Tools Hardware Tool Software Tool Software Tool Version Operating System Was problem verified using proven code example Is this solution battery powered MSP430 VCC or TMS470 Vcore amp VCCIO Volts Which clock is sourcing the CPU Ope
25. Cost and Power Used Outlet 1 Outlet 2 Outlet 3 Total 10 5 Watts 78 9 Watts 158 95 Watts 225 85 Watts Figure 34 Estimated cost and power used 4 3 2 Algorithms The microcontroller will be programmed to handle all of the automated control and calculation of the A U M Device This includes the Master slave function the motion sensing mode and the automated on off mode as well as the present current average current power usage power savings and power bill values All of these can be implemented using algorithms or procedure These algorithms are then programmed into code for the microcontroller 4 3 3 Outlet Control This mode is for automatically turning an outlet on or off depending on whether it s in standby mode or not The Auto mode is first selected by the user then the microcontroller goes through a series of steps to determine whether or not the outlet is in standby mode and if it is whether or not the appliance is being turned on This algorithm is best described in a flowchart The oval is the start of the program the rectangles are calculations or actions the lines indicate logic flow and the diamonds represent input output operations The flowchart for Auto mode is shown on the following page This algorithm first initializes all values to 0 Then it proceeds to turn the outlet on so it can get a current reading After getting 8192 current readings and adding them together it divides this value by 8192 to get th
26. Crunch time 27 Nov Finish writing individually assigned sections 28 Nov Start integration and formatting of paper 11 30 2012 Have draft ready to be proof read and finalized 6 Dec Submit senior design 1 paper 7 Jan Start Building Device 9 Jan Start uploading bootloader and testing PCB 1 1 11 2013 Start testing microcontroller accuracey 1 18 2013 Confirm successful calculation software 1 25 2013 Have circuit two running on bread board 2 1 2013 Start testing PCB 2 2 8 2013 Have touch screen menu up and running 2 22 2013 Have relays controlled by auto mode 3 1 2013 Have motion sensor control working 3 15 2013 Start testing final PCB 3 22 2013 Start interfacing with wireless Bluetooth 3 29 2013 Start running the Android App 4 5 2013 Assemble final protoype 6 Apr Have Device finalized leaving plenty of time for debugging 25 Apr Submit Final project and Presentation 8 3 Conclusion The Automated Utility Management device is not a new concept There have been smart outlets and home management systems that range from a surge protector with a simple Master slave circuit to robot houses that control every detail of lighting air conditioning security and more We chose our project because we wanted to create a device that could be used in every home in America to help reduce phantom power not just for the user but for the country as a whole In a post peak oil world any energy saved is important It doesn t matter how much money is in the worl
27. Device are powered on by dc voltage The wall input however is about 120 volts AC So the goal here is to transform the AC voltages into a reusable DC voltage There are two main ways the group wanted to approach this The first way is to create a rectifier circuit and the second solution would be to just use power supply that does all of the conversion inside the box 3 1 12 Rectifier Circuit The full wave rectifier circuit is comprised of many different components It contains a full wave rectifier inside that converts the negative AC voltage into positive AC voltage There are capacitors that acts as filter that will smooth out the waveform to appear like its a DC voltage The final component is a linear regulator to create a constant voltage to supply to the rest of the circuits At the very beginning is a current transformer to tone down the high AC current that runs from the wall A typical full wave rectifier circuit is shown in Figure 8 below with a ten to one transformer Figure 8 Made in Multisim 3 1 13 DC Power Supply The power supply is by far the easiest way to convert AC to DC It has its own AC to DC conversation system inside of the part Also they can handle an abundance of voltage They just have to be installed in the main printed circuit board 3 1 14 Battery A battery would be a solid choice to power up the components The voltage would be perfect for our PCB because many components will need a small DC value to r
28. Figure 32 Motion sensing Block Diagram The following mode is known as ON OFF mode shown on the following page This mode probably the simplest out of the others This mode will allow the users to have a device remain on or in stand by mode It also will allow the user to select the out let to be off as in completely off unplugged allowing for no stand by energy to be used This is good for some device which it is unsafe and can damage your equipment going from standby mode to completely off such as your desktop or laptop computer Figure 33 ON OFF mode The last and final mode of our A U M Device is called estimated cost and power used In this would it will display to the user the amount of power in volts that each out let has consumed on a monthly basis This will give the user an Idea of how much money they are saving every month when using the A U M Device in comparison to the standard household outlet or power strip The amount in volts will then be converted and calculated to a dollar amount showing exactly how much money it will cost to operate certain device on a monthly basis This is great to give the user the ability to test products both energy efficient and not and see how they can have a serious Impact on your monthly electric bill We felt that this was considerable the most important mode give the user actual proof that the A U M Device will save you money and overall after time be able to compensate for itself Estimated
29. Hello my name is Micheal Sriprashad and im an eletrical engineering student at the university of central florida would like to request premission to use the following pictures for resistive and capacitive touchscreens in my Senior design paper located on http mobilephones pk reviews what are capacitive and resistive touch screens Thank you Permission for image use E Michael Sawh lt msriprashad gmail com gt Dec 3 3 days ago hi to nortech Hello my name is Micheal Sriprashad and im an eletrical engineering student at the university of central florida would like to request premission to use the following pictures for SAW touchscreens in my Senior design research paper located on http Wwww norteng com pages tselqd1 html Thank you Michael Hello my name is Micheal Sriprashad and im an eletrical engineering student at the university of central florida would like to request premission to use the following pictures of the ultrasonic motion sensor for my Senior design paper located on www euclidres com motionSensors motionSensors html Thank you Permission to use Image E Michael lt msrippy23 gmail com gt 1 08 PM 15 hours ago n to sales Michael Hello my name is Micheal Sriprashad and im an eletrical engineering student at the university of central florida would like to request permission to use the following pictures of the PIR motion sensor for my Senior design paper located on http www parallax com tabid
30. Set other outlets to slave Plug in devices Turn on all devices Turn off device plugged into outlet one Other devices should shortly follow automatically Retest using outlet two as master and others as slave Retest using outlet three as master and others as slave For all test similar results should occur 6 2 4 Motion sense mode In this mode it will allow the user to select either on off or motion off for each outlet If an outlet is set to on when motion is detected the device will turn on and remain on unless turned off by the user When the outlet is set to off a desired off time is entered then after the period of time it turns the device off as long as no motion is detected Motion off will give the motion sensor no authority over the outlet Toggle from home menu to motion sense mode Set outlet one to on Plug in device to outlet one Exit room for two minutes Enter room Device one should turn on Set outlet one to off Set desired time before shut down Turn on device on Leave for more than desired time Upon retiring the device should be shut down Retest all steps using outlet two Retest all steps using outlet three Verify all results are similar 6 2 5 ON OFF mode Toggle from home menu to on off mode set outlet one to off Verify device in outlet one cannot turn on set outlet on to on Plug device into outlet one Verify device in outlet can turn on Verify when device in outlet one is turned off it remains in s
31. The A UM Device pronounced Ohm GUCF By B Lowen Gruseck Gardy Lacombe Michael Sriprashad Contents t Executive SUMMA E 6 ZARO CC DOS EE 7 Sch Project leren de deed 7 22 GOalS Leben 8 22 1 GOS EMIGICNGCY E 9 222 ENIO ONIN Eee eee Ce eet eno ee cee eon meee eet a eee meen a eee ee ae eee 9 2 2 3 Touch Screen Interface 9 222 A leie le Run ACE EE 10 lege ENEE 10 Z S OCODE OF WOK beggen 10 AA SME D e 10 PAE DPE E E Ee 11 PII EE 11 ele Miete 12 A SOCCIICAU ON CG 12 20 MET Re 12 2 0 2 AG TODO CONVESSO EE 13 25 3 GUIVENL SENSOl le EE 13 2 0 4 POWE TE 13 2 5 5 Automatic Utility and Device Control 13 2 5 6 WireleSS Control 14 201 ECD ele de ME 14 2 5 8 MOTION Sensor Specifications sgegetdgeguetegeeee eEgeEE EES 15 De CSC EE 16 INI UO OS EE 16 EN Wie eg MANAGE VE 16 Seles POWEC el E ele EE 16 SEFC DCM SON ER 18 SoA SUN RESISTITO EE 18 3 1 5 Current Transiormmer 19 3 1 6 Hall Effect Current Sensor Transducer cccceccecseeeeeeeeeesaeeeeeaeees 20 SAY ENEE ee 22 Iro TRCIAY YSE EE 23 3 1 9 Electromecanica Rela yenne revere EE OE E 23 3 10 SONG Soe Cl AY EE 23 3 1 11 AC to DC conversion and Power Dstrbuton 24 ER ee ei E EEN 24 6 1213 DG e ee EE 25 E Eege eege EE ee e e lies 25 EIO E 25 3 1 16 Touch Gcreenintertace 26 3 1 17 Motion Sensor 28 3 1 18 Microcontroller 20 0 cece ccc cc ccc cccccccccceccccececcecceceaceceaceneaueaceneaueceaueneeneas 31 3 1 19 Programming the Microcontrol
32. UART connection lines Rx and Tx for interfacing with the microcontroller The Bluetooth Mate Gold is specifically designed for Arduino boards because the pins are configured in a layout so that the modem can plug directly into the Arduino Pro or LilyPad development boards without any added wires for rearranging the pin placement All that is need for connecting to the Arduino board is a 6 pin right angle female header The modem reaches over 100m and runs on low power consumption at an average of 25mA It is also connection encrypted so only the user or trusted individuals can access the Bluetooth modem and control the A UM Device wirelessly This component is good for our project because it s very versatile and strong for the power used It s readily compatible with any microcontroller that has a UART connection The low power aspect is directly applicable to the goals of our project which is to save the household energy The fact that the connection is encrypted is also very valuable for our project This feature will allow protection from other people having unwarranted control over the outlets in the user s home Outdoor control of the house will only be safe if wireless devices require a password to send a signal to the device This will allow the user to give the password BlueSMiIRF RP SMA Another component we examined was the BlueSMiRF RP SMA Bluetooth modem This part also uses the RN 41 Bluetooth module Because of this many spe
33. al Florida in a design group of three people for our Senior Design course requirement We would like to ask permission to use a few screenshots of and products we found online such as the bootloader verification screen in our research paper which describes our research design prototyping and testing of our project All pictures we are planning to use are found online on your website Thank you in advance Sparkfun com request B Lowen Gruseck To whom it may concern am an electrical engineering student at the University of Central Florida in a design group of three people for our Senior Design course requirement We would like to ask permission to use a few screenshots of sparkfun products and datasheets we found online such as the Bluetooth Mate Gold and the BlueSMiIRF RP SMA in our research paper which describes our research design prototyping and testing of our project All pictures we are planning to use are attached in this email Thank you in advance B Lowen Gruseck
34. and one will have to be built on a bread board to power it for programming and controlling the reset This method would be good for our project because it s simple and cheap All it requires is a USB connection and a way to plug the serial pins into the microcontroller This can readily be made on a bread board temporarily for programming Each female hole on the header cable corresponds to a male pin on the microcontroller The pins are not arranged in the same structure as the cable but with a few wires an interface can be readily made This is a lot cheaper than using a pre fabricated development board because the group will be doing the labor ourselves and we wont have to pay someone else to do it We only need to pay for the I S P USB cable to plug into the computer and pin connectors to hook the serial input output up to the bread board in the design lab One I S P offered by Atmel is the AVRISPmkll Its USB compatible and interfaces with all AVR microcontrollers that support I S P or P D I connections This makes it even more versatile than the AVR Dragon described above It also supports all AVR Studio programming software versions 4 12 or later All our project would need for this method would be a bread board connectors USB cable and programming software This component would be the inexpensive and versatile choice for our project 3 2 8 Software The software programming method we chose for our project is the C programming lan
35. anges on the shunt resistor the overall resistance will start to slightly vary This can be very problematic because it would result in an error in the overall power calculations Also leaving them exposed to high changing current can destroy the shunt resistor itself 3 1 5 Current Transformer The current transformer is also another viable option as a current sensor for this project since it measures AC and DC It works just like a voltage transformer where there is a primary circuit and a secondary circuit The current in the secondary circuit will be proportional to the primary depending on how many turns each of them have around a magnetic core They are pretty affordable for low volume input but for bigger volume projects like this on they have a much higher cost than the other methods listed in this project The biggest advantage current transformers have are they protect the overall circuit from high voltage since the secondary side will have a much smaller voltage than the primary side Their size is its largest disadvantage since one of the many goals of this project was to make it as small as possible 3 1 6 Hall Effect Current Sensor Transducer The Hall Effect current transducer measures the current due to the magnetic field that s being created through current flow The higher the current the greater the magnetic field s strength The output voltage is proportional to the strength of the magnetic field as well since it s based
36. arly money saved select functions e Turm on or off device e Sleep function to save power e User friendly 2 5 8 Motion Sensor Specifications The motion sensor placed on the top front of the A U M Device It needs to be placed so that it covers a wide radius being able to tell wnether someone has left or entered the room The sensor will be set to turn off certain devices selected by the user after a period of time chosen by the user Needs to cover a radius of 200 Needs to sense heat Needs to check change in infrared levels constantly Needs to communicate with microcontroller 3 Research 3 1 Methods 3 1 1 Project Management Each member of the group were given specific topic related to this project based on their knowledge in that particular area This project was separated into two parts Hardware and Software The hardware research portion covers all of the circuit design motion detecting system and even the touch screen and microcontroller configuration The software research side of the project included the programming the microcontroller Bluetooth power calculation and the menu design on the touchscreen and the android application A U M Device Research Hardware Software Power Microcontroller Programming GardyL Lowen G Lowen G Screens Mike 5 Figure 2 Project Management Block Diagram The hardware side of the research will research the methods of obtaining current and voltage values stopping and st
37. arting the flow of current The component side of that research will observe and survey the different touch screen options available the datasheets of different key parts in the project The software side will check the different program obtains available to programming the microcontroller and the touch screen Also finding key formulas and algorithms that are essential to calculating the power of each device that s plugged in the A U M Device 3 1 2 Power Calculations The main core of this project is to find the average power that s being dissipated at an average time The goal here is to find a simple and useful formula to give an accurate measure of the power that s being used and give an approximation of the user s electrical bill for the month The values on the electrical bill won t be too precise nor does it include the energy being used outside of the A U M Device Also it will display on the screen the amount of dollars saved by using the A U M Device Once data has been collected the user will be able to view the power usage for each individual outlet From there the user can make a conscious decision on if they want to keep or switch it in a certain mode that s more suitable to them When current runs through a conductor a magnetic field is created When that happens the A U M Device power calculation will be affected and turn out wrong and completely useless To eliminate this dilemma we must research how power actually wi
38. at this one would best fit out design due to its ability to detect infrared light from a distance The distance is dependent on if the device is properly calibrated or not This would help because for the A U M Device we would like it to have a motion sensor feature that detects if a user is present in the room and have it shut down devices if no users are present for a pre settable amount of time They are also a lot smaller than the other motion sensors and can pretty much be place anywhere on the device Another advantage would be that they do not require an external power source due to the fact that they create electricity as they absorb infrared light One disadvantage that we did find was that passive infrared sensors can only receive infrared light and cannot emit and beams or light We chose to further research three passive infrared sensors to determine which one would fit out deign perfectly We have selected three possible choices for the passive infrared motion sensor for the A U M Device The first is the Panasonic EKMB Standard detection type which has a range up to five meters and is super low power The next is the Parallax PIR sensor his has a great feature which allows you to set the sensitivity of the sensor to either short range which is zero to fifth teen feet or long range which is anywhere from fifth teen to about thirty feet The last motion sensor we research is the Hanse SE 10 after power up Its active after 1 2 seconds it take
39. ay Calculate average power Calculate average current Control Outlets automatically Calculate power bill from last billing period Calculate power saved and thus money saved since last power bill Set Master and control slaves accordingly Change slave state based on Master outlet state Control outlets based on motion sensing Control outlets based on a timer Control timer based on motion sensor 2 5 6 Wireless Control Our project needs to communicate wirelessly with a smartphone to control or output power from the A U M Device There will be a user interface program application on a mobile platform for processing this signal and receiving and transmitting data e Good Range Strong signal strength Password protection Input output values and control signals User interface that s easy to understand Smartphone application Wireless reprogramming 2 5 7 LCD Specification The LCD touch screen will be based on the top of the A U M Device next to the outlets ports It is an imperative component of our device and will permit the user the ability to directly interact with the unit It will allow users to select different features functions and modes depending on their digression or needs The touch screen helps eliminate the need for extra unneeded parts such as buttons switches or directional pad Must be able to display current voltage Display current power use Display Calculated monthly electric cost Display power saved and simil
40. ched over twenty different kinds and compared specs to be able to choose a microcontroller that was low power low cost and able to support all the features that will be present on our device We also found ways to cut cost by buying in bulk and shopping around for parts through different vendors 2 2 2 Energy Saving Possibly the most important goal of our project is to conserve the use of energy of devices while a device is in stand by mode Our design will carry three outlets similar to a household power surge and a Liquid Crystal Display LCD touch screen interface The device gives the user the capability to set outlets on or completely off unplugged preventing standby power It will also detect when a master device enters standby mode and kills the power to the surrounding devices that are also plugged into the A U M Device We have also planned to design it to obtain the capability to turn off once a user has left the area for a certain amount of time 2 2 4 Touch Screen Interface The touch screen interface will be the main brain of the system constantly communicating with the microcontroller to turn devices on and off The screen will display a menu like screen with toggle switches to enter different modes and apply different features The first mode that the A U M Device will offer is called Master Slave mode This mode will allow the user to choose one or more devices and set them to either master or slave When master is sele
41. cifications are exactly the same As you can see from the table below the range power consumption number of pin connections operating voltage and temperature are all the same FCC certified Power consumption 25mA 25mA Operating Voltage 3 3 6V 3 3 6V Antenna Compatible Table 9 Bluetooth Mate Gold vs BlueSMiIRF RP SMA The main differences are the Arduino compatibility connection encryption and antenna situation which affects the FCC certification Both modems have a UART serial connection for transmitting data from module to microcontroller The Bluetooth Mate Gold has its pins rearranged specifically to fit straight into the UART connection on an Arduino board The BlueSMiIRF RP SMA does not have this although it has all the same pins This means that interfacing with one of these boards would require wires to rearrange the physical placement of the pins before connecting to a 6 pin right angle female header This is no problem because our project wont be using an Arduino board but the connection encryption is another story The pin layouts for each modem are shown below d S sparkfun com BlueSmikF PN vi Ken P Figure 16 BlueSMiIRF RP SMA pin layout Permission Requested from sparkfun com Figure 17 Bluetooth Mate Gold pin layout Permission Requested from sparkfun com Not having an encrypted connection will allow any user with the Bluetooth application to be able to connect to the wireless control and switc
42. control the slave device or devices 4 When the master device enters a sleep mode or is turned off the slave devices will be turned off cutting all power to them 5 When the master device is powered on slave devices will be turned on as well 6 lf Off is selected this mode will not be applied to the outlet Motion Sense 1 To initialize motion sense mode select it in the home screen or toggle thru to desired mode 2 Set outlets to desired task On Off no motion 3 If On is selected when a presence detected the selected device or devices will turn on 4 If Off is selected a box will pop up and ask how long you would like there to be no presence 5 After the time has been selected the chosen device will turn off after the selected time has passed and there has been no presence detected 6 If no motion is selected this mode will not be applied to the outlet On Off 1 2 3 To initialize On off mode select it in the home screen or toggle thru to desired mode If On is selected the device will remain on or in standby mode If off is selected the device will have no power and be completely off Estimated power use and cost zech In this mode you are able to view the estimated power used by each outlet This mode will also display the cost per outlet based on the amount of power drawn by each out let Will total up the final cost of the device plugged in after every month 8 Administrative Content 8 1 Budget project
43. cted for a device it will remain on and unaffected by the A U M Device While when the Slave is chosen for a device it will set the device to remain on unless the master device enters standby mode or is turned off Therefore when the master device is not being used all power will be cut to the slave devices saving usually wasted power Another mode will be on off mode This will allow the user to set device on or unplugged without actually unplugging the device from the A U M Device The next mode is called Motion Sense This will let the user select if they would like an infrared motion sensor to decide that if no one is present in the room the A U M Device will turn off turn off the selected device This is great when constantly moving from room to room or running out of the house for an emergency The next and final mode is called Estimated Power Specifications The following mode will allow the user to see how much power the A U M Device is using It will also allow the user to view how much power is being saved These figures will also be converted to show the dollar amount versus watts for easy comprehension 2 2 4 Android Interface An application will be designed to work on the Android operating system platform This application will work similarly to the LCD touch screen interface on the A U M Device Which will give the user all the abilities and functions of fully controlling the device without being in the same room
44. d against using unless programming specific designs because it doesn t necessarily benefit most apps The native code is warned against using just because C programming is preferred This was our original reason for finding this platform but then we read on and were encouraged even more than before Apparently the C code version doesn t improve performance because it enhances complexity However the ADT NDK is made specifically for self contained CPU intensive operations that don t allocate much memory such as digital signal processing Frankly this is exactly what our project is based upon All we need the app to do is process the digital signal sent to it from the wireless signal and display the menu onto the smartphone Then it has to interface with user for any changes made to the A U M Device and send it back through the wireless Bluetooth connection where the microcontroller will take it from there This would be a completely viable option for programming the app software for the Android smartphone 3 2 11 Relevant Technologies BITS LCG3 10 Outlets Power Strip has 10 inputs that work in unison with each other This device can auto switch device on or off to save power Shown below is a picture of the LCG3 10 outlets power strip which is color coded based on which appliances should be plugged into them The main Idea unlike ours is to build an efficient power surge Our projects are similar in the sense of being energy efficient but
45. d because money means nothing if there arent any resources to buy The money supply is constantly increasing while the distribution of money is being continually funneled into the hands of the rich Eventually there wont be enough to share and we will be forced to use renewable energy such as wind and solar Until then we need to be the change we want to see in the world and start saving energy wherever we can and being more energy conscious and efficient in general throughout our daily lives To do this we had to have all the features of past products and more as well as modern interfacing and smart automatic control to inspire interest from conscientious consumers of all ages We chose to keep the master slave circuit as well as the motion detection as in previous similar designs for smart power strios but also added our own features Our smart strip has an LCD Touch screen power calculations that show you how much energy and in turn money that your saving and even a wireless interface app for the Android smartphone It has a sleep mode timer for when the user leaves the room and even has a Stylish prototype design with PCB window to stimulate interest into what goes into the engineering of electrical systems Hopefully our work in this project will inspire others to be more conservative with their resources and smarter with their technology It was the industrial revolution that started the snowball effect of dirty oil and coal industries
46. e Assembly C and C programming languages Assembly Language The original language for programming embedded systems is Assembly Language Its the lowest level above machine instruction code Assembly Language is translated into machine code by an assembler It only represents machine code using words so human programmers can read it It is the simplest in complexity and can only do one operation per clock cycle It works with registers and memory locations directly and has a limited amount of processes to work with All higher level code is based on this language each function just being a long and complicated program in assembly language The advantage of this language to our project is the simplicity and experience of Our group members The language is not hard to understand because the instructions don t do more than move add subtract divide shift and a few more Also all of our members have experience in this language having taken embedded systems one of us more than once The disadvantage of this level is that the simplicity of the instruction language increases the length and complexity of the program code Implementing simple algorithms would take an unnecessary amount of instructions to write This would make the code way too long and take up too much time to write C The next highest language level is Compiler Language One example of this is C programming code This is a tried and true language that is taught to every ent
47. e LE a o GEESS ggf SEETEEKELGELEEEEGCRL EK FFI EEERIEEFCEISSEEEEEKEE rit jf tt te tt ty UU CEET it ty if ty FRRRRRRHSRSSSRSSSHSREEE 7 O Pa eo C Pe BUCaSSOMiAUCRSSC1L S141 T Pe SU ORS IM OU CaS S DAS O Pe 4U CAaSCLEIUCASSTESs 74 Ta 72 P7 ACEBSA12 7i D Go 2UCAPREDUCASSOMIS4 PT SCBSA13 70 D PS 2U CASTS DAUCASSIMOSS PT GACBIOAI4D ACO a O PotBS TEAC ASCLHS6 P7 TeCBiiAISDACtI en p Gaooz FSO SREF eREF ez O FETES PS 1VREF eREF ee O PS VUCRISOMIAUCEH1ISCOL S9 NL CH es DO PSs UCe1ISIMOUCEISDAS10 AN 21 ae O DwMCC3 KIN en Di ovese OUT a Pa AUCHICLKUCAISTES11 o AGSZ i FA JUCAIRYDAUCAISOMS 12 PS 6 ADCiI2zCLK DMAEO ai P UCAITADAUCAISIKMOGS13 P2OP2MAPO 5g F8 WUCKISTESUCAICLKES 14 P2 1 P2MAP1 Sp PS WTBOCLKS15 P22 PSMAP S7 P47 TROOUTH SVMOLT S 16 P2 3a P2MAP3 E DM GT DO n4T P2 4 PoMAPS 55 P ST DO S618 P2 5 P2MAPS 54 PM AT DO AGO P2 6 P2MAP6 ROS 53 PM AT DO 3620 PS 7P2MAPTILOOREFNRIS Cl 24 5 PM 2TRO 2671 DWT O z5 41 bw 1TE0 1522 D i DO SS DO RO RA A DO ES RO EO OSD AF ORF E a a E SS Si O OO O O O O O O O GCO O O 0O O OO O O O O OC OLC E EEKEEEEEEEEEEEEEEEEGEEEE OF EED O a a o BOMB eM ee ee ET EEE E Ehhh we Seen Ssosoocesgeocrrrroagogs o Geesse E GE Q sen VHA gS CHK Asada s aaan a T e ee ee eee aef amp G e2Goaoag doa Fae odnoadcoa Es di LS s i e a ot ei EL OD Figure 15 MSP430 pin layout Permission granted by TI Atmel Atmega Seri
48. e new average current This is done by shifting the register to the right 13 bits which corresponds to dividing by 2 13 or 8192 Once the new average current is read the microcontroller compares this value to the old average At first start up the old average is 0 Amps so the new current average is automatically larger The microcontroller checks to see if the new average is less than the old average Since it s the first run through we know it s not so the logic goes to the next question This is the check to see if the new average is 1 4 higher than the old average It will be the first time so it proceeds to set the average current equal to this new current and resets the new current value back to zero On the second pass if the appliance is still off the new current will be the same as the average current This means it won t be 3 4 the old average and it won t 1 4 greater so it will remain the average and the new current value will again be set to zero and the outlet will remain on If the outlet turns on current will be drawn and a new current value will be more than 1 4 larger than the average current This will set the new average current high and keep the outlet on Then it will stay on until the user turns the appliance off for the first time When this happens the new average will be less than 3 4 the old average and the outlet will turn off The change value will be set to one and the average current will b
49. e of the original features we decided to add to our project is wireless control This is useful for controlling the A U M Device without having to bend down to the actual outlet to control the options or read the power consumption This important for user interfacing because our product can t be difficult to use or it wont be accepted in market Wireless control is also useful for controlling or reading the outlet from another room and potentially from another house Two options were looked at for wireless control was Bluetooth and an Internet connection Internet The world wide web is the most versatile method to wirelessly control the A U M Device The user would be able to control the function options and read out of the power strip from anywhere on or off the globe Users could control the power strip from their smart phone or computer at a personalized website with login and password specific to their house The website would contain a dashboard where the user could control multiple A U M Devices all in one spot This would be useful for our project because the user would be able to turn any outlet on or off choose which to be master or slave or set the kill switch timer motion sensor from inside or outside the house This means that if an appliance was left on when the user left they could turn it off from any Wifi connection they would be near so nothing happens when their gone overconsumption nor electrical hazard This would be doub
50. e set low If the appliance is still off next time the current is checked the new current will be the same as the average current and the outlet will switch back to off when not being checked for current If its turned on the new current will be more than 4 greater than the old low average and the new current will set the average current high and switch the change value back to zero The new average is then reset again and the outlet will remain on through the next check until the appliance is turned off again and the outlet is turned off Figure 35 Algorithm Flowchart for automatic outlet control The above flowchart will be used whenever the automatic outlet control mode is enabled This mode can be active while the Master slave and the Motion sensing algorithms are also enabled because they are each three different states They are all independent and potentially overlapping so the user much choose which state each mode is in separately Each outlet can be on automatic mode or always on or always off Similarly each outlet can be either a Master a slave or an independent outlet Each outlet can also be controlled by motion sensor timing In this mode motion sensing is turned on or off and the timer for kill switch is chosen based on how long youd like the A U M Device to wait before turning the outlets off A table of possible outlet states is shown in the table below Outlet 1 Master Slave Motion timer Auto On Oftf Mo
51. e the x05b x20A and the x30A version We realized that having the x30 version has the highest current input threshold however it does have the lowest sensitivity at 20 mV A Also due to the shape of the part it is way more tedious to implement it inside the printed circuit board The figure 14 below is the x05b version and its chip form is the perfect shape to have for this project Sensitviy lies fio a mV Supply Vollage ls ls Vv Optimized 5 to 5 20 to 20 30 to 30 A Accuracy Range Closed loop Closed loop Closed loop Closed loop Table 3 Current sensors Figure 14 Closed Loop Current Sensor Permission Requested from atmel com 3 2 2 CSLT6B100 The CSLB6B100 is an open loop Hall Effect transducer That would mean that the current line will pass through the donut shape magnet core There are the spec listed below It has an impressive current range compared to the 5 volts in the ACS712 Its three pin configuration makes it easily fit the printed circuit board The biggest disadvantage is the really low sensitivity To make up for it an amplifier will have to be equipped Specification 100 to 100 A Supply voltage Supply current Sensor Output Open loop Offset voltage Table 4 CSLT6B100 3 2 3 Relay System Chosen The solid state relay was an easy choice in deciding which method we want to impede the current The electromechanical way was slower vibrated and didn t last as long due to the moving inside of
52. ead these values to know how to scale the proportional current and calculate average power To do this a test circuit will be set up on a bread board to read in values from a current sensor that will be reading a current that will be slowly incremented to see how small a difference the microcontroller can detect Analog voltage would be fine if we could change the potential slow enough to reach the microcontroller s sensory threshold The microcontroller will contain first the basic current reading program that will be used throughout the life of the product The analog voltage will be increased in as small increments as possible and the microcontroller will save the value and output it onto the computer screen There is no pre recorded value for this increment but we are testing the microcontroller to find out 7 User Manual 1 To start the device plug it in to your standard 120 Volt outlet 2 Touch the LCD screen to wake the Interface 3 First to Pop up is the home screen 4 In this screen you can select which mode you would like go to or toggle thru to find the desired mode Different Modes This device has been programed with four different modes The modes are Known as Master slave Motions Sense on off and Estimated Power and cost use Master Slave 1 To initialize master slave mode select it in the home screen or toggle thru to desired mode 2 Set outlets to desired task Master Slave or off 3 The master device will now
53. eatures at all They were mainly basic power strips with switches to kill power to one of the outlet The A U M Device is design to go above and beyond these designs to create a product with useful features easily accessible and user friendly to people of all ages With wireless capabilities infrared motion fail safe and monthly power consumption to ensure that the most power is saved even from rooms away 2 Project Description 2 1 Project Motivation Most people believe when they turn their device off it s not wasting any power That simply isn t true because even when a device isnt being used or in the off mode it s still draining energy from the outlet The United States department of energy has defined standby power or phantom load as The power consumed by a product when in the lowest power consuming mode which typically occurs when the product is switched to off or not preforming it primary function or purpose An extreme number of electronics on the market today cannot be completely turned off unless being unplugged from the outlet According to Forbes A typical United States home has forty products constantly drawing power together these amount to almost 10 for residential electricity use On average Standby power consumes about five percent to around fifteen percent of electricity used in a modern residential home This can add up to over five hundred million dollars a year globally Standby power is turning i
54. eb 05 Dec 2012 lt ezinearticles com Types of motion dectectors amp Id 238345 gt Levels of Programming Languages Levels of Programming Languages N p n d Web 04 Dec 2012 lt hitp www play hookey com computers language_levels html gt MICROCONTROLLER UART TUTORIAL Society of Robots N p n d Web 04 Dec 2012 lt http societyofrobots com microcontroller_uart shtml ttl usb gt Motion Detectors or Motion Sensors Engineers Garage N p n d Web 02 Dec 2012 lt www engineersgarage com articles motion dectection sensors paqe 2 gt MSP 430 SPECS Texas Instrument N p Oct 2012 Web 04 Dec 2012 lt htip www ti com lit ds slas 731b slas 731b pdf gt Pentland William Top 26 Stealth Home Energy Hogs Forbes Forbes Magazine 03 Sept 2011 Web 05 Dec 2012 lt htip www forbes com sites williampentland 201 1 09 03 top 26 home energy hogs turned oft gt PIR Motion Sensors Ladyada net N p 27 Apr 2012 Web 02 Dec 2012 lt www ladyada net learn sensors pir html gt Qazi Saad What Are Capacitive and Resistive Touch Screens Mobile Phones pk N p 29 July 2011 Web 02 Dec 2012 lt mobilephones pk reviews what are capacitive and resistive touch screens gt Relays Principles of Operation and Application Choices Relays Principles of Operation and Application Choices N p n d Web 05 Dec 2012 lt http www pc control co uk relays htm gt Rugged Ci
55. ector Created in the 1800s by Jacques and Pierre curie this detector works using piezoelectric and piezoresistive technology to sense movement The system relies heavier on piezoelectric technology that creates and electric charge when pressure is applied to a crystal material in the device This type of motion detecting is extremely useful to engineers it is used on guitars break in protection and as a pressure sensor in many touch pads made for mobile phones 3 1 18 Microcontroller The Automated Utility Management Device is a smart control system It takes in information from the circuit and controls the system accordingly to save power The only way to do this is by using a central processing unit CPU as in a PC or embedded system There s no way to have all the features we want using an analog circuit design It would take too long be way too complicated use much more power and be incomprehensibly difficult to design user interface This means that the method of control for our project will have to be an embedded system with a microcontroller programmed to the specifications of our project It will have to read in current values calculate power used transmit data to and from the LCD screen as well as interface with the user and a wireless connection as well 3 1 19 Programming the Microcontroller Once the embedded system approach was realized as the only fit for our project the programming method was next in line for selection T
56. elopment Kit NDK which each have their specific uses and drawbacks The ADT SDK The ADT SDK is an open source programming software that is downloadable free from the Android website It has a lot of good incentives including support to build test and debug apps A list of included features is shown below Eclipse ADT plugin Android SDK Tools Android Platform tools The latest Android platform The latest Android system image for the emulator This is a very powerful development tool for something as light weight as an app for a smartphone so this is very exciting to find for such a relevant product This software would be good for our project because it has all the tools we need including help from Google s wide community of programmers and developers The only downside is that the SDK uses Java to code on the app programming software This is not good for our project because of the same reason C is not good for our project No one in our group has any experience in programming with this language We could teach our selves the syntax but there is no time to learn a whole language as well as code it make it work and make it work with all the other features we have to be working on If only there was a way to program the app In C code The ADT NDK The other option presented by Google is just what our project needed NDK stands for Native Development Kit which means it programs in C or C This version is specifically warne
57. ely relevant to the motivation and goals of the project which are to reduce a household s energy usage and in turn their power bill The project is not about the money saved so much as it s about the energy that won t be lost as phantom power in standby modes This is more important than saving money because it is saving resources You can buy all the coal you need but if it runs out in the Earth no amount of money will bring it back Until all of our energy is produced by renewable resources we re going to have to cut back on our power usage and even then a growing population equates to a growing need for power Anything that can contribute to saving America from throwing away 25 of the energy it produces each year to power laziness the better That s why the fact that the Atmega328p is a low power version outweighs anything like cost or number of pins It almost has enough pins for the entire project at a fourth the count of the MSP430 and works at a lower power rating than its sister microcontroller the Atmega328 probably because of the simplicity in design and computer organization We ran into a design problem however when attempting to interface both a motion detector for added automation and advanced smart management control and a Bluetooth unit for android applications We needed two sets of transmission lines instead of one as in the case of the 328 series So we researched a little more into the Atmega family and found a similar cous
58. er a user has entered a room left a room or remains in the room We will now show how we will test this device Program microcontroller Connect to PCB Connect to microcontroller Power up motion controller Calibrate motion sensor e Place motion sensor properly on A UM Device e Using LED status light determines whether the sensor is working or not 6 2 Software Testing 6 2 1 Menu Testing A menu program will be developed and then programed on the LCD display touchscreen for used on the A U M Device This menu will allow users to select different features and functionality of the A U M Device such as motion sensing master slave or Estimated power savings This is a test plan for the menu 6 2 2 Home Screen The home screen give a quick overview showing the user useful information such as the time and date and also allow for a programmable message to be displayed in the home screen Check date Check time Use toggle arrow buttons on bottom corners Use home button located between toggle arrows Input customize message to be displayed on home screen show that the customized message is been displayed on home menu 6 2 3 Master Slave mode This mode will allow user to select either Master or Slave for each outlet Then depending on the master device the slave devices will remain on if master is on and turn off when the master device has been powered down Toggle from home menu to master slave mode Set out let one to master
59. es Then we looked at the Atmel controllers The ones used in the Arduino development boards are the Atmega328 and the Atmega328p The p in the latter model stands for pico power so it uses considerably less power than the former Other than that and having more machine instructions the 328p is identical to the 328 They both have 28 pins with 23 programmable I O lines and can run on a supply voltage range of 1 8V to 5 5V D C They also have Atmel QTouch library support for running capacitive touch buttons sliders and wheels on touch screens which is exactly what we need for our touch screen user interface system It even has a top clock speed of 20MHz which is higher than the usual 16MHz for 5V microcontrollers This will make calculating the average power and controlling the state of the outlets more accurate and efficient both in magnitude and timing If the controller is checking the state of the outlet more often in one second it will be able to respond to a change in current due to the user turning the appliance on at a faster more responsive rate 3 2 Programmer The method we chose for programming our microcontroller was the bootloading method This was the best option for our project because of the field programmability of the bootloader This means that once the bootloader is uploaded using the hardware programmer the microcontroller can reprogram itself through any UART connection For our project this will be the Bluet
60. es the lamp e Check if the lamp actually closes e Measure the time it took for the lamp to close Step Three The third round of testing involves the Bluetooth mode of the unit The app on the phone should be able to turn off each outlet and be capable to change the outlet function as well So there will be a lamp on each of the outlet Turn off outlet one see if the lamp closes Turn off outlet two see if the lamp closes Turn off outlet three see if the lamp closes Switch to motion sensor mode through the phone and repeat step 2 Switch to master slave mode through the phone and repeat step 1 Step four The fourth and final round of testing will check the power measurements of the device There is going to be a device plugged into one of the sockets and also a wattmeter will be used to see the actual power e Plug in device e Measure the actual power using the wattmeter e Compare with the power reading on micro controller 6 1 5 LCD The main user interface to our A U M Device is the LCD displaying information and allow the user to input give total control to the touchscreen making it one of the most significant component on our device we will now give a test plan of the Touch screen LCD Connect to microcontroller Connect to power supply Turn on screen Program the LCD Test touch screen Apply 6 1 6 Motion Sensor A key component in the A U M Device is the passive infrared motion sensor It will be used to detect weath
61. ey re compact unlike the current transformers and they don t heat up as hot as the shunt resistors There are two major decisions now open loop or closed loop and high how should the can the current flow through the sensor V out will be a proportional voltage based on the current that flows through it The whole system is based on the sensitivity value from the figure above In this example the current sensor is in a loop circuit were in circuit a 10 colt source and a 5 ohm resister Vout Sensitivity lin With a sensitivity of 185 mV A lin 2 A Vout 370 mV This is voltage is a little too small for the microcontroller analog input Instead there will be an operational amplifier to amplify the voltage signal As shown below in the block diagram the sensor output will be hooked up to the op amp as well as a Zener reference diode The reason for this is that fact that the many hall effect current sensors have an offset voltage of about 2 5V So the reference diode whole purpose is to negate that offset effect 3 1 8 Relay System The job for the relay is pretty simple It needs to be fast and very responsive when the microcontroller communicates with it It also must be able to withstand large amounts of current and not interfere with the current that runs through it whatsoever There are two kinds of relay functions First one is always on till it receives a signal to close The second one is always off till it will receive a signal
62. for indoor use only so it will not cause an issue at all We have narrowed it down to three different resistive touch screens After searching the web for a LCD touchscreen we narrowed it down to three different products The first is a 3 2 inch ulcd 32pt GFX by 4d systems it carries an Active Matrix LCD TFT with and embedded PICASO GFX2 controller which allows the device to have stood alone function capabilities The next touchscreen we are considering is the 4 3 inch HDA430 3H by Hantronix This screen also contains TFT technology low cost and high bright optical characteristics to help user use the application in the dark with ease The last touchscreen is the 3 8 inch DTS408 0380 00 which has analog resistive touch technology and film to glass technology As seen in Table 343 below it shows the specifications of each individual touch screen Touch Screen DTS408 0380 00 HAD430 3H ULCD 32PT Dimensions 91 x 72 x 0 95 mm 105 5 x 67 2 x 3 9 55 1 x 77 0 x 13 8 mm mm View Area 81 x 68mm 95 04 x 53 85mm 47 87 x 63 84mm screen Resolution 280 x 340 TFT 480 x 272 TFT 240 x 320 QVGA screen screen resolution Et screen Package mode Film to glass Film to glass Film to glass screen treatment Antiglare Antiglare Antiglare Transparency 80 83 82 Connection Brightness 500 NIT 900 NIT 650 NIT Table 6 Touch Screen options 3 2 5 Motion Sensor The type of motion sensor we decided on was passive infrared sensor We believed th
63. guage This language is fitting for our project group because of the specific complexity and programming skill level of the language and the group members respectively The C programming language is a higher level than assembly This is good because it will shorten the time it takes for programming and physically typing the code as well the size of the code based on number of instructions that must be physically typed It s also fitting for our project members skill level because it s not C which is a higher level language than we can understand as none of us have taken object oriented programming It would be more readily programmable to use a lower level language that we are already familiar with than to learn a new language in the time we have for the project on top of the classes we re already taking After the programming language is chosen the microcontroller programming software can be selected There are many programs and an increasing amount of upgrades for AVR programming software available on the internet This kind of software is called a toolchain because they are a set of programming tools used to make a product Some are open source and many are specially made for certain microcontrollers by the company that produces them A couple free options were interesting in respect to our project so we looked into them both before choosing WinAVR One programmer we researched was the WinAVR program pronounced whenever This
64. h other and displaying incorrect values The microcontroller value for each variable will be whatever was changed last and the value that is printed to screen will be whatever is on the microcontroller not the menu screen s general working register This is relevant for our project in case the application cannot connect to the wireless modem and therefore cannot change the state of the device The smartphone app will then read whatever the last reading was from the A U M Device and the LCD touchscreen will continue to update itself based on what s right there on the smart stripe microcontroller 5 Prototype The plan for this project is to have two testing printed circuit boards and then an overall project circuit board The first board will contain the current sensor circuit and the microcontroller It is designed this way so we can check and test how the microcontroller reacts to the current sensor Also to check if having too many current sensors on one board would affect the overall current calculations The second printed circuit board will have the microcontroller relay screen and the motion detector Its purpose is to use it for testing the relay functionality insert code into the microcontroller as well as the motion sensor Also it will help us check the screen compatibility with the microcontroller by having several ports to calibrate the menus The final printed circuit board will have all of the components and the 5 volt DC power su
65. h screen LCD user interface As you can see we have both toggle switches on the bottom as well as buttons to take you straight to the mode of your choice The home menu screen will also provide the date as well as the time right below the mode Our menu design is meant to be user friendly and easy to understand We didnt want to over complicate the home screen with power readouts or current sensing We wanted anyone to be able to pick up the device and use it Master Slave Mode Outlet 1 Outlet 2 Outlet 3 Master Master Master Slave Slave Slave Off Off Off Figure 38 Master Slave Mode In the figure shown above is the prototype menu for the Master Slave mode This shows what most modes will look like showing the feature then on or off This particular mode allows the user to select between Masters Slave or off mode When master is selected the slave device will depend on it Meaning if the Master device is to go into sleep mode or be turned off all slave enabled devices will be turned off cutting the chance of any stand by power being used by the slave device The plan for the android app will consist of a menu similar to that of the LCD screen that will interface with the microcontroller the exact same way The main difference is the app will have a start up screen for logging into your individual A U M Device The Bluetooth signal will send the A U M Device s signal to the Android phone and only the password initially set by the user wil
66. h the settings on the outlets in your home This could be very dangerous if youre A U M Device is connected to your computer The user could lose important data or lose control to a prankster with a smartphone who decides to simulate a poltergeist by switching outlets on and off from outside the house These are just some of the problems that could arise from not having an encrypted connection on the wireless control of something powering appliances in your home In addition to these two differences the BlueSMiIRF RP SMA is not FCC certified because the distributors added an antenna connector before putting the product on the market This is not a big issue other than an added step in safety certification if the product is to go to market 3 2 10 Wireless App Programming Software Now that weve chosen the wireless technology method for our project we choose the programming software we want to use to code the smartphone application Google the makers of the Android smartphone have released two open source software coding programs on their website for Android development This is because they are a modern company and are staying relevant with free software for up and coming developers to play with and explore their products under the hood They are a true programmer s company The two main choices they offer for programming their Android smartphone technology is the Android Development Tools Software Development Kit ADT SDK and the ADT Native Dev
67. have major differences Ours has a touch screen user interface which we felt would make the product more users friendly and easier to use This device was built with the intention in being in high power usage areas such as entertainment systems or desktops setups We also added man more features like wireless Bluetooth control and motion detection control in other hopes of saving energy when the user is away and not in the same room as the device Another commercial device which we found relevant to our A UM device was called the kill a watt Which is a device that was created to keep track of what devices should remain plugged in and which devices should be unplugged It looks similarly to a single plug outlet with a large LCD display This device shows the cumulative kilowatt per hour month or year based on user preference This device can also test the power of a single outlet to check for efficiency This product shows similarly what we would like to show in our estimated power and cost used mode Our design differs due to the touchscreen interface located on the power strip and also the motion sensor which is also used to save energy by turning a device on and off as users may enter or exit the room or area where the power strip is located Figure 18 LCG3 10 outlets power strip Permission requested from hittp catalog bitsltd us power_strips HLCG3 Group 13 from the fall 09 spring 10 is similar to our A UM device Their project wa
68. he current sensor readings To do this we would build a small bread board circuit similar to the one on the hardware program except with the addition of a current sensor hooked up to a current generator and a microcontroller analog input pin The test code for this circuit would read values of current and save the values into the current variable If this worked we would move on to calculating average current by adding a shift right function after summing all the current readings together inside the microcontroller Once all the hardware physically connected to the microcontroller is successfully tested for correct interfacing and control we can start testing the wireless control aspect of the software with the android application The app should work just like the LCD touch screen only wirelessly 6 2 8 Microcontroller Accuracy Once the microcontroller circuit is set up to be programmed there is an initial testing procedure that will be necessary for knowing how accurate the microcontroller actually is This means how close to zero is ground to the microcontroller really If ground is 06mV will the microcontroller know the difference Also how accurate a voltage can the microcontroller read and calculate average current or power The current sensor will be sending a proportional voltage reading based on the present reading of the current running to each outlet It is important to the project to Know how accurately the microcontroller can r
69. he programmer is what gets the code onto the microchip This includes the hardware for interfacing with the microcontroller as well as the software for coding the programs and functions and uploading them onto the microcontroller We looked into a few options for each category hardware and software For the hardware the two methods are similar but fundamentally different in functionality after first time programming The software decision is based on programming language complexity and programmer skill level since every project group member is an Electrical Engineer with limited experience in higher level languages and object oriented programming Programmer In this approach a development board or In system programmer is used to upload the program onto the microcontroller Once the program is uploaded the program can t be changed unless plugged back into the hardware programmer and reprogrammed over the existing code This method is used for designs that only need to be programmed once before being integrated into the circuit The program can t be upgraded but it takes up less space and programs faster The microcontroller receives the program through serial input pins once powered on This would be good for our project because it saves space However if the microcontroller has to be reprogrammed it will be a chore to take out of the circuit and put back into the hardware programming circuit just to change the code There is also a chance
70. ica of what the LCD display would read but will control the A U M Device wirelessly from anywhere inside or directly outside the users home This would as well give the user full access to all capabilities and functions on the A U M Device as if you were standing directly in front of the device It will also have a connection encryption to protect the user from unwarranted changes to the A U M Devices modes This is to protect the user s appliances data and sanity from outside intrusions 2 5 Specifications 2 5 1 Main Features The main goal and purpose of the A U M Device is to save the user energy by keeping the outlets under its control from wasting stand by power It also should allow the user to control how the A U M Device actually functions The A U M Device should Have a user interface for customization Also be controlled wirelessly Have a motion detector Display options and make changes using an LCD touch screen Switch outlets off based on user specified time Have a standby power shutdown mode Be able to calculate the power used by the system Be able to estimate the energy bill on the outlet used Allow each outlet to be closed or open separately Allow each outlet to be designated as either a master or a slave outlet Be able to calculate power saved by the system 2 5 2 AC To DC Conversion The device has many smaller components that have to be powered by an AC source So the unit must have a system that can transfor
71. in with twice the amount of transmission lines in the Atmega324 series We then looked to find a pico power version of this microcontroller and it was there Therefore the Atmega324p was the obvious choice of microchip for our project With all the features of the Atmega328p as well as 40 pins with 32 Programmable I O Lines it s the perfect chip for this project as shown by the values in the table below Clock Speed 0 20MHz 0 20MHz Touch Support Q touch library Q touch library Programming support Avrfreaks Spaces Avrfreaks Spaces Programming Language Assembly C C Assembly C C UART 1 2 Table 11 Atmega328p vs Atmega324p 4 1 2 Programmer The component that we chose for programming our project was the AVRISPmkIl from Atmel This was the best part for our project for a few important reasons The first reason is its cheaper than buying a development board This is important to our project because we are being funded by Progress Energy If something breaks we can t necessarily buy another if it s not in the budget because we are all college students working on a starvation stipend of scholarships and grants Another reason is the versatility The AVRISPmkll can interface and program any Atmel AVR microcontroller available due to its universal serial connection It would be hard to find a microcontroller from any company that wouldn t be compatible with this I S P The only thing we have to do is build a simple bread board
72. instantaneous power reading and control of the power an outlet uses There were a few different models we looked into and researched Based on an experienced mentors advice we decided to look into Texas Instruments Il and Atmel microcontrollers Both of these companies have a lot of experience in manufacturing as well as offer a wide array of supplemental reading materials and tutorials to help program the microcontroller T l has a large selection of versatile low power designs that are very efficient while Atmel models are very readily programmable with their student friendly Arduino designs that come with C programming language software and simple boot loading procedures MSP430 The first microcontroller we looked at was the MSP430 because of its popularity and its large selection of low power versions The MSP430F678x runs on a low supply voltage range of 1 8V to 3 6V D C which is much lower than our desired range of 3 3V to 5V It s also available in 80 pin and 100 pin packages so interfacing with as many outside I O devices as we have would not be a problem at all It even comes with an integrated LCD driver with contrast control for up to 320 segments in 8 Mux mode so running the LCD screen would be more readily programmable than other microcontrollers The multitude of pins is shown below in the pin layout diagram P ARC BAIGA P MCHDSAGS FE GR Bee DACO P 7CETATDACI 10D pGeaepaua o 225 6 CH SS sd
73. ion and financing This project will be financed by progress energy They have given us the budget amount that we requested and it is enough to fund the project The goal for this project is not to spend over eight hundred dollars If the resources are used correct then this would not be an issue and there will be enough to purchase all the parts and components However this budget also prepares for some extra components just in case there are part failures or we decide to include more functionality to the project Also note the misc component section include part like resistors and capacitors and other small device that would be used to create this project Atmega324p 21 48 CSLT Honeywell open loop current 5 25 56 27 75 Sharp S116S01 solid state relay SO eer 5 VSK S1 Power Supply 34 90 Printed Circuit Board 75 00 uLCD32pt resistive touch screen HE E PCB components 50 Misc components 1 100 Table 15 Budget 8 2 Milestones 9 4 2012 Group Identification worksheet due 9 11 2012 Senior design one initial abstract Due 10 18 2012 Table of contents due 10 19 2012 Complete progress energy proposal for funding 10 21 2012 Complete Researching phase 10 22 2012 Complete parts list and order materials 23 Oct Begin designing project and writing paper 11 1 2012 Finish project motivation and Goals 11 15 2012 Finish writing research and Design sections 11 22 2012 Thanksgiving destress before crunch time 11 23 2012
74. ith it are confidential and may be privileged If you are not the intended recipient you must not review store copy disseminate disclose to others or take action in reliance on any material contained within this email If you have received this email in error please notify the sender by reply email and delete all copies from your computer system Any views or opinions expressed in this email are not necessarily those of 4D Systems 4D Systems accepts no responsibility for any viruses this email and any attachments to it may contain From no reply 4dsystems com au mailto no reply 4dsystems com au Sent Thursday 6 December 2012 4 59 AMTo support 4dsystems com auSubject Contact message You have received a message from 4D Systems Website Contact type Support Contact name Michael Sriprashad Country United States Email Msriprashad gmail com Description Michael Hello my name is Micheal Sriprashad and 1m an eletrical engineering student at the university of central florida I would like to request permission to use the following pictures of the ULCD 32PT GFX for my Senior design paper located on www 4dsystems com au prod php id 1 14 SE End of message Hello my name is Micheal Sriprashad and im an eletrical engineering student at the university of central florida would like to request premission to use the following table in my Senior design paper located on http www choice com au reviews and tests computers and online comp
75. l I can therefore say to you is that we have no objections to you using them but we can t guarantee any copyright status best regards Archie McDougall PC Control Ltd To gary turner meggitt com To whom it may concern Iam a student at the University of Central Florida and currently working on a engineering design as a part of a course requirement I would like to ask if it is okay to use a screenshot from your website http fwbell com ckfinder userfiles files Methods Current Measurement to us a part of our research document Thanks in advance Gardy Lacombe subject Research Ze to PT edit category Other Products wl rr Please type a relevant device number and or development tool name To whom it May concern I am a student at the University of Central Florida and currently working on a engineering design as a part of a course requirement I would like to ask if it is okay to use a screenshot of the Atmega374p from your website to use as part of our design document Thanks in advance Gardy Lacombe Hello Gardy Ta allagro chinag allegromicrs com AN To whom it may concern I am a student at the University of Central Florida and currently working on a engineering design as a pert of a course requirement I would like to ask if it is okay to use a screenshot of the ACS712 from your website to use as part of our design document Thanks in advance Gardy Lacombe y L eine rt ULE Ut
76. l be able to change settings on the device This is due to the Bluetooth Mate Gold s connection encryption feature This way malicious passersby with Bluetooth devices can t hijack the power in your home and potentially cause damage to your appliances data or even home due to electrical fire or otherwise The prototype for the login screen flow is shown on the following page Please stand near you re A UM Device and enable Bluetooth on your Android smartphone Figure 39 Start up screen for the A U M Device Start up screen First the app will have to detect and connect with the wireless signal sent from the Bluetooth modem on the A U M Device Once found the app will open a login screen where the user can enter their specific username and password information Searching for A U M Devices in range Figure 40 Android app screenshot searching for signal The login information will be set on the LCD touch screen upon initial start up This will be the information required to login to the Bluetooth connection The A U M Device Wireless Home Management App Figure 41 A U M Device Android App Login Screen The rest of the app will be modeled exactly like the LCD touch screen 6 Testing 6 1 Hardware 6 1 1 Power Supply The first test is making sure the power supply outputs a steady 5 volts from an AC power source The power supply will be in series with a voltage source and nothing else in the circuit The voltage s
77. le above decreases With the help of the power triangle above in figure 3 the complex power can be broken down to this equation below Complex power Active Power cos Phase Angle When the phase angle is zero then Complex power Active Power Getting that approximation is the exact goal and purpose for this project The easiest way to fix this certain problem is to place special filters around the circuit to reduce the effects of the magnetic field Also the last detail of the equation above is that the Active power is equal to the RMS voltage multiplied by the RMS current since both the current are being averaged 3 1 3 Current Sensor The root equation for AC power is P V RMS I RMS cos There must be a way to obtain the current part of the equation Through research it was found that by using a current sensor the value of the current being used can be revealed However there are many different options to use for this project The method that doesn t disturb the overall balance of the current lines and proves to be the most efficient and cost effective will be chosen There are three options to use e Shunt Resistor e Current transformer e Hall Effect transducer 3 1 4 Shunt Resistor The Shunt resistor can prove very useful as a means to getting the current values through a certain device that is hooked up to the A U M Device They come in many different varieties that base their rating on how much input current the
78. ler cccccccseceseeeeeeeeeeeeneeeseeeeeeeens 31 Fe E Een 32 3 1 21 Wireless Control 33 SEENEN 35 e De H EEN 35 22 Gis MS il 0 0 EOP eR OR ERROR ROR USER VEER VOR EER H OR UH ENUM ER UE ARCH ORTH ane ORO n ane Han Un ane rene art tan 36 3 23 Relay SYSIEM CHOSEN geegent 36 22 ACDGereens 37 3 2 5 Motion SCNSOF siicasccvcccsseasevevauavevavsuaycced nteeverenawavavevaecvaveneeccdsuwarcsadawassws 39 3 2 6 Microcontroller 2 2 0 0 0 ccc cceccececccceccccccceccccececcecceueaceceaceceeueceensauecesueneeneas 40 SL te LOOP e 42 SAG S OMI AO winters oss Site vt tess ba ence bares teste wc ba eae bee cane ve geeks caesar 44 3 2 9 Wireless Control 45 3 2 10 Wireless App Programming Software saensnennnsnnenennneneesrrrerrrrerrrnn 48 3 2 11 Relevant Rente e WE 49 EE 52 DW Ee UE EE 52 4 o DN ergeet e TEEN 52 A Nee Eeler EEN 54 AELS LOD TOUCh SOGE EE 54 4 1 4 Motion seneor ccceccececcececcccccccccceccacccecceceueaceneaueaeeueneentaueneaueaeeneas 56 ER ee UPDI E 57 AO Guren Senso EEN 57 417 Sold EE 58 42 rer E DESIN E 58 4 2 1 Current Sensor Cireunt 58 4 2 2 o0lid State Relay CINCU EE 60 4 2 3 Overall Device nnn nnna 61 4 2 4 Microcontroller Pin Configuration cccceeccseecseeeseeeeeeeeseeeseeeeeeeees 62 A 2o SC MC MMAUNCS EEN 64 SO E e a 65 4 3 1 Touch screen programming s ssesssennenesnesrerenrrrsnrsrerrnrnrrenrsrernrrenenne 65 AS s Outlet a et e ENEE 70 4 3 4 Value Calculations
79. ll work Power is the rate of energy being used to complete work There is DC power and AC power Since The United States supplies 120 volts AC at 60 Hz This project must focus on the AC version of power Having AC voltage also translates into having AC current There now lies the issue of whether the voltage and the current are in phase with one another The objective of the inner circuits focus is to minimize the effect of the AC power in the overall power which is called complex power Complex power has two major components Active power and reactive power Active Power is measured in Watts The electric utility bill is based on active power used at a rate of time kW per hour Reactive Power is measured in vars Combine both the reactive and active power and it is called complex power which is measured in volt amps Power Triangle Complex Power Reactive Power Vars Volt Amps Phase Angle Active Power Watts Figure 3 Complex Power As stated before the electric utility bill will only bill the consumer for active power which is in watts Then they will take the average of that energy of the total amount of hours in a month The A U M Device will just check the total hours used instead It is absolutely essential that the power calculations reflect that the total energy used in watts To do that the circuit in the device must minimalize the reactive power it produces which also means that the phase angle in the power triang
80. ly beneficial if they were going on a vacation and had no one to turn off their outlet until they came back This would save a surprising amount of energy depending on what appliance is plugged into the smart strip A U M Device The downside to this approach is complexity of design WLAN is very complicated to interface with routers especially for embedded systems A network cable might be simple but it would require the A U M Device to be near a wall outlet The website would also have to be programmed and designed which would be difficult for our project group because of our limited experience in web design The website would have to have its own server hosting a large number of users with any number of A U M Devices in their home Bluetooth Another approach to wireless control is Bluetooth technology This is radio frequency technology that operates inside a specific bandwidth called the Industrial Scientific and Medical band SM This frequency is 2 4 GHz with a max data rate of 720Kb per second It uses Gaussian shaped binary Frequency shift Keying GSFK which is a form of frequency modulation This method would be useful for our project because it s a very simple way to send a wireless signal It s similar to radio technology but at such a high frequency it isn t affected by other radios or structures in the area Because of this a lower power design can go about 100m in range all directions This would be great for our project
81. m voltage both from AC to DC and from wall voltage to circuit voltage e Convert 120 volt to a small DC value e Supply voltage to all the inner components 2 5 3 Current Sensor Circuit For the device to actually calculate any type of power the current and the voltage have to be calculated The current in each outlet must be measured and averaged as well as multiplied by the voltage to calculate power sense current send current signal to microcontroller Have accurate readings Measure values rapidly 2 5 4 Power Relay The device has to be able to actually halt and allow current flow when the user or microcontroller requests it to Also it must be able to react to microcontroller signals and control power to the outlets rapidly e Must be able to receive digital communication e Has to respond to microcontroller signals quickly e Must fit on the printed circuit board 2 5 5 Automatic Utility and Device Control Device needs to control three outlets based on user preferences for Master Slave motion sensing and automated control It also needs to be able to calculate present current power consumption and energy saved as well as current power bill and money saved It needs to link the timer with the motion sensor so that the timer only starts counting down when there is no one in the room It also needs to be able to change the timer countdown value based on user specifications Read current based on input voltages from the rel
82. nated the stand by power consumption of the monitor and printer As seen in the block diagram below is the set up of how the Master Slave mode will operate We will first select the mode and one this screen it will shows all three outlets and below the outlets it will display weather the outlet has been set to master slave or off Figure 31 Master Slave Block Diagram The next mode is known as motion sense We wanted to give the user full capabilities of this mode This mode will allow user to do a few things first say you walk into the living room and the only reason you go there is to watch television The A U M Device will allow you to select this device to automatically be turned on when a user has entered the room and their presence has been sensed by the passive infrared motion sensor It will also allow you to do the complete opposite if you left the room for a certain amount of time in which you could set this mode to turn off the device when you leave the room for an extended amount of time As seen below in figure 98 the Motion sensor menu much like the master slave will display all three outlets Below the outlets it will display either on off or motion sense off On will allow device to turn on when motion has been sensed Off will let the user to set a time when they would like their device to be turned off when no presence has been detected Lastly motion sense off will do neither unplaying the sensor to the outlet or outlets
83. ng demand of a user friendlier interface touch screens became very popular in mid 2005 With the release of all touch screen phones such as the Apple IPhone HTC HD2 and Motorola droid the demand has grown exponentially This is why we felt that a touch screen would best suite our project design better than old fashioned buttons or switches Today there are three types of touch screen readily available to the public Each with their own set of pros and cons and how they can be utilized The first to be released is known as the Resistive touch screen which is a glass panel that has been overlaid with a conductive and a resistive metallic layer These two layers are placed on top one another and separated by spacers following a top layer which is scratch resistant A current is run between the conductive and resistive layers when the screen is touching the two layers make contact in an exact spot A computer then notes the change in the electric field at the certain coordinates and converts the change into machine language to be processed into a click or enter type operation As seen below in figure 9 is an example of the layer setup of a resistive touch screen Touch creates contact hehween resistive circuit laya ra 158 Je a manic h Controller determines BEW GP layaras ic get touch coordinates Figure 9 Resistive Touch Screen Permission requested from http mobilephones pk reviews what are capacitive and resistive touch
84. nput value given to the relay is either a digital signal of 1 or 0 At its root core that is how that system works but the microcontroller only acts as a gateway for the other devices to control the status of the relay As shown in figure 23 the android phone that access the app for Bluetooth communication will allow the user to wirelessly control if each out is on or off or the mode they want it in The motion detector will be configured through the digital I O pins on the microcontroller When the motion detector doesn t sense there is a person in the room for an allotted time it will communicate with microcontroller Once the microcontroller has received that signal the relay will turn off and power is loss for the device that is plugged in the A U M Device The same configuration goes for the onboard touch screen Its pins are on the Rx and Ix pins of the microcontroller Just like the Bluetooth control this is a user interface that the user decide which mode to keep the device in Once it receives its user commands it interacts with the microcontroller to decide the state of the relay Bluetooth Motion Control Touchscreen Atmegas 24a Microcontroller Solid State Relay Device plugged in the AUMI Figure 24 Solid State relay control The suggested high input voltage for the S116S01 is 1 5 volts This is a slight problem because the microcontroller has a high output voltage According to the Atmega324p datasheet is about 4 2 volts
85. ns outlet off Motion detector successfully reset timer Master slave algorithm successfully implemented Function mode hierarchy in correct order Interfacing with LCD touch screen Successful reprogram using bootloader Successful interface with wireless Bluetooth successful operation of android application Successful display of the A U M Device variables and outlet function states on wireless app Android app changes values on microcontroller Wireless connection encryption safe and effective CWINDOWS system ZvCmd ee C Copyright 1965 2001 Microsoft Corp C Documents and Settings Pika gt cd C Documents and Sett ings gt cd o C sed My Robots boot loader C My_Robots boot loader gt fboot17 exe b38400 ci pERP hex vERP hex COM 1 at 38400 Baud Connected One wire Boot loader VFFFFFFFF FF Error wrong device informations Cc MY_ROB 1 BO0TLO 1 gt fhoot1 7 exe b38400 ci pERP hex vERP hex COM 1 at 38400 Baud Connected Target 1E9406 ATmegalbs Butter 51 Byte Size available 15872 Byte Program ERP hex 00000 02685 successful Verify ERP hex 00000 02688 successful CRC ok Elapsed time 6 70 seconds Cc M _ROB 1 BOOTLO 1 gt Figure 42 Successful bootload screen Permission requested from SocietyofRobots com Once the bootloader is successfully programmed other parts of the entire code can be uploaded and implemented one by one The first feature we would code and test would be t
86. nsor detects motion similarly to a microwave With the use of electromagnetics waves they transmit frequencies that reflect off the surrounding area Then it is able to track and report the changes in the frequencies that reflect back There are also some disadvantages to using the continuous wave radar such as having a reduced range vs other radars high chance of interference from other radio signals and much more expensive This is most commonly used for tracking speed In applications such as police traffic radar gun or military radar Ultrasonic Transmitter Receiver Figure 13 Ultrasonic Motion Sensor Permission requested from www euclidres com motionSensors motionSensors html Another type of motion detector is known as ultrasonic This motion sensor works by gathering sound frequency from surrounding objects It projects its own sound frequency in an area and detects the disturbances of the frequency that s produced As you can see in the figure 13 above the ultra sonic motion sensor produces a sound frequency that bounces off the surrounding area and returns to the sensor If an object were to come in between this sound frequency it would become disrupted and an alarm would go off This sensor is great for building and construction applications Things like checking water levels detecting leaks and to tell if sensing parking lots are full are uses of ultrasonic detectors The last type of motion detector is a call vibration det
87. nto a growing epidemic for most households across the globe with the depletion of fuels to produce electricity Corresponding to the Lawrence Berkley national laboratory standy lbl gov standby power contributes to one about percent of global carbon dioxide emissions in our earth s atmosphere which is about 5 million tonnes of carbon dioxide per year This is equivalent to impact on the atmosphere of more than 1 million cars For some equipment such as fire alarms security systems or thermostats require the use of stand by power to stay powered throughout the day for daily and emergency purposes In turn we need to regulate which device should remain in stand by mode and which should be completely turned off As seen in figure 1 1 on the next page having theses device plugged in when not in use or idle will cost you a considerable amount of money in the long run Averaging up about five hundred dollars just for the devices listed below in figure 1 table With the constant rise of cost of electricity we need to be more aware of where Our power is going and preserve as much of it as we can for future use Our group sought out to manufacture a device that eliminates standby power with convenience With a number of features for accessibility and an energy sufficient design that will not only help with energy sustainability it will also become beneficiary to the entire planet Along with saving money and retaining our depleting fuel supply 5
88. o be shown and operated on our touch screen LCD The menu will consist of a main Home screen and four feature modes which will be toggled on the bottom corners of the screen with two arrow keys The home screen will show the current date time and list the four different modes giving the user to go straight to the desired mode without having the toggle thru to the desired mode to save time The home screen will also allow for the user to input a customized message in there home screen for example a to do list or a reminder to get something done would be great uses for this feature Shown below in figure 98 is a block diagram of the home screen and its functionality Figure 30 Home Screen Block Diagram There will be four modes available on this device for user customization They are Master Slave mode Motion Sense On off and Estimated power savings Each having their own specific function The first mode is known as Master slave In this mode the user can select out lets to be set as either master or slave What will happen is when a device is selected as master when it is turned off or in stand by mode it will cut power to all devices selected to be in slave mode For example say we have a Computer Monitor and a printer We would set the computer to master mode and the other two peripherals to slave mode When the computer has entered sleep mode or turned off this will cut the power of the other two devices in slave mode practically elimi
89. oelectric sensors While area sensing is set at a field of view rather than one specific location and includes active passive infrared ultrasound motion footstep detection microwave Doppler and video sensing We researched and narrowed the list of possible useful motion detectors to a few that we felt would work best with our project design Active infrared or IR sensors work by producing an invisible light that may contain radar Then they are able to detect the differences in the radiation within there range This includes body heat and radar waves For example this type of motion detector would be perfect for public places controlling the front door movement of opening and closing similarly to active infrared we have Passive Infrared or PIR detectors Unlike active infrared sensors passive does not emit a beam it works on a combination of heat and infrared sensors It detects more of a sudden difference in temperature In figure 12 it shows the block diagram of the passive infrared sensor It is definitely the most used detector due to its low power low cost and easy maintenance They are commonly used for burglar alarms and also for detecting if people or animals are in a certain area Passive infrared motion sensor block diagram Fresnel Pyroelectric sensor IR filter Figure 12 Motion Sensor Block Diagram Permission granted from machinedesign com Next we have Continuous wave radar detector This type of motion se
90. on the device that is plugged in the A U M Device The most attractive advantage the Hall Effect current transducer have over the other available options is the fact that it s non intrusive The component does not need to make electrical contact with the main current lines at all This means the high voltage current won t destroy it nor will the part heat up unlike the shunt resistor which in effect makes this current sensor the most ideal candidate since the current and the voltage coming from the wall can spike to high levels randomly The disadvantage however is that they have an offset voltage and that will throw off the calculation and must be put into consideration Also unlike the shunt resistor it must be powered by a DC source which would makes it another variable that increases the wattage of the A U M Device There are two versions of the Hall Effect current sensors open loop and closed loop The open loop sensors best feature is the high current rating it possesses The reason it the rating is so high is because the main current line is not attached The figure 5 below show the wire goes straight through a ring and not having any contact whatsoever Using the magnetic field sensor it detects the strength of the magnetic field and outputs a proportional voltage The disadvantage they have are there low sensitivity and they are definitely affected by temperature CURRENT FLOW WEAK FLU SRR OUANDING ODL FOR ww STRONG
91. ooth wireless connection In any event the bootloader has to be programmed into the microcontroller initially To do this our project group must select a component for interfacing with the microcontroller The two most popular choices for doing this are the development board and the In System Programmer Development Board One component available for programming a microcontroller is by using a prefabricated development board This method is safe and effective but it costs more Development boards range in price and complexity but it s good to buy your board from the same place you got your chip The board has its own embedded system circuit on it complete with regulator and easy to interface pin layout so the microcontroller can readily be inserted and removed from the circuit The upside to using a prefabricated development board is that It s already been tested and designed by professionals to run the microcontroller the project is using It will also often come with a debugging circuit to fix problems with the microcontroller program This is an easy way to program a microcontroller but is also safe and effective The downside to this is the price and variability It s a little more expensive because more of the board is built for you and it comes with a debugging circuit This calls for more parts and more design and manufacturing by the producer You also cannot change the circuit at all if you need custom circuit design to program y
92. or also offers a high range of compatibility being able to interface easily with practically any microcontroller in the world The passive infrared motion detector main purpose is to decipher weather a user has entered the room left the room or remains in the room When the user enters the room the motion controller will send a signal to the microcontroller to wake the touchscreen display When a user has left the room for a period of time which can be set by the user the motion controller will send signals to turn down all devices in use The passive infrared sensor will constantly search to ensure that when the user is in the room no device are shut down un willingly to prevent error or undesired outcome 4 1 5 Power Supply As stated before the majority of the inner components of the project requires a small dc voltage applied to them There two choices were to build a rectifier circuit or purchase a power supply The group decided on a power supply because it was the easier of the two to implement out of the two The power supply chosen for this project was the VSK S1 It was chosen out of all the other power supplies because it only requires 1 Watt of power to function This keeps in line with the energy saving theme of this whole project There goes a brief table detailing its specifications It will take 120V ac from the wall and converts it to 5V dc for the microchip current sensor solid state relay and touch screen too There will be a
93. oup member Mobile application Benjamin Gruseck Display programming Michael Sriprashad Touch interface Michael Sriprashad Benjamin Gruseck Microcontroller programming Benjamin Gruseck Table 2 Software components 2 4 Significance The main significance of the A U M Device is to promote energy and money saving through out the United States and hopefully the rest of the world Stand by power uses about ten percent of your monthly electricity consumption adding a nice ten percent increase in your electricity bill Nothing is permanent and with that said neither is the resources we have obtained on earth With the depletion of fossil fuel rising every day we need to invest in alternative sources or most modern equipment will not be able to operate any longer Saving energy helps allow us more time to research and develop alternative fuels for use in the future The more people that we can get to use the A U M Device the better for the planet they will be saving both the earth and on there electricity bill We also felt that user accessibility was a huge factor in creating the A U M Device in order to reach a more broad variety of users If users are unable to walk to a certain room in the house or if they are not too technology savvy we wanted to solve this problem We plan to implement this by creating an android application that will work with a smartphone platform enabled device though Bluetooth This application is almost an exact repl
94. our microcontroller Feature Availability AVR compatibility Most Atmel Microcontrollers Breakpoints hardware maskable data Meena Symbolic debug Yes SRAM 128kB USB 2 0 12MB s Voltage 1 8 5 5V Upload speed 256Kb code in 60seconds Table 8 AVR Dragon One example of this component is the AVR Dragon Some useful features are shown in the table above It s a full package made by Atmel specifically for programming its advanced AVR microcontrollers It has a USB port for computer interfacing as well as serial input output and UART It can debug symbolic variables on devices with OCD and uploads 256kB of code in about 60 seconds Its versatile and powerful while not being the most expensive hardware programmer you can buy This would fit our project because it works with a large number of microcontrollers and would be faster than building our own programming circuit In System Programming Another method for programming a microcontroller is by using a serial connection In this method a cable is run from the computer to the microcontroller and a simple circuit is built on a bread board to power the microcontroller and control its reset switch The cable can be USB RS232 or any bus that plugs into your computer as long as it plugs into the serial transmission pins of the microcontroller This requires an In System Programmer or I S P This is cheaper than the previous method because the development board is not included
95. ource will output a low voltage then gradually increase the voltage to measure any difference in the power supply outlet voltage Measure the output voltage Measure the output current Calculate the power used Measure the minimum voltage Measure the maximum voltage 6 1 2 Current Sensor circuit The current sensor circuit comprises of a Hall Effect open loop transducer There will be two parts to this testing section The first is hooking up the current sensor with nothing else in the circuit but a current source or a voltage sorce e Measure the current sensor with a controlled DC voltage source attached e Measure the current sensor with a control DC current source attached e Measure the sensor with a controlled AC voltage attached e Measure the sensor with a controlled AC current source attaches The second part of this test will hook up the amplifier with different resistive loads in a wide range One set of test without the Zener diode and grounding the positive input side of the input current The other set with the Zener diode hooked up to the circuit e Build the current sensor without the Zener diode Measure the output from the amplifier with different AC current values e Build the current sensor with the Zener diode Measure the output from the amplifier With different AC current values 6 1 3 Solid State Relay First part of this test will just be the relay in a loop with a resister and an AC current source There will be a
96. pply included And should be the finished and final circuit board created for this project Figure 36 Prototype of the A U M Device Up above in figure is the planned final prototype of the A U M Device This is the desired shape and design we hope the final version will follow too There are numbers on figure reflecting what each component is on the prototype Number one is the outlet plug that plug into the wall socket Number two is the touch screen that the user can interact with and select different modes of functions It is going to be placed in the landscape on the long side of the A U M Device Number three is the actual casing of the unit which will most likely be a PVC electrical box Number 4 are the three outlets that the devices will plug into The outlets are strategically placed vertically on the long side of the device This way the wires dont interfere or cover the touch screen in any way Number 5 is the motion detecting unit It is separate with a cord from the device for the purpose of increasing the range the A U M Device can actually detect Also whats not included in figure four is that there will be a square hole with a plastic cover exposing the printed circuit board to show what it looks like Home Menu December 5 2012 3 34 P M Master Slave Motion Sensing On Off Estimating power and cost used Figure 37 Home Menu shown in the figure above is our prototype menu of what we want to appear on our touc
97. ragon Atmel N p n d Web 02 Dec 2012 lt http store atmel com PartDetail aspx q p 10500053 gt Atmel AVRISP MkII In System Programmer Atmel N p n d Web 02 Dec 2012 lt http store atmel com PartDetail aspx q p 10500054 c 100115 gt Bluetooth Mate Gold Spark Fun Electronics N p n d Web 04 Dec 2012 lt https Awww sparkfun com products 9358 gt Current Sensor Line Guide Honey Well N p n d Web 05 Dec 2012 lt http sensing honeywell com current 20sensors 20line 20quide done pdf gt Current Sensor Selection for Demanding Applications Www raztec co nz N p n d Web 04 Dec 2012 lt http www power mag com pdf feature pdf 1222952752 PEE Issue 2 208 Current Sensing Current Sensor Selection for Demanding Applications pdf gt Get the Android SDK Android SDK N p n d Web 04 Dec 2012 lt http developer android com sdk index htm gt Hall effect Open loop Current Sensor Application Honey Well N p n d Web 04 Dec 2012 lt http sensing honeywell com index php ci_id 51431 gt Improving Energy Efficiency in the Home International Electotechnical Commission N p n d Web 02 Dec 2012 lt www iec ch etech 2011 etech 0511 tc 1 htm gt Interfacing with Hardware Arduino Playground N p n d Web 04 Dec 2012 lt http arduino cc playground Main InterfacingWithHardware gt Johnson Patrick A Types of Motion Dectectors Ezine Articles N p 16 Aug 2012 W
98. rating Frequency Hz Do you use a 32 768kHz crystal What other crystal frequencies are used Severity Problem To whom it may concern I am an electrical engineering student at the University of Central Florida in a design group of three people for our Senior Design course requirement We would like to ask permission to use a few screenshots of TI products and datasheets we found online such as the MSP430 pin layout and data table in our research paper which describes our research design prototyping and testing of our project All pictures we are planning to use are found online on your website Thank you in advance B Lowen Gruseck Steps Needed to Recreate the Problem southeast atmel com To whom it may concern am an electrical engineering student at the University of Central Florida in a design group of three people for our Senior Design course requirement We would like to ask permission to use a few screenshots of Atmel products and datasheets we found online such as the AVR Dragon and Atmega324 pin layouts in our research paper which describes our research design prototyping and testing of our project All pictures we are planning to use are attached in this email Thank you in advance B Lowen Gruseck SOR permission request Wednesday December 05 2012 4 12 PMlowengruseck To robots societyofrobots com To whom it may concern am an electrical engineering student at the University of Centr
99. rcuits GATOR Plus Rugged Circuits GATOR Plus N p n d Web 04 Dec 2012 lt http www ruggedcircuits com html mb324p html gt S116S01 Series Sharp N p n d Web 04 Dec 2012 lt http sharp world com products device lineup data pdt datasheet s116s01_e pdf gt S208T01 Series Sharp N p n d Web 04 Dec 2012 lt http sharp world com products device lineup data pdt datasheet s108t01 e pdf gt Standby Power Data Center U S Department of Energy N p May 2012 Web 05 Dec 2012 lt wwwt1 eere energy gov femp technologies standby_ fag html gt Standby Power Standby Power Lawrence Berkeley National Laboratory n d Web 05 Dec 2012 lt http www standby bl gov gt ULcd 32pt gfx 4d Systems N p n d Web 04 Dec 2012 lt www 4dsystems com au prod php id 114 gt Vantol Dave Learn How to Choose the Right Type of Motion Sensor Hovey Electric N p 31 May 2011 Web 02 Dec 2012 lt www hoveyelectric com hovey electric power blog bid 6216 7 learn how to choose the right type of motion Ssensors gt Copyright Permissions Dear Michael Sure you can use them with references Regards Muhammad Bilal Technical Support Manager 4D Systems Pty Ltd Australia Headquarters Unit 3 51 York Road Penrith NSW 2750 Australia PT8641 0 2 4721 Fax 61 0 2 8834 0747 ditak Adsystems com au www 4dsystems com au This email from 4D Systems Pty Ltd and any attachments transmitted w
100. rennnene 36 Figure 153 MSP430 DIN IAVOUT sects acct Seed toca eee ee ome a ele a aad 41 Figure 16 BlueSMIRF RP SMA pin layout nnnnannnaannnnannnennnnannnnennnnnnnnsnnnnenrnnnnennnereenene 47 Figure 17 Bluetooth Mate Gold pin J vout 47 Figure 18 LCG3 10 outletS power sin 50 Figure 19 AVRISPmkIl Serial connection cable header pin layout nnn0nnnnannnnannnannnn 54 Figure 20 EG DOTOUCM SCTE EE 55 PIQUE 21 GA Baelen EE TEE 56 Figure 22 Relationship between current sensor and microcontroller ceeeeeees 59 Figure Mei dure But e TEE 60 Figure 24 Solid State relay Control 61 Figure 25 Overall Device Block Diagram ccccccseececseeeeeaeeeeeseeeeeseaeeeeaeeeeeseeeeesaaeeeeas 62 Figure 26 Pin Layout for the Atmega324p cc ceccceecccsececeeeeseeeeeceeseceueeceeeesseseesseeenees 63 Figure 27 Solid State Relay Ee LEE 64 Figure 28 GUIrent Sensor EE 64 Figure 29 Relay And Gensor CCU esseere E A E E 65 Figure 30 Home Screen Block Dagram 66 Figure 31 Master Slave Block Dagram 67 Figure 32 Motion sensing Block Diagram ccccccsecccsseeceeeeeceeeeceeeeceueecseeesuseeesseeesees 68 PIQUE SS ON OF nee cuia cies te a a temas tte eee tncad 69 Figure 34 Estimated cost and power use 70 Figure 35 Algorithm Flowchart for automatic outlet contra 72 Figure 36 Prototype of the A U M Device A 76 Foures Rome EE 17 Figure 38 Master Slave Mode cccsssccccsseeeceeseece
101. riority Auto Table 14 Priority of Mode Control This means that a Master outlet with Motion control enabled is the highest priority and a regular outlet with Automated standby mode is lowest A master outlet with motion doesn t care if the outlet is technically in On Off or Automatic mode because the motion sensing overrides it Similarly the Slave outlet doesn t care if the Automated standby is on as long as the Master is controlling it or the On mode is overriding the automated control 4 3 4 Value Calculations The microcontroller also has to calculate values based on current readings it makes while the outlets are on The current sensors will output voltage measurements proportional to the amount of current going through them to the outlets This value will be scaled to match the true current flowing into that outlet It is then translated to a digital value the microcontroller can use Average current is calculated using iterations and logical shift right to add up many readings and divide by the number of readings it made Using this value the microcontroller will find the average power by multiplying average current by 120V based on the wall AC voltage This will be the average power usage value which will be used to calculate total power bill To do this the user will indicate when the billing period begins and the microcontroller adds up the power used each day and displays the total power used since the last billing period
102. ry level engineer because many higher languages are based off this older language All members in our project group have also taken Intro to C programming and are well versed in the syntax of this language arguably the hardest part of programming This method is an option for our project because most AVR programmers also come with a C programming option This method would be quicker than assembly language because it has a much larger instruction set in its library as well as multiple libraries It would have less than half the code because each instruction would represent several lines of assembly language code This language would require a compiler to translate to assembly language for the microcontroller to convert to machine code that s why it s called a compiler language C Another language also offered as an optional coding method is the C language This is similar too and based off the C programming language but also utilizes Computer science approaches such as object oriented programming to create more complex programs that can be written with even less code This would be beneficial to our project because programs could be written more efficiently and in less time The problem with this method is that no one in our project group is qualified in object oriented programming because we are all Electrical Engineering majors and haven t taken that class which is a required course for Computer Engineers 3 1 21 Wireless Control On
103. s a picture of the room and senses even the smallest of movements Taking a look at table 9898 you can see the different specifications of the three passive infrared motion sensors we have considered for our design Sensor mae PIR sensor Sensor detection type PIR sensor Element Element Se a NG voltage Temperature degrees C Degrees C degrees Temperature P C e E c Ee Range 14 mm 5 meters 30 ft Dimensions 30 6 x 35 4 748 x 433 x 1 21x1 0x x 20 3 mm 3 4 in 0 8 in Table 7 Motion sensors 3 2 6 Microcontroller When choosing a microcontroller there were a few main things our group was looking for specifically These were low power consumption ease of interfacing and programming simplicity The overall motivation of The A U M Device is to lower overall power consumption of the appliances plugged into it The most readily accessible way to do this is by monitoring and controlling the outlets using an embedded system Therefore the microcontroller we choose must use low power but it must also have the computing power and versatility to control multiple outlets a touch screen Bluetooth and a motion detector all at once It also needs to be an advanced reduced instruction set computer RISC architecture so that the processor can run faster at a higher clock speed and calculate average power used more accurately The more often the microcontroller can read the present current the closer it can get to a true
104. s called Home Energy Management System They built an energy saving power strip similar to ours except no LCD screens located directly on the power Strip Instead they used an external wireless touchscreen to interface with their device Their project much like ours was built to save power lost by vampire draws and detects the power used by devices plugged in We used similar methods such as a solid state relay and current sensors to detect the draw of power from the outlets What makes our project stand apart from the home energy management system is the LCD screen located on the power strip a motion sensor and Bluetooth technology Our project also uses an android application to access the Bluetooth to connect wirelessly with the A U M device from any android enabled device and gives the user full functionality of the device being able to control every single feature from up to fifty feet away In the Summeri11 Fall 11 semester group 6 created the Power Ad This device was built with the intent to monitor the energy consumption of individual appliances in their household There project similar to group thirteen from the fall09 spring 10 built a power strip that communicated with an external LCD touch screen This allowed users to monitor the voltage and current applied to the individual appliances Also information regarding the power and current draw is then reported back to the user and calculated into a kilo per hour month or year and then
105. seecceueeecseseccsaeeecseueeessaeeessaeeessegeness 78 Figure 39 Start up screen for the A UM Device Start Up screen 79 Figure 40 Android app screenshot searching for egnal rererere 80 Figure 41 A U M Device Android App Login Screen cccccceecceceeeeeeeeaeeeeeesaeeeeeesnaees 80 Figure 42 Successtful bootload ecreen 87 1 Executive Summary Vampire draw Phantom load or most commonly know as Standby power accommodates about 10 of the total amount of wasted electricity in the world and in your electricity bill Devices such as the VCRs all in one printers and laptops are all examples of the largest culprits Using 50 of the power as if the device was on while in standby mode Even though in some cases being necessary such as remote controls observing temperatures and digital displays these devices add up in the modern home and can also add a hefty tax to your electricity bill The solution to this would be to regulate which devices are left in stand by mode and which devices should be completely unplugged or power cut Saving energy is important with the depletion of fuels Alternative sources must be created to be able to sustain our lifestyle and by saving energy this allows us more time to be able to fabricate these sources We have aimed to create a device that is low power user friendly and reduces the amount of power wasted in stand by mode By cutting all power to a device when not in use this will eliminate standby po
106. simple as possible This is especially relevant because we do not have a computer engineer in our senior design group As a trio of electrical engineers we know how to program and are skilled in assembly language but the simpler it is to program the overall control system the more time we can devote to adding features and user friendly design to the device as a whole The more readily accessible tutorials are for developing the embedded systems code the more we can focus on extra features interfacing prototyping and testing It even comes with Q touch library support which is especially relevant to our touch screen application Also the Atmega s additional machine instructions will also require less lines of code because its higher level coding language can account for processes that may take more instructions to implement using more simple language The most important line however is the one concerning power usage Atmega s unbeatable power consumption is really what drew us to this set of microcontrollers The next decision then is to pick from the large selection of models the Atmega series are available in The Atmega328 series is a very versatile and popular set of microcontrollers and many other families of chips are based around this model We initially went with the Atmega328p because it is almost identical to the 328 version only better in two very important ways power usage and machine instructions The pico power aspect is extrem
107. started next to the current average power rating and the estimated power bill so far To calculate the power saved we will pay attention to the current reading when the appliance is turned off also Known as stand by power and save it for that outlet The amount of time the outlet is in off mode will then be used with the stand by power to calculate the total power saved since last billing period Initially the values for power saved might be smaller than expected but as the user starts to be more conscious of their habits they will learn how to work with the A U M Device 4 3 5 Wireless Control The wireless control application for smartphone will be exactly the same as the on device LCD touch screen except for the fact that it will be an app which also has password encryption This means that variable values will be edited through the wireless app and must be applied throughout the microcontroller and be reflected on the device screen accordingly This will be done by having both the wireless app and the touch screen only hold temporary values based on the values saved in the microcontroller If a value is changed that value will be sent to the microcontroller and saved as the new value The temporary value on the respective menu screen will then be reset or voided and will display whatever value it reads from the microcontroller when prompted to display anything This is so that the values on the separate screens arent competing with eac
108. tand by mode Retest using only outlet two Retest using only outlet three 6 2 6 Estimated cost and power used Toggle from home menu to Estimated cost and power used mode Plug in device to outlet one Turn on device Observe the estimated cost and power used mode Outlet one power used should be constantly going up With the increase in voltage the dollar amount should rise as well Verify result is accurate based on device and amount of time plugged in Retest using only outlet two Retest using only outlet three 6 2 7 Microcontroller Testing First thing to do once our group gets the microcontroller is to upload the bootloader This will allow the microcontroller to reprogram itself through the UART connection so we dont have to reprogram the whole thing ourselves by putting it back into the hardware programmer we re building ourselves The bootloader will be uploaded to the microcontroller and the programmer screen should look something like the picture shown on the following page There will be many parts to testing the software once the code has been uploaded Bootloader upload successful Successful current value read Successful power consumption calculated Power bill value correct Algorithm actually saves power Power saved value correct Relay switches controlled properly Automatic control of relays based on current readings Motion sensor state variable reading Timer countdown in real time Timer kill switch successfully tur
109. tion on M X XX countdown Auto and motion Motion off M N A Auto On or Off S Motion on Master based Auto Motion and Master Motion off S N A Auto and Master Motion on eo X XX countdown Auto and Motion Motion off N A Auto On or Off Table 13 Possible Outlet states When motion sensing is on the automatic control is based on the motion detector so the automated control based on reading the current and detecting stand by modes will be overridden if the motion sensor timer trips zero This is because the appliance should be turned off even when not in standby mode if the user has left the room for longer than the set time specified by the user The automated standby control will still be active if the user is in the room so it will still turn outlets off if the appliance goes into standby This is the same for the Master slave option If a Master turns off either by going into standby via the user or motion detection the slave outlets will turn off overriding the automated standby outlet control Furthermore a slave outlet can be programmed to be timed out if there is no one in the room at a different value than another outlet It can also turn itself off if entering standby mode while the Master is still on but if the Master turns off all slave outlets will turn off as well The hierarchy of automation Modes is outlined in the table below High Priority Master Motion Master On Off Master Auto On Off Low P
110. to tell whether a user has entered exited or stand in the room and turn off or on devices accordingly 4 Designs 4 1 Hardware 4 1 1 Microcontroller Based on our research we decided to go with the Atmega series AVR microcontrollers Below is a table of the most important factors that led us to this decision Feature MSP430 Atmega328 Clock Speed 0 25MHz 0 20MHz Touch Support eo Q Touch Library Programming support TI E2E community Spaces avrfreaks Programming Language Assembly C C Assembly C C 265mA Active 2mA Active Table 10 MSP430 vs ATmega328 The clock speed of the MSP430 is 25MHz which is more than the Atmega328 s maximum speed This would mean it would check the state of the outlet more times each second making the measurements more accurate and the response time of the relays slower Controlling the outlets faster also means we can monitor and control the power usage more accurately and attenuate the current drawn that much faster as well However Atmel s AVR microcontrollers are also well trusted and come with their own forum for projects and designers called AVRfreaks net as well as Atmel s new Spaces community With this the Atmega series has more programming support available online for their microcontroller software Although both microcontrollers are programmable in C there will be a lot of processes to control devices to interface and software to run so wed like to make programming as
111. tware needed readily accessible and the cloud space would make troubleshooting a breeze compared to surfing the internet hoping for a forum that already had your specific problem or creating our own hoping someone qualified sees it in time 3 2 9 Wireless Control The wireless control method that we found was most fitting for our project was the Bluetooth approach This option was best for the A U M Device because of design complexity The internet based approach would take a lot more coding interfacing and web design which is beyond the scope of our engineering skills so far in our careers as electrical engineering students The world wide web would be an excellent choice if we had a computer engineer in our project group but since we dont well have to go about designing our project in a different manner In light of this we looked at two different Bluetooth modules that would both be compatible with our circuit design thus far Bluetooth Mate Gold The first Bluetooth modem we looked at was the Bluetooth Mate Gold This is a basic Bluetooth modem using the RN 41 Bluetooth module This is a class 1 Bluetooth module that is well documented and readily accessible to use The class 1 module has more range than the class 2 module which is found in the Bluetooth Mate Silver The added range is good for our project because we want the wireless control to be able to reach beyond the walls of the house the A U M Device is in This modem comes with
112. un including the microcontroller current sensor the motion sensor and the LCD touch screen A rechargeable battery would be even more fitting so the user would not have to open up the high voltage power strip to replace the battery It could be charged by the wall outlet and essentially be a long lasting capacitor that supplies a constant DC value for the circuit 3 1 15 PCB One of the main requirements of this project was to create a printed circuit board with all the components housed and soldiered on it Designing the board would require schematic software There are many programs out there for this utility but it was EagleCad that was chosen for this project This program has many tutorial videos for beginners who are not familiar with the software which is the number one reason it was chosen against the other programs One of the neat features with Eaglecad is right after the design schematic is finished it opens up the second functionality allowing users to print The EagleCad software comes with schematic drawings of many electronic devices that engineers are still designing with today This is good for our project because we are using current technology to build our prototype which is almost always represented in the EagleCad schematic building software If the component we are using is not in the software however we can readily draw it in the schematic with the draw feature of the program 3 1 16 Touch Screen interface With the growi
113. uters parts and accessories computer parts and accessories guides computer energy costs page power 20usage aspx Thank you Dear Michael Thank you for your email Permission to reproduce the table is granted providing it is for educational purposes and includes the attribution Reproduced with permission from choice com au If you have any further queries do not hesitate to contact CHOICE on 1800 069 552 or 02 9577 3399 Regards Linda Magee Manager Awards amp Partnerships CHOICE A not for profit company limited by guarantee ACN 000 281 925 57 Carrington Rd Marrickville NSW 2204 p 02 9577 3399 f 02 9577 3355 ausconsumer choice com au Dude you don t need permission to use it in a design paper If you were publishing it in a book or another magazine article that would be different Just include a credit line saying where you got it That should be enough Good luck with your paper Lee Teschler From Michael Sawh mailto msriprashad gmail com Sent Monday December 03 2012 3 57 AMTo Teschler LelandSubject Permission for image use Hello my name is Micheal Sriprashad and 1m an eletrical engineering student at the university of central florida I would like to request premission to use the following pictures of the block diagram of passive infrared sensor for my Senior design paper located on http machinedesign com article sensor sense passive infrared motion sensors 07 10 Thank you Michael
114. vings in watts versus dollars 2 3 1 Objectives The A U M Device was aimed at being a device that would virtually pay for it self over time Its money saving potential shows it can save some users up to 500 a year in the average home if we can eliminate standby power By adding features such as the android application and the motion sensor we felt would give the A U M Device an edge on a normal house hold power surge The motion sensor helps with low maintenance allows the device to shut down if no user is present for a certain amount of time With the development of the android application we felt would make the device more user friendly and accessible to a broader range of users According to Theregister co uk the android platform controls about seventy five percent of the global smartphone market 2 3 2 Schedule To completely finish the A U M Device the project will take approximately four months but we hope to get and early jump on it and have all parts order by the last day of finals in the fall 2012 semester The project should then be finished and presentation ready in April 2013 2 3 3 Tasks Table 1 shown below shows all the hardware components for the A U M Device design and the group member responsible for it Bluetooth Benjamin Gruseck Microcontroller Benjamin Gruseck Gardy Lacombe Table 1 Hardware Components Table 2 shown below list the software components and the group member responsible for it Tasks Gr
115. wer The A U M Device pronounced Om or also known as the automated utility management device is similar to a power strip but carries an LCD touch screen display for user interaction This device will allow the user to regulate devices plugged in to be set on completely off or depending on surrounding devices For example say we have the Computer monitor and printer plugged in to the A U M Device The device can be set that when the computer enters sleep or standby mode all power will be cut from the surrounding devices therefore eliminating standby power This device also carries a Bluetooth technology which allows a user to link their android device via Bluetooth to the A U M Device This will allow the user to control the device up the 50 feet away Being able to turn devices on and off from anywhere in your home making the device easily accessible to the user that is out of reach of the A U M Device It also carries an infrared motion sensor located on the front of the A U M Device that will be used to detect primarily if a user has entered or exited the room This will allows for the A U M Device to power down all devices once a user has been gone for a period of time The A U M Device will also display the in the menu of the LCD an average monthly power cost for the devices connected to A U M Device and your average electricity bill With Similar devices to the A U M Device available we noticed that they did not behold many f
116. will be turned into an outlet for a device to plug in to VSK 1 Atmegais2z4p Power Supply Microcontroller TLOB4CN 120 Volt AC Operational Amplifier CSLT6B100 Solid State Relay Device plugged in the Current Sensor AUMD Figure 25 Overall Device Block Diagram 4 2 4 Microcontroller Pin Configuration The Atmega324p has 40 pins and is the dual in line version with the vertical leads The reason this version of the ship was selected was for ease of breadboard configuration and printed circuit board placement The majority of the pins will go unused PDIP PCINTAXCKOATO PEO C PCINTWCLKQVT1 PBI PCINTIOMNT2Z AIND PEZ C PCINT11 OCOAIAIN1 PBS O PCINTIZ OCOB SS PB4 O PCINTIZMOS PBS Op PCINT14 MISO PES CO PCINTIS SCK PBT C amp PAD ADCOPCINTO PAI ADCWPCINT1 PA ADC2IPCINT2 PAS ADCRPCINTS PAd ADCAIPCINTA PAS ADCSIPCINTS PAB ADCE PCINTE PAT ADCTIPCINT RESET CO amp AREF VEC C GND GND C 39 D ACC XTAL O 29 D PC TO8C2PCINT23 XTALI D 13 29 6 PCS TOSCIPCINT22 PCINT24 RXDO POO C PCS TOWPCINT241 PCINT2S TXDO PDI E PCa TOOMPCINT20 PCINT2 REZD1INTO PO E PCS TMS PCINT19 PCINT27 TXD1ANT1 POS E PC TCKIPCINT1a PCINT2 XCK1 OCIB PD4 O PC1 SDAPCINTIT PCINT20C1A POS O 1 PCO SCUPCINT16 PCINTSIOC2BNCP POS O 20 PO OC2A PCINT31 Figure 26 Pin Layout for the Atmega324p Permission Requested from Atmel Pin Number
117. would mean the increase in power saving and cost With more devices being regulated there is less chance for standby power to occur in the house hold Also with the growing amount of mobile phone owners every day we felt our device could definitely benefit from a having a couple universal serial bus ports for charging them Not only that but an OG app would also increase the number of compatible phones that can control the A U M Device making it more versatile so that it appeals to a larger variety of users A fuse protection system could help prevent many appliances from getting killed by a surge As previously mentioned before a website to monitor the device would tremendously improve the project This would allow users to have full control over the device practically anywhere in the world that has an internet connection The website would also serve as a way for users to keep up with the amount of power and cost of the A U M device per hour per month or per year all based on the digression of the user Having this feature would also allow users to look back at previous months to see what appliances were used and when Another feature we could add to our A U M Device would be Wi Fi capabilities which would enable the device to be able to connect to the internet by itself stand alone An internet browser that would also be very useful on our device this would enable the user to surf the internet all from the A U M device It would also be useful
118. y can handle The figure 4 below displays a shunt resistor that max current rating is 150 amps The setup process for this component is fairly simple It would be placed in the middle of the circuit just like a regular resistor The figure below shows the two nodes where the wire will connect to To calculate the current from this setup basic ohms law is required Each shunt resistor comes is essentially what the title says a resistor So each one of them carry their own resistance values One major reason it would be great to use the shunt resistors is the fact the component doesnt need outside power to operate This means less power loss because that makes it one less thing to power unlike all the other alternatives Figure 4 Shunt Resistor Permission Granted from digikey com Even though it requires no outside power There are many major drawbacks with using shunt resistors For starters the voltage that it would transmit to the microcontroller to read is way too high for them to handle and will certainly destroy the microcontroller There would definitely need to be a voltage divider if it was implemented in the circuit and that would complicate the circuit and introduce more noise and magnetic hysteresis Second they are relatively expensive when buying them in bulk Third they are essentially resistors and they will create noise and dissipate power at a certain rate which means they will definitely get hot When the temperature ch
Download Pdf Manuals
Related Search
Related Contents
食安発0910第2号 平成24年9月10日 各 検疫所長 殿 医薬食品局食品 GUIDE HORAIRES 2012/2013 Lenovo 9211 User's Manual 41087.0001 Copyright © All rights reserved.
Failed to retrieve file