
AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE]
Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016
Table of Contents
1Overview .....................................................................................................................3
1.1 System Overview ..................................................................................................................................3
2MCU Board................................................................................................................... 4
2.1 MCU Board Overview............................................................................................................................4
2.2 ATSAMW25 ..........................................................................................................................................5
2.3 Programming Interface..........................................................................................................................7
2.4 Header to Touch Board.........................................................................................................................7
2.5Header to Power Board.........................................................................................................................8
2.6 DataFlash (Not Mounted)......................................................................................................................8
3Touch Board ................................................................................................................9
3.1 Touch Board Overview..........................................................................................................................9
3.2 Touch Sensors......................................................................................................................................9
3.3 LEDs for Wi-Fi and Power...................................................................................................................10
3.3.1 Wi-Fi LED...............................................................................................................................10
3.3.2 Power LED .............................................................................................................................10
3.3.3 LED Pin Definition on SAM W25 ............................................................................................10
4Power Board .............................................................................................................. 10
4.1 Power Board Overview........................................................................................................................10
4.2 AC-DC ..............................................................................................................................................11
4.3 The Fuse.............................................................................................................................................12
4.4 DC-DC ..............................................................................................................................................12
4.5 Power Measurement...........................................................................................................................12
4.6 Power Measurement Calibration.........................................................................................................14
4.6.1 Calculation of the GL..............................................................................................................14
4.6.2 Calculation of the Ugain..........................................................................................................14
4.6.3 Calculation of the Igain...........................................................................................................14
4.6.4 Calculation of the PL_Constant..............................................................................................14
4.7 The Relay............................................................................................................................................14
4.8 Plug and Socket..................................................................................................................................15
5PCB Assembly........................................................................................................... 17
5.1 PCB Stack Structure ...........................................................................................................................17
6Reprogram the Kit..................................................................................................... 18
6.1 Open the Kit ........................................................................................................................................18
6.2 Power Supply......................................................................................................................................18
6.2.1 Onboard AC Power ................................................................................................................18
6.2.2 External DC power .................................................................................................................19
6.3 Programming Tools.............................................................................................................................20
6.4 Programming.......................................................................................................................................21
7Revision History........................................................................................................22