Lab 4: Add HTTP Web Server to Visualize Data

 Objective

In Lab 4, you will enhance the existing application and build a Web Server using Wi-Fi® connectivity to visualize the temperature data.

Overview

The whole application is divided into four tasks.

  • Sensor task
  • SD Card task
  • USB task
  • Wi-Fi task

The tasks will run as separate RTOS threads.

The Sensor task will use:

  • A button to switch the application on or off
  • Timer System Service using Core Timer to periodically sample temperature sensor data
  • Asynchronous I2C Driver using I2C1 Peripheral Library to read the temperature sensor

The SD Card task will use:

  • Asynchronous SDSPI Driver using SPI2 Peripheral Library to write temperature log onto SD card
  • File System Service interfaced with SDSPI Driver to perform operations on the SD card
  • RTC Peripheral Library to capture the current log time

The USB task will use:

  • Debug System Service and Console System Service using CDC Peripheral Library to print data on a serial port terminal

The Wi-Fi task will use:

  • PIC32MZW1 Wi-Fi Driver and WLAN Library
  • Wireless System Services components
    • Wi-Fi Service to configure the device in SoftAP mode
    • Wi-Fi Provisioning Service
  • TCP IP Stack
  • HTTPNET Server component to enable the Web Server functionality

Procedure

Lab 4 Index

Part 1 - Configure FreeRTOS, I2C Driver, SDSPI Driver, File System, Harmony Core

Part 2 - Add Application Code & Build the Application

© 2022 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.