Firmware Manipulation: HC-05 AT Command Mode
Usually, you just plug an HC-05 module into 5V and connect to it using "0000" or "1234". However, if you are building a fleet of 10 robots, you cannot have 10 identical Bluetooth modules named "HC-05"; they will cross-connect and destroy each other! The HC-05 AT Command Mode project forces you to actually hack the firmware of the Bluetooth chip itself, completely bypassing standard C++ code and dumping raw DOS-like "AT" system configurations straight into the silicon!

The Hardware Boot-Loader Trap
You cannot send AT system commands while the module is communicating. You must "Jailbreak" its boot sequence!
- The EN/Key Pin Validation: When wiring the HC-05 (
RX/TX) to the Arduino'sSoftwareSerialpins, you also take a jumper wire from the HC-05'sEN (Enable)pin and plug it directly into the5Vline. - Holding that En wire HIGH WHILE plugging the Arduino into USB power forces the HC-05 chip to violently boot up in "AT COMMAND MODE." The tiny LED will blink slowly instead of rapidly!
Executing the AT String Payload
An HC-05 running in AT mode speaks a terrible speed: 38400 baud ONLY.
- It requires the serial string entirely formatted in carriage returns.
- Using the laptop's Arduino IDE Serial Monitor, you type raw ASCII Strings directly into the console!
- Type:
AT-> The module repliesOK! (You are in!). - Type:
AT+NAME=BattleBot_Alpha-> It completely re-programs the radio broadcast SSID! - Type:
AT+PSWD="7788"-> The module deletes its old password and locks itself out to any smartphone not having the secure key! - Master/Slave Configuration: Most HC-05s are "Slaves" (Wait for a phone). You can type
AT+ROLE=1to transform it instantly into a "Master," instructing it to violently seek out and connect to other HC-05s autonomously!
Essential Radio Diagnostic Configuration
- Arduino Uno/Nano (Any board supporting
SoftwareSeriallogic!). - HC-05 Bluetooth Module (It must be an HC-05. The deeply restricted HC-06 requires completely different pin-wiring and cannot become a Master!).
- Standard Breadboard Jumpers (For the critical sequence of holding the EN pin high during system bootup!).