Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Choi HyunBeengledel
Published © GPL3+

Bluetooth Chat

Bongilcheon high school

BeginnerShowcase (no instructions)30 minutes26
Bluetooth Chat

Things used in this project

Hardware components

Breadboard (generic)
Breadboard (generic)
×1
Arduino 101
Arduino 101
×1
LED (generic)
LED (generic)
×1
Resistor 100 ohm
Resistor 100 ohm
×1
Jumper wires (generic)
Jumper wires (generic)
×5
Bluetooth Low Energy Module
Tessel Bluetooth Low Energy Module
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Bluetooth Chat

Code

Untitled file

Arduino
// How to rename a Bluetooth module
// Enter "AT" on serial monitor and click transfer button. "OK" is displayed on serial monitor if it works normally.
  // Enter new name of Bluetooth module "AT + NAME'New Name ', if OK," OK "is displayed on the serial monitor.
  // If the new name is gledel, write "AT + NAMEgledel"

  #include <SoftwareSerial.h>
  SoftwareSerial BTSerial (12, 13);
  // BTSerial (Rx, Tx); Based on the Aduno board
// Connect pin of Aru InnoBoard 12 with Bluetooth module TX pin, pin 13 and RX pin

void setup () {
    Serial.begin (9600);
    BTSerial.begin (9600);
  }

  void loop () {
     if (BTSerial.available ()) // If there is an input value from the Bluetooth module,
      Serial.write (BTSerial.read ()); // Output to serial monitor
     if (Serial.available ()) // If there is an input from the serial monitor,
      BTSerial.write (Serial.read ()); // send to bluetooth
}

Credits

Choi HyunBeen
5 projects • 4 followers
Contact
gledel
100 projects • 116 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"
Contact

Comments

Please log in or sign up to comment.