Devices & Components
Arduino Nano
Resistor 1k ohm
HC-06 Bluetooth Module
Male/Male Jumper Wires
Solderless Breadboard Half Size
Software & Tools
Bluetooth Terminal App - Qwerty
Arduino IDE
Project description
Code
Code
arduino
Credits to : http://www.martyncurrey.com/arduino-and-hc-06-zs-040/
1#include <SoftwareSerial.h> 2SoftwareSerial BTSerial (2,3); 3void setup() { 4 // put your setup code here, to run once: 5 Serial.begin(9600); 6 Serial.println("Enter AT Commands"); 7 BTSerial.begin(9600); 8} 9 10void loop() { 11 // put your main code here, to run repeatedly: 12 if(BTSerial.available()){ 13 Serial.write(BTSerial.read()); 14 } 15 if(Serial.available()){ 16 BTSerial.write(Serial.read()); 17 } 18}
Code
arduino
Credits to : http://www.martyncurrey.com/arduino-and-hc-06-zs-040/
1#include <SoftwareSerial.h> 2SoftwareSerial BTSerial (2,3); 3void 4 setup() { 5 // put your setup code here, to run once: 6 Serial.begin(9600); 7 8 Serial.println("Enter AT Commands"); 9 BTSerial.begin(9600); 10} 11 12void 13 loop() { 14 // put your main code here, to run repeatedly: 15 if(BTSerial.available()){ 16 17 Serial.write(BTSerial.read()); 18 } 19 if(Serial.available()){ 20 BTSerial.write(Serial.read()); 21 22 } 23}
Downloadable files
Schematic
Schematic

Comments
Only logged in users can leave comments