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 hours8,702
Bluetooth AT Commands Settings (HC05 HC06)

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
SparkFun Bluetooth Modem - BlueSMiRF Silver
SparkFun Bluetooth Modem - BlueSMiRF Silver
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Large Solderless Breadboard Kit
Digilent Large Solderless Breadboard Kit
×1

Software apps and online services

EasyEDA
JLCPCB EasyEDA
Arduino IDE
Arduino IDE

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

DIY GUY Chris

2 projects • 245 followers
I'm having fun while making electronics projects, I am an electrical engineer in love with "Do It Yourself" tasks.
JLCPCB

JLCPCB

2 projects • 16 followers
JLCPCB, is the largest PCB and PCB Assembly prototype enterprise in Asia. Coupon code "JLCPCBcom" for all and permanantly available.

Comments

Add projectSign up / Login