STMicroelectronics STDES-EMETER1PV1 User Manual

Add to My manuals
31 Pages

advertisement

STMicroelectronics STDES-EMETER1PV1 User Manual | Manualzz

UM2898

User manual

Getting started with the STDES-EMETER1PV1 single phase smart meter

Introduction

The STDES-EMETER1PV1 single-phase smart meter is based on STM32L433VCT6 MCU featuring ARM Cortex-M4 core and

STPM33 IC for electricity metering with an accuracy of 0.1%.

It measures electric energy consumption over defined time intervals and sends collected data back to the utility for monitoring and billing, also tracking all the tampers, with the correct date and time.

The smart meter meets the most up-to-date smart metering requirements, such as multi-tariff billing, reactive energy measurement and power quality monitoring to enhance generation, distribution, customer service and billing.

The STDES-EMETER1PV1 comes with an expansion connector to provide GPRS/SubGHz connectivity and a relay control which allows remotely connecting/disconnecting the load.

The embedded STPM33 IC belongs to an ASSP family of mixed signals designed for high accuracy measurement of power and energy in power line systems using a Rogowski coil, current transformer or shunt current sensors.

The device provides instantaneous voltage and current waveforms and calculates voltage and current RMS values, active, reactive and apparent powers and energies for each channel in compliance with accuracy standards (EN 50470-x, IEC

62053-2x, ANSI12.2x for AC watt meters).

The STDES-EMETER1PV1 single-phase smart meter is a fully assembled board developed for performance evaluation only, not available for sale.

Figure 1. STDES-EMETER1PV1 single-phase smart meter

Fully assembled board developed for performance evaluation only, not available for sale

UM2898 - Rev 1 - August 2021

For further information contact your local STMicroelectronics sales office.

www.st.com

1

Acronyms and abbreviations

ASSP

LED

MCU

SPI

RF

USB

Acronym

Table 1. List of acronyms

Definition

Application-specific standard product

Light emitting diode

Microcontroller unit

Serial peripheral interface

Radio frequency communication

Universal serial bus

UM2898

Acronyms and abbreviations

UM2898 - Rev 1 page 2/31

2

2.1

2.2

UM2898

Getting started

Getting started

Overview

The STDES-EMETER1PV1 features:

Based on

STPM33

STM32L433VCT6 (100 pins, LQFP) and

interfaced using SPI with MCU

STPM33

Current transformer (CT) and shunt sensing supported for current measurements

Shunt connected on the primary channel and CT on the secondary

Active energy difference of two channels signaling tamper condition

Magnetic tamper detection using Hall effect sensor by MCU interrupt line

EEPROM interfaced using I²C with MCU to store accumulated energy

Switch interface for case tamper and terminal cover tamper

Low power mode supported

Neutral missing tamper detection implemented using special duty cycling algorithm

Connectors for GPRS or Sub 1-GHz connectivity

Measuring RMS/instantaneous voltage, current, kW and power factor (PF)

Glass LCD (1/8 duty cycle and 20 segments) driven by the MCU LCD controller

Hardware requirements

The STDES-EMETER1PV1 input power must be supplied by 220 V

AC

. A load of few watts must be connected at load end to test the application.

UM2898 - Rev 1 page 3/31

Figure 2. STDES-EMETER1PV1 smart meter main sections

1.

Power supply section

2.

220 V

AC

input power

3.

Load

4.

Shunt

5.

STPM33 IC

6.

RTC battery slot

7.

STM32L433VCT6 MCU

8.

Programming connector

1 8

7

UM2898

System requirements

2.3

6

5

2

3

System requirements

To run the STDES-EMETER1PV1 single-phase smart meter, you need: an STDES-EMETER1PV1 an ST-LINK/V2 in-circuit debugger/programmer a PC/laptop running Windows 7 or 10

IAR v8.3 development tool chain or STM32 ST LINK utility

STSYS-NS073.bin software for application programming

4

UM2898 - Rev 1 page 4/31

3

UM2898

Hardware description

Hardware description

Figure 3. STDES-EMETER1PV1 hardware block diagram

LCD

(1/8 Duty Cycle,20 segment)

LCD Bus

GPRS/6LoWPAN

UART1

IrDA

EEPROM

UART2

I2C1

STM32L433VCT6

(100-pin MCU)

SPI1

STPM33

(METERING)

GPIO

SPI2

GPIO

GPIO

GPIO

GPIO

HALL EFFECT

SENSOR

Radio

(Possible to add)

Case Tamper Detection

Terminal Cover

Relay Control

User Switch Control

Figure 4. STDES-EMETER1PV1 top view

UM2898 - Rev 1 page 5/31

Figure 5. STDES-EMETER1PV1 bottom view

UM2898

Hardware description

UM2898 - Rev 1 page 6/31

4

4.1

4.2

4.3

UM2898

Component description

Component description

STPM33

The STPM33 belongs to a mixed signal IC family designed for high accuracy measurement of power and energies in power line systems using the Rogowski coil, current transformer or shunt current sensors.

The STPM3x provides instantaneous voltage and current waveforms. It also calculates RMS values of voltage and currents, active, reactive and apparent power and energies.

The analog section consists of up to two programmable gain low-noise low-offset amplifiers and up to four second order 24-bit sigma-delta ADCs, two band gap voltage references with independent temperature compensation, a low drop voltage regulator and DC buffers.

The digital section consists of digital filtering stage, a hardwired DSP, DFE to the input and a serial communication interface (UART or SPI).

The STPM3x is fully configurable and allows a fast digital system calibration in a single point over the entire current dynamic range.

STM32L433VCT6

The STM32L433VCT6 is an ultra-low-power microcontroller based on the high-performance Arm ® Cortex ® -M4

32-bit RISC core operating at a frequency of up to 80 MHz. The Arm ® Cortex ® -M4 core features a floating-point unit (FPU) single precision which supports all Arm ® single-precision data processing instructions and data types.

It also implements a full set of DSP instructions and a memory protection unit (MPU) which enhances application security.

The STM32L433xx devices embed high-speed memories (Flash memory up to 256 Kbyte, 64 Kbyte of SRAM), a quad SPI Flash memory interface (available on all packages) and an extensive range of enhanced I/Os and peripherals connected to two APB buses, two AHB buses and a 32-bit multi-AHB bus matrix.

The STM32L433xx devices embed several protection mechanisms for embedded Flash memory and SRAM: readout protection, write protection, proprietary code readout protection and firewall.

The devices offer a fast 12-bit ADC (5 Msps), two comparators, one operational amplifier, two DAC channels, an internal voltage reference buffer, a low-power RTC, one general-purpose 32-bit timer, one 16-bit PWM timer dedicated to motor control, four general-purpose 16-bit timers, and two 16-bit low-power timers.

In addition, up to 21 capacitive sensing channels are available. The devices also embed an integrated LCD driver

8x40 or 4x44, with internal step-up converter.

They also feature standard and advanced communication interfaces.

Some independent power supplies are supported: analog independent supply input for ADC, DAC, OPAMP and comparators, and 3.3 V dedicated supply input for USB. A VBAT input allows to back up the RTC and registers.

Dedicated VDD12 power supplies can be used to bypass the internal LDO regulator when connected to an external SMPS.

ALTAIR04-900

The ALTAIR04-900 is a high voltage all-primary-sensing switcher, operating directly from the rectified mains with minimum additional external parts. It combines a high performance low voltage PWM controller chip and a 900 V avalanche-rugged power section in the same package.

The controller is in current mode specifically designed for off-line quasi-resonant flyback converters.

The device provides a constant output voltage using the primary-sensing feedback, eliminating the need of an optocoupler, a secondary voltage reference, and a current sensor, but still maintaining an accurate regulation.

The maximum deliverable output current can be set to increase the end-product safety and reliability in case of fault events.

Quasi-resonant operation is guaranteed by a transformer demagnetization sensing input which turns on the power section. The same input also serves the output voltage monitoring, to perform CV regulation, and to achieve mains-independent maximum deliverable output current (line voltage feed-forward).

The maximum switching frequency is 166 kHz: at light-to-medium load, a special function automatically lowers the operating frequency maintaining the valley switching operation. When the load is very light, the device enters a controlled burst mode operation that, along with the built-in high voltage startup circuit and the low operating current, minimizes the standby power.

UM2898 - Rev 1 page 7/31

5

UM2898

How to run the single-phase smart meter

How to run the single-phase smart meter

Step 1.

To program the STDES-EMETER1PV1 single-phase smart meter, connect it to the ST-LINK/V2 , as shown in the table and figures below.

Signal

VCC

SWCLK

GND

SWDIO

NRST

Table 2. STDES-EMETER1PV1 and ST-LINK/V2 pin connection

ST-LINK/V2 connector

10

7

1

9

15

STDES-EMETER1PV1 J21 connector

3

4

1

2

5

Figure 6. STDES-EMETER1PV1 and ST-LINK/V2 pins

(Dotted yellow lines identify pin 1 and pink dotted lines identify pin 5

Figure 7. STDES-EMETER1PV1 and ST-LINK/V2 connection

UM2898 - Rev 1

Step 2.

Power the STDES-EMETER1PV1 with 220 V

AC

.

The power supply on the board converts the 220 V into 3.3 V to power the MCU.

Step 3.

Install STM32 ST LINK utility on your PC/laptop to program the MCU.

page 8/31

UM2898 - Rev 1

UM2898

How to run the single-phase smart meter

Step 4.

Connect to the target.

Figure 8. STM32 ST LINK utility - target connection

Step 5.

Open the binary file.

Figure 9. STM32 ST LINK utility - file opening page 9/31

UM2898

How to run the single-phase smart meter

Step 6.

Enable debug in low power mode.

Figure 10. STM32 ST LINK utility - file selected

UM2898 - Rev 1

Once the STDES-EMETER1PV1 is programmed with the binary file, the LCD displays various values, one by one, as shown below.

Figure 11. STDES-EMETER1PV1 - LCD display while running

1. Voltage

2. Current

3. Active power

4. Frequency

5. Date

6. Time

7. Accumulative energy

1 4

2

3

5

6

7 page 10/31

6

6.1

6.2

Firmware description

Overview

The STSW-EMETER1-FW software package for the STDES-EMETER1PV1 includes:

• the STDES-EMETER1PV1

STPM33 Library

STM32L4_Driver

Application files

user manual

Folder structure

Figure 12. STSW-EMETER1-FW folder structure

1.

Startup file

2.

User files

3.

System files

4.

STM32 HAL driver files

5.

EEPROM/NVRAM handler files

6.

Minishell file

7.

Minishell task files

8.

Metrology driver files

9.

Include files to select ST devices

10.

Metrology task files

UM2898

Firmware description

6.3

2

3

1

6

7

8

9

10

5

4

APIs

Detailed technical information about the APIs available to the user can be found in a compiled HTML file located inside the “Documentation” folder of the software package where all the functions and parameters are fully described.

UM2898 - Rev 1 page 11/31

UM2898

State machine

6.4

State machine

Figure 13. STSW-EMETER1-FW state machine

INIT State Wake-Up using RTC

Store Tampering Details

Check for Neutral Missing

NO

RUN State

YES

SHUTDOWN State

TAMPER State

Capture Full wave,

Calculate Energy and update EEPROM

INIT State :

– initializes MCU and peripherals

Check for Neutral Missing :

– checks neutral missing occurs

– if yes, it initializes MCU at lower frequency

– if proper voltage is built at V

DD

, it reads and stores in the EEPROM

RUN State :

– refreshes metering data reading by reading STPM33

– updates LCD

– updates EEPROM

Tamper State :

– if any tamper is detected, stores the details in the EEPROM with the related time

Capture State in case of Neutral missing :

– captures one full wave and calculates energy

– stores the value in the EEPROM

SHUTDOWN State :

– in case of Neutral Missing, shuts STPM33 and MCU down for some time (2 seconds in this case)

– periodically wakes up using RTC

Wake up using RTC State :

– periodically wakes up using RTC

UM2898 - Rev 1 page 12/31

7

Schematic diagrams

PHASE_MAIN NTC1 16E,2.4W

NEUTRAL_MAIN

RV1

460V

NTC2

16E,2.4W

L8

1mH

C66

22nF/X2

L21

2 3

1

CHOKE CM

4

Figure 14. STDES-EMETER1PV1 circuit schematic (1 of 8)

4

AC2

U9

Plus

1

2

AC1 Minus

UABF1510-3

3

C54

47uF,400V

R4

6.8M,1W

1

D8

2

P6KE200A

2

D9

STTH108

1

VCC

D14

STPS1150

R10

0

R8

33K

2

3

4

1

T1

ZCD

R18

51K

R30

8.2K

LOCAL_GND

8

7

6

5

STPS1L60A

D7

L20 470uH

C24

1000uF

+

STPS1L60A

D15 5V_ALT

C63

470uF

+

ISO_GND

C57

470uF

+ C23

100nF

LOCAL_GND

2.2nF,220V

C58

ISO_GND

ISO_GND

9V

9V

R32

1K

ISO_GND

U5

J9

CON1_NEUTRAL

J10

CON1_PHASE

5V_ALT 3

U6

LDK220U33R

IN OUT

1 3V3_ALT

3V3_ALT

C61

C60

1nF,50V

CMP

C59

470nF

R29

8.2K

LOCAL_GND

R27

1.3E

C65

100nF

+ C25

2.2u,25V

C53

4.7nF,25V

CMP

VCC

ZCD

ISO_GND

D23

Green

R28

1K

5V_ALT

L22

2.2uH

5V_ALT

R31

100E

PD3_GPIO_EN

PD4_GPIO_MODE

D16

STPS1150

U10

PD3_GPIO_EN

PD4_GPIO_MODE

6

7

5

8

VIN

VINA

EN

MODE/SYNC

VOUT

FB

ExPad

1

10

11

R50

100E STBB1

C55

5F

R51

100K

5V

R65

560K

C68

22uF

5V

3V3

3V3

6

5

8

7

Q10

3

4

1

2

STS6P3LLH6

Figure 15. STDES-EMETER1PV1 circuit schematic (2 of 8)

R86

10K

PE8_GPIO

PE8_GPIO

3V3_ALT

R72

10K

R70

1K

PC1_GPIO

3V3_ALT

PC1_GPIO

SW1

PE14_GPIO

PE14_GPIO

R80

1M/0402

1

4

6

2

3

5

C21

10nF/0402

TOP COVER OPEN SW

R81

0E/0402

3V3

3V3

DGND

J16

1

2

3

ER-14250

-

+

6

5

8

7

Q6

3

4

1

2

STS6P3LLH6

1

D24

2 BAT

BAT60J/SOD323

BAT

R87

10K

PE7_GPIO

R88

10K

PE7_GPIO

DGND

DGND

SW3

3

4

1

2

UP & DOWN

DGND

SW5

PD0_GPIO

PD0_GPIO

R84

1M/0402

1

4

6

2

3

5

C62

10nF/0402 MODULE OPEN SW

R85

0E/0402

3V3

3V3

PD6_GPIO

PD6_GPIO

R82

1M/0402

DGND

SW2

1

4

6

2

3

5

R83

0E/0402

C22 TERMINAL COVER OPEN SW

10nF/0402

3V3

3V3

DGND

BATTERY SECTION SWITCHES SECTION

DGND

Figure 16. STDES-EMETER1PV1 circuit schematic (3 of 8)

C1

10nF

1

U1

DU

2

E1

3

E2

4

VCC

WC

SCL

VSS SDA

M24M01-R

8

7

6

5

PD7_MCU_GPIO_WC

PB6_I2C1_SCL

PB7_I2C1_SDA

R5

R6

3V3

4.7K

4.7K

3V3

PD7_MCU_GPIO_WC

PB6_I2C1_SCL

PB7_I2C1_SDA

EEPROM SECTION

PB12_GPIO

3V3

3V3

PB12_GPIO

R39

50K

C26

10nF

1

U7

VDD

GND

3

OUT

AH180

2

DGND

HALL SENSOR SECTION

Figure 17. STDES-EMETER1PV1 circuit schematic (4 of 8)

PA8_LCD_COM0

PA9_LCD_COM1

PA10_LCD_COM2

PB9_LCD_COM3

PC10_LCD_COM4

PC11_LCD_COM5

PC12_LCD_COM6

PD2_LCD_COM7

PE1_LCD_SEG1

PE0_LCD_SEG2

PB8_LCD_SEG3

PB5_LCD_SEG4

PB4_LCD_SEG5

PB3_LCD_SEG6

PA15_LCD_SEG8

PC9_LCD_SEG9

PC8_LCD_SEG10

PC7_LCD_SEG14

PC6_LCD_SEG15

PD15_LCD_SEG16

PA8_LCD_COM0 R100

PA9_LCD_COM1

PA10_LCD_COM2

PB9_LCD_COM3

PC10_LCD_COM4

PC11_LCD_COM5

R101

R102

R103

R104

PC12_LCD_COM6

PD2_LCD_COM7

R99

R94

R95

PE1_LCD_SEG1

PE0_LCD_SEG2

R97

R105

PB8_LCD_SEG3

PB5_LCD_SEG4

R33

R34

PB4_LCD_SEG5

PB3_LCD_SEG6

R35

R36

PA15_LCD_SEG8

PC9_LCD_SEG9

PC8_LCD_SEG10

R38

R37

R40

PC7_LCD_SEG14

PC6_LCD_SEG15

R46

R63

PD15_LCD_SEG16 R91

3V3

3V3 R68

0E

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

LCD_K

LCD_A

13

14

15

16

9

10

11

12

17

18

19

20

7

8

5

6

3

4

1

2

21

22

J13

CON22

PD14_GPIO_BACKLIGHT

PD14_GPIO_BACKLIGHT R74

470E

1

R48

1K

Q7

DGND

3V3

Connect to GND by default

R1

10k

BOOT0 R2

10k

DGND

Figure 18. STDES-EMETER1PV1 circuit schematic (5 of 8)

3V3

3V3

VDD

C2

4.7uF, 6.3V

VSS

C3

0.1uF, 10V

C4

0.1uF, 10V

J1

1

2

3

CR2032

C8

6.8pF

C11

6.8pF

PA0_SPI1_NSS

DGND

DGND

PC1_GPIO

PC2_EN

DGND

PA0_SPI1_NSS

R7

PA1_ZCR

PA2_USART_TXD

VDD R3

AGND

NRST

10k

PC1_GPIO

PC2_EN

C19

1uF

PA1_ZCR

PA2_USART_TXD

VBAT

VSS

VDD

13

14

15

16

9

10

11

12

7

8

5

6

3

4

1

2

21

22

23

24

25

17

18

19

20

PE2

PE3

PE4

PE5

PE6

VBAT

PC13

PC14_OSC32_IN

PC15_OSC32_OUT

VSS_1

VDD_1

PH0_OSC_IN

PH1_OSC_OUT

NRST

PC0

PC1

PC2

PC3

VSSA

VREFMINUS

VREFPLUS

VDDA

PA0

PA1

PA2

10k

DGND

U3

STM32L433VCTx

C5

0.1uF, 10V

66

65

64

63

62

61

60

59

58

57

56

55

54

53

52

51

75

74

73

72

71

70

69

68

67

VDD_4

VSS_4

VDDUSB

JTMS

PA12

PA11

PA10

PA9

PA8

PC9

PC8

PC7

PC6

PD15

PD14

PD13

PD12

PD11

PD10

PD9

PD8

PB15

PB14

PB13

PB12

VDD

VSS

VDD

SWDIO

PA10_LCD_COM2

PA9_LCD_COM1

PA8_LCD_COM0

PC9_LCD_SEG9

PC8_LCD_SEG10

PC7_LCD_SEG14

PC6_LCD_SEG15

PD15_LCD_SEG16

PD14_GPIO_BACKLIGHT

PD12_GPIO

PD11_GPIO

PD10_GPIO

PD9_GPIO

PA10_LCD_COM2

PA9_LCD_COM1

PA8_LCD_COM0

PC9_LCD_SEG9

PC8_LCD_SEG10

PC7_LCD_SEG14

PC6_LCD_SEG15

PD15_LCD_SEG16

PD14_GPIO_BACKLIGHT

PD12_GPIO

PD11_GPIO

PD10_GPIO

PD9_GPIO

3V3

SW4

PE15_GPIO

3

4

1

2

MD_RESET SW

DGND

L1

470E

R24

0E

PB12_GPIO

PB12_GPIO

DGND

AVDD

AGND

AVDD

C14

1uF, 10V

C15

0.1uF, 10V

J21

3

4

1

2

5

3V3

SWCLK

GND

SWDIO

NRST

SWD

DEBUG CONN

GND

AGND

D12

Green

C20

1uF

DGND

R96

510E

DGND

C6

0.1uF, 10V

DGND

DGND

C7

0.1uF, 10V

DGND

DGND

GND

J24

2

4

6

1

3

5

HEADER 3X2

1

TP1

TEST POINT

J3

1

2

CON2

R11

100E,1W

4

2

AC2

AC1

Figure 19. STDES-EMETER1PV1 circuit schematic (6 of 8)

U4

Plus

1 C10

1uF

D13

7V

3

U2

LDK220U33R

IN OUT 3V3

3

1 3V3

C9

1uF

Minus

DBLS208GRD

INS21829399

DGND

NEUTRAL MISSING SECTION

3V3

PA2_USART_TXD

PA2_USART_TXD R108

R106

1K

220E

1

PD1

TX

3V3

R109

1K

PA3_USART_RXD

PA3_USART_RXD

2STR2230

Q11

PQ1

RX

DGND

IR SECTION

PB0_GPIO_RELAY

PB0_GPIO_RELAY R75

1K

1

Figure 20. STDES-EMETER1PV1 circuit schematic (7 of 8)

9V

9V

RELAY_2

RELAY_2

D21

DIODE

D22

DIODE

RELAY_1

RELAY_3

Q8

PB1_GPIO_RELAY

PB1_GPIO_RELAY R77

1K

1 Q9

DGND

DGND

PB10_USART1_RX

DGND

PE10_GPIO

PE11_GPIO

PE12_GPIO

PB10_USART1_RX

5V

GND

PE10_GPIO

PE11_GPIO

PE12_GPIO

R16

R17

0E

0E

9

11

13

5

7

1

3

J2

6

8

2

4

10

12

14

R22

R25

R26

R71

HEADER 7X2

DGND

STMod+ CONN

(PLC/GSM/RF)

0E

0E

0E

0E

PB11_USART1_TX

PD12_GPIO

PD11_GPIO

MOD_POWER_CN1

PD10_GPIO

PD9_GPIO

PB11_USART1_TX

PD12_GPIO

PD11_GPIO

PD10_GPIO

PD9_GPIO

RELAY_1

RELAY_2

RELAY_3

1

2

3

J25

REALY_CON

RELAY SECTION

R13

3V3

3V3

0E

MOD_POWER_CN1

R15

5V

5V

0E

Mount only one resistor on the basis of the daughterboard voltage requirement

STMod+ SECTION

Figure 21. STDES-EMETER1PV1 circuit schematic (8 of 8)

C27

10nF,25V

C31

150pF,50V

C33

3V3

10K

R41

3V3

PC4_SYN

R42

10K

R43

10K

R44

10K

PA0_SPI1_NSS

PA5_SPI1_SCK

PA7_SPI1_MOSI

PA6_SPI1_MISO

PC4_SYN

PA0_SPI1_NSS

PA5_SPI1_SCK

PA7_SPI1_MOSI

PA6_SPI1_MISO

U8

150pF,50V

C39

150pF,50V

C37

150pF,50V

C42

150pF,50V

15pF

C36

C45

15pF

PA1_ZCR

PC5_INT

PA1_ZCR

PC5_INT 6

7

8

4

5

2

3

1

CLKOUT/ZCR

CLKIN/XTAL2

XTAL1

LED1

LED2

INT1

INT2

EN

STPM33

100E

R45

C28 C29 C30

150pF,50V 100nF,16V 4.7uF,25V

C32

C34

100uF, 10V

100nF,16V

NC

VCC

GND_REG

VDDA

GNDA

VREF2

GND_REF

VREF1

C35 150pF,50V

24

23

22

21

20

19

18

17

VREF2

VREF1

C46 C47

150pF,50V 100nF,16V

C43 C44

150pF,50V

100nF,16V

C40 C38

150pF,50V

100nF,16V

C41

1uF,25V

L3

1500E

L5

INDUCTOR IRON/SM

J11

1

CON1

J12

CON1

1

NEUTRAL_MET

R49

0E

1K

R61

6E

NEUTRAL_MET

L2

1500E

R52

270K

R53

270K

R54

270K

R55

470

PHASE_MET

VIP1

C48

22nF,25V

VIN1

R56

100E

PC2_EN

C49

100nF,16V

C50

150pF,50V

PC2_EN

PHASE_LOAD

L6

1500E

L4

R60

Shunt

1500E

1K

1K

PHASE_LOAD

NEUTRAL_LOAD

NEUTRAL_LOAD

R57

R62

C51

10nF,25V

L12

10uH

R59

L11

10uH

C52

10nF,25V

L13

10uH

IIP2

IIN2

IIP1

DGND

R92

0E

R64

0E

R67

0E ISO_GND

ISO_GND

PHASE_MET

L7

1500E

1K R66

L14

10uH

IIN1

8

UM2898

Bill of materials

Bill of materials

1

2

3

4

5

6

7

8

Item

1

2

1

2

3

1

1

1

Q.ty

U1

Q11

U5

U8

Table 3. STDES-EMETER1PV1 bill of materials

Ref.

U2, U6

U

Q6, Q10

Q7, Q8, Q9

Value Description

M24M01-R, SO-8

LDK220U33R,

SOT-89

1-Mbit serial

I²C bus

EEPROM

200 mA low quiescent current and low noise

LDO

STM32L433VCT

6, LQFP100

STS6P3LLH6,

SMA

2STR1215,

SOT-23

2STR2230,

SOT-23

ALTAIR04-900,

SO16N

STPM33,

QFN32L 5x5x1

ST

ST

Ultra-lowpower with

FPU ARM

Cortex-M4

MCU 80 MHz with 256

Kbytes Flash,

LCD, USB

P-channel 30

V, 0.024 Ohm typ., 6 A,

STripFET VI

DeepGATE

Power

MOSFET in

SO-8 package

Low voltage fast-switching

NPN power transistor

Low voltage fast-switching

PNP power transistor

Off-line allprimarysensing switching regulator

ST

ST

ST

ST

ST

ASSP for metering applications with up to four independent

24-bit 2 nd order sigmadelta ADCs, 4

MHz OSF and 2 embedded

PGLNA

ST

Manufacturer Part Number

M24M01-R

LDK220U33R

STM32L433VCT6

STS6P3LLH6

2STR1215

2STR2230

ALTAIR04-900

STPM33

UM2898 - Rev 1 page 21/31

UM2898 - Rev 1

UM2898

Bill of materials

9

10

11

12

13

19

20

17

18

21

14

15

16

22

23

24

25

26

27

Item

1

1

2

1

3

2

4

2

2

1

6

1

1

3

6

1

1

2

11

Q.ty

U10

D7, D15

D8

D9

D14,D16

C1, C26

C2

C3, C4, C5,

C6, C7, C15

C8, C11

C9, C10,

C19, C20

C14

C21, C22,

C62

C23, C65

C24

Ref.

C25

C27, C51,

C52

C28, C31,

C33, C35,

C37, C39,

C40, C42,

C43, C46,

C50

C29, C34,

C38, C44,

C47, C49

C30

STPS1L60A,

SMA

STPS1150,

DO-41

Value

STBB1-AXX,

DFN10 3x3

P6KE200A, SMA

STTH108, SMA

10 nF, SMD0805,

10 V

4.7 µF,

SMD0805, 10 V

0.1 µF,

SMD0805, 6.3 V

6.8 pF,

SMD0805, 10 V

1 µF, SMD0805,

10 V

1 µF, SMD0805,

10 V

10 nF/0402,

SMD0805, 10 V

100 nF,

SMD0805, 10 V

1000 µF, Ø10x20

- pitch 5, 10 V

2.2 µF, Ø6,3x10 pitch 2,5, 10 V

10 nF, SMD0603,

25 V

Capacitors

Capacitor

Capacitors

Capacitors

Capacitors

Capacitor

Capacitors

Capacitors

Capacitor

Capacitor

Capacitors

Description

High efficiency single inductor dual mode buckboost DC-DC converter with

2.3 A switches peak curren

ST

1 A 60 V

Power

Schottky

Rectifier

600 W TVS in

DO-15

ST

ST

Manufacturer

800 V, 1 A ultra-fast diode

150 V power

Schottky rectifier

ST

ST

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

150 pF,

SMD0402, 25 V

100 nF,

SMD0402, 50 V

4.7 µF,

SMD0603, 16 V

Capacitors

Capacitors

Capacitor

Any

Any

Any

Part Number

STBB1-AXX

STPS1L60A

P6KE200A

STTH108

STPS1150

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any page 22/31

UM2898 - Rev 1

UM2898

Bill of materials

1

1

1

1

3

1

1

1

1

2

1

36

37

38

34

35

30

31

32

28

29

Item

33

Q.ty

39

44

49

50

47

48

51

45

46

40

41

42

43

1

1

2

1

2

1

1

1

1

1

1

2

1

C41

C48

C53

C32

Ref.

C36, C45

J1

J2

J3

J9

J10

J11, J12

J13

C54

C55

C57, C61,

C63

C58

C59

C60

C66

C68

D12, D23

D13

D21, D22

D24

Value

100 µF,

SMD1206, 25 V

15 pF, SMD0402,

10 V

1 µF, SMD0603,

10 V

22 nF, SMD0603,

25 V

4.7nF, SMD0805,

25 V,

47 µF, THT

Ø12.5x25 - pitch

5, 25 V

5 F, THT Ø10x20

- pitch 5, 400 V

Description

Capacitor

Capacitors

Capacitor

Capacitor

Capacitor

Capacitor

Capacitor

470 µF, THT, lead spacing 7.5 mm,

5 V

2.2 nF,

SMD0805, 220 V

470 nF,

SMD0805, 50 V

Capacitors

Capacitor

Capacitor

Manufacturer

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

1 nF, THT

Ø8x11.5 - pitch

3.5, 50 V

22 nF/X2, THT, lead spacing 15 mm (18 mm x 7 mm x 12.5 mm),

50 V

SOD323, THT,

Pitch 2.54 mm

Capacitor

Capacitor

22 µF, THT, 10 V Capacitor

SMD0805

7 V, THT

THT

Green LEDs

Diode

Diodes

Any

Any

Any

Any

10 V general purpose signal

Schottky diode

Jumper

Any

Any

ST

Any CR2032

7X2, THT 2.54

mm pitch

CON2, THT 2.54

mm pitch

Header

Connector

Any

Any

CON1_NEUTRA

L, single pin THT

CON1_PHASE,

Single Pin THT,

CON1, single pin

THT

CON22, 20 pin

THT

Connector

Connector

Connectors

LCD connector

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Part Number

BAT60

Any

Any

Any

Any

Any

Any

Any page 23/31

UM2898 - Rev 1

UM2898

Bill of materials

68

69

70

71

60

61

62

63

64

65

66

67

55

58

59

56

57

52

53

54

Item

4

1

1

1

2

1

1

1

1

1

1

2

5

1

1

1

Q.ty

72

73

12

1

2

1

21

1

J16

J21

J24

J25

Ref.

Value

ER-14250, THT

Description

Battery connector

SWD, THT 2.54

mm pitch

3X2, THT

Connector

Header

REALY_CON,

THT 2.54 mm pitch

Connector

470E, SMD1206 Inductors

Manufacturer

Any

Any

Any

Any

Any L1, R74

L2, L3, L4,

L6, L7

L5

1500E, SMD0603 Inductors Any

L8

L11, L12,

L13, L14

L20

L21

L22

NTC1,NTC2

PD1

PQ1

RV1

2 pin, 2.54 mm

1mH, 1000 µH

±10% SMD 1005

10 µH, SMD0805

Inductor

Fixed inductor

Fixed inductors

470 µH, SMD 6.3

x 6.3 x 3.0 mm

CM, THT

2.2 µH, SMD

16E, 2.4 W, 16

Ohms 2.9 amps

1207 k

TX, THT

RX, THT

460 V, THT, diameter 14 mm

Inductor

Inductor

Inductor

Inrush current limiters

TX THT

RX THT

THT

Any

Any

Any

Any

Any

EPCOS

TDK

Any

Any

Any

R1, R2, R3,

R7, R41,

R42, R43,

R44, R72,

R86, R87,

R88

10 K, SMD0805 Resistors

R4

R5, R6

R8

R10, R33,

R34, R35,

R36, R37,

R38, R40,

R46, R63,

R91, R94,

R95, R97,

R99, R100,

R101, R102,

R103, R104,

R105

R11

6.8 M,1 W,

SMD1206

Resistor

4.7 K, SMD0805 Resistors

33 K, SMD0805 Resistor

0, SMD0402 Resistors

100 E,1 W, THT Resistor

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Part Number

B82721-K2701

B57236S0160M000V9

Any

Any

Any

Any

Any

Any

Any

Any

Any page 24/31

UM2898 - Rev 1

UM2898

Bill of materials

74

75

76

77

94

95

96

97

98

99

100

86

87

88

89

90

91

92

93

78

79

80

81

82

83

84

85

Item

1

1

1

1

1

1

1

1

1

1

1

1

3

3

1

1

1

2

4

1

1

1

3

1

1

14

12

Q.ty

SW5

TP1

T1

Y1

R61

R65

R80, R82,

R84

R81, R83,

R85

R96

R106

SW1

Ref.

R13, R15,

R16, R17,

R22, R24,

R25, R26,

R49, R64,

R67, R68,

R71, R92

R18

R27

R28, R32,

R48, R57,

R59, R62,

R66, R70,

R75, R77,

R108, R109

R29, R30

R31, R45,

R50, R56

R39

R47

R51

R52, R53,

R54

R55

R58

R60

SW2

SW3

SW4

Value

0 E, SMD0805

1 K, SMD0805

8.2 K, SMD0805

100E, SMD0805

270 K, SMD0204

Description

Resistors

51 K, SMD1206 Resistor

1.3E, SMD1206 Resistor

Resistors

Resistors

Resistors

50 K, SMD0805 Resistor

1ME, SMD0603 Resistor

100K, SMD0805 Resistor

Resistors

Manufacturer

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

470, SMD0207

22 K, SMD0805

THT

Resistor

Resistor

Resistor

6E, SMD0603 Resistor

560K, SMD0805 Resistor

1M/0402,

SMD0805

Resistors

0E/0402,

SMD0805

Resistors

510E, SMD0805, Resistor

220E, SMD0805 Resistor

THT

Top cover open switch

THT

THT

Terminal cover open switch

Up and down switch

Any

Any

Any

Any

Any

Any

Any

MD_RESET SW,

THT

Reset switch

THT

THT

Open module switch

Test point

EE 16 N87, vertical

Bobbin coil

32.768 KHz, THT THT

Any

Any

Any

Any

Any

Any

Any

Isabellenhuette

Heusler GmbH &

Co. KG

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Part Number

BKW-M-R0003-5.0

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any

Any page 25/31

UM2898

Bill of materials

101

Item

102

1

2

Q.ty

103 1

Ref.

Y3

U4, U9

U7

Value

16 MHz, THT, pitch 5 mm

DBLS208GRD

AH180

Description

THT

Manufacturer

Any

Bridge rectifier

Board mount

Hall effect magnetic sensor

Taiwan

Semiconductor

Diodes

Incorporated

Any

Part Number

DBLS208GRD

AH180

UM2898 - Rev 1 page 26/31

Revision history

Date

23-Aug-2021

Table 4. Document revision history

Revision

1 Initial release.

Changes

UM2898

UM2898 - Rev 1 page 27/31

UM2898

Contents

Contents

1 Acronyms and abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2

2 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3

2.1

Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2.2

Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

2.3

System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

3 Hardware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5

4 Component description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7

4.1

STPM33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4.2

STM32L433VCT6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

4.3

ALTAIR04-900 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

5 How to run the single-phase smart meter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8

6 Firmware description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11

6.1

Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

6.2

Folder structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

6.3

APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

6.4

State machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

7 Schematic diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13

8 Bill of materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27

List of tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29

List of figures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30

UM2898 - Rev 1 page 28/31

UM2898

List of tables

List of tables

Table 1. List of acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Table 2. STDES-EMETER1PV1 and ST-LINK/V2 pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Table 3. STDES-EMETER1PV1 bill of materials. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Table 4. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

UM2898 - Rev 1 page 29/31

UM2898

List of figures

List of figures

Figure 1. STDES-EMETER1PV1 single-phase smart meter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Figure 2. STDES-EMETER1PV1 smart meter main sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Figure 3. STDES-EMETER1PV1 hardware block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Figure 4. STDES-EMETER1PV1 top view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Figure 5. STDES-EMETER1PV1 bottom view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Figure 6. STDES-EMETER1PV1 and ST-LINK/V2 pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Figure 7. STDES-EMETER1PV1 and ST-LINK/V2 connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Figure 8. STM32 ST LINK utility - target connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Figure 9. STM32 ST LINK utility - file opening . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Figure 10. STM32 ST LINK utility - file selected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Figure 11. STDES-EMETER1PV1 - LCD display while running . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Figure 12. STSW-EMETER1-FW folder structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Figure 13. STSW-EMETER1-FW state machine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Figure 14. STDES-EMETER1PV1 circuit schematic (1 of 8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Figure 15. STDES-EMETER1PV1 circuit schematic (2 of 8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Figure 16. STDES-EMETER1PV1 circuit schematic (3 of 8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Figure 17. STDES-EMETER1PV1 circuit schematic (4 of 8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Figure 18. STDES-EMETER1PV1 circuit schematic (5 of 8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Figure 19. STDES-EMETER1PV1 circuit schematic (6 of 8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Figure 20. STDES-EMETER1PV1 circuit schematic (7 of 8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Figure 21. STDES-EMETER1PV1 circuit schematic (8 of 8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

UM2898 - Rev 1 page 30/31

UM2898

IMPORTANT NOTICE – PLEASE READ CAREFULLY

STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.

Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of

Purchasers’ products.

No license, express or implied, to any intellectual property right is granted by ST herein.

Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.

ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks . All other product or service names are the property of their respective owners.

Information in this document supersedes and replaces information previously supplied in any prior versions of this document.

© 2021 STMicroelectronics – All rights reserved

UM2898 - Rev 1 page 31/31

advertisement

Related manuals