Devices & Components
Breadboard - 400 contacts
Arduino Nano
2k ohm resistor
Electrical Cables
1K ohm resistor
HC-05 Bluetooth Module
Software & Tools
Arduino IDE
Project description
Code
Code to set up AT Commands
cpp
This code is written in and for Arduino not C++.
1#include <SoftwareSerial.h> 2 3SoftwareSerial Bluetooth(10 , 11); //RX, TX 4char c = ' '; 5 6void setup() 7{ 8 Serial.begin(9600); 9 Serial.println("Enter AT Commands!"); 10 Bluetooth.begin(38400); 11} 12 13void loop() 14{ 15 if(Bluetooth.available() > 0) 16 { 17 c = Bluetooth.read(); 18 Serial.write(c); 19 } 20 if(Serial.available() > 0) 21 { 22 c = Serial.read(); 23 Bluetooth.write(c); 24 } 25}
Downloadable files
Schematic
Bluetooth_AT_Command_Mode.png

List of AT Commands and Explanation
HC-05_ATCommandSet.pdf
Comments
Only logged in users can leave comments