jtpopla.blogg.se

Bluetooth pc part
Bluetooth pc part






  1. #Bluetooth pc part install#
  2. #Bluetooth pc part serial#
  3. #Bluetooth pc part software#
  4. #Bluetooth pc part password#

Make sure you have turned on Bluetooth on your device.

#Bluetooth pc part install#

If you have an Android device, such as phone or tablet, go to PlayStore and install 'Bluetooth Terminal' app from Qwerty. Now that you have successfully set up the Bluetooth module, let's test the communication between this module and another device.

#Bluetooth pc part serial#

The library has been developed to allow serial communication on other digital pins of the Arduino and this is why we require the library to be used for this project as we want to enable D2 and D3 pins for Serial communication.Ĭompile and upload the sketch to your Arduino development board. This is an in-built library and does not need to be installed.

#Bluetooth pc part software#

If separate power sources are used for the Bluetooth module and Arduino development board, their ground must be connected for voltage reference.įor this project, you will be needing the Software Serial library. If you do not understand the voltage divider principle, please refer to the YouTube video in the last section of this post. The module is connected to +5V standard regulated power supply and the voltage divider is used for converting the 5V logic signal sent by Arduino D3 pin to 3.3V logic signals which is suitable for the module. D2 pin will be connected to TXD pin of the HC-06 module whereas the D3 pin will be connected to the RXD pin. Therefore, we will be using the D2 and D3 pins for communication with the HC-06 Bluetooth module. We are using the Serial functions so we cannot use these pins. The Arduino boards have a serial port at D0 and D1 and it communicates with these pins as well as the computer via USB. Refer to the schematic to see how the Bluetooth module should be connected with the Arduino development Board.Connecting the HC-06 Bluetooth module with Arduino development board Hardware components Arduino Nano - You could use any other development board if you wish HC-06 Bluetooth module Resistors - 1kΩ and 2kΩ ( I didn't have a 2kΩ resistor with me so I used 2 1kΩ resistors instead) Male-to-Male Jumper wires Male-to-Female Jumper wires Software Arduino IDE

  • Resistors - 1kΩ and 2kΩ ( I didn't have a 2kΩ resistor with me so I used 2 1kΩ resistors instead).
  • Arduino Nano - You could use any other development board if you wish.
  • Sending AT+BAUD3 will change the baud rate from 9600 baud to 4800 baud.Ĭonnecting the HC-06 Bluetooth module with Arduino development board To change the baud rate of the HC-06 Bluetooth module, type in AT+BAUDx, where x has range from 1 - 9, inclusive.
  • AT+NAME'DESIRED NAME': Changes the default name of the module to the DESIRED NAME.
  • #Bluetooth pc part password#

    AT+PIN: To obtain the password of the module.AT+BAUD: To check the default baud rate of the Bluetooth module.AT+NAME: To check the default name of the module.Use these AT commands for the corresponding functions: If the Serial Monitor displays "OK", the module is in AT mode and you are good to go. Type in 'AT' without the quotes and click send. Set the Baud rate to 9600 and the 'line ending' to 'Both NL and CR'. Open Arduino IDE and go to Tools, then Serial Monitor. The HC-06 Bluetooth module is permanently configured to be slave and is always in AT mode when not paired to any other device. The LED on the converter module should light up if it's working properly. Now, plug in the USB-TTL Serial converter module to your Laptop/ PC. Connect your USB-TTL Serial converter module with your Bluetooth module. To set up your HC-06 Bluetooth module, you will be needing the USB-TTL Serial Converter module. You will only be needing the four pins in the HC-06 Bluetooth module.








    Bluetooth pc part