Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC1500 Weather Client Demo for SAME70 Xplained Documentation

Introduction

This example demonstrates the use of the WINC1500 with the SAM Xplained Pro board to retrieve weather information from openweathermap.org server. The related informaiton will be displayed on LCD. It can switch different city by pushing button.

It uses the following hardware:

  • the SAM Xplained Pro.
  • the WINC1500-Xpro on EXT1.
  • the ATMXT-Xpro on EXT2.

Main Files

  • main.c : Initialize the WINC1500 and retrieve information.

Usage

  1. Build the program and download it into the board.
  2. On the computer, open and configure a terminal application as the follows.
    * Baud Rate : 115200
    * Data : 8bit
    * Parity bit : none
    * Stop bit : 1bit
    * Flow control : none
    *
  3. Start the application.
  4. In the terminal window, the following text should appear:
    * -- SAME70 Weather Client Demo --
    * -- SAMXXX_XPLAINED_PRO --
    * -- Compiled: xxx xx xxxx xx:xx:xx --
    * Connecting to AVRGUEST.
    * Wi-Fi connected
    * Wi-Fi IP is xxx.xxx.xxx.xxx
    * Host IP is 144.76.102.166
    * Host Name is openweathermap.org
    * City: Shanghai
    * Temperature: 18.6
    * Weather Condition: rain
    * City: Seoul
    * Temperature: 20.63
    * Weather Condition: sky is clear
    *

Compilation Information

This software was written for the GNU GCC compiler using Atmel Studio 6.2 Other compilers may or may not work.

Contact Information

For further information, visit Microchip.