Powered By Blogger

Wednesday 23 July 2014

Bluetooth HC-05

Hi
This article is about giving you an insight on how to interface your HC-05 to your Android powered handset using a bluetooth modem. generally this come without pin & it is very diffficult to connect them as show..
Basic diffierent between them is.....
  • The HC-05 module can build a connection to other modules. E.g. a Robot being a master and connecting to slave bluetooth module. Or in slave mode to make a wireless bridge to a notebook.
  • The HC-06 module only can be a slave. This makes it only useful for say connecting a notebook as a master to a robot with a slave module e.g. for a wireless serial bridge.
To solve this we generally use JY-MCU as show ....to connect HC-05



  • KEY: according to the data sheet, I need to pull-up this pin while power-on-reset of the module to enforce AT mode. I have not been able to verify this yet. I have been told that some modules have this pin not connected at all?
  • VCC is indicated in the range of 3.6V-6V. The module worked for me both with 3.3V and 5V.
  • GND: Ground
  • TXD: serial output of the module, to be connected to RX of the microcontroller. Note that this signal is using 3.3V logic level
  • RXD: serial input of the module, to be connected to the TX of the microcontroller. Note that this signal is using 3.3V logic levels.
  • STATE: connected to LED2 (Pin32) of the module, but no meaning? At least on my module the pin was always low, regardless if paired or not.
Simple View All connection is......



Now you are ready to evaluate bluetooth........
Happy Bluethoothing............

How to connect Bluetooth module to Android

Hi
This article is about  how to interface your hardware to your Android handset using a bluetooth model. When i say hardware, i mean a board powered by a microcontroller. You can interface the handset either using an
  • USB port
  • Bluetooth
  • Wi-Fi
  • GPRS

Here we will only discuss how to interface using a bluetooth connection. For this, you will need any simple microcontroller with UART interface and a Linvor Bluetooth module. The Linvor bluetooth module operates on 5V power supply and can be connected to the microcontroller using an UART interface.
Device control Application:
On the application side, I modified the Bluetooth chat application example from Android SDK. The application was developed for Gingerbread 2.3. HC 05 bluetooth module works using the SPP protocol. The application takes care of initializing the handset's bluetooth for SPP protocol and also provides options to search for bluetooth devices and sync with them. You can control 3 devices ON-OFF and fan speed from 0 to 99. I used a stepper motor to control the fans regulator/potentiometer and  relays for devices and a stepper motor.
  • Connect the 
  • VCC ->+5V, 
  •   GND->GND,   
  •  TXD->MCU RXD,  
  •   RXD-> MCU TXD
  • As soon as you power up the module, the red LED on the module starts blinking indicating that the module is ready for connection.
  • Next, search for bluetooth devices in range using the application.
  • The Linvor module will appear as linvor  in the found devices list.
  • Select and sync the handset with the linvor device.
  • Once the handset and the module are connected, the red LED on the module stops blinking and stays ON until the bluetooth connection is terminated.