Smart Appliance Control on PIC32CM JH01 Curiosity Nano+ Touch Evaluation Kit

Download


Description:

This application demonstrates a smart fan control system that operates in two distinct modes:
Temperature control mode and BLE control mode.
Users can switch between these modes using the touch sensor built into the Curiosity Nano board. Upon initialization, the application defaults to Temperature control mode. A single press on the touch sensor activates BLE control mode, while a subsequent press reverts the system to Temperature control mode. Furthermore, once the device is in BLE control mode, users can revert to Temperature control mode by either employing the touch sensor or issuing a BLE command.

  1. Temperature Control Mode - Automatically controls the DC fan based on the temperature measurement from Weather Click. Both the temperature value and fan speed are displayed on e-paper display. The temperature ranges for the respective fan speed are;

    1. Temperature between 18 (64 F) to 25 (77 F) degree Celsius, the fan rotates at LOW speed.
    2. Temperature between 26 (78 F) to 30 (86 F) degree Celsius, the fan rotates at MEDIUM speed.
    3. Temperature is greater than 30 degree Celsius (86 F), the fan rotates at HIGH speed.
    4. Temperature is less than 18 (64 F), the fan is switched OFF.
  2. BLE Control Mode - Control the DC fan based on BLE commands from Microchip Bluetooth Data (MBD) app in smartphone. Also, the user will be able to switch back to Temperature control mode. The available commands for use are;

    1. FAN_ON - Turns ‘ON’ the fan at LOW speed
    2. FAN_OFF - Turns ‘OFF’ the fan
    3. FAN_LOW - Runs the fan at LOW speed
    4. FAN_MID - Runs the fan at MEDIUM speed
    5. FAN_HIGH - Runs the fan at HIGH speed
    6. TEMP_MODE- Switches to Temperature Control mode

Modules/Technology Used:

Hardware Used:

Software/Tools Used:

This project has been verified to work with the following versions of software tools:

Refer Project Manifest present in mcc-manifest-generated-success.yml under the project folder *firmware_jh01_cnano.X*

Refer the Release Notes to know the MPLAB X IDE and MCC Plugin version. Alternatively, Click Here

Because Microchip regularly updates tools, occasionally issue(s) could be discovered while using the newer versions of the tools. If the project doesn’t seem to work and version incompatibility is suspected, it is recommended to double-check and use the same versions that the project was tested with. https://ww1.microchip.com/downloads/en/DeviceDoc/How-to-Use-the-MPLAB-Harmony-v3-Project-Manifest-Feature-DS90003305.pdf)

Hardware Setup:

Programming hex file:

The pre-built hex file can be programmed by following the below steps.

Steps to program the hex file

Programming/Debugging Application Project:

Running the Demo:

Temperature Control Mode:

Note: Users should wait for the e-paper display to stabilize before pressing the touch button

BLE Control Mode:

Comments:

Revision: