Check Order Status  |   FAQ  |   Shopping Cart  |  Login  |  Register As Member   | 
 
Home  |   Our Product  |   Training  |   Forum  |   Project DIY  |   About Us  |   Contact Us  
  PR 6 - Bluetooth Remote Controlled
More about Project DIY...
Buy Project Set 6
Bluetooth 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 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


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.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.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 Bluetooth module (KC21)
  • 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. Usually, the Bluetooth module’s baud rate that is provided by Cytron Enterprises is 9600. But it may also be 115200. So select the baud rate based on your Bluetooth module:
  • 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 6


 
 


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