Atmel AT16225 Hardware User's Manual

Atmel AT16225 Hardware User's Manual

Smart plug

Advertisement

Quick Links

AT16225: Atmel Smart Plug Hardware User Guide
Introduction
®
The Atmel
Smart Plug Reference Design provides a system solution for a Wi-Fi
enabled power plug that can turn on/off power from the main plug in three ways:
using the QTouch
®
button, using the Android™ app with a Wi-Fi connection, or
using a scheduled on/off from the Android app. It is an IoT application using the
ATSAMW25 module (a highly integrated module with ATSAMD21, WINC1500,
ECC508A), and an ATM90E26 device to realize ARM
control, Wi-Fi connection, CryptoAuthentication with secure hardware key
storage, QTouch sensing, and energy metering functions with an optimized BOM.
This document describes the hardware design of the smart plug reference
design.
Features
Turnkey solution with small form factor
Three models following either US, EU, or Chinese standards
AC input 90-265V and 50/60Hz
Max output power: 2200W(10A)
Based on ATSAMW25 module
ATSAMD21 Cortex-M0+ MCUWINC1500 IEEE 802.11 b/g/n 2.4G Wi-Fi
Controller
ECC508A hardware Authentication and Encryption
ATM90E26 power and energy metering function
QTouch button
CE/FCC/UL&CUL Certification
Figure 1.
Atmel Smart Plug Kits
Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016
ATSAMW25
Application Note
®
®
Cortex
-M0+ MCU
®

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AT16225 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Atmel AT16225

  • Page 1 ATSAMW25 AT16225: Atmel Smart Plug Hardware User Guide Application Note Introduction ® ® The Atmel Smart Plug Reference Design provides a system solution for a Wi-Fi enabled power plug that can turn on/off power from the main plug in three ways: using the QTouch ®...
  • Page 2: Table Of Contents

    Open the Kit ............................18 Power Supply ............................18 6.2.1 Onboard AC Power ........................ 18 6.2.2 External DC power ......................... 19 Programming Tools ..........................20 Programming ............................21 Revision History ......................22 AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 3: Overview

    Power Board: Socket and Plug, AC-DC, DC-DC, Power Measurement, Relay. System Overview Figure 1-1. System Block Diagram Output Socket Input Plug Fuse Relay ATM90E26 DC/DC 3.3V ATSAMW25 LEDs AC/DC DataFlash Button AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 4: Mcu Board

    Figure 1-2. Overview of the Smart Plug Kit PCBs MCU Board MCU Board Overview Figure 2-1. MCU Board Overview AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 5: Atsamw25

    ATSAMW25 The Atmel SmartConnect SAM W25 is a low-power Wi-Fi certified module. This highly integrated module offers the ideal solution for designers seeking Wi-Fi connectivity. The SAM W25 integrates an 802.11 IP stack on top of the Wi-Fi core and fully covers RF certifications.
  • Page 6 Crypto SDA Reserved interface for internal crypto PA09 Crypto SCL Reserved interface for internal crypto PA10 PM TXD Interface for Power Measurement device PA11 PM RXD Interface for Power Measurement device AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 7: Programming Interface

    GND (External power input if onboard power is not available) VCC (External power input if onboard power is not available) Touch Guard Sensor 1 Power LED Green Touch Key Sensor AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 8: Header To Power Board

    Space for a DataFlash device is reserved (but not mounted) on the board. This can be used to store more data locally if needed. Figure 2-3. Schematic of DataFlash Part AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 9: Touch Board

    Touch sensors are designed based on the self-capacitor using the QTouch technology. Except the Touch Key which handles the ON/OFF/Reset function, another two touch sensors act as the touch guard. The touch guard sensors will prevent some scenarios from spurious triggering. AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 10: Leds For Wi-Fi And Power

    Power Green PB03 Power Red PB02 Power Board Power Board Overview The Power Board contains an AC-DC converter, a DC-DC converter, the power measurement circuit, relay, and the plug and socket. AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 11: Ac-Dc

    The AC-DC part transforms the 100V~240V AC input voltage into a 12V/120mA (typical) DC output. The 12V DC supplies the relay and the DC-DC converter. Figure 4-2. Schematic of AC-DC Part AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 12: The Fuse

    There are two signals sampled by ATM90E26, one is the voltage which comes from the L line, another is the differential voltage based on the current in sense resistor R311. AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 13 The power measurement device will calculate and output the sampled voltage, current, and power to SAM W25 through the UART port. Considering the different power supply system, 2 optocouplers are used to isolate the SAM W25 and M90E26. Figure 4-6. Schematic of Power Measurement AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 14: Power Measurement Calibration

    The relay is cascaded in the AC input and output. So, the Relay can direct control the ON/OFF of the AC output. The rated current of the relay is 10A, this means the output power is limited to Max 2200W (@ 220V AC). AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 15: Plug And Socket

    Active Logic Pin name on ATSAMW25 ATSAMW25 pin PWR_RELAY PB22 Plug and Socket There are three types of the Plug and Socket: US, EU, and CN. They share the same PCB. AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 16 Figure 4-8. US, EU, and CN standard of Plug and Socket AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 17: Pcb Assembly

    When the front and rear case are closed, make sure the touch board connector is aligned with the MCU board pin header. Figure 5-1. PCB Stack Structure Overview AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 18: Reprogram The Kit

    At first, connect the programming tools and Kit with the 10-pin SWD connector. Then, plug the Kit into the AC socket and the kit will be powered by the onboard power supply. AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 19: External Dc Power

    It is recommended to use the external DC to power the board while reprogramming since it is far safer than the AC power. Figure 6-4. Kit Powered by the External DC Input AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 20: Programming Tools

    SWD interface. Some tools support a direct connection with the 1.27mm pitch, 10-pin socket. Figures below show the connection example of programming tools. Figure 6-6. Atmel-ICE Connection Figure 6-7. JTAGICE3 Connection AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 21: Programming

    For other programming tools which do not have the 1.27mm pitch, 10-pin socket, the user needs to connect the SWD lines manually. Programming Connect the kit to a PC with Atmel Studio installed. Click Tools → Device Programming to open the programming dialog. Then, program the kit as show below. Note: The Device selector must be set to ATSAMD21G18A.
  • Page 22: Revision History

    Date Comments A new section 4.3 (The Fuse) is added. 42698B 07/2016 In section 4.7, the “Note”. “less than” has been corrected to “bigger than”. 42689A 03/2016 Initial document release. AT16225: Atmel Smart Plug Hardware User Guide [APPLICATION NOTE] Atmel-42689B-Atmel-Smart-Plug-Hardware-User-Guide_AT16225_ApplicationNote_07/2016...
  • Page 23 DISCLAIMER: The information in this document is provided in connection with Atmel products. No lic ense, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND COND ITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON -INFRINGEMENT.
  • Page 24 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Microchip ATSMARTPLUGUS ATSMARTPLUGEU ATSMARTPLUGCN ATSMARTPLUG-CN ATSMARTPLUG-US ATSMARTPLUG-EU...

Table of Contents