Hackster is hosting Hackster Holidays, Ep. 7: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Friday!Stream Hackster Holidays, Ep. 7 on Friday!
Rucksikaa Raajkumar
Published © GPL3+

Interfacing the HC-06 Bluetooth module with Arduino

A simple and informative tutorial about interfacing the HC-06 Bluetooth module with Arduino

IntermediateFull instructions provided1 hour64,318
Interfacing the HC-06 Bluetooth module with Arduino

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×1
HC-06 Bluetooth Module
×1
Resistor 1k ohm
Resistor 1k ohm
×3
Male/Male Jumper Wires
×6

Software apps and online services

Arduino IDE
Arduino IDE
Bluetooth Terminal App - Qwerty

Story

Read more

Schematics

Schematic

Code

Code

Arduino
Credits to : http://www.martyncurrey.com/arduino-and-hc-06-zs-040/
#include <SoftwareSerial.h>
SoftwareSerial BTSerial (2,3); //SoftwareSerial BTSerial(RX,TX)
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  Serial.println("Enter AT Commands");
  BTSerial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  if(BTSerial.available()){
    Serial.write(BTSerial.read());
  }
  if(Serial.available()){
    BTSerial.write(Serial.read());
  }
}

Credits

Rucksikaa Raajkumar
43 projects • 94 followers
Amateur Arduino Developer. Undergraduate. YouTuber (https://www.youtube.com/c/RucksikaaRaajkumar/videos) and Blogger (Arduino Projects by R)

Comments