User's Guide SLAU362A – July 2011 – Revised January 2014 TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings 1 • • • • • • Features 2 Fully Functional Smart Plug Tool Allows Quick and Efficient Development Measurements Performed and Displayed – Incoming AC Voltage, Current, and Frequency – Active Power, Reactive Power, Apparent Power, and Power Factor – Energy Consumption in kWh Uses MSP430AFE253IPWR Interface to Communication Modules – RS232 – ZigBee – Sub-1GHz 802.15.4 or Proprietary – Wireless M-Bus Simple Push Buttons for Adjusting LCD Display and Time Settings Schematics and Software Are Included General Description TI's Energy Watchdog is a tool that enables system designers to quickly develop their own smart plug or sub-meter designs. It is a fully functional smart plug that is accompanied by hardware, software, and reference schematics. 3 Main Components The appliance whose power consumption is to be measured is plugged into the female receptacle on the Energy Watchdog. The electrical cord with the male plug connects to the wall outlet. The LCD displays time, date, and electricity parameters. There are four keys from the left to right labeled as 1, 2, 3, and 4. At power up, the time is displayed on the LCD, and the LCD backlight is off. The Energy Watchdog starts in Mode 0 (see Table 1 for details). Plug for Wall Outlet (AC Mains) LCD Display Indicator LED Control Keys Applicance Plugs In Here Figure 1. MSP430 Energy Watchdog Tool SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings Copyright © 2011–2014, Texas Instruments Incorporated 1 Main Components www.ti.com The Energy Watchdog has three modes of operation: Mode 0, Mode1, and Mode 2. Table 1 shows the details of each mode. Table 1. Mode of Operation Mode 0 - Default Mode After Power Up Key Pressed Action 1 2 3 4 Toggle between time and date display Go to electricity parameters display Go to adjust date and time menu Toggle backlight on and off 0 2 1 0 2 3 4 Adjust digits Go to next digits Go to next group (time→date) or cancel adjust Time or date adjust confirmation 1 1 1 0 Mode After Key Press Mode 1 - Time and Date Adjust Mode Key Pressed 1 Action Mode After Key Press Mode 2 - Electricity Parameters Display Mode Key Pressed Action 1 2 3 4 Switch among electricity parameters (1) Display time or date None Toggle backlight on and off 2 0 2 0 Mode After Key Press (1) Electricity parameters are displayed in this order: 1. 2. 3. 4. 5. 6. 7. 8. Voltage (V) Current (A) Frequency (Hz) Active Power (W) Reactive Power (Var) Apparent Power (VA) Power Factor (cos(p)) Energy Consumption (kWh) CAUTION Do not exceed maximum ratings as shown on the label that is on the bottom of the MSP430 Energy Watchdog Tool. 2 TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback Copyright © 2011–2014, Texas Instruments Incorporated Using the Energy Watchdog as a Development Tool www.ti.com 4 Using the Energy Watchdog as a Development Tool 4.1 Functions • • • • 4.2 Measurement: The Energy Watchdog measures the values of voltage, current, frequency, active power, reactive power, apparent power, power factor, and energy consumption (in kWh). The Energy Watchdog can measure up to 9999 kWh, after which the data is cleared to zero. LCD Display: Displays the voltage, current, frequency, active power, reactive power, apparent power, power factor, and energy consumption (in kWh). It also displays the date and time. Real-Time Clock (RTC): The RTC function can be optionally populated by users. The battery (P/N: LSG14250) on LSG1 location of the PCB can be soldered to supply power to the RTC. Functional Commands: Users can read electrical parameters using functional commands through the RF1, RF2, and UART interfaces. Electrical Parameters • • EMC: – Contacted ESD Test: 10 kV – EFT/B Test (EFT): 4 kV Accuracy class: Class1 NOTE: The Energy Watchdog is designed to achieve Class 1 accuracy. However, as the Energy Watchdog is not calibrated in production, Class 1 accuracy cannot be ensured out of the box. • • • Incoming frequency: 50 Hz to 60 Hz Incoming voltage: 110 V to 240 V Incoming current: 10 A Maximum CAUTION Operation at 10 A for extended periods of time is not recommended. • Power Consumption: ≤1 W Table 2. Electrical Parameters Parameter Value Wire connection Voltage Signal input Current Frequency Single phase direct connection Reference voltage 220 V or 110 V Operation range 0.7 Un to 1.2 Un Basic current 5A Maximum current 10 A 40 Hz to 60 Hz Power AC or DC 80 V to 270 V <1 VA Indicator LED Blinking Characteristics Blink once for every 1/1600 kWh of energy consumed Pulse duration: 80 ms ± 20% Communication UART interface (physical layer is isolated) Communication rate: 2400 bps (RS232) Data check mode: N81 Measurement class Frequency: ± 0.1 Hz Active power: Class 1 Display mode LCD Environment Operation temperature range: -10°C to 55°C Storage temperature range: -20°C to 75°C SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings Copyright © 2011–2014, Texas Instruments Incorporated 3 MSP430 Energy Watchdog Components 5 www.ti.com MSP430 Energy Watchdog Components Plug for Wall Outlet (AC Mains) LCD Display Indicator LED Control Keys Applicance Plugs In Here Figure 2. MSP430 Energy Watchdog Tool (Top View) 5.1 Main Components on Top Side of MSP430 Energy Watchdog For a description of the main components of the Energy Watchdog, refer to Section 3. 5.2 AAA Battery Box Put two (2) AAA batteries in the battery box on the bottom of the Energy Watchdog (refer to Figure 3) to supply power to externally connected RF modules. These batteries are required only if external RF modules are connected to the Energy Watchdog. Figure 3. MSP430 Energy Watchdog Tool (Bottom View) 4 TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback Copyright © 2011–2014, Texas Instruments Incorporated MSP430 Energy Watchdog Components www.ti.com 5.3 Interface Ports Figure 4 shows the interface ports on the Energy Watchdog Tool. Figure 4. Interface Ports on the MSP430 Energy Watchdog Tool • SBW: This interface can be used to connect tools to program and debug the MSP430AFE253 that is inside the Energy Watchdog. CAUTION The SBW interface is not isolated internally. External isolation must be added before connecting an emulation or debug tool to this interface. Failure to follow these instructions could damage the PC. • • • UART: The UART interface can be used to access registers on the MSP430AFE253. This can be used to calibrate the Energy Watchdog or to communicate data to a remote location using RF. RF1: The RF1 interface can be connected to TI's RF modules with a 6-pin 1.27-mm pitch B-TO-B connector. RF modules are powered by the two AAA batteries inserted in the battery box. RF2: The RF2 interface can be connected to TI's RF modules with an 8-pin 2.0-mm pitch B-TO-B connector. RF modules are powered by the two AAA batteries inserted in the battery box. NOTE: The UART communication between the MSP430 Energy Watchdog and the RF modules is at 2400 bps. All three interfaces (UART, RF1, and RF2) are isolated. SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings Copyright © 2011–2014, Texas Instruments Incorporated 5 MSP430 Energy Watchdog Components www.ti.com Figure 5 shows the pins used by the interface connections. Figure 5. Detailed Pin Listing of the Energy Watchdog Interface Ports 6 TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback Copyright © 2011–2014, Texas Instruments Incorporated UART Communication Commands www.ti.com 6 UART Communication Commands Table 3 shows the commands that can be used for the RF1, RF2, and UART interfaces. Table 3. Communication Commands Read calibration registers HOST_CMD_GET_METER_I1RMS_OFFSET 0x40 HOST_CMD_GET_METER_I1RMS_GAIN 0x42 HOST_CMD_GET_METER_P1_GAIN 0x44 HOST_CMD_GET_METER_P1_PHASE 0x46 HOST_CMD_GET_METER_P1_OFFSET 0x48 HOST_CMD_GET_METER_Q1_OFFSET 0x4A HOST_CMD_GET_METER_VRMS_GAIN 0x4C //V5 HOST_CMD_GET_READINGS_VDC 0x4D HOST_CMD_GET_READINGS_I1DC 0x4E Read meter registers HOST_CMD_GET_READINGS_P1 0x60 HOST_CMD_GET_READINGS_Q1 0x62 HOST_CMD_GET_READINGS_S1 0x64 HOST_CMD_GET_READINGS_VRMS 0x66 HOST_CMD_GET_READINGS_FREG 0x67 HOST_CMD_GET_READINGS_I1RMS 0x68 HOST_CMD_GET_READINGS_PF1 0x6A HOST_CMD_GET_READINGS_ACTENERGY1 0x6C HOST_CMD_GET_READINGS_REACTENERGY1 0x6D //V5 HOST_CMD_GET_READINGS_NEGTIVE_ACTENERGY1 0x6E HOST_CMD_GET_READINGS_NEGTIVE_REACTENERGY1 0x6F HOST_CMD_GET_READINGS_VWFS 0x70 HOST_CMD_GET_READINGS_I1WFS 0x71 Read configuration registers HOST_CMD_GET_METER_SYSCONF 0x74 HOST_CMD_GET_METER_CSGCONF 0x75 HOST_CMD_GET_METER_POWER_CONST 0x76 HOST_CMD_GET_METER_START_CURRENT 0x77 HOST_CMD_GET_READINGS_IE 0x78 HOST_CMD_GET_READINGS_IFG 0x79 HOST_CMD_GET_READINGS_STATUS 0x7A HOST_CMD_GET_READINGS_CHECKSUM1 0x7B HOST_CMD_GET_READINGS_WREN 0x7C HOST_CMD_GET_READINGS_METER_STATUS 0x7D HOST_CMD_GET_READINGS_RXBUF 0x7E HOST_CMD_GET_READINGS_TXBUF 0x7F Write calibration registers HOST_CMD_SET_METER_I1RMS_OFFSET 0x80 HOST_CMD_SET_METER_I1RMS_GAIN 0x82 HOST_CMD_SET_METER_P1_GAIN 0x84 HOST_CMD_SET_METER_P1_PHASE 0x86 HOST_CMD_SET_METER_P1_OFFSET 0x88 SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings Copyright © 2011–2014, Texas Instruments Incorporated 7 UART Communication Commands www.ti.com Table 3. Communication Commands (continued) HOST_CMD_SET_METER_Q1_OFFSET 0x8A HOST_CMD_SET_METER_VRMS_GAIN 0x8C //V5 HOST_CMD_SET_READINGS_VDC 0x8D HOST_CMD_SET_READINGS_I1DC 0x8E Write configuration register 8 HOST_CMD_SET_METER_SYSCONF 0xB4 HOST_CMD_SET_METER_CSGCONF 0xB5 HOST_CMD_SET_METER_POWER_CONST 0xB6 HOST_CMD_SET_METER_START_CURRENT 0xB7 HOST_CMD_SET_IE 0xB8 HOST_CMD_SET_WREN 0xBC HOST_CMD_SET_SRST 0xBD TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback Copyright © 2011–2014, Texas Instruments Incorporated Schematics www.ti.com 7 Schematics D DVCC DVCC R1 UTX U2 1 2K 2 3 DVCC URX R3 A C K PS2501 E U1 E K C A 4 2K C R8 1 A 470R 2 R7 470R R4 R6 47K 1 SBWTDIO 2 SBWTCK 3 4 RS232-RX RS232-TX U4 RS232-VSS 2 1 2 3 4 5 6 C3 VREF 7 KEY+ 8 104 KEY9 SBWTCK 10 SBWTDIO 11 CHK-PWR 12 C2 104 I+ IV+ VAVCC RS232-PWR 2K PS2501 DVCC 2K 3 1 U3 A C K E 4 PULSE+ 3 PULSE- A0.0+ P2.0/STE0/TA0/TDI/TCLK A0.0P1.7/UCLK0/TA1/TDO/TDI A1.0+ P1.6/SOMI0/TA2/TCK A1.0P1.5/SIMO0/SVSOUT/TMS AVCC P1.4/URXD0/SD2DO AVSS P1.3/UTXD0/SD1DO VREF P1.2/TA0/SD0DO A2.0+ P1.1/TA1/SDCLK A2.0DVCC TEST/SBWTCK 2.7/XT2OUT RST/NMI/SBWTDIO P2.6/XT2IN P1.0/SVSIN/TACLK/SMCLK/TA2 DVSS 24 23 22 21 20 19 18 17 16 15 14 13 PULSE URX UTX LIGHT K A (RED ) XS2 PULSE DVCC C XT1 XS3 1 2 3 4 4.194304MHz C6 C5 DVCC 12P RS232 R9 5.1K R10 5.1K RS232-TX RS232-RX RS232-VSS RS232-PWR 3 D1 K C8 68pf 8 7 6 5 4 3 2 1 E B SDA C7 68pf 1 2 3 4 5 6 C SCL Q1 S8050 2 1K AFE-SBW PULSE+1 PULSE- 2 MSP430AFE2X3IPW MSP430AFE2X3IPW PS2501 XS1 C1 1.0nF SCL SDA 12P PULSE R11 1 D RS232-PWR R2 4 B XS4 RF-INTERFACE2 AVCC R16 200K R21 R22 R23 R24 5.6K 6.2K 6.8K 6.8K KEY+ K3 K1 7.5K K4 R26 0R SW-PB1 SW-PB1 K2 A R25 SW-PB1 XS5 RF-INTERFACE1 !"#$: EFGHIJKJL !"-.: LSDIS02RS30S /01.: 10179 %&: CL 23.: V1.00 %&67: 20110126 =>?-: => 89: 8967: 45-.: A4 '()*: +,)*: 4 ; <__2; :__ KEY- @ABC SW-PB1 B A 1 Q1@A PNP ---> NPN @AD: 67: 2 @ARS232MNOKP 3 R2 R3QR@AS470R @AD: 67: @AD: 67: Figure 6. Schematics, 1 of 3 SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings Copyright © 2011–2014, Texas Instruments Incorporated 9 Schematics www.ti.com 1 2 4 3 U5 D SEG21 SEG32 SEG43 SEG54 SEG65 SEG76 SEG87 SEG98 SEG10 9 SEG11 10 SEG12 11 SEG13 12 SEG14 13 SEG15 14 SEG16 15 SEG17 16 DVCC R17 200K R18 200K R19 200K R20 200K R27 1K C4 104 DVCC COM3 COM2 COM1 COM0 Q2 S8550 1 SEG18 100R R12 CON1 V+ C28 220pf C32 15nf 1K R14 C30 220pf V- 1K L-OUTPUT 1 CON1 POWER L-INPUT P3 R13 1 CON1 1K M1 LCD_PIN23 65 NULL1 66 NULL2 C34 68PF S18 S17 S16 S15 S14 S13 S12 S11 S10 S9 S8 S7 C29 220pf KY-6098 R32 RZ 1 2 3 4 5 6 7 CON1 N-INPUT I- 1K SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 COM023 COM122 COM221 COM320 C31 220pf R15 1 B C9 C10 C11 C12 C13 C14 C15 C16 C17 C18 68pf 68pf 68pf 68pf 68pf 68pf 68pf 68pf 68pf 68pf SEG18SEG17SEG16SEG15SEG14SEG13SEG12SEG11SEG10SEG9 COM0COM1COM2COM3 SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 C43 C44 C45 C46 68pf 68pf 68pf 68pf C33 15nf S0 S1 S2 S3 S4 S5 S6 LCD-A LCD-K P4 B I+ N-OUTPUT 3 R31 130R 24 25 CM1 CM2 CM3 CM4 LIGHT R29 P2 19 18 17 16 15 14 13 12 11 10 9 8 C B R5 2K R28 180K P1 SEG18 SEG17 SEG16 SEG15 SEG14 SEG13 SEG12 SEG11 SEG10 SEG9 SEG8 SEG7 1 D SEG1 SEG0 SDA SCL C E R30 100K 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 2 C SEG 2 SEG 1 SEG 3 SEG 0 SEG 4 SDA SEG 5 SCL SEG 6 OSCIN SEG 7 TEST2 SEG 8 TEST1 SEG 9 VSS SEG 10 VDD SEG 11 VLCD SEG 12 COM3 SEG 13 COM2 SEG 14 COM1 SEG 15 COM0 SEG 16 SEG 19 SEG 17 SEG 18 BU9796FS C19 C20 C21 C22 C23 C24 C25 C26 C27 68pf 68pf 68pf 68pf 68pf 68pf 68pf 68pf 68pf !"#$: EFGHIJKJL !"-.: LSDIS02RS30S /01.: 10179 %&: CL 23.: V1.00 %&67: 20110315 =>?-: => 89: 8967: 45-.: A4 '()*: +,)*: 4 ; <__3; :__ @ABC A 1 2 A 1 @AD: 67: 2 @AD: 67: 3 @AD: 3 67: 4 Figure 7. Schematics, 2 of 3 10 TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings Copyright © 2011–2014, Texas Instruments Incorporated SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback Schematics www.ti.com 1 2 4 3 D 3 EN C36 + ECQU2A105KL D3 D4 104 IN4739 IN4739 R34 TPS77001DBVT VIN VOUT VOUT 5 BYP IN4007 U6 R38 300K + 4 1M C35 GND VIN 1 D2 R33 2 SPMZB-12S15RH265 D C40 R37 150K 1000uF/25V C37 104 C41 47uF/16V POWER C C R36 14D681 VIN DVCC VOUT RS232-PWR BAT1 BAT R35 100K D5 2 CHK-PWR 1 A K 10R 3AVCC C38 A LSG1 BAT54C BATTERY R40 20K AVCC R39 104 C39 104 C42 10uF RS232-VSS B B !"#$: EFGHIJKJL !"-.: LSDIS02RS30S /01.: 10179 %&: CL 23.: V1.00 %&67: 20110315 =>?-: => 89: 8967: 45-.: A4 '()*: +,)*: 4 ; <__4; :__ @ABC A 1 2 67: 20110315 2 @AD: 67: 3 @AD: 3 MNRFKO A @AD: CL 1 67: 4 Figure 8. Schematics, 3 of 3 SLAU362A – July 2011 – Revised January 2014 Submit Documentation Feedback TIDM-ENERGY-WATCHDOG Single-Phase Electricity Sub‑Meter for Smart Buildings Copyright © 2011–2014, Texas Instruments Incorporated 11 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All semiconductor products (also referred to herein as “components”) are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TI’s terms and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily performed. TI assumes no liability for applications assistance or the design of Buyers’ products. Buyers are responsible for their products and applications using TI components. To minimize the risks associated with Buyers’ products and applications, Buyers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right relating to any combination, machine, or process in which TI components or services are used. Information published by TI regarding third-party products or services does not constitute a license to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of significant portions of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additional restrictions. Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use of any TI components in safety-critical applications. In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TI’s goal is to help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and requirements. Nonetheless, such components are subject to these terms. No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties have executed a special agreement specifically governing such use. Only those TI components which TI has specifically designated as military grade or “enhanced plastic” are designed and intended for use in military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and regulatory requirements in connection with such use. TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of non-designated products, TI will not be responsible for any failure to meet ISO/TS16949. Products Applications Audio www.ti.com/audio Automotive and Transportation www.ti.com/automotive Amplifiers amplifier.ti.com Communications and Telecom www.ti.com/communications Data Converters dataconverter.ti.com Computers and Peripherals www.ti.com/computers DLP® Products www.dlp.com Consumer Electronics www.ti.com/consumer-apps DSP dsp.ti.com Energy and Lighting www.ti.com/energy Clocks and Timers www.ti.com/clocks Industrial www.ti.com/industrial Interface interface.ti.com Medical www.ti.com/medical Logic logic.ti.com Security www.ti.com/security Power Mgmt power.ti.com Space, Avionics and Defense www.ti.com/space-avionics-defense Microcontrollers microcontroller.ti.com Video and Imaging www.ti.com/video RFID www.ti-rfid.com OMAP Applications Processors www.ti.com/omap TI E2E Community e2e.ti.com Wireless Connectivity www.ti.com/wirelessconnectivity Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright © 2014, Texas Instruments Incorporated