STEVAL-IHP002V2 Smartplug system to measure and control AC loads based on the STM32, ST7540 PLM and STPM01 Data brief Features ■ Energy measurement by the STPM01 ■ Power line communication by the ST7540 up to 4.8 kbps ■ USART connectivity or expansion connector ■ Output with two contacts (NO/NC) and common contact for generic load ■ Designed to fit a standard "503" wall box ■ RoHS compliant Description The STEVAL-IHP002V2 demonstration board implements a PLM smartplug node which allows monitoring the energy consumption of a mains plug and controlling any kind of load in on/off mode through a relay. STEVAL-IHP002V2 The board is based on the STM32F103CB microcontroller, the ST7540 PLM module and the STPM01 mono-phase energy metering IC. The board is designed to fit a standard "503" wall box. The voltage, current, power, active energy and the output status can be sent to a PLM data concentrator through a power line communication network on request. Moreover, if the power consumption changes, it is sent asynchronously to the data concentrator. March 2012 Doc ID 022253 Rev 1 For further information contact your local STMicroelectronics sales office. 1/10 www.st.com 10 "54(%2#$0$ 2X4X 2%'?$!4 ! 34 #/. * & ! '.$?0,- 6!26 26 %!24( . 0,- #,24 2X$ 4X$ , 5!24?28 0,-?3#+ 0,-?28 0,-?48 34- 340- 23 0,-?"5 0,-?#$0$ 0,-?2X4X 0,-?2%'$!4 ! 340-?39. 340-?3#3 340-?3#+ 340-?-)3/ 340-?-/3) -#5 . 5!24?48 /04?#-$ :#2 -#/ 39.?-#5 30)?3#3 30)?#,+ 30)?-)3/ , %NERGY-EASUREMENT !LTAIR . , 0OWER3UPPLY :#2 #,+ 53!24?28 Top-level schematic 0##OMM Figure 1. 53!24?48 Circuits schematic $IMMER3WITCH 1 42)!#2ELAY STEVAL-IHP002V2 /04?/54?#-$ Circuits schematic !-V 2/10 Doc ID 022253 Rev 1 4 - 2 N 22 1W R110 1 Doc ID 022253 Rev 1 6 FB/ZCD C124 1nF R118 10K 1 2 GND C123 10nF 4 1 7 C122 470nF IREF CURRENT CONTROL 5 COMP 2 NC D16 STTH1L06A DRAIN SOURCE 10 R113 1 2 R116 2.2 1 2 1 2 - VDD 12 + LL4148 D17 4.7uF 400V + C117 3 2.5V ALTAIR05T-800 2.2uF + C120 4.7uF 400V 2 C118 470pF 400V 13 14 15 16 R115 4.7K 470uH + C116 1 L8 R117 22 R111 120K 3 2 1 4 T2 8 5 STPS1H100A D15 2 2.2nF 1 C121 470uF 16V Low ESR + C119 R112 10k DL1 RED R61 1k 1 VCC_12V 10uH L9 2 VIN VOUT GND IC3 100uF 16V + C95 3 LD1117ADT33TR 1 U13 R114 27K 3 BRMB6S-RC + D14 2 47uF 25V + C96 VCC_3V3 Figure 2. L STEVAL-IHP002V2 Circuits schematic Power supply section 8 9 10 11 AM10555v1 3/10 Circuits schematic Figure 3. STEVAL-IHP002V2 USART expansion connector section * 5!24?48 5!24?28 53!24 !-V 4/10 Doc ID 022253 Rev 1 Doc ID 022253 Rev 1 Digital Ground C24 10 uF PA_IN+ Analog Signal Ground Vcc TP16 TP14 Analog Power Ground C25 100 nF TP15 TP13 C15 10 uF Vdd VDC 1 2 JP5 CLOSE C16 100 nF 1 JP4 CLOSE 2 VDC GND_PLM C17 10 uF Vdd Tx_OUT Vdd C18 100 nF VDC Vcc R20 56k CD/PD REG_DATA R19 2k4 VCC_12V C32 270 pF Vdd R6 1k1 CL R9 4k7 MCLK RSTO UART/SPI WD PA_IN- RxD RxTx TxD BU/THERM CLR/T R10 13k 1 2 3 4 5 6 7 8 9 10 11 12 13 14 C33 100 pF Vsense PA_OUT C14 10nF Tx_OUT ST7540 R8 15k R7 47K 28 27 26 25 24 23 22 21 20 19 18 17 16 15 Vcc D8 PA_OUT Tx_OUT PA_IN+ Rx_IN CL Vsense 2 1 C22 10uF 2 TEST2 TEST1 L6 220 uH R13 2k7 C27 10 nF Vcc TEST2 TEST1 VDC Rx_IN CL Vsense X2 X1_OSCIN SVss Tx_OUT PA_IN+ Vcc Vss PA_OUT BAT54S/SOT 2 Rx_IN VDC D10 PA R14 1k8 C30 15 pF CD/PD REG_DATA GND RxD Rx/Tx TxD BU/THERM CLR/T Vdd MCLK RSTO UART/SPI WD PA_IN- U3 PA_IN- PA_IN+ R12 1k C31 22 pF C21 100pF 1 PA_IN- PA_OUT Tx_OUT CD/PD TP11 TP27 TP12 TP25 Vdd Vsense TP22 CL REG_DATA VDC 3 3 R17 470 VDC Vcc C26 6.8 nF TEST2 TEST1 4 1 C12 33pF 1 C11 33pF X1 16Mhz OSCIN 5 8 T3 Line transformer BAT54S/SOT Vcc VDC L5 22 uH 2 1 2 3 4 5 J1 PEAK METER CONNECTOR SVss Rx_IN D9 SM6T15CA C23 68nF X2 Non Isolated topology for 132kHz (Band C) N L Figure 4. 1 TEST PADS STEVAL-IHP002V2 Circuits schematic Power line modem section AM10557v1 5/10 6/10 Doc ID 022253 Rev 1 C101 10uF C103 10nF C104 100nF +3.3V C6 22pF C7 470nF +3.3V VBAT PC13/TAMP/RTC PC14 PC15 PD0/OSC-IN PD1/OSC-OUT NRST VSSA VDDA PA0-WKUP PA1 PA2 ZCR TIM3_CH3 SPI1_MOSI SPI1_MISO SPI1_SCK PA4 PA3 + +3.3V C5 22pF 1M 1 2 3 4 5 6 7 8 9 10 PA1 11 PA2 12 +3.3V 24 23 22 21 20 19 18 17 16 15 14 13 R77 10k R76 10k SW4 Rst R75 Y1 8MHz RESET# C98 100nF U 11 C97 100nF +3.3V VDD1 VSS1 PB11 PB10 PB2 PB1 PB0 PA7 PA6 PA5 PA4 PA3 BOOT_0 BOOT_1 RFID READER RESET# 2 D1 BI-COLOR LED RED/GREEN R70 82 1 PA14 PA15 PB3 PB4 PB5 PB6 PB7 BOOT0 PB8 PB9 VSS3 VDD3 R74 10K BC857B Q2 CAL BOOT_0 37 38 39 40 41 42 43 44 45 46 47 48 I2C2_SCL 1 2 3 4 J8 +3.3V R69 82 BC857B Q1 R68 1k R62 1k JT-TCK JT-TDI JT-TDO JT-NTRST I2C2_SDA R108 R109 4.7k 4.7k +3.3V 1 2 3 36 35 34 33 32 31 30 29 28 27 26 25 C100 100nF +3.3V VDD2 VSS2 PA13 PA12 PA11 PA10 PA9 PA8 PB15 PB14 PB13 PB12 +3.3V S TM 32F10 3C B T 6 PA4 SPI1_SCK SPI1_MOSI SPI1_MISO PA1 PA2 PA3 SPI2_MOSI SPI2_MISO SPI2_SCK USART1_RX USART1_TX JT-TMS C99 100nF PLM_Rx/Tx PLM_SCK PLM_RX PLM_TX PLM_REG/DATA PLM_CD/PD PLM_BU OPT_CMD STPM01_SYN USART_RX USART_TX MCO STPM01_MOSI STPM01_MISO STPM01_SCK STPM01_SCS CAL +3.3V 2 SW8 +3.3V 3 1 1 3 5 7 9 VCC_3V3 2 4 6 8 10 R78 10k R79 10k JTAG/SWD J2 R71 4.7K +3.3V R72 4.7K R73 4.7K JT-TMS JT-TCK JT-TDO JT-TDI RESET# Figure 5. 3 +3.3V Circuits schematic STEVAL-IHP002V2 MCU section I2C2_SDA I2C2_SCL BOOT_1 AM10558v1 1nF C108 1 2 4 3 Doc ID 022253 Rev 1 N L 6.8 R92 L C114 261K R96 10nF C112 261K R97 100nF 100nf C113 261K R21 2M U12 STPM01 led MON MOP Vddd Vss Vcc Vdda Votp Ilp1 Iln1 R94 20 1 ZCR 2 4 5 6 8 7 9 10 Sda Scl Scs Syn CLKout CLKin Vin Vip Iln2 Ilp2 261K R102 261K R101 261K R22 R18, R19, R20, R21 Close to STPM01 R93 1k R90 1k 100nF C111 19 18 3 15 17 16 14 13 12 11 CLK 475 R99 43K R98 0R R95 100 475 R100 R103 C115 10nF 2.4k R86 2.4k R87 1 T1 Current Transformer 6.8 R91 D6 1N4148 C110 100nF C109 100nF 2.4k R85 DL2 R89 560 SCS SYN R88 4K7 SDA_MCU SCS_CAL SPI_CS SYN_CAL SYN_MCU SCLK_CAL SPI_CLK SDA_CAL VOTP SBG GND SDA_CAL SCS_CAL SCLK_CAL LED SYN_CAL SBG CAL CON 1 2 3 4 5 6 7 8 9 10 J6 CALIBRATION SETTINGS SCLK SDA VOTP SBG GND SDA SCS SCLK LED SYN SBG VCC_3V3 SPI_SCS SYN_MCU SPI_CLK SPI_MISO CLK ZCR SPI_MISO CLK ZCR Figure 6. VCC_3V3 VCC_3V3 STEVAL-IHP002V2 Circuits schematic STPM01 2 AM10559v1 7/10 8/10 Doc ID 022253 Rev 1 OPT_OUT_CMD R106 1k R105 1K (DO NOT FIT) VCC_3V3 Q5 2STR1215 RTD14-SPDT 5 4 2 7 16A Relay RS 365-0535 1 8 3 6 K2 CON3 J4 Figure 7. D13 1N4148 VCC_12V 1 2 3 Circuits schematic STEVAL-IHP002V2 Output drivers AM10560v1 STEVAL-IHP002V2 2 Revision history Revision history Table 1. Document revision history Date Revision 13-Mar-2012 1 Changes Initial release. Doc ID 022253 Rev 1 9/10 STEVAL-IHP002V2 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 TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT RECOMMENDED, 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. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK. 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. © 2012 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 - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 10/10 Doc ID 022253 Rev 1