The HC-06 Bluetooth module is intended for use with two microcontrollers or systems to establish short-range wireless data communication. Its operation becomes transparent to the user after it is associated with a master Bluetooth device, such as a PC or smartphone. All data received through the serial input is sent over the air right away.
The Bluetooth module HC-06 has 4 pins, 2 for power and 2 to establish connection.