Final Senior Design 2 Documentation

Total Page:16

File Type:pdf, Size:1020Kb

Final Senior Design 2 Documentation Watt You Pay For Group 10 Spring/Summer 2018 Adam Althar Charles Desowitz Anders Hauge Jonathan Killeen Table of Contents 1.0 Executive Summary .................................................................................... 1 2.0 Project Description ......................................................................................... 3 2.1 Project Motivation ........................................................................................ 4 2.2 Goals and Objectives .................................................................................. 4 2.3 Requirement Specifications ......................................................................... 5 2.3.1 Software Functional Requirements .......................................................... 7 2.3.2 Hardware Functional Requirements ...................................................... 8 2.4 Marketing and Engineering Requirements ................................................ 10 3.0 Research ...................................................................................................... 12 3.1 Student Projects ........................................................................................ 12 3.1.1 Watt’s the Matter ................................................................................. 12 3.1.2 S.H.A.P.E.R. ....................................................................................... 13 3.2 Existing Products....................................................................................... 15 3.2.1 TP-Link HS-200 Smart Switch ............................................................ 15 3.2.2 The Kill-A-Watt® PS-10 ...................................................................... 17 3.2.3 Nest Learning Thermostat ................................................................... 18 3.3 Power Monitoring ...................................................................................... 20 3.3.1 Current Sensing .................................................................................. 21 3.3.2 Voltage Sensing .................................................................................. 23 3.4 Analog to Digital Conversion ..................................................................... 24 3.4.1 ADC0804 ............................................................................................ 24 3.4.2 ATmega2560 Integrated ADC ............................................................. 25 3.5 Control Unit Data Transmission Methods .................................................. 26 3.5.1 RS-485 ................................................................................................ 26 3.5.2 Ethernet .............................................................................................. 26 3.5.3 Wi-Fi.................................................................................................... 27 3.6 Operating Systems .................................................................................... 27 3.6.1 Ubuntu Server ..................................................................................... 28 3.6.2 FreeBSD ............................................................................................. 28 3.6.3 Windows Server 2016 ......................................................................... 28 3.7 Power Transformation ............................................................................... 29 3.7.1 Tamura 3FD-320 Power transformer .................................................. 29 3.7.2 Wurth Electronics Midcom 7508110151 SMPS .................................. 29 i 3.7.3 Capacitive Power Supply .................................................................... 30 3.8 Database Management Systems .............................................................. 31 3.8.1 MySQL ................................................................................................ 31 3.8.2 Redis ................................................................................................... 32 3.8.3 Maria DB ............................................................................................. 32 3.9 Microcontrollers ......................................................................................... 32 3.9.1 Texas Instruments MSP430F6638 ...................................................... 33 3.9.2 Microchip ATmega5260 ...................................................................... 34 3.9.3 Parallax P8X32A-D40 ......................................................................... 35 3.10 Web Server Software .............................................................................. 36 3.10.1 NodeJS ............................................................................................. 36 3.10.2 Apache HTTP ................................................................................... 36 3.10.3 Nginx ................................................................................................. 37 3.11 Temperature Sensing .............................................................................. 37 3.11.1 DS18B20 1-Wire Digital Thermometer .............................................. 37 3.11.2 MCP9700A-E/TO Thermistor IC........................................................ 38 3.11.3 LMT86-Q1 Analog Temperature Sensor ........................................... 39 3.12 Displays ................................................................................................... 39 3.12.1 Crystalfontz CFAH1602B-TMI-JT...................................................... 39 3.12.2 Adafruit 0.96” mini Color OLED ......................................................... 40 3.13 PCB Design Software .............................................................................. 40 3.13.1 Altium ................................................................................................ 40 3.13.2 EAGLE CAD ..................................................................................... 41 3.13.3 KiCAD ............................................................................................... 41 3.14 Logic Level Shifter ................................................................................... 41 3.14.1 Voltage Divider .................................................................................. 42 3.14.2 TXB0108 8-Bit Bidirectional Voltage Translator ................................ 42 3.14.3 Bi-Directional Level Shifter ................................................................ 43 3.15 Operation Amplifier .................................................................................. 43 3.15.1 OPA2180-Q1 Operational Amplifier .................................................. 44 3.15.2 INA2128 Instrumentation Amplifier.................................................... 45 3.15.3 INA828 Instrumentation Amplifier...................................................... 45 3.16 Power Relay ............................................................................................ 45 3.16.1 RT1 Power PCB Mechanical Relay................................................... 46 ii 3.16.2 G3NA Solid State Relay .................................................................... 47 4.0 Strategic Components and Part Selection .................................................... 48 4.1 Current Sensor .......................................................................................... 48 4.2 Voltage Sensor .......................................................................................... 49 4.2.1 Final Voltage and Current Sensor ....................................................... 50 4.3 Analog to Digital Converter ....................................................................... 50 4.3.1 Analog to Digital Converter Key Component ....................................... 51 4.4 Microcontroller ........................................................................................... 52 4.5 Capacitive Power Supply .......................................................................... 53 4.5.1 Key Power Supply Components Selection .......................................... 53 4.5.2 Final Power Supply Selection ............................................................. 54 4.6 Digital Temperature Sensor ...................................................................... 54 4.7 PCB Software ............................................................................................ 55 4.8 Display ...................................................................................................... 56 4.9 Main Server Operating System ................................................................. 57 4.10 Main Server Web Server ......................................................................... 57 4.11 Main Server Database ............................................................................. 58 4.12 Control Unit Data Transmission Method .................................................. 59 4.13 Discrete Logic Level Shifter ..................................................................... 59 4.13.1 Key Discrete Logic Level Component Selection ............................... 60 4.14 Operational Amplifier ............................................................................... 61 4.15 Power Relay ............................................................................................ 62 4.15.1 Final Power Relay ............................................................................. 63 5.0 Related Standards
Recommended publications
  • Low-Cost STM8 / STM32 Power Supply from Mains
    AN5058 Application note Low-cost STM8 / STM32 power supply from mains Introduction In most non-battery applications, power is supplied to the microcontroller (MCU) using a step-down transformer, the output of which is rectified, filtered and regulated. However, in many smaller low-cost applications, the cost of the transformer becomes the key factor in the system. Under these circumstances, the use of a step-down transformer is generally avoided in order to reduce the cost and size of the system. The power supply is instead a simple one-way rectifier with very few components. The output voltage is regulated by a zener diode. Despite its simplicity and low cost, it can still deliver enough current to power a microcontroller and application circuits. This application presents the basic principles of various power supply circuits for home appliance applications. March 2018 AN5058 Rev 1 1/9 www.st.com 1 Basic circuits AN5058 1 Basic circuits 1.1 Transformer power supply Figure 1. Transformer power supply diagram 7 1 /'[[ 9&& 8 1 / ,1 287 / *1' & & & & Q) )9 Q) )9 06Y9 Figure 1 shows how to obtain a 5 V or 3.3 V DC voltage from the AC power line. In this circuit, the AC voltage is stepped down on the transformer’s secondary winding. A rectifier bridge with 4 diodes converts the alternating AC voltage to a continuous DC voltage supply. A filter capacitor is added after the rectifier bridge to decrease the DC voltage ripple. The LD1085 triple-terminal voltage regulator provides a very stable output and high current.
    [Show full text]
  • A Single-Phase Energy Meter with Capacitive Power Supply and Shunts
    Freescale Semiconductor Document Number: AN4164 Application Note Rev. 0, 07/2010 A Single-Phase Energy Meter with Capacitive Power Supply and Shunts by: Neeraj Mangla Microcontroller Solutions Group Noida India 1 Introduction Contents 1 Introduction...........................................................1 The MC9S08GW64 is a low-power MCU suitable for a single-phase energy metering application. It is capable of running 2 Energy meter power supply...................................1 on a capacitive power supply. A shunt can be used for the 2.1 Capacitive power supply...............................2 current-sensing element. This use of a capacitive power supply 3 Current requirements.............................................3 and a shunt for current sensing make the MC9S08GW64 suitable 3.1 Software for different clock for a very low-cost bill of material (BOM) energy meter. configuration.................................................3 The first half of this application note describes the use of the 4 ADC connection with voltage and current............4 capacitive supply for a single-phase energy metering application. 5 Voltage sensing circuit..........................................4 A detailed analysis of the power requirements of the MC9S08GW64 is included. Sample software application code 6 Current-sensing circuit..........................................5 has also been provided, to be directly used in an application. The 6.1 Using a shunt for current sensing..................5 second half of this document describes how to connect the 6.2 Using a current transformer for current voltage and current sensing circuit to the MC9S08GW64. sensing...........................................................5 Schematics for the voltage sensing circuit and the current sensing 7 Voltage level shifter circuit....................................6 circuit have also been provided. 2 Energy meter power supply An MC9S08GW64-based energy meter requires a 2.1–3.3 V DC power supply to perform its operation.
    [Show full text]
  • PM2005FPD Sames
    Evaluation Board for the SA2005F Energy Metering IC PM2005FPD sames FEATURES + Designed to be used as a fully functional Watt-Hour meter. + On-board current transformers + Better than Class 1 operation + Can be used with external micro controller for calibration + On-board power supply and different pulse rates + 3 Phase 4 Wire configuration DESCRIPTION The SA2005F IC is an enhancement of the SA9105F. The PM2005FPD evaluation board provides energy data via current transformers measure the current in each phase. A an isolated pulse output for three-phase four-wire applications simple capacitive power supply supplies the energy metering using the SA2005F. The mains voltages easily connect to the IC with power. The LM431 regulators are used to generate 5V module by way of a Molex connector (SK1). The 3 on-board supply voltage for the IC on the board. SK1 VDD VDD VSS OPTO GND Power Supply GND Module Setup VSS Jumpers SA2005F 12 CT1 Resistor Network 13 FOUT CT2 Resistor Network CT3 Resistor Network Figure 1: Block diagram SPEC-0889 (REV.2) 1/12 PRELIMINARY 01-10-02 PM2005FPD sames SETTING UP THE PM2005F MODULE JUMPER DESCRIPTION Power Supply Jumpers Module Setup Jumpers The power supply jumpers are used to disconnect the on- The following jumpers (J8 and J9) are used to switch between board power supply, allowing the metering section of the circuit the different dividing ratios. to be powered from an external power supply if required. Frequency at Rated Mode PGM1 PGM0 Conditions Jumper Description 0 VSS VSS 64Hz J4 Connects VDD to the metering circuitry. 1 VSS VDD 64Hz J5 Connects VSS to the metering circuitry.
    [Show full text]
  • Comparative Analysis of Transformer and Transformer Less-Based Variable DC Power Supply
    International Journal of Modern Engineering Research (IJMER) www.ijmer.com Vol.3, Issue.1, Jan-Feb. 2013 pp-551-563 ISSN: 2249-6645 Comparative Analysis of Transformer and Transformer Less-Based Variable DC Power Supply B.O.Omijeh, 1 N.Onyekachukwu, 2 P.O. Nwachukwu3 1, 2, 3Electrical and Electronics Engineering Department, university of Port Harcourt, River State Abstract: Electronics circuitry needs DC power source of a specific value to work effectively. This paper considers the design and evaluation of transformer-based and transformer less-based variable regulated DC power supply with the aim of presenting a comparative analysis between them; and their respective areas of applications. The quality, cost, size, weight, performance and efficient production of DC power supply thus pose a great deal of concern and attention in the DC power production of any electronic device. The design methodology used in this work involves Software design for component selection, improved hardware design, computer simulation and evaluation of transformation, rectification, filtration and regulation stages for both transformer-based and transformer less -based adjustable DC power supply with graphical outputs. The results obtained after following the design specification was very satisfactory. The transformer-based has a robust output current and well isolated from the supply voltage, which makes it more suitable for high current application, highly reliable for powering electronics devices while the transformer less based DC source has smaller size,
    [Show full text]
  • (12) United States Patent (10) Patent No.: US 8,698,406 B2 Radermacher (45) Date of Patent: Apr
    USOO8698406B2 (12) United States Patent (10) Patent No.: US 8,698,406 B2 Radermacher (45) Date of Patent: Apr. 15, 2014 (54) ADAPTIVE CIRCUIT (56) References Cited (75) Inventor: Harald Radermacher, Aachen (DE) U.S. PATENT DOCUMENTS (73) Assignee: Koninklijke Philips N.V., Eindhoven 4,801,887 A 1/1989 Wegener (NL) 5,828,562 A 10, 1998 Rivet 2008/O197786 A1 8, 2008 Schaible et al. 2010/0201285 A1 8, 2010 Dellian et al. ..... ... 315,294 (*) Notice: Subject to any disclaimer, the term of this 2013/0278157 A1* 10/2013 Radermacher ..... 315, 186 patent is extended or adjusted under 35 U.S.C. 154(b) by 0 days. FOREIGN PATENT DOCUMENTS (21) Appl. No.: 13/695,803 EP O72O237 A1 T 1996 JP 57097361 A 6, 1982 (22)22) PCT Fled:1. Mavay 5,S. 2011 * cited by examiner (86). PCT No.: PCT/B2011/051992 Primary Examiner — Anh Tran S371 (c)(1), (74) Attorney, Agent, or Firm — Mark L. Beloborodov (2), (4) Date: Nov. 2. 2012 (57) ABSTRACT (87) PCT Pub. No.: WO2011/141856 The invention describes an adaptive circuit (1,1) for driving a lower-voltage DC load (2) from a rectified higher-voltage PCT Pub. Date: Nov. 17, 2011 AC supply (3), which adaptive circuit (1, 1') comprises a O O charge-storage circuit (21, 21'), which charge storage circuit (65) Prior Publication Data (21, 21') comprises a first capacitor (C1) and a second capaci US 2013/OO49618 A1 Feb. 28, 2013 tor (C2) connected essentially in series, wherein the second capacitor (C2) is connected at least in parallel with the load (30) Foreign Application Priority Data (2); and an active switch (22, 22") realized as a controlled current source (22, 22") for controlling a load current (I) May 14, 2010 (CN) .........................
    [Show full text]
  • Electronics in Motion and Conversion December 2015 O-F.De COMPARISONS Are Always Interesting!
    ISSN: 1863-5598 ZKZ 64717 12-15 Electronics in Motion and Conversion December 2015 o-f.de COMPARISONS are always interesting! VARIS™ – the modular inverter system Thanks to its modular and flexible design, VARIS™ offers compelling benefits. The desired power can be easily achieved via parallel connection of the modules. You are also free to choose your preferred cooling type. And the use of standard components makes VARIS™ both cost-efficient and sustainable. Talk to the House of Competence, because VARIS™ fears no comparison. Even with your current inverter systems, right? ● IGBT classes: 1200V or 1700V, up to 1400A ● Parallel connection ● Air- or water-cooling engineered by ● Compatible rectifier VARIS™ R ● Compact and powerful with VARIS™ XT Welcome to the House of Competence. GvA Leistungselektronik GmbH | Boehringer Straße 10 - 12 | D-68307 Mannheim Phone +49 (0) 621/7 89 92-0 | www.gva-leistungselektronik.de | [email protected] NEW! The next generation AC/DC 10-310 W Desktop Adapter: 100-240 VAC Input of AC/DC Meets CEC VI Level CONTENT NEW! Desktop Adapter! AC/DC 10-36 W Wall Mount Adapter: 100-240 VAC Input Interchangeable Plug Meets CEC VI Level news.mevpower.com [email protected] Read online and search for key subjects from all articles in Bodo’s Diodes and Rectifiers ............................................................... 34-37 Power Systems by going to Powerguru: www.powerguru.org Advantages of the 1200 V SiC Schottky Diode with MPS Design By Omar Harmon, Thomas Basler and Fanny Björk, Infineon Technologies AG Viewpoint .......................................................................................... 4 Design und Simulation ............................................................ 38-40 Santa is coming for Peace Incorporating Magnetic Saturation of a PMSM for Drive Systems Modeling in PLECS Events ..............................................................................................
    [Show full text]
  • AVS Kit Guidelines
    AN390 Application note AVS kit guidelines Introduction The AC line voltage around the world varies widely. Power supply designers may overcome this problem by using a doubler / bridge switch to double the 120 V nominal AC line voltage, in case the application is plugged on 120 V AC mains. In case of operation on the 230 V AC line voltage, the doubler switch is non-active. Thus, the input voltage of the application power supply after the rectifier bridge is always close to the peak line voltage of 230 V AC line whatever is the real line voltage. The AVS kit is used to regulate the input voltage of power supplies which are mainly switched mode power supplies (SMPS). AVS kit still allows EMC standard compliance (inrush current limitation, conducted noise, noise immunity) as soon as a proper circuit is designed. AVS8, AVS10 and AVS12 are automatic AC line voltage selectors used in full range switch mode power supply (SMPS). These automatic line voltage selectors are made of two devices, an integrated circuit (IC) and a customized Triac. The Triac automatically modifies the structure of the input diode bridge to keep the same DC voltage range thanks to the IC control. The purpose of this document is to describe the AVS kit features and explain how to adapt the power supply to various nominal line voltages. This document also provides technical recommendations in terms of how to implement the AVS kit in the application. January 2017 DocID3572 Rev 6 1/17 www.st.com Doubler / bridge circuit principle AN390 1 Doubler / bridge circuit principle AC line voltages over the world can be divided mainly into two categories: 100-120 V nominal rms voltage, 50 Hz and/or 60 Hz systems (for example for Japan or USA).
    [Show full text]
  • Low-Cost Power Supply for Home Appliances
    AN1476 APPLICATION NOTE LOW-COST POWER SUPPLY FOR HOME APPLIANCES INTRODUCTION In most non-battery applications, the power to the microcontroller is supplied by using a step- down transformer, which is then rectified, filtered and regulated. However, in many smaller low-cost applications, the cost of the transformer becomes the key factor in the system. Under these circumstances, the step-down transformer is normally not used in order to reduce the cost as well as the size. The power supply is a simple one-way rectifier with very few compo- nents. The output voltage is regulated by using a 5.6V zener diode. Despite its simplicity and low cost, it is still able to deliver enough current to the microcontroller and application circuits. The purpose of this application note is to present the basic principle and cost analysis of the various power supply circuits for home appliance applications. AN1476/0904 1/8 1 LOW-COST POWER SUPPLY FOR HOME APPLIANCES 1 BASIC CIRCUITS 1.1 TRANSFORMER POWER SUPPLY Figure 1. Transformer Power Supply Diagram T1 1N4003*4 N 1 3 U2 VCC 78L05 4 2 IN OUT L 2 4 C1 GND C2 C3 C4 3 100nF 470uF/35V 10nF 100uF/16V Figure 1. describes how to obtain a 5V DC voltage from the AC power line. In this circuit, the AC voltage drops down on the transformer’s secondary winding. A rectifier bridge with 4 di- odes is used to convert the alternating AC voltage to a continuous DC voltage supply. A filter capacitor is added after the rectifier bridge in order to decrease the DC voltage ripple.
    [Show full text]