Supplier eBooks

Microchip - Concept to Creation

Issue link: https://resources.mouser.com/i/1442841

Contents of this Issue

Navigation

Page 26 of 31

27 / Figure 1: AI will impact the future of smart lighting control and automation. (Source: Mouser) Project Application Source Code Files For this project, MPLAB X was used to create an initial set of project source code files that have been modified and extended to work with the Medium One IoT Prototyping Sandbox. The resulting files have been put in a GitHub repository that you can download and use for this project. The project files will be opened in the MPLAB X IDE where they'll be compiled and downloaded to the PIC-IoT board. The project files consist of a main application program and supporting functions for MQTT and I/O processing. Medium One IoT Prototyping Sandbox The Medium One IoT Prototyping Sandbox (Figure 2) is designed to help early stage developers prototype their IoT project or connect their existing hardware to the cloud. It offers an IoT Data Intelligence platform enabling customers to quickly build IoT applications with less effort. Programmable workflows allow you to build processing logic without having to create your own complex software stack. Configurable dashboards allow you to visualize application data and view real-time data in a variety of formats. Medium One's iOS and Android™ apps allow you to build simple mobile app dashboards that can communicate with your devices through the IoT Prototyping Sandbox. IoT devices can exchange data with Medium One through either a REST API or MQTT. More detailed information about the Medium One IoT Prototyping Sandbox can be found here and on the Medium One site. THE SETUP (SOFTWARE) Download and Install MPLAB X, XC16 Compiler and MPLAB Code Configurator. Web browse to the Microchip Technology MPLAB X site and locate the MPLAB X installer for your type of PC. Run the installer and make sure the following applications are selected for installation: • MPLAB X IDE • Device support for 16-bit MCUs The other items are not needed for this project and can be omitted to save disk space. At the end of the installation, two web pages will open automatically. One takes you to a page for downloading the MPLAB XC16 Compiler. Download the XC16 installer for your operating system and run it to install the compiler on your machine. You can select the free MPLAB XC16 C Compiler by clicking Next in the Licensing Information dialog. The second web page is for MPLAB Code Configurator. You can either download and install it now from the web page, or you can install it after launching MPLAB X (next step) and install from the Tools Plugins Available Plugins menu item. Plug the PIC-IoT board into your PC using the USB cable, then launch MPLAB X. If you didn't already install MPLAB Code Configurator from the web page, install it now from Tools Plugins Available Plugins MPLAB Code Configurator Install and let MPLAB X restart. You can verify whether MPLAB Code Configurator is installed by navigating to Tools Plugins Installed and looking for MPLAB Code Configurator in the list of installed plugins. When MPLAB X launches with the PIC-IoT board connected and MPLAB Code Configurator installed, you should see a main screen with a Figure 2: Medium One IoT Prototyping Sandbox. (Source: Mouser Electronics) Figure 1: PIC-IoT WG Development Board (Source: Mouser Electronics)

Articles in this issue

Links on this page

view archives of Supplier eBooks - Microchip - Concept to Creation