Check Order Status  |   FAQ  |   Shopping Cart  |  Login  |  Register As Member   | 
 
Home  |   Our Product  |   Training  |   Forum  |   Project DIY  |   About Us  |   Contact Us  
  PR 6A - Bluetooth (SKKCA-21) Remote Controlled
More about Project DIY...
Buy Project Set 6A
Bluetooth (SKKCA-21) Remote Controlled

Just 3 simple steps
1. Get the electronic components on hand and solder them up!
2. Program the Microcontroller.

3. Setup PC for Bluetooth interface.


.:. Basic Concept .:.
In this project, we will be learning on how to communicate wireless between PC and microcontroller by using KC Wirefree Bluetooth Module Starter Kit SKKCA-21 and a USB dongle. The PC will be used to control a 7 segment connected to the microcontroller.

Additional Tutorial


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 be using the SK40A. For this project, we will also be using the KC Wirefree Bluetooth Module Starter Kit SKKCA-21. For more details on SKKCA-21, you can go to this link




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 Baud rate
The default baud rate for SKKCA-21 is 115200. Therefore in the sample program, we have set the baud rate for the PIC to be the same as SKKCA-21 which is 115200.

Figure showing baud rate of 115200


3.1 USB dongle setup (IVT BlueSoleil)
Before the USB dongle can be used, the driver and the software IVT BlueSoleli have to be installed. After that, the USB dongle have to link with the Bluetooth module.
  • Install the software IVT BlueSoleli that is in the CD included with the USB dongle
  • After the software has been successfully installed, plug in the USB dongle and run the software
  • Switch on the power for the circuit with the SKKCA-21
  • On the screen, you should be able to see a window as in figure below. Click the orange ball in the center of the window or press F5




  • Once the Bluetooth module is detected, it will appear in the window




  • Next, double click on the symbol of the Bluetooth module. The software will automatically select the method to connect with the Bluetooth device




  • Now, right click on the symbol and select Connect->Bluetooth serial port service




  • A window will appear with the designated serial port. Click yes to proceed




3.2 Interface using HyperTerminal
We will be communicating with the Bluetooth module through HyperTerminal that was also used for bootloader.
  • Setup the HyperTerminal just like what we did for bootloader (click here to know more about bootloader)
  • The only difference is the serial port selection and the baud rate
  • The serial port selection depends on the serial port that was designated by BlueSoleil software




  • The baud rate (bit per second) selection depends on the baud rate of the Bluetooth module and also the source code that was written. As in step 2, we have mentioned that the baud rate for SKKCA-21 is 115200. So select the baud rate as 115200.
  • Once the setting is completed, type 'o' followed by 'k' and the wording 'Cytron Press any number' will appear in the window. The 7 segment will also change from '0' to '1'




  • Type any number and it will be displayed on the 7 segment
  • The number that you entered will not appear in window. If you wish to display it, select file->properties. After that select settings-> ASCII. Select 'echo typed characters locally'.






  • The 7 segment is only an example of a typical device that can be controlled by the microcontroller. If you wish to apply it for other appliances, just connect the device to the microcontroller and change the program accordingly



Buy Project Set 6A


 
 


Last Update: 01 August 2008
Cytron Technologies Sdn Bhd [755563-V]