MICROCHIP EV54Y39A User guide

PIC-IoT Wx Hardware User
Guide
PIC-IoT Wx Hardware User Guide

Preface

Important:  This document is applicable for two different products; PIC-IoT WG (AC164164) and PIC-IoT
WA (EV54Y39A). Both variants are referred to as PIC-IoT Wx in this document, and both products have identical hardware. PIC-IoT WG is preconfigured to send data through Google Cloud IoT Core, and PIC­IoT WA is preconfigured to send data through Amazon Web Services (AWS). Both products can be reconfigured to send data to different cloud providers.
Introduction
The PIC-IoT Wx development board is a small and easily expandable demonstration and development platform for IoT solutions based on the PIC® microcontroller architecture using Wi-Fi® technology. It is designed to demonstrate that the design of a typical IoT application can be simplified by partitioning the problem into three blocks:
• Smart - represented by the PIC24FJ128GA705 microcontroller
• Secure - represented by the ATECC608A secure element
• Connected - represented by the ATWINC1510 Wi-Fi controller module
The PIC-IoT Wx Development Board features the following elements:
• The on-board debugger (PKOB nano) supplies full programming and debugging support through MPLAB X IDE. It also provides access to a serial port interface (serial to USB bridge) and one logic analyzer channel (debug GPIO).
• The on-board debugger enumerates on the PC as a mass storage interface device for easy ‘drag and drop’ programming, Wi-Fi configuration, and full access to the microcontroller application Command Line Interface (CLI)
• A mikroBUS™ socket allows for the ability to expand the board capabilities with the selection from 450+ sensors and actuators options offered by MikroElektronika (www.mikroe.com) via a growing portfolio of Click boards
• A light sensor used to demonstrate published data
• Microchip MCP9808 high-accuracy temperature sensor used to demonstrate published data
• Microchip MCP73871 Li-Ion/LiPo battery charger with power path management
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 1
PIC-IoT Wx Hardware User Guide
MPLAB® X IDE - Software to discover, configure, develop, program, and debug Microchip microcontrollers.
Application Code on GitHub - Get started with application code.
PIC-IoT WG website - Find schematics, design files, and purchase the board. Set up for Google Cloud IoT Core.
PIC-IoT WA website - Find schematics, design files, and purchase the board. Set up for Amazon Web Services.
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 2
PIC-IoT Wx Hardware User Guide

Table of Contents

Preface........................................................................................................................................................... 1
1. Introduction............................................................................................................................................. 5
1.1. Features....................................................................................................................................... 5
1.2. Kit Overview................................................................................................................................. 5
2. Getting Started........................................................................................................................................ 7
2.1. Quick Start....................................................................................................................................7
2.2. Design Documentation and Relevant Links................................................................................. 7
3. Application User Guide........................................................................................................................... 8
4. Hardware User Guide............................................................................................................................. 9
4.1. On-Board Debugger Overview..................................................................................................... 9
4.1.1. Debugger.......................................................................................................................9
4.1.2. Virtual Serial Port (CDC)................................................................................................9
4.1.3. Mass Storage Device...................................................................................................12
4.1.4. Data Gateway Interface (DGI)..................................................................................... 13
4.2. On-Board Debugger Connections.............................................................................................. 14
4.3. Power......................................................................................................................................... 15
4.3.1. Power Source.............................................................................................................. 15
4.3.2. Battery Charger........................................................................................................... 15
4.3.3. Hardware Modifications............................................................................................... 15
4.4. Peripherals................................................................................................................................. 16
4.4.1. PIC24FJ128GA705......................................................................................................16
4.4.2. mikroBUS™ Socket...................................................................................................... 16
4.4.3. WINC1510 Wi-Fi Module............................................................................................. 17
4.4.4. ATECC608A................................................................................................................ 18
4.4.5. Temperature Sensor.................................................................................................... 18
4.4.6. Light Sensor.................................................................................................................19
4.4.7. LED..............................................................................................................................19
4.4.8. Mechanical Buttons..................................................................................................... 19
5. Regulatory Approval..............................................................................................................................20
5.1. United States..............................................................................................................................20
5.2. Canada.......................................................................................................................................20
5.3. Taiwan........................................................................................................................................ 21
5.4. List of Antenna Types.................................................................................................................21
6. Hardware Revision History and Known Issues..................................................................................... 22
6.1. Identifying Product ID and Revision........................................................................................... 22
6.2. PIC-IoT WG................................................................................................................................22
6.2.1. Revision 3....................................................................................................................22
6.2.2. Revision 2....................................................................................................................22
6.3. PIC-IoT WA................................................................................................................................ 22
6.3.1. Revision 1....................................................................................................................22
7. Document Revision History...................................................................................................................23
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 3
PIC-IoT Wx Hardware User Guide
8. Appendix............................................................................................................................................... 24
8.1. Schematic...................................................................................................................................24
8.2. Assembly Drawing......................................................................................................................26
8.3. Mechanical Drawings................................................................................................................. 26
The Microchip Website.................................................................................................................................28
Product Change Notification Service............................................................................................................28
Customer Support........................................................................................................................................ 28
Microchip Devices Code Protection Feature................................................................................................ 28
Legal Notice................................................................................................................................................. 28
Trademarks.................................................................................................................................................. 29
Quality Management System....................................................................................................................... 29
Worldwide Sales and Service.......................................................................................................................30
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 4

1. Introduction

1.1 Features

PIC24FJ128GA705 Microcontroller
ATWINC1510 Wi-Fi Module
ATECC608A CryptoAuthentication™ Device
• Preconfigured for Microchip Accounts with Different Cloud Providers
– Google Cloud IoT Core – Amazon Web Services (AWS)
• Four User LEDs
• Two Mechanical Buttons
• TEMT6000 Light Sensor
MCP9808 Temperature Sensor
• mikroBUS Socket
• On-board Debugger
– Board identification in Microchip MPLAB X IDE – One green board power and status LED – Virtual serial port (USB CDC) – One logic analyzer channel (debug GPIO)
• USB and Battery Powered
MCP73871 Li-Ion/LiPo Battery Charger
• Fixed 3.3V
PIC-IoT Wx Hardware User Guide
Introduction

1.2 Kit Overview

The PIC-IoT Wx development board is a hardware platform to evaluate and develop IoT solutions with the Microchip PIC24FJ128GA705 16-bit microcontroller, ATECC608A secure element, and WINC1510 Wi-Fi controller module.
The preprogrammed demo application publishes data from the on-board light and temperature sensor read by the PIC24FJ128GA705 every second to the cloud. Any data received from the cloud over the subscribed topic is sent to the virtual serial port and can be displayed in a serial terminal application. The WINC1510 needs a connection to a Wi-Fi network with an internet connection. The ATECC608A is used to authenticate the hardware with the cloud to uniquely identify every board. The demo application source code can be modified to publish data to a personal cloud account to get started with a custom cloud application.
The figure below shows the main features and pinout of the board.
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 5
Figure 1-1. PIC-IoT Wx Development Kit Overview
Time r/PWM
UART RX
RB14
RB15
RA0
RA1
RB0
RB1
3.3V
GND
SP I SCK
SP I MISO
SP I MOSI
RC6
RB7
RB6
RB5
RB8
RB9
5.0V
GND
UART TX
I2C SCL
I
2
C SDA
Wi-Fi Status LED
RC5
Conn ec tion S tatus LED
RC4
Data Trans fer LED
RC3
Error Status LED
RB4
RA10
USER SWITCH 1
RA7
USER SWITCH 0
ATWINC151 0 Wi-Fi®Mo dule
Mic ro US B Con nec tor
Po wer/S tatus LED
PKoB 4 na no Debu gg er/Prog ramme r
ADC AIN7
PIC24FJ12 8GA705 Microc ontroller
Charg e Status LEDs
LiPo Con ne cto r
MCP7 387 1 LiPo Charger
ATECC608A Se cu re Ele men t
Light Se ns or
MCP9 808 Tem peratu re S ens or
MIC3305 0 Voltag e Re gu lato r
SP I CS
Res et
Interrupt
PIC-Io T WG De ve lo pme nt Bo ard (AC164164)
PIC-IoT Wx Hardware User Guide
Introduction
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 6
PIC-IoT Wx Hardware User Guide

2. Getting Started

2.1 Quick Start

Steps to start exploring the board:
1. Connect the board to your computer.
2. Open the “CLICK-ME.HTM” file on the “CURIOSITY” mass storage disk and follow the instructions.
2.1. Download the latest application .hex firmware.
2.2. Download the Wi-Fi configuration file "WIFI.cfg".
3. Drag and drop the application .hex file on the "CURIOSITY" drive.
4. Drag and drop the “WIFI.cfg” configuration file on the “CURIOSITY” drive.
The board will now connect to your Wi-Fi network and send data to the website opened in step 2 through a cloud provider.

2.2 Design Documentation and Relevant Links

The following list contains links to the most relevant documents and software for the PIC-IoT Wx.
Getting Started
PIC-IoT WG website - Find schematics, design files, and purchase the board. Set up for Google Cloud IoT Core.
PIC-IoT WG on microchipDIRECT - Purchase this board on Microchip Direct.
PIC-IoT WA website - Find schematics, design files, and purchase the board. Set up for Amazon Web Services.
PIC-IoT WA on microchipDIRECT - Purchase this board on Microchip Direct.
MPLAB Data Visualizer - MPLAB Data Visualizer is a program used for processing and visualizing data. The Data Visualizer can receive data from various sources such as serial ports and on-board debugger’s Data Gateway Interface, as found on Curiosity Nano and Xplained Pro boards.
MPLAB® X IDE - MPLAB X IDE is a software program that runs on a PC (Windows®, Mac OS®, Linux®) to develop applications for Microchip microcontrollers and digital signal controllers. It is called an Integrated Development Environment (IDE) because it provides a single integrated “environment” to develop code for embedded microcontrollers.
Microchip Sample Store - Microchip sample store where you can order samples of devices.
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 7

3. Application User Guide

The PIC24FJ128GA705 mounted on PIC-IoT Wx is preprogrammed with an application ready to publish data to a Microchip account with a cloud provider, and subscribe to data sent from https://pic-iot.com through the cloud provider. PIC-IoT WA is preconfigured for Amazon Web Services (AWS), and PIC-IoT WG is preconfigured for Google Cloud IoT Core. The data is read from the cloud and presented to the user on https://pic-iot.com.
PIC-IoT WA
The application publishes data through Amazon Web Services, and the firmware is available on GitHub: https://
github.com/microchip-pic-avr-solutions/pic-iot-aws-sensor-node.
PIC-IoT WG
The application publishes data through Google Cloud IoT Core. For in-depth information about the preprogrammed demo application and how to develop your application, see the full PIC-IoT WG Application User Guide: https://
www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en609711.
Setup for Different Cloud Accounts
Any PIC-IoT Wx kit can be reprovisioned to publish data to either Microchips sandbox account at Amazon Web Services, Microchips sandbox account at Google Cloud IoT Core, or to a personal account.
Download the IoT Provisioning Tool package, compatible with Windows, Mac and Linux to get started: https://
www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en1001525.
PIC-IoT Wx Hardware User Guide
Application User Guide
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 8

4. Hardware User Guide

4.1 On-Board Debugger Overview

PIC-IoT Wx contains an on-board debugger for programming and debugging. The on-board debugger is a composite USB device consisting of several interfaces:
• A debugger that can program and debug the PIC24FJ128GA705 in MPLAB X IDE
• A mass storage device that allows drag-and-drop programming of the PIC24FJ128GA705
• A virtual serial port (CDC) that is connected to a Universal Asynchronous Receiver/Transmitter (UART) on the PIC24FJ128GA705, and provides an easy way to communicate with the target application through terminal software
• A Data Gateway Interface (DGI) for code instrumentation with logic analyzer channels (debug GPIO) to visualize program flow
The on-board debugger controls a Power and Status LED (marked PS) on the PIC-IoT Wx Board. The table below shows how the LED is controlled in different operation modes.
Table 4-1. On-Board Debugger LED Control
Operation Mode Power and Status LED
PIC-IoT Wx Hardware User Guide
Hardware User Guide
Boot Loader mode The LED blinks slowly during power-up
Power-up The LED is ON
Normal operation The LED is ON
Programming Activity indicator: The LED blinks slowly during programming/debugging
Drag-and-drop programming
Fault The LED blinks rapidly if a power Fault is detected
Sleep/Off The LED is OFF. The on-board debugger is either in a sleep mode or powered down.

4.1.1 Debugger

The on-board debugger on the PIC-IoT Wx Board appears as a Human Interface Device (HID) on the host computer’s USB subsystem. The debugger supports full-featured programming and debugging of the PIC24FJ128GA705 using MPLAB X IDE.
Success: The LED blinks slowly for 2 sec.
Failure: The LED blinks rapidly for 2 sec.
This can occur if the board is externally powered.
Info:  Slow blinking is approximately 1 Hz, and rapid blinking is approximately 5 Hz.
Remember:  Keep the debugger’s firmware up-to-date. Firmware upgrades are done automatically when
using MPLAB X IDE.

4.1.2 Virtual Serial Port (CDC)

The virtual serial port (CDC) is a general purpose serial bridge between a host PC and a target device.
© 2020 Microchip Technology Inc.
User Guide
DS50002964A-page 9
Loading...
+ 21 hidden pages