EV-ADE9153ASHIELDZ User Guide UG-1253 One Technology Way * P.O. Box 9106 * Norwood, MA 02062-9106, U.S.A. * Tel: 781.329.4700 * Fax: 781.461.3113 * www.analog.com ADE9153A Energy Measurement Shield with mSure Autocalibration FEATURES GENERAL DESCRIPTION Arduino-compatible, single-phase energy measurement shield with the ADE9153A Onboard shunt for line current measurement Nominal current: 5 A Maximum current: 10 A Up to 240 V rms nominal line neutral voltage measurement Arduino software library mSure autocalibration and example application sketches The EV-ADE9153ASHIELDZ is an Arduino shield compatible with Arduino Uno, Arduino Zero, or ESP8266. The shield has an on-board shunt resistor for line current measurement and enables quick evaluation and prototyping of energy measurement systems that use the ADE9153A. Arduino library and application examples are provided on the ADE9153A product page to simplify implementation of larger systems. Using mSure(R) autocalibration, the shield can be calibrated to measure energy with 1% accuracy over the dynamic range without the need for expensive calibration equipment. ADDITIONAL EQUIPMENT NEEDED Arduino Uno, Arduino Zero, or equivalent Voltage quick connect leads USB micro cable 0.250 inch quick connect female connector DOCUMENTS ADE9153A data sheet ADE9153A Technical Reference Manual HAZARDOUS HIGH VOLTAGE CAUTION The equipment described in this user guide is connected to hazardous line voltages. Use proper caution when connecting the sensors and voltage leads. Ensure that the system is enclosed in a protective casing. SOFTWARE Arduino IDE 1.8.4 or later ADE9153A library files PLEASE SEE THE LAST PAGE FOR AN IMPORTANT WARNING AND LEGAL TERMS AND CONDITIONS. Rev. 0 | Page 1 of 8 UG-1253 EV-ADE9153ASHIELDZ User Guide TABLE OF CONTENTS Features .............................................................................................. 1 ESP8266 WiFi System on Chip (SOC) .......................................4 Additional Equipment Needed ....................................................... 1 Current Sensors .............................................................................4 Documents ........................................................................................ 1 Voltage Sensors ..............................................................................4 Software ............................................................................................. 1 Libraries ..............................................................................................5 General Description ......................................................................... 1 Installing the Libraries ..................................................................5 Hazardous High Voltage Caution ................................................... 1 ADE9153A Arduino Library .......................................................5 Revision History ............................................................................... 2 Line Voltage Connections ................................................................6 Conection Diagram .......................................................................... 3 Hazardous High Voltage...............................................................6 Module Hardware ............................................................................. 4 Single-Phase Line and Neutral Connections.................................6 Powering the ADE9153A Shield ................................................ 4 Evaluation Board Schematic ............................................................7 Arduino Uno and Arduino Zero ................................................ 4 REVISION HISTORY 2/2018--Revision 0: Initial Version Rev. 0 | Page 2 of 8 EV-ADE9153ASHIELDZ User Guide UG-1253 CONECTION DIAGRAM ISOLATION BARRIER LIVE LOAD LIVE IN 16584-001 NEUTRAL ADE9153A Figure 1. EV-ADE9153ASHIELDZ Connection Diagram Rev. 0 | Page 3 of 8 UG-1253 EV-ADE9153ASHIELDZ User Guide MODULE HARDWARE POWERING THE ADE9153A SHIELD ESP8266 WIFI SYSTEM ON CHIP (SOC) The EV-ADE9153ASHIELDZ is powered from 5 V coming from Arduino. By default, the 5 V SPI jumper is connected and the board can be directly connected to Arduino Uno. To use Arduino Zero or any 3.3 V microcontroller unit (MCU), disconnect the 5 V SPI jumper and connect a 3 V SPI jumper to ensure that the correct voltage is applied on the Arduino pins. The shield can also be used with the ESP8266 WiFi SOC. The on-board header makes the shield compatible with the ESP8266 ESP-12E Node MCU. To use the ESP8266, perform the following actions (note that these actions do not need to be performed in order): Populate the 15-pin headers, SV1 and SV2. Disconnect the 5 V SPI jumper and connect a 3 V SPI jumper to ensure that the correct voltage is applied, as shown in Figure 2. Populate 0 resistors on R49, R51, R67, and R68 to establish the SPI connection. Populate R14 to establish the RESET connection The ESP8266 pins used by the EV-ADE9153ASHIELDZ are described in Table 2. 16584-002 Table 2. ESP8266 GPIO Connections Figure 2. DC Power Supply Selection ARDUINO UNO AND ARDUINO ZERO The ADE9153A shield has Arduino R3 headers directly compatible with Arduino Uno and Arduino Zero. The Arduino pins used by the ADE9153A shield are described in Table 1. Table 1. Arduino General-Purpose Input/Output (GPIO) Connections Arduino Pin ICSP-SCK ADE9153A Signal SCLK ICSP-MISO ICSP-MOSI GPIO 8 GPIO 4 GPIO 5 GPIO 2 GPIO 3 5V 3.3 V MISO MOSI SS (pulled up) RESET User button input ZX/DREADY/CF2 IRQ Not applicable Not applicable Type Serial peripheral interface (SPI) SPI SPI SPI output Output Input Input (interrupt) Input (interrupt) Power Power ESP8266 Pin D5 (GPIO 14) D6 (GPIO 12) D7 (GPIO 13) D0 (GPIO 16) D4 (GPIO 2) D1 (GPIO 5) D2 (GPIO 4) D3 (GPIO 0) 5V 3.3 V ADE9153A Signal SCLK MISO MOSI SS (pulled up) RESET IRQ ZX/DREADY/CF2 User button input Not applicable Not applicable Type SPI SPI SPI SPI output Output Input Input Input Power Power CURRENT SENSORS The EV-ADE9153ASHIELDZ has an on-board, 1 m shunt resistor. The nominal current through the shunt is 5 A rms and the maximum allowed current is 10 A rms with a programmable gain amplifier (PGA) gain value of 16. VOLTAGE SENSORS The EV-ADE9153ASHIELDZ has on-board resistor dividers to attenuate the incoming input voltage. The attenuation factor is 1001. Do not exceed a 240 V rms nominal line to neutral voltage. Rev. 0 | Page 4 of 8 EV-ADE9153ASHIELDZ User Guide UG-1253 LIBRARIES The EVAL-ADE9153ASHIELD Arduino libraries provide basic functions to access the ADE9153A. Use the calibration sketch to calibrate the ADE9153A using an accurate source. ADE9153A ARDUINO LIBRARY ADE9153AAPI.cpp INSTALLING THE LIBRARIES The ADE9153AAPI.cpp file contains functions to communicate, initialize, and read calculated parameters from the chip. To install the libraries, ADE9153AAPI.h 1. 2. The ADE9153AAPI.h file contains register constants that are written into the device by the set up ADE9153A function. Download ADE9153AAPI.zip. Install the ADE9153A Arduino library as shown in Figure 3. ADE9153A Application Examples 16584-003 The application examples demonstrate the use of functions in the ADE9153AAPI.cpp and ADE9153AAPI.h library files to obtain the parameters calculated by the ADE9153A. Connect Arduino Zero and compile and load the application examples to start energy and power quality measurements. Figure 3. Installing the Arduino Library Rev. 0 | Page 5 of 8 UG-1253 EV-ADE9153ASHIELDZ User Guide LINE VOLTAGE CONNECTIONS HAZARDOUS HIGH VOLTAGE SINGLE-PHASE LINE AND NEUTRAL CONNECTIONS The equipment described in this user guide is connected to hazardous line voltages. Exercise proper caution when connecting the sensors and voltage leads. Ensure that the system is enclosed in a protective casing. The single-phase connection is shown in Figure 4. Do not exceed a nominal voltage of 240 V rms (line to neutral) in this configuration. Rev. 0 | Page 6 of 8 N J7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 SCLK_IS MISO_ISO J6 J5 NEUTRAL J3 R10 250k GNDA 1 3 5 J10 0 R21 2 4 6 +5V_ARDUINO R12 250k C16 4.7F C17 100nF 5 4 3 2 1 7 6 8 7 6 5 4 3 2 1 10 9 8 GNDA MOSI_ISO J4 J1 C29 0.1F C18 4.7F 250k R13 GND C9 15nF C19 100nF 0.1F GNDA C60 10F 11_IBN 12_IBP 10F C57 3V3_ISO 22 22_FA1 C15 100nF 16 16_AVDDOUT 18 18_REFIN 21 21_MSH 15_VAN 14 14_VAP 13 13_VAMS 19 19_IBMS 15 12 11 6 6_IAMS 0.1F C58 USEROUT_ISO USERIN_ISO RESET_ARD IRQ_ISO CF2_ISO GNDA 0 0 0 0 0 GND C14 0.47F SS_ISO C59 +5V_ARDUINO USEROUT_ARD R15 USERIN_ARD R63 R64 DRA_QRI R65 DRA_2FC R66 GNDA ARDUINO HEADERS GND 250k R11 150k GND R9 C8 0.1F R16 L-OUT 3V3_ISO 1k VDD_1 R56 WSK12161L000FEA SH1 10k 23 GNDA GND 3_CLKOUT SCLK_IS MISO_ISO MOSI_ISO R14 GNDA R68 DNP R67 DNP R51 DNP IRQ_ARD CF2_ARD USERIN_ARD DNP RESET_ARD GNDA S2 SV1 DNP VDD_1 RESET_ISO 1F C56 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 RESET_ARD C12 4.7F C13 100nF C25 22pF C26 22pF C24 100nF GND C30 1F 10k 10F GNDA S1 USERIN_ISO GNDA C31 +5V_ARDUINO 3V3_ISO C32 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0.1F SV2 DNP ESP8266 CONNECTIONS C11 100nF VDD_1 C10 4.7F GND R49 10 2 3 DNP 10_VDDOUT2P5 2_DVDDOUT R1 10k Y2 12.288MHz 30ppm GND PAD 32 SS_ADE 31 SCLK_ADE 30 MISO_ADE 29 MOSI_ADE 28 RESET_ADE 27 IRQ_ADE TP14 26 CF1_ADE TP1 25 CF2_ADE TP5 4_CLKIN 4 0_PAD 32_SS 31_SCLK 30_MISO 29_MOSI 28_RESET 27_IRQ 26_CF1 25_ZX/CF2 SS_ISO 5_VDD 5 24 ADE9153 IC3 23_FA0 9 9_AGND 17 17_AGND 20 20_DGND 1 1_DGND 7 7_IAN 8 8_IAP R53 0.47F R17 10k D2 +3V3_ADE R4 C7 0.1F 10k +3V3_ADE R3 C23 4.7F 10k GND D1 C22 100nF GNDA 10F GNDA GNDA C34 0.1F C33 +3V3_ISO USEROUT_ISO GNDA R8 C21 4.7F 3k LED 4 APT1608LSECK/J3-PRV C20 CF1_ADE GND R7 R2 GNDA IRQ_ADE GNDA 10F C28 CF2_ADE 0.1F C3 VDD_1 GND 0.1F C6 +5V_ARDUINO GNDA +5V_ARDUINO 0.1F 3V3_ISO 10F GNDA +3V3_ADE R44 R5 150k 3k LED 3 APT1608LSECK/J3-PRV DNP J2 APT1608LSECK/J3-PRV L-IN 3k LED 1 C49 R46 +3V3_ADE GND 0.1F C4 GNDA RESET_ISO IRQ_ISO CF2_ISO MOSI_ISO MISO_ISO SS_ISO SCLK_IS R6 5V_ADE C48 3k GND 2 8 6 3 4 5 1 7 U1 GND C27 0.1F 5V_ADE 2_GND1 10_GND1 C5 10 2 5V_ADE 3 EN 1 VIN 5 VOUT ADuM4152BRIZ 14 13 12 U4 ADP122AUJZ-3.3-R7 GND CF2_ADE RESET_ADE IRQ_ADE GND NC +3V3_ADE GND GND 18 SCLK_ADE 17 MOSI_ADE 16 MISO_ADE 15 SS_ADE 19 19_GND2 11 11_GND2 VOA VIB VIC SCLK SI SO *SSS 20 15_GNDISO 15 9 9_GNDISO 3 MCLK 4 MO 5 MI 6 *MSS 7 VIA 8 VOB 9 VOC 14 VSEL 13 12_NC 12 11_NC 11 VDD2 3V3 FOR ESP8266 5 FOR ARDUINO ADuM6000ARIZ U2 14_NC 16_VISO 16 10 10_VISO VDD1 1 8_GND1 2_GND1 RCOUT RCSEL 3_NC RCIN 1_VDD1 7_VDD1 10F +3V3_ADE +5V_ARDUINO 3k APT1608LSECK/J3-PRV LED 2 0 R50 Rev. 0 | Page 7 of 8 LED 5 Figure 4. EV-ADE9153ASHIELDZ Schematic APT1608LZGCK ARDUINO/SAFE SIDE 2 4 0.1F 10F C35 0.1F C1 GND GND GND 0.1F C36 5V_ADE GND C50 10F C51 5V_ADE HOT SIDE EV-ADE9153ASHIELDZ User Guide UG-1253 EVALUATION BOARD SCHEMATIC 16584-005 UG-1253 EV-ADE9153ASHIELDZ User Guide NOTES ESD Caution ESD (electrostatic discharge) sensitive device. Charged devices and circuit boards can discharge without detection. Although this product features patented or proprietary protection circuitry, damage may occur on devices subjected to high energy ESD. Therefore, proper ESD precautions should be taken to avoid performance degradation or loss of functionality. Legal Terms and Conditions By using the evaluation board discussed herein (together with any tools, components documentation or support materials, the "Evaluation Board"), you are agreeing to be bound by the terms and conditions set forth below ("Agreement") unless you have purchased the Evaluation Board, in which case the Analog Devices Standard Terms and Conditions of Sale shall govern. Do not use the Evaluation Board until you have read and agreed to the Agreement. Your use of the Evaluation Board shall signify your acceptance of the Agreement. This Agreement is made by and between you ("Customer") and Analog Devices, Inc. ("ADI"), with its principal place of business at One Technology Way, Norwood, MA 02062, USA. Subject to the terms and conditions of the Agreement, ADI hereby grants to Customer a free, limited, personal, temporary, non-exclusive, non-sublicensable, non-transferable license to use the Evaluation Board FOR EVALUATION PURPOSES ONLY. Customer understands and agrees that the Evaluation Board is provided for the sole and exclusive purpose referenced above, and agrees not to use the Evaluation Board for any other purpose. Furthermore, the license granted is expressly made subject to the following additional limitations: Customer shall not (i) rent, lease, display, sell, transfer, assign, sublicense, or distribute the Evaluation Board; and (ii) permit any Third Party to access the Evaluation Board. As used herein, the term "Third Party" includes any entity other than ADI, Customer, their employees, affiliates and in-house consultants. The Evaluation Board is NOT sold to Customer; all rights not expressly granted herein, including ownership of the Evaluation Board, are reserved by ADI. CONFIDENTIALITY. This Agreement and the Evaluation Board shall all be considered the confidential and proprietary information of ADI. Customer may not disclose or transfer any portion of the Evaluation Board to any other party for any reason. Upon discontinuation of use of the Evaluation Board or termination of this Agreement, Customer agrees to promptly return the Evaluation Board to ADI. ADDITIONAL RESTRICTIONS. Customer may not disassemble, decompile or reverse engineer chips on the Evaluation Board. Customer shall inform ADI of any occurred damages or any modifications or alterations it makes to the Evaluation Board, including but not limited to soldering or any other activity that affects the material content of the Evaluation Board. Modifications to the Evaluation Board must comply with applicable law, including but not limited to the RoHS Directive. TERMINATION. ADI may terminate this Agreement at any time upon giving written notice to Customer. Customer agrees to return to ADI the Evaluation Board at that time. LIMITATION OF LIABILITY. THE EVALUATION BOARD PROVIDED HEREUNDER IS PROVIDED "AS IS" AND ADI MAKES NO WARRANTIES OR REPRESENTATIONS OF ANY KIND WITH RESPECT TO IT. ADI SPECIFICALLY DISCLAIMS ANY REPRESENTATIONS, ENDORSEMENTS, GUARANTEES, OR WARRANTIES, EXPRESS OR IMPLIED, RELATED TO THE EVALUATION BOARD INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, TITLE, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS. IN NO EVENT WILL ADI AND ITS LICENSORS BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES RESULTING FROM CUSTOMER'S POSSESSION OR USE OF THE EVALUATION BOARD, INCLUDING BUT NOT LIMITED TO LOST PROFITS, DELAY COSTS, LABOR COSTS OR LOSS OF GOODWILL. ADI'S TOTAL LIABILITY FROM ANY AND ALL CAUSES SHALL BE LIMITED TO THE AMOUNT OF ONE HUNDRED US DOLLARS ($100.00). EXPORT. Customer agrees that it will not directly or indirectly export the Evaluation Board to another country, and that it will comply with all applicable United States federal laws and regulations relating to exports. GOVERNING LAW. This Agreement shall be governed by and construed in accordance with the substantive laws of the Commonwealth of Massachusetts (excluding conflict of law rules). Any legal action regarding this Agreement will be heard in the state or federal courts having jurisdiction in Suffolk County, Massachusetts, and Customer hereby submits to the personal jurisdiction and venue of such courts. The United Nations Convention on Contracts for the International Sale of Goods shall not apply to this Agreement and is expressly disclaimed. (c)2018 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners. UG16584-0-2/18(0) Rev. 0 | Page 8 of 8