This is a guest blog written by software and hardware developer Bo Kristensen.
In this blog post we will provide you with a step-by-step guide on how to get the Mikroelektronika’s ’mikromedia+ for PIC32MX7‘ up running with the Nabto open source AMP Heat control app, which is available for download on Google Play and Apple’s App Store.
- Microchip MPLAB X IDE 5.10 (find here)
- Microchip XC32 2.15 (find here)
- Microchip Harmony 2.06 (find here)
- Microchip ICD 3 or ICD 4
- Programming cable for connection
- Mikroelektronika print mikromedia Plus for PIC32MX7 (find here)
- Mikroelektronika print mikromedia Plus for PIC32MX7 shield (find here)
Start MPLAB X IDE and please make sure that the MPLAB Harmony Configurator is installed: Select ‘Tools’ and go to ‘Plugins’.
Check to see if the MPLAB Harmony Configurator is installed under the ‘Installed’ tab. If it is not, find it under the ‘Available Plugins’ tab and install it.
To clone the project from Github select ‘Team’ -> ‘Git’ -> ‘Clone…’
Go to the GitHub repository (https://github.com/BoKTek/AMPHeatDevice) and clone the project. Click ’Clone or download‘ and click the small icon to copy the link.
Paste in the copied link in ‘Repository URL’. Type in or browse to the folder you want the project to be installed in. This can also be filled in later in the process.
After this click ‘Next’.
Here you can specify the folder where the project is going to be installed and rename it. Then click ‘finish’.
If you want the project to be opened in MPLAB X IDE now, click ‘Open Project’.
It should now be possible to compile the program, program the device, and use it with the Nabto AMP Heat App. It is recommended you try this before you start working with MPLAB Harmony.
To use MPLAB Harmony, you first have to set the project as the ‘Main Project’. Right click on ‘demo’ and select ‘Set as Main Project’.
Start MPLAB Harmony by clicking ‘Tools’ -> ‘Embedded’ -> ‘MPLAB® Harmony Configurator’.
Make whatever changes you want in Harmony and then click the ‘Generate Code’ box button to generate code, when you are finished.
Compile and program the device where the arrows point below.
If the AMP Heat app can’t find the mikromedia+ board after programming the device, try to remove the DC supply to the board for a few seconds and connect it again.
As you can see in the video below, you can now control the Mikroelektronika ‘mikromedia+ for PIC32MX7’ with the Nabto AMP heat control app. If you have any further questions or want to know more about Nabto please leave a comment or contact Nabto here.