you’re using the generic RN4020, you will need to solder
it to the board.
If you’re not experienced in soldering surface-mount
components, you need to be careful. I used a 35 watt iron
with a pencil sharp point, and began by wiping a
microscopically thin layer of solder paste on the RN4020
contacts. Using a magnifying glass (so I could better see
what I was doing), I started by soldering one of the
corners, then pressing down on the RN4020 to make sure
it was flat against the board.
After soldering the corner, I checked to make sure the
RN4020 was still lined up with the other pads. I soldered
the opposite corner, checked alignment again, and then
soldered the remaining pads. It was only necessary to tin
the end of my soldering iron and then touch it to the
contact and pad.
I also found it helpful to solder IC pin sockets in the
holes that surround the RN4020. I did this so I could use
jumper wires to connect the RN4020 to the PIC16F1619.
If you don’t have some pin sockets lying around, you can
cut some IC DIP sockets in half length-wise, and use the
halves. RadioShack sells DIP sockets (#2761998 ). Of
course, if you’re using the BLE2 click board in the
mikroBUS socket, you don’t need to bother with jumpers
since the Curiosity board is connected to the mikroBUS
That takes care of all the prep work. Let’s create the
project in the integrated development environment and
add the embedded C program.
Create a new project in the MPLABX IDE.
Plug the Curiosity board into the USB port of your
computer, then open the MPLABX IDE and select File,
then New Project. Under Categories, choose “Microchip
Embedded,” and under Projects choose “Standalone
Project,” then “Next.” For Device, select “16F1619,” then
“Next,” For Supported Debug Header, select “none,” then
“Next.” Finally, for Project Name, use “Blue” (or some
other name of your choosing), then select “Finish.” Install and open the Code Configurator.