Online solutios

head

HC-02 Bluetooth module pin out, Applications.

HC-02 Bluetooth module

 HC-02 Bluetooth serial communication module is based on the Bluetooth V2.0 Bluetooth protocol data transmission module, high stability, ultra low power consumption, industrial grade Bluetooth data transmission module.

Users do not need to care about complex wireless communication configuration and transmission algorithms. They only need to connect to devices through TTL serial port. Powered the HC-02 slave module, and can be connected to the mobile phone for data transmission. In addition, it can be used with HC-05 or HC-06 hosts
(matching code, default is 1234) to connect, can replace a traditional serial line, save wiring work, use
It’s very flexible.

If you need to use iPhone or iPad to control your arduino project, hc-02 4.0 ble slave module with 6pin baseboard may be a good choice. Fully compatible with ios7.0 or later. Also compatible with Android 4.3 or later.

Please note:

If the version of the Android OS is less than 4.3. it is not compatible.
This module supports Bluetooth 4.0 ble mode and Bluetooth 2.0 mode.

onlinesoln

Features

  • Model HC-02 Module size 27*13mm
  • Work band 2.4G Air rate 2Mbps
  • Communication interface UART3.3V TTL Antenna interface built-in PCB antenna
  • Working voltage 3.0~3.6V Communication current 30mA
  • Baud rate 1200~115200bps Receiver sensitivity -85dBm@2Mbps
  • Communication level 3.3V Working humidity 10%~90%
  • The transmitting power 6dBm (maximum) Storage temperature -40 C ~+85 C
  • Reference distance 10m Working temperature -25 C ~75 C
  • Core module uses HC-08, leads from the module interface includes VCC, GND, TXD, RXD, LED status output pin.
  • Led indicate Bluetooth connection status, flashing Bluetooth connectivity, lit the Bluetooth connection and open a port Backplane
  • 3.3V LDO input voltage 3.6 6V, the input voltage to prohibit more than 7V
  • The interface level 3.3V, can be directly connected the various SCM (51, AVR, PIC, ARM, MSP430, etc.), the 5V MCU also can be connected directly.
  • Open to the effective distance of 10 meters, over 10 meters is also possible, but not of this the quality of the connection of the distance do to ensure.
  • After the pair when full-duplex serial port to use, do not need to know anything about the Bluetooth protocol, but only supports 8 data bits, 1 stop bit, no parity communication format, which is the most commonly used communication format does not support other formats .
  • Compact (3.57cm * 1.52cm), the factory chip production to ensure the placement quality. And sets of transparent heat shrink tubing, dust and beautiful, and anti-static.

Pin Configuration

1; Enable / Key 

This pin is used to toggle between Data Mode (set low) and AT command mode (set high). By default it is in Data mode

2; Vcc 

Powers the module. Connect to +5V/+3.3V Supply voltage

3; Ground 

Ground pin of module, connect to system ground.

4; TX – Transmitter

 Transmits Serial Data. Everything received via Bluetooth will be given out by this pin as serial data.

5 ;RX – Receiver

 Receive Serial Data. Every serial data given to this pin will be broadcasted via Bluetooth

6 ;State 

The state pin is connected to on board LED, it can be used as a feedback to check if Bluetooth is working properly.

7 ;LED 
  • Indicates the status of Module
  • Blink once in 2 sec: Module has entered Command Mode
  • Repeated Blinking: Waiting for connection in Data Mode
  • Blink twice in 1 sec: Connection successful in Data Mode


Where to use HC-02 Bluetooth module

The HC-02 is a very cool module which can add two-way (full-duplex) wireless functionality to your projects. You can use this module to communicate between two microcontrollers like Arduino or communicate with any device with Bluetooth functionality like a Phone or Laptop. There are many android applications that are already available which makes this process a lot easier. It’s also fully compatible with the iPhone. The module communicates with the help of USART at 9600 baud rate hence it is easy to interface with any microcontroller that supports USART. We can also configure the default values of the module by using the command mode. So if you looking for a Wireless module that could transfer data from your computer or mobile phone to microcontroller or vice versa then this module might be the right choice for you.

However do not expect this module to transfer multimedia like photos or songs; you might have to look into the CSR8645 module for that.

How to Use the HC-02 Bluetooth module

The HC-02 has two operating modes, one is the Data mode in which it can send and receive data from other Bluetooth devices and the other is the AT Command mode where the default device settings can be changed. We can operate the device in either of these two modes by using the key pin as explained in the pin description.

It is very easy to pair the HC-02 module with microcontrollers because it operates using the Serial Port Protocol (SPP). Simply power the module with +5V/+3.3V and connect the Rx pin of the module to the Tx of MCU and Tx pin of module to Rx of MCU as shown in the figure below

onlinesoln

During power up the key pin can be grounded to enter into Command mode, if left free it will by default enter into the data mode. As soon as the module is powered you should be able to discover the Bluetooth device as “HC-02” then connect with it using the default password 1234 and start communicating with it.

Working principle Connect with MCU.

Connect with another Bluetooth module

HC-06 is the host, HC-02 is slave, the matching code is consistent (the default is 1234), the baud rate is the same, then power on can be automatically connected. After the first connection, the HC-06 host will automatically match the matching objects. If you want to connect to other modules, you must first remove the pairing memory of the HC-06 host. There is no matching memory from the slave.

Connect with Android phone

HC-02 can be connected to Android mobile via Bluetooth, and Android can use Android serial assistant software.

Connect with iPhone

HC-02 can be connected to iPhone 4S and later version iPhone . Communication test needs to download and install BLE serial assistant software.
Note:
Proprietary Service UUID: 49535343-FE7D-4AE5-8FA9-9FAFD205E455
TX UUID: 49535343-1 E4D-4BD9-BA61-23C647249616
RX UUID: 49535343-8841-43F4-A8D4-ECBE34729BB3

Connect with PC

HC-02 can connect to a computer via the HC-06-USB Bluetooth virtual serial port.
HC-02 can connect to the computer’s Bluetooth device to communicate.

Applications

1. Wireless communication between two microcontrollers

2. Communicate with Laptop, Desktops and mobile phones

3. Data Logging application

4. Consumer applications

5. Wireless Robots

6. Home Automation


AT Command

The way to the AT command mode: supply power to the module, it will enter to the AT mode if it
needn’t pair. The interval of command is about 1 second.
Default parameter: Baud rate:9600N81, ID: linvor, Password:1234

1. Test communication

Send: AT (please send it every second)
Back: OK

2. Reset the Bluetooth serial baud rate

Send: AT+BAUD1
Back: OK1200
Send: AT+BAUD2
Back: OK2400
……
1———1200
2———2400
3———4800
4———9600 (Default)
5———19200
6———38400
7———57600
8———115200
9———230400
A———460800
B———921600
C———1382400
PC can’t support the baud rate lager than 115200. The solution is: make the MCU have higher baud
rate (lager than 115200) through programming, and reset the baud rate to low level through the AT
command.
The baud rate reset by the AT command can be kept for the next time even though the power is cut
off.

3. Reset the Bluetooth name

Send: AT+NAMEname
Back: OKname

Example:

Send: AT+NAMEosoyoo
Back: OKname

At this time the Bluetooth name is changed to “osoyoo”.

4. Change the Bluetooth pairing password

Send: AT+PINxxxx

Back: OKsetPIN


Post a Comment

7 Comments

  1. I just have to introduce this hacker that I have been working with him on getting my credit score been boosted across the Equifax, TransUnion and Experian report. He made a lot of good changes on my credit report by erasing all the past eviction, bad collections and DUI off my credit report history and also increased my FICO score above 876 across my three credit bureaus report you can contact him for all kind of hacks . Email him here support@wavedrive.tech go on their website wavedrive.tech for more details,Whatsapp No:+14106350697 if you want to chat them up,One thing i can assure you would not regret this at all he is 100% legit.

    ReplyDelete
    Replies
    1. Before you hack into someone’s cell phone without an ethical hacking service, you have to make sure that the phone you want to hack is not protected with a passcode or other security setting. But if it is, then you have to hire a competent hacker to get into the mobile device using sophisticated software which will definitely involve money to hack into the user's cell phone for all information. you can reach out to ethical hackers via (kelvinethicalhacker@gmail.com). He helps me spy on cheating spouses, he helps me hack all his social media accounts, I am able to access his phone and the details that are needed against him. Thanks ethical hacker. text//call signal telegram +1(341)465-4599.

      Delete
  2. All thanks to Mr Thomas for making me realize the truth to a certified hacker who knows a lot about what he is doing. I strongly recommend you hire him because he's the best out there and always delivers. I have referred over 10 people to him and all had positive results. He can help you hack into any devices, social networks including – Facebook, Hangout, iMessages, Twitter accounts, Snapchat, Instagram, Whatsapp, wechat, text messages, smartphone cloning, tracking emails and also any other social media messenger or sites. It's advisable to hire a professional hacker. Contact him here, tomcyberghost@gmail.com and you can text,Call or Whatsapp +1 (404)941-6785.

    ReplyDelete
  3. Anonymous21.4.23

    It is easy to fall prey to incompetent hackers, but after reading this, I hope you do not ever have to be a victim of hackers who are not able to complete the job given to them. I was once a victim but not anymore and this is because I have found the best hacker ever and I wish to let you all know that TOMCYBERGHOST is the best hacker you can ever think of and he always delivers and he's reliable... contact him on tomcyberghost@gmail.com or Text/Whatsapp & WhatsApp +1 (404) 941-6785. THANK YOU

    ReplyDelete
  4. WiFi indoor positioning communication gadgets are just amazing innovations. These kinds of technology make our life easier.

    ReplyDelete

  5. I just found out that there are few good hackers out there after some horrible experiences which is why I decided to share my own experience and save some people that are going through the same thing I went through . if you need a good and genuine hacker that can help you spy or hack any device or accounts to get you every bit of information. I strongly recommend you tomcyberghost@gmail.com

    ReplyDelete
  6. Anonymous12.10.23


    Hey everyone, I don't really know much about this hacking thing's but I can direct you to a professional hacking company who helped me to track and hack my girlfriend's iPhone and his Facebook respectively.. If you need to check on your partner's sincerity, employee's honesty, recover your email passwords, Social networks (i.e. Facebook, Twitter, IG), change your school grades, clear your criminal records, gain access to bank accounts,spy on phone. you can just contact them at. Their charges are minimal and negotiable contact them at TOMCYBERGHOST@GMAIL.COM tell him you are from me.

    ReplyDelete