ST STEVAL-IPE007V1 User manual

April 2006 Rev 2 1/14
UM0221
User manual
STEVAL-IPE007V1: Single-phase energy meter
with tamper detection based on ST7lite2x
Introduction
This user manual provides a description of a single chip energy meter, STEVAL-IPE007V1,
with tamper detection. The meter fulfills IEC 61036:1996 + A1:2000 static meter
requirements for active energy (classes 1 and 2) with Ib=10A and Imax=50A. It detects
signals from a few mA, and continues to measure accurately even under tamper conditions.
The bill of materials and board schematics are also provided in Appendix A and Appendix B.
www.st.com

Contents UM0221
2/14
Contents
1 Hardware overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Appendix A Bill of materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Appendix B Board schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

UM0221 Hardware overview
3/14
1 Hardware overview
The following figure shows both the external parts and the main layout of the components
across the board.
Figure 1. Energy meter
The parts are numbered as follows:
1. Current transformer
2. Power supply
3. LCD module
4. Analog switch
5. EEPROM
6. ST7Flite20 microcontroller
7. Operation Amplifier
8. Real time clock (RTC)
9. RTC Battery
The connection diagram is shown in Figure 2. It shows two current transformers, the LCD
display and the three LED’s used.
45679
8
2
3
1

Hardware overview UM0221
4/14
Figure 2. Connection diagram of meter
The AC supply is connected to the power supply section of the energy meter. The power
LED glows when the supply is on.
There are two current transformers to measure current in phase and neutral wires
respectively.
The LCD module provides information about the kWh energy consumed, the input supply
voltage, the input current, the power factor as well as the current date and time.
The tamper LED glows if the meter is tampered.
Finally, there is a pulse count LED which glows with a frequency proportional to the
measured power. The proportionality constant can be set by the user.
LCD
CTP
Transformer Phase
Tamper
LED
Pulse
Count LED
Power
LED
Load
Transformer Neutral
CTN
Current
Phase
Mains
Current
AC
Neutral
Red wire
Black wire
Black wire
Red wire
CTN
JP1

UM0221 Revision history
5/14
2 Revision history
Table 1. Document revision history
Date Revision Changes
07-Apr-2006 1 Initial release.
25-Apr-2006 2 Document watermark removed

Bill of materials UM0221
6/14
Appendix A Bill of materials
Table 2. Capacitors
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1Ceramic
C5,C6,C7
,C8,C9,C
10,C11,C
12
.1UF 50V NA SMD 8
2 Electrolytic C3 1000uF 25V NA -55°C to
+85°C Leaded 1
3 Ceramic C18,C19 22nF 50V NA NA SMD 2
4Ceramic
C14,C15,
C16,C17 22pF 50V NA NA SMD 4
5 Box C1 1uF 400V NA NA Leaded 1
6 Box C4 10nF 400V NA NA Leaded 1
7 Electrolytic C2 100uF 25V NA -55°C to
+85°C Leaded 1
8 Ceramic C13 10nF 50V NA NA SMD 1
8 Ceramic C20 NA NA SMD 1
Table 3. Resistors
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1R1 82E 2W
-55°C to
+125°C Leaded 1
2 R4 150K 1/8W -55°C to
+125°C SMD 1
3 R2,R3 10K 1/8W -55°C to
+125°C SMD 2
4 R5 110K 1/8W -55°C to
+125°C SMD 2
5 R6 330K 1/8W -55°C to
+125°C SMD 2
5 R8 470E 1/8W -55°C to
+125°C SMD 1
6 R9 470E 1/8W -55°C to
+125°C SMD 1
7 R7 220E 1/8W -55°C to
+125°C SMD 1
8 R10 1.5K 1/8W -55°C to
+125°C SMD 1

UM0221 Bill of materials
7/14
9 R11 51K 1/8W -55°C to
+125°C SMD 1
10 R12 16K 1/8W -55°C to
+125°C SMD 1
11 R13 0 1/8W -55°C to
+125°C SMD 1
12 R14 390E 1/8W -55°C to
+125°C SMD 1
13 R15 220E 1/8W -55°C to
+125°C SMD 1
14 R16 390E 1/8W -55°C to
+125°C SMD 1
15 R17 180E 1/8W -55°C to
+125°C SMD 2
15 R31 220E 1/8W -55°C to
+125°C SMD 2
16 R18 51K 1/8W -55°C to
+125°C SMD 1
17 R21 100K 1/8W -55°C to
+125°C SMD 1
18 R19,R20 2.2K 1/8W -55°C to
+125°C SMD 2
19 R22,R23 36E 1/8W -55°C to
+125°C SMD 2
20 R24,R25 1K 1/8W -55°C to
+125°C SMD 2
21 R26 1K 1/8W -55°C to
+125°C SMD 1
22 R28 1M 1/8W -55°C to
+125°C SMD 1
23 R29 100E 1/8W -55°C to
+125°C SMD 1
24 R27,R32 5.1K 1/8W -55°C to
+125°C SMD 2
Table 3. Resistors
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt

Bill of materials UM0221
8/14
Table 4. Integrated circuits
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1
Positive
voltage
regulator
U1 L78L05A
BZ
positive voltage
regulators
-40°C to
+125°C TO-92 1
2Op-Amp U2
TS1854AI
D
1.8V
input/output rail
to rail low
power
operational
amplifiers
-40°C to
+125°C SO14 1
3Micro
Controller U3 ST7FLIT
E20F2M
8-BIT MCU
with single
voltage flash
memory, data
EEPROM,
ADC, timers,
SPI
-40°C to
+85°C SO20 1
4 SL EEPROM U4 M95010-
WMN6E 1kb SPI Bus 2.5V to
5.5V NA -40°C to
+85°C SO8 1
5Analog
Switch U5 HCF4066
M013TR
QUAD
BILATERAL
SWITCH
3V to 20V NA -55°C to
+125°C SOP14 1
6SerialRTC U6 M41T94
MQ6E
512 Bit (64 bit
x8) Serial RTC
(SPI) SRAM
2.7V to
5.5V NA -55°C to
+125°C SOP14 1
7 LCD Module LCD GDM093 18x4 module 1
Table 5. Diodes
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1Rectifier
Diode
D1,D2,D3
,D4 1N4007 NA
1000V
(Reverse
Voltage)
NA -65°C to
+175°C
Leaded,
DO-41 4
2 LED D5,D6,D7 LED 3mm NA NA NA NA Red LED
3mm 3
3 Zener diode ZD1 9.1V 1/2 W 1
4 Transistor Q1,Q2 BC547B
NPN Epitaxial
Silicon
Transistor
TO-92 2
5 Transistor
Q3 (Very
fast
switching
transistor)
PN2222A
NPN General
Purpose
Amplifier
TO-92 1

UM0221 Bill of materials
9/14
Table 6. Metal oxide varistors
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1 MOV MV1 400V 1
Table 7. Trim pot
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1 TRIM POT R30 20K NA
Rectangu
lar,multitu
rn Trim
Pot
1
Table 8. Transformers and inductors
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1Current
Transformer
5000 turns,
10/40 amp by
Genius
Electricals
2
Table 9. Crystals
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1 Crystal Y1 KDS6J 16MHz NA NA 1
2 Crystal Y2 32.768kHz NA NA 1
Table 10. Ferrite beads
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1Inductor
Chip Beads L1 220uH NA NA -40°C to
+125°C Leaded 1
2Inductor
Chip Beads L2 1uH NA NA -40°C to
+125°C Leaded 1
Table 11. PCB
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1PCB 92x62
mm 1

Bill of materials UM0221
10/14
Table 12. Switches
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1
Press
button
Switch
(Size
6.1mm x
6.1 mm)
S1 1
Table 13. ICP connector
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1ICP
connector CON10A 1
Table 14. Rechargeable battery
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
1 Battery BT1 1
Table 15. Terminal
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
14-pin
terminal 60A,500V 1
Table 16. Bug stick, jumpers and wires
Item # Desc. Ref. Part # Value Voltage Rating Temp.
Range
Pack /
Type Qnt
115 pin
Bugstick 1
29 pin female
bog stick 1
31Jumper 1
4 Wires 60A,500V
5Red black
wire 1A, 500V

UM0221 Board schematics
11/14
Appendix B Board schematics
Figure 3. Schematic 1/6
Figure 4. Schematic 2/6
1234
A
B
C
D
4
321
D
C
B
ATitle
Number RevisionSize
Orcad A
Date: 25-Jan-2006 Sheet of
File: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
Y1
16MHz
1
2
3
Q2
BC548
R18
50k
R21
100k
5V
AIN0
5V
5V
5V
NE-RTC
SCL
SDO
SDI
AIN-PB4
ICP-PIN9
AIN-PB5
AIN-PB6
ICP-PIN7
ICP-PIN6
NCS-LCD
NWR-LCD
DATA-LCD
CTRL-A/B
ICP-PIN4
ICP-PIN2
CTRL-GAIN16
VSS
1
VDD
2
NRST
3
NSS/AIN0/PB0
4
SCK/AIN1/PB1
5
MISO/AIN2/PB2
6
MOSI/AIN3/PB3
7
CLKIN/AIN4/PB4
8
AIN5/PB5
9
AIN6/PB6
10
OSC1/CLKIN 20
OSC2 19
PA0/LTIC 18
PA1/ATIC 17
PA2/ATPWM0 16
PA3/ATPWM1 15
PA4/ATPWM2 14
ICCDATA/ATPWM/PA5 13
ICCCLK/MCO/PA6 12
PA7 11
U3
ST7FLITE10
C9
100n
C10
100n
C13
0.01u
C14
22p
C15
22p
NS
1
Q
2
NW
3
VSS
4
VCC 8
NHOLD 7
C6
D5
U4
M950XX
D7
TAMP
D6
CF
1
2
3
JP1
JUMPER
R19
2k2
R20
2k2
OSC1
S1
SW-PB
1
2
3
J1
NCS-LCD
DATA-LCD
S1 should be connected to PIN -16 of U3 and not to PIN-17.
1234
A
B
C
D
4
321
D
C
B
ATitle
Number RevisionSize
Orcad A
Date: 24-Nov-2005 Sheet of
File: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
CTP1
Current Transformer
CTN1
Current Transformer
R23
36E
R25
1K
R24
1K
R22
36E
1
2
3
Q3
PN2222A
R27
5.1k
R3
10k
R26
1K
13
2
R30
20k
R29
100E
R31
220E
R28
1M
NEUTRAL
2.5V
5V
5V
CTRL-A/B
CTRL-GAIN16
IN-GAIN16
OUT-GAIN16
CURRENT-OUT
PHASE
AIN0
2.5V
A-IN/OUT
1
A-OUT/ IN
2
B-OUT/IN
3
B-IN/OUT
4
CTRL-B
5
CTRL-C
6
VSS
7
VDD 14
CTRL-A 13
CTRL-D 12
D-IN/OUT 11
D-OUT/IN 10
C-OUT/IN 9
C-IN/OUT 8
U5
HCF4066B
C11
100n
C12
100n
C20
NC
C18
22nF
C19
22nF

Board schematics UM0221
12/14
Figure 5. Schematic 3/6
Figure 6. Schematic 4/6
1234
A
B
C
D
4
321
D
C
B
ATitle
Number RevisionSize
Orcad A
Date: 24-Nov-2005 Sheet of
File: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
R9
470E
R7
220E R10
1.5k
R11
51k
R13
0E
R12
16k
R14
390E
2.5V
5V
2.5V
CURRENT-OUT
AIN-PB4 AIN-PB6
OUT-GAIN16
IN-GAIN16
AIN-PB5
OUT A
1
IN A-
2
IN A+
3
VDD
4
IN B+
5
IN B-
6
OUT B
7
OUT D 14
IN D- 13
IN D+ 12
V- 11
IN C+ 10
IN C- 9
OUT C 8
U2
TS1854
C8
100n
2.5Vref
2.5V
U2-5
U2-3 U2 -12
R15 220E
R17 180E
R16 390E
R8
470E
2.5V
U2-5
U2-3
U2-1 2
1234
A
B
C
D
4
321
D
C
B
ATitle
Number RevisionSize
Orcad A
Date: 25-Jan-2006 Sheet of
File: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
C2
100u/25V
R1
82E/2W
A K
ZD1
9V1
D5
LED
A K
D1
L1
220uH
R6
330k
R5
110k
MV1
400V
5V
2.5Vref
5V
P-MAINS
N-MAINS
C6
100nF
C5
100nF
C4
10nF/400V
A K
D4
1
2
AC1
2
1 3
Q1
BC547B
R2
10k
A K
D3
A K
D2
R4
150k C3
1000u/25V
I
1
G
2
O3
U1
L7805/TO220
L2
1uH
C1
510nF/400V
PHASE
NEUTRAL

UM0221 Board schematics
13/14
Figure 7. Schematic 5/6
Figure 8. Schematic 6/6
1234
A
B
C
D
4
321
D
C
B
ATitle
Number RevisionSize
Orcad A
Date: 16-Feb-2006 Sheet of
File: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
1
3
5
7
9
2
4
6
8
10
J2
CON10A
ICP-PIN2
ICP-PIN4
ICP-PIN6
ICP-PIN9
ICP-PIN7
DATA-LCD
NCS-LCD
NWR-LCD
5V
1
2
3
4
5
6
7
8
9
J3
CON9
1
2
J4
CON2
GND
5V
1234
A
B
C
D
4
321
D
C
B
ATitle
Number RevisionSize
Orcad A
Date: 25-Jan-2006 Sheet of
File: Z:\Backup\Deepu\PCB_Design\EMeter\EMeter.ddbDrawn By:
Y2
32.768kHz
R32 5k1
12
BT1
3.6V
5V
SDI
SCL
NE-RTC
SDO
XI
1
XO
2
NRST
3
WDI
4
NRSTIN1
5
NRSTIN2
6
VBAT
7
VSS
8
VCC 16
NE 15
NIRQ/FT/OUT 14
THS 13
SDI 12
SQW 11
SCL 10
SDO 9
U6
M41T94
C17
22p
C16
22p
C7
100nF
5V

UM0221
14/14
Please Read Carefully:
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.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZE REPRESENTATIVE OF ST, ST PRODUCTS ARE NOT DESIGNED,
AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS,
NOR IN PRODUCTS OR SYSTEMS, WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR
SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
ST and the ST logo are trademarks or registered trademarks of ST in various countries.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.
© 2006 STMicroelectronics - All rights reserved
STMicroelectronics group of companies
Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan -
Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America
www.st.com
Table of contents
Other ST Measuring Instrument manuals