Buy Project Set 6
|
| Bluetooth Remote Controlled |
|
|
|
|
| .:. Basic Concept .:. |
In this project, we will be learning on how to communicate wireless between PC and microcontroller by using a Bluetooth module (KC Wirefree's KC21) and a USB dongle. The PC will be used to control a 7 segment connected to the microcontroller.
Additional Tutorial
|
|
|
|
| 1. Get the electronic components on hand and solder them up! |
Prepare a PCB board and all the components required. Refer to the schematic and solder the components onto the PCB board. Just like the previous project, we will using the SK40A. Be very careful of the connection as the Bluetooth module is very sensitive and any error may cause damage to it. So before you plug in the Bluetooth module, make sure that all the connections are correct and the voltage input for the Bluetooth module is around 3.3V.
|
 |
 |
|
| 2. Program the Microcontroller |
2.1 Install the Software
Refer to Step 3 of PR5 on how to setup MPLAB, PICC Lite and bootloader for the purpose of programming and burning the program into the microcontroller. We will be using C language as the programming language for this project.
|
2.2 Transfer the program to PIC microcontroller
Please download the sample program and hex file by clicking on the text below:
|
2.3 Modify the Program
Change the program to suit the baud rate of the Bluetooth module. The baud rate is usually 9600, however it can also be 115200. The sample program is written for baud rate of 9600. If you wish to change it, just change according to the figures below:
 Figure showing baud rate of 115200
|
| 3. Setup PC for Bluetooth interface |
|
|
|
|
|
| Buy Project Set 6 |
|