background image

Introduction

The 

STDES-BLUEPLUG2

 is a reference design for home-automation and Internet of Things (IoT) applications.

The on-board 

BLUENRG-M2SP

 is compliant with Bluetooth Low Energy (BLE) specification 5.2 to allow secure communication

of metering data from specific electrical loads to a smart phone with BLE support.

It supports multiple roles simultaneously and can act at the same time as Bluetooth smart master and slave device.

The device current consumption on AC mains is 3 to 7 mA.

The device acts as BLE peripheral device which can be connected to any smart device using the Android 

ST BLE PLUG

 app

(available for free download on Google Play) to control and monitor the load and its energy parameters.

The app features load ON/OFF turning, scheduling, dimming and metering parameters.

The 

STDES-BLUEPLUG2

 embeds an 

STPM32

 metering chip for high accuracy measurement of power and energy in power

line systems using shunt current sensors, a three-terminal TRIAC which controls the current through AC switching for various
electrical system applications, and a non-isolated buck converter supply based on the 

VIPER06XS

. This type of supply is ideal

for the applications (like 

ST BLE PLUG

) where a large amount of current is not needed and a small form factor is required.

The 

STDES-BLUEPLUG2

 is a fully assembled board developed for performance evaluation only, not available for sale.

Figure 1. 

STDES-BLUEPLUG2 reference design - top and bottom views

How to use the STDES-BLUEPLUG2 reference design for home automation 

smart plugs

UM2862

User manual

UM2862

 - 

Rev 2

 - 

May 2021

For further information contact your local STMicroelectronics sales office.

www.st.com

Summary of Contents for STDES-BLUEPLUG2

Page 1: ...oad ON OFF turning scheduling dimming and metering parameters The STDES BLUEPLUG2 embeds an STPM32 metering chip for high accuracy measurement of power and energy in power line systems using shunt cur...

Page 2: ...nts when the board is connected or immediately after the board is disconnected as the capacitors may still be charged Do not connect probes to any high voltage components if the board is not isolated...

Page 3: ...mmable load rated below 12 A Rated voltage 240 120 VAC typ Rated current 12 A typ Power consumption of plug 0 7 W max Instantaneous and averaged power RMS and instantaneous voltage and current BLUENRG...

Page 4: ...A12 800BWRG 12 A TRIAC 2 STPM32TR IC for metering applications 3 BLUENRG M2SP Bluetooth Low Energy v5 2 module 4 VIPER06XS 30 KHz offline converter 5 STTH110RL High voltage ultra fast rectifier 6 L493...

Page 5: ...ity status 2 4 Zero crossing detector circuit A zero crossing circuit is an electrical circuit that begins operation with the AC load voltage at close to 0 V in the AC cycle Zero crossing detection is...

Page 6: ...quired output waveform Figure 5 Zero crossing detection with oscilloscope 3 2 1 Note 1 AC voltage 2 Output of the transistor 3 Output of the transistor goes low as ac voltage approaches zero Figure 6...

Page 7: ...R32 7 5K 0805 R34 5 1K 0805 D1 SMA C44 1 5uF 0805 25V J1 CON2 1 2 R10 160k 0402 J13 N_IN 1 R1 10E 2410 1W J10 P_IN 1 L1 470uH U6 VIPER 06XS 1 GND 2 VDD 8 DRAIN3 9 DRAIN4 10 DRAIN 3 LIM 4 FB 5 COMP 7 D...

Page 8: ...d connectors Input mains connectors P_IN J10 N_IN J13 Load connectors P_OUT J11 N_OUT J12 Figure 8 Phase P and neutral N input IN and output OUT connectors 3 2 1 5 4 P_IN P_OUT N_OUT N_IN J10 J11 J12...

Page 9: ...the BLUE LED LD2 will blink at the frequency of 2 Hz 3 1 Control a load with the device Follow the instructions below to control a load with the STDES BLUEPLUG2 reference design and the ST BLE PLUG ap...

Page 10: ...Step 2 Select the load type Bulb for this example Figure 11 ST BLE PLUG load type panel UM2862 Control a load with the device UM2862 Rev 2 page 10 25...

Page 11: ...T BLE PLUG controlling the bulb Select the bulb image to turn it on or off Use the slider to control dimming Note LED lights are not particularly suitable to evaluate the dimming function Figure 13 ST...

Page 12: ...he following events occur in the state machine figured above 1 The peripherals are initialized including USART for STPM the timer for firing the TRIAC I2C for the NFC RFID EEPROM GPIOs and System Cloc...

Page 13: ...1 2 C49 200nF 0805 R32 7 5K 0805 R34 5 1K 0805 D1 SMA C44 1 5uF 0805 25V J1 CON2 1 2 R10 160k 0402 J13 N_IN 1 R1 10E 2410 1W J10 P_IN 1 L1 470uH U6 VIPER 06XS 1 GND 2 VDD 8 DRAIN3 9 DRAIN4 10 DRAIN 3...

Page 14: ...DIO4 3 VCC 5 DIO7 BOOT USART CTS 7 GND 8 DIO6 USART RTS 9 USART_TXD DIO8 10 USART_RXD DIO11 11 TCK SWTCK 12 TMS SWTDI 13 ANATEST1 14 SPI_CLK DIO0 15 SPI_MOSI DIO2 16 SPI_MISO DIO3 17 SPI_CS DIO1 18 B...

Page 15: ...ISO TXD 24 LED2 5 EN 7 VIP1 8 VIN1 9 IIP1 10 IIN1 11 VREF1 12 GND_REF 13 GNDA 14 GND_EX 25 C19 150pF 0402 50V C4 150pF 0402 50V L2 1500 OHM 0603 R25 1K R6 10K 0603 C20 100nF 0402 16V C5 100nF 0402 16V...

Page 16: ...2160 R28 330 R38 1K 0603 Q2 2STR1215 3 2 1 R51 10K 0402 U5 MOC3020S ANODE 1 CATHODE 2 NC 3 MAIN_TERMINAL_2 6 SUBSTRATE 5 MAIN_TERMINAL_1 4 R39 10K 0603 J12 N_OUT 1 R53 10K 0402 Q1 BTA12 800BWRG 3 2 1...

Page 17: ...ST BLUENRG M2SP 6 1 Q1 BTA12 800BWRG THROUGH HOLE TO220AB Standard and Snubberless Triacs ST BTA12 800BWRG 7 1 Q2 2STR1215 SOT 23 40 V 0 8 A W Low voltage fast switching NPN bipolar transistor ST 2STR...

Page 18: ...0603 SMD 16 V 10 Multilayer ceramic capacitor Murata Electronics GRM188R61E475KE11D 24 1 C51 100 nF 0603 SMD 16 V 10 Multilayer ceramic capacitor AVX 581 0603YD104KAT2A 25 1 R1 10E 2410 1 W SMD 2410 2...

Page 19: ...resistor Yageo RC0603JR 070RL 44 2 R51 R53 10 K SMD 0402 1 16 W 1 Metal thick film resistors Yageo RC0402JR 0710KL 45 2 R55 R60 4 7 K SMD 0402 1 5 W 5 Metal thick film resistors Rohm Semiconductor ESR...

Page 20: ...e Test point Any Any 58 1 J11 P_OUT Through Hole Test point Any Any 59 1 J12 N_OUT Through Hole Test point Any Any 60 1 J13 N_IN Through Hole Test point Any Any 61 1 SW3 SW Push Button SMD 12 V 0 05 A...

Page 21: ...history Table 1 Document revision history Date Revision Changes 11 May 2021 1 Initial release 13 May 2021 2 Updated Section 3 Set up the board and connect with the Android app UM2862 UM2862 Rev 2 pag...

Page 22: ...ero crossing detector circuit 5 2 5 Power supply 6 3 Set up the board and connect with the Android app 8 3 1 Control a load with the device 9 4 State machine 12 5 Schematic diagrams 13 6 Bill of mater...

Page 23: ...List of tables Table 1 Document revision history 21 UM2862 List of tables UM2862 Rev 2 page 23 25...

Page 24: ...P and neutral N input IN and output OUT connectors 8 Figure 9 ST BLE PLUG launch screen 8 Figure 10 Connect the devices 9 Figure 11 ST BLE PLUG load type panel 10 Figure 12 ST BLE PLUG controlling the...

Page 25: ...ts 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 pro...

Reviews: