Step 8.1: Build and Program the Application
If you encounter compilation errors, recheck the steps and build the project again.
Before proceeding, install the Microchip Bluetooth Data Android app on an Android smartphone.
Enable Bluetooth and location services from your smartphone settings.
Perform a reset by unplugging and re-plugging the PIC32CM MC00 Curiosity Nano Evaluation Kit power cable.
- The fan will be controlled based on the command received from the MBD application.
- When the user chooses temperature based Fan Control mode, the application reads the temperature values from a weather sensor, displays them on the EInk display, and controls a DC fan
You successfully created a smart appliance control application and observed that the application enabled control of a smart appliance through a BLE-based Android smartphone. In the first method, a 5 V DC fan is controlled based on the room temperature value. The room temperature and the fan's speed are also displayed on a low-power consuming display. In the second method, based on the command exercised by the user on the Android smartphone app, the fan operation was controlled.
In this lab, you quickly and successfully extended an application built using MPLAB® Harmony v3 on a PIC32CM MC00 microcontroller. Your application used all the fundamental elements that go into making a real-time application. In this application, you used MPLAB® Harmony Configurator (MHC) to configure a PIC32CM MC00 device and used the MPLAB Harmony v3 Framework. You used the clock configurator to set up the CPU clock. You configured SERCOM0 (I2C), SERCOM1(USART), SERCOM3(SPI), and PORT peripheral libraries. You also configured and used the BM71 driver, Timer System Service. Lastly, you used the pin configurator to set up the pins for the peripheral functions.
This lab provided you training for configuring and using all the fundamental components needed to build a real-time application on a PIC32CM MC00 microcontroller with the MPLAB Harmony v3 Framework. As a next step, you may customize this application and reconfigure some of the components used in this tutorial.