HC-05 Bluetooth Module
Wireless Serial Communication with AT Command Configuration
The HC-05 is built around the CSR BC417 Bluetooth chip and implements the Serial Port Profile (SPP) - meaning it essentially turns a wireless Bluetooth link into what looks, to your code, exactly like a plain UART serial cable. Anything you would normally send or receive over Serial.write()/Serial.read() works completely unchanged, just now traveling over Bluetooth instead of a wire. What sets the HC-05 apart from the cheaper HC-06 is that it can operate as either Master or Slave: as a Slave it waits for another device (like a phone) to connect to it, while as a Master it can actively scan for and initiate a connection to another Bluetooth device itself, including a second HC-05 - enabling board-to-board wireless serial links with no phone involved at all. Configuration - name, pairing PIN, baud rate, and master/slave role - is done through an AT command mode entered by holding the KEY/EN pin HIGH while powering the module on, after which a terminal connected at the AT-mode baud rate (commonly 38400) can query and set these values before switching back to normal data mode.
Key features
Serial Port Profile (SPP)
Emulates a wireless serial cable - existing UART code works unchanged over Bluetooth.
Master/Slave Configurable
Unlike the Slave-only HC-06, the HC-05 can also initiate connections to other Bluetooth devices.
AT Command Configuration
Device name, pairing PIN, baud rate, and role are all configurable over a simple AT command set.
Bound-Address Auto-Reconnect
Can store a paired device's MAC address for automatic reconnection on power-up.
Status LED Feedback
Onboard LED blink pattern changes between searching, connecting, and connected states.
Wide Baud Rate Support
Configurable from 9600 up to 1382400 bps to match your application's data needs.


