DIY GUY ChrisJLCPCB
Published © Apache-2.0

Bluetooth AT Commands Settings (HC05 HC06)

Do you want to set a customized name and password for your bluetooth devices and robots!? then read this tutorial to help through.

IntermediateFull instructions provided2 hours28,098
Bluetooth AT Commands Settings (HC05 HC06)

Things used in this project

Story

Read more

Schematics

Circuit

Code

Arduino AT command serial

Arduino
This code will help you to send AT commands to your Bluetooth and dispaly at the same time the bluetooth responses
#include <SoftwareSerial.h>
SoftwareSerial Bluetooth(2,3);

char c=' ';
void setup() 
{
  Serial.begin(9600);
  Serial.println("ready");
  Bluetooth.begin(38400);
}

void loop() 
{
  if(Bluetooth.available())
  {
    c=Bluetooth.read();
    Serial.write(c);
  }
  if(Serial.available())
  {
    c=Serial.read();
    Bluetooth.write(c);
  }
}

Credits

DIY GUY Chris
52 projects • 348 followers
I'm having fun while making electronics projects, I am an electrical engineer in love with "Do It Yourself" tasks.
JLCPCB
74 projects • 50 followers
JLCPCB, is the largest PCB and PCB Assembly prototype enterprise in Asia. Coupon code "JLCPCBcom" for all and permanantly available.

Comments