STEVAL-IPE012V1 STMicroelectronics, STEVAL-IPE012V1 Datasheet

no-image

STEVAL-IPE012V1

Manufacturer Part Number
STEVAL-IPE012V1
Description
EVAL BOARD ENERGY METER
Manufacturer
STMicroelectronics
Series
-r

Specifications of STEVAL-IPE012V1

Design Resources
STEVAL-IPE012V1 Schematic STEVAL-IPE012V1 BOM
Main Purpose
Power Management, Energy/Power Meter
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
STPM10BTR, STM8L152
Primary Attributes
Single Phase with 1 Current Transformer & Shunt
Secondary Attributes
Tamper Detection
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
497-11462
November 2010
Introduction
This document describes the functions of the single-phase energy meter based on the
STPM metering IC and an STM8L152C6 microcontroller. The demonstration board is a fully
functional single-phase solution with parameter display, tamper management, maximum
demand (MD) calculation, EEPROM data logging, and low power management.
Meter specifications:
Figure 1.
Accuracy: 1 % error with dynamic range 200:1
Nominal voltage: 240 V
Nominal current: 5 A (I
Maximum current: 45 A (I
Operating range: 0.6 Vb to 1.2 Vb
Meter constant: 3200 impulses/kWh
Power frequency range: 45 Hz to 65 Hz
Sensor: primary side CT and secondary side shunt
Communication interface: IrDA
Single-phase energy meter solution based on STPM and STM8L
Single-phase energy meter based on the STPM
TYP
MAX
)
Doc ID 17778 Rev 1
)
®
metering IC and STM8L152C6 MCU
.
User manual
UM0981
www.st.com
1/34

Related parts for STEVAL-IPE012V1

STEVAL-IPE012V1 Summary of contents

Page 1

Introduction This document describes the functions of the single-phase energy meter based on the STPM metering IC and an STM8L152C6 microcontroller. The demonstration board is a fully functional single-phase solution with parameter display, tamper management, maximum demand (MD) calculation, EEPROM ...

Page 2

Contents Contents 1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 3

UM0981 5.7.2 5.7.3 5.7.4 5.8 IrDA section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 4

List of figures List of figures Figure 1. Single-phase energy meter solution based on STPM and STM8L . . . . . . . . . . . . . . . . . . . . 1 Figure 2. ...

Page 5

UM0981 1 Features The single-phase energy meter has the following features: ● Low cost single-phase energy meter solution ● Supports IEC 61036:1996 + A1: 2000, static meter for active energy class 1 for Ib=5 A ● Less than 4 VA ...

Page 6

Overview 2 Overview 2.1 Safety rules This board can be connected to mains voltage (240 V). In the case of improper use, wrong installation or malfunction, there is a danger of serious personal injury and damage to property. All operations ...

Page 7

... Schematic – BOM list 3.2 Hardware installation Connect the STEVAL-IPE012V1 demonstration board with the mains supply before load. Please refer to Figure 2 Auto-scrolling LCD display indicates successful power-up of board. Figure 2. Electricity meter connection diagram for connection with mains power and load. ...

Page 8

Getting started 3.3 Software installation The demonstration kit supports the SerialIO GUI for RS232 testing to check 62056-21 IrDA protocol mode C implementation. 3.3.1 System requirements for demonstration GUI For demonstration board communication with the GUI, a recent version of ...

Page 9

UM0981 4 Hardware layout The demonstration kit hardware is designed in a sectional approach to offer multiple functions to users. Figure 3. Hardware layout: top view Figure 4. Hardware layout: bottom view Doc ID 17778 Rev 1 Hardware layout 9/34 ...

Page 10

Hardware details 5 Hardware details 5.1 Metering IC U1 The programmable single-phase energy metering IC STPM01BTR (package: TSSOP20) is interfaced to a microcontroller using a 3-wire SPI interface. Active energy, apparent energy, instantaneous voltage, and instantaneous current values are obtained ...

Page 11

UM0981 5.3 Power supply section Capacitive power supply is used to build 3.6 V for the metering IC and microcontroller section. 5.3.1 Programmable voltage reference TL431AI (package TO-92) is used to regulate the 3.6 V supply. 5.3.2 ...

Page 12

Hardware details 5.7 Battery management section Two batteries are used in the circuit. 5.7.1 Coin cell BT1 BT1 CR2032 (3 V, 225 mAh) is the microcontroller power source in halt mode to keep RTC running. 5.7.2 Rechargeable battery BT2 BT2 ...

Page 13

UM0981 5.9 Magnetic sensor U4 The magnetic sensor AH180 (SC59-3L) is used to detect magnetic interference in the energy meter solution. Magnetic sensor outputs low when magnetic interference occurs. 5.10 Connector section The connector section comprises test points for different ...

Page 14

... Single-phase energy meter features 6.1 Auto-calibration mode The STEVAL0-IPE012V1 demonstration board supports auto-calibration using an ideal reference source for 10 A and 240 V. Calibration is performed to minimize measurement errors and to increase the accuracy of the meter. When using auto-calibration mode, calibration parameters CHV (one byte calibration data ...

Page 15

... Overflow count for cumulative energy – Number of times cumulative energy overflows from 99999.9 (maximum display precision). For further details, refer to 6.3 Power management The STEVAL-IPE012V1 demonstration board is designed with board power consumption 4 VA. The board supports two modes of operation: 1. Meter run 2. Meter low power 6 ...

Page 16

... Now the meter low power LCD display and IrDA communication are operational until push button SW3 is operational. 6.4 LCD display modes The STEVAL-IPE012V1 demonstration board offers the user different parameters. The metering parameters display is configured in a specific manner based upon the power mode of the meter: ● ...

Page 17

... SW3 is pressed in low power mode, the display auto-scroll display mode. The display is active until push button SW3 pressed condition. 6.5 Tamper detection The STEVAL-IPE012V1 demonstration board supports multiple tamper detection and their logging in EEPROM. 6.5.1 Tamper types The five types of tamper detection are: 1 ...

Page 18

... Single-phase energy meter features 6.6 62056-21 IrDA protocol mode C The STEVAL-IPE012V1 demonstration board supports 62056-21 IrDA protocol mode C. IrDA is used as the communication channel for reading meter data. In such systems, a handheld unit (HHU unit with equivalent functions is connected to a tariff device (energy meter). The protocol offers five alternative protocol modes and E. This user manual covers mode C use ...

Page 19

UM0981 Figure 6. SerialIO GUI hardware setup Figure 7. SerialIO GUI with protocol mode C settings 6.7 Pulse out LED LED D10 is used as the pulse out for cumulative energy. It works on a meter constant of 3200impulses/kWh. The ...

Page 20

EEPROM log data structure 7 EEPROM log data structure All the parameters below are stored in EEPROM: ● Calibration data (10 bytes): (3 bytes of CHV, CHP, and CHS then 7 times 0x00) ● Total cumulative energy: (at two locations ...

Page 21

UM0981 7.1 Size overview Table 5. EEPROM parameter size overview Calibration data Total cumulative energy duplicate entry 1 Cumulative energy until last month Maximum demand log Monthly cumulative energy log Average PF log Earth tamper log Reverse log Neutral missing ...

Page 22

EEPROM log data structure ● Total cumulative energy log Two duplicate entries are stored. One at the start of EEPROM and another at the end of EEPROM This is done to make sure that, if EEPROM is corrupted at one ...

Page 23

UM0981 Appendix A Tamper definitions ● Earth tamper: using earth in place of neutral (load current is passed partially or fully through earth) ● Reverse connection: reversal of phase and neutral at mains ● Neutral missing tamper: when neutral is ...

Page 24

... LEDs D10 Package Manufacturer TSSOP20 STMicroelectronics LQFP48 STMicroelectronics SO8 STMicroelectronics TO92 STMicroelectronics SOD-523 STMicroelectronics 2-pin (3.5 mm) ECS Inc 2-pin (cylindrical) Abracon Corporation SMD ERNI 3-pin (2.54 mm) 4-pin (2.54 mm) 2-pin (2.54 mm) LED Leaded (3 mm) Manufacturer’s ordering code / Supplier ordering ...

Page 25

Table 7. BOM (continued) Reference Component Category designator description C1,C3,C4,C20,C23, C27 C2,C29 C5,C14,C15,C17, C21,C22,C24,C28, C31 C6,C8 C7,C10 C9,C11 C12 Capacitors C16,C30 C13 C18 200 nF/630 V C19 220 µF/16 V C25 1 nF/500 V C26 100 µF/50 V C32 6.8 ...

Page 26

Table 7. BOM (continued) Reference Component Category designator description R1,R13,R17,R18, R36,R37,R41 R2 R3,R11,R20,R21, Resistors R27,R33,R34,R35 R4,R10,R14,R19, R32 R5 Package Manufacturer 10 kΩ SMD0805 1 MΩ SMD0805 0 SMD0805 1 kΩ SMD0805 6.8 Ω SMD0805 Manufacturer’s ordering code / Supplier ordering ...

Page 27

Table 7. BOM (continued) Reference Component Category designator description R6 R7 R9,R15 R12 R16 R22 R23,R24,R25 R26 Resistors R28 R29 R30 R31 R38 R39 R40 R41 L1 Inductors L2, L3 D1,D2,D3,D4,D6,D7, Diode GPP 1A 1000 V Diode D8,D9 Package Manufacturer ...

Page 28

Table 7. BOM (continued) Reference Component Category designator description Infrared transceiver U6 module (SIR, 115.2 Misc components Micropower omnipolar Hall-effect sensor U4 SW1 Reset switch for micro SW2 Case tamper switch SW3 LCD_PUSH switch J3 LCD glass 18x4 SUR ABSORBER ...

Page 29

UM0981 Figure 8. Microcontroller schematic Doc ID 17778 Rev 1 BOM list and schematics 29/34 ...

Page 30

BOM list and schematics Figure 9. Battery, connector, magnetic sensor and IrDA module schematics 30/34 Doc ID 17778 Rev 1 UM0981 ...

Page 31

Figure 10. Power supply, EEPROM, LCD and neutral missing power supply schematics ...

Page 32

Figure 11. STPM schematic ...

Page 33

UM0981 Revision history Table 8. Document revision history Date 23-Nov-2010 Revision 1 Initial release. Doc ID 17778 Rev 1 Revision history Changes 33/34 ...

Page 34

... Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. ...

Related keywords