UM1569
Application note
STEVAL-IHP004V1: SmartPlugW demonstration board
By Salvo Bonina and Nunzio Dipaola
Introduction
This demonstration board is a smartplug based on the STM32W108CB microcontroller
integrated into the SPZB32W1A2.1 module, the STPM10 energy metering IC, and the
T2035H Triac. The board is a node of an IEEE-802.15.4 network which allows the final user
to monitor and manage the energy consumption of the load connected to the SmartPlugW.
The board has been developed to provide a guideline to build an automation subsystem for
energy management and is designed to fit the dimensions of a standard box for wall
installation and easy integration into the electrical systems of homes or commercial
buildings. The current, power, energy and other information related to the electrical load
connected to the SmartPlugW board are sent to a data concentrator through the wireless
network of a home or building. The board includes the following sections shown in the block
diagram of
Figure 1:
•
Energy measurement by the STPM10 IC
•
Wireless communication up to 250 kbps by the SPZB32W1A2.1 module
•
Data storage by the M24LR64 dual-interface EEPROM
•
Power supply by VIPer16
•
Load driver with soft-start/stop by T2035H TRIAC and relay
Figure 1. SmartPlugW block diagram
RELAY
Power
Management
3.3V
12V
TRIAC
GPIO
3.3V
DUAL EEPROM
M24LR64
I2C
ZigBee Module
IEEE802.15.4
Energy Measurement
STPM10
SPI
SPZBW
LOAD
AM15223v1
March 2013
DocID23586 Rev 1
1/24
www.st.com
Contents
UM1569
Contents
1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1
1.2
1.3
1.4
Recommended reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Safety precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Getting technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Package list . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2
SmartPlugW demonstration board components . . . . . . . . . . . . . . . . . . 5
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
Microcontroller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Wireless communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Energy measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Load driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Local storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Status LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
Pushbuttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.12.1
2.12.2
STM32 JTAG connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Energy meter IC calibration connector . . . . . . . . . . . . . . . . . . . . . . . . . 14
3
4
5
6
Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Bill of material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2/24
DocID23586 Rev 1
UM1569
Overview
1
1.1
Overview
Recommended reading
This document describes how to configure and use the SmartPlugW demonstration board.
Additional information can be found in the following documents:
•
•
•
ST device datasheets referenced in this document
Third-party device datasheets
AN4139
1.2
Safety precautions
The board must be used only by expert technicians. Due to the high voltage (220 Vac)
special care should be taken with regard to human safety.
There is no protection against accidental human contact with high voltages.
After disconnection of the board from the mains, none of the live parts should be touched
immediately because of the energized capacitors.
It is mandatory to use a mains insulation transformer to perform any tests on the board in
which test instruments such as spectrum analyzers or oscilloscopes are used.
Do not connect any oscilloscope probes to high-voltage sections in order to avoid damaging
instruments and demonstration tools.
Warning:
STMicroelectronics assumes no responsibility for any
consequences which may result from the improper use of
this tool
1.3
Getting technical support
Technical assistance is provided free to all customers. For technical assistance,
documentation, upgrades and information about products and services, please contact your
local ST distributor/office.
1.4
Package list
The SmartPlugW demonstration kit includes the following items:
•
•
The SmartPlugW demonstration board (Figure
2)
A CD-ROM with software and documentation
DocID23586 Rev 1
3/24
Overview
Figure 2. SmartPlugW board
UM1569
4/24
DocID23586 Rev 1
UM1569
SmartPlugW demonstration board components
2
SmartPlugW demonstration board components
The SmartPlugW board is composed of three PCB layers as described in the following
figures. The bottom layer includes the power supply section, a non-insulated flyback AC/DC
based on the VIPer16 controller, the AC load driver, which includes the 16 A relay and the
T2035H Triac, and the metrology section based on the STPM10 IC. The middle layer is the
digital section including the SPZB32W1A2.1 module and the M24LR64 memory with its
antenna. The top layer includes the LEDs and the user buttons and is integrated into the
plastic front cover of the wall box. The LEDs are entitled LED1, LED2, LED3 and PWR; the
buttons are RST, B1 and B2.
Figure 3. SmartPlugW top
Figure 4. SmartPlugW middle
DocID23586 Rev 1
5/24