Step 11: Build and Run the Application
1
Verify that the I/O1 Xplained Pro Extension Kit is connected to the Xpro header J203 on the PIC32 WFI32E Curiosity Board.
2
Verify that the MPLAB ICD4 is attached to the board over an ICSP adapter.
And verify that the micro-USB cable is connected between the computer and USB POWER (J204) connector of the PIC32 WFI32E Curiosity Board.
You can also refer to the "Hardware Connection Setup" section.
4
5
Note: It is not required to adjust the Baud rate as you are using a USB connection.
Note: You can find the Lab 1 solution in the folder: <your unzipped folder path>\getting_started_pic32_wfi32e\Lab1\solution.
Results
You will be able to observe a new reading every 10 seconds on the serial console.
Analysis
In this lab, you have successfully created a simple sensor application on the PIC32 WFI32E microcontroller and read the temperature from a sensor.
The I2C Driver was configured with default settings to operate at 50 kHz.
The Debug system service and Console system service on top of the USB CDC Peripheral Library were used to print the temperature value on a serial console.
In the next lab, you will enhance the application and log data to an SD CARD.
Conclusions
In this lab, you have successfully developed a full-fledged MPLAB Harmony Application. This gives you a fair idea of how MPLAB Harmony helps application development. If you need to add sensor support to any of your existing applications, this lab can be used as a reference. This can also be a starting point for your IoT applications.