I would like to pair an arduino uno with a Bluetooth module(hc-06) to a computer running windows 8.1.
I have seen people doing it with windows 7 using the Toshiba Bluetooth stack but apparently there is a problem using it with win 8.
I would like to pair an arduino uno with a Bluetooth module(hc-06) to a computer running windows 8.1.
I have seen people doing it with windows 7 using the Toshiba Bluetooth stack but apparently there is a problem using it with win 8.
Hi Andres
Although I've done some work with Bluetooth, I hadn't tried this so it took me a while to get around to it - I now have it working in both Windows 7 and Windows 8.1 and the processes I went through were identical.
The HC06 is connected to the Rx/Tx pins of an Arduino (Digital Pins 0/1) with the RX input to the HC06 through a simple resistive voltage divider to reduce the signal from 5V to 3.3V
The Arduino is running this simple sketch to read serial input and output it to the serial monitor. I can transmit data from the PC using Tera Term terminal emulator, via the HC06, to the Arduino, where it is displayed on the serial monitor.
// receive data on serial port and display on serial monitor
// used to test Bluetooth connection
// Neil Kenyon 18 Feb 2015
//
String myString = "";
void setup()
{
Serial.begin(9600);
}
void loop()
{
while (Serial.available()) // Read while there are available characters
{
delay(3);
char c = Serial.read();
myString += c; // build the data string
}
if (myString.length() > 0) //If we have a data string
{
Serial.print(myString); // Output the full data string
}
myString = "";
}
On my Dell Inspiron desktop, W7, the Bluetooth is on com6 and on my Advent Tacto laptop, W8.1, the Bluetooth is on com3 - it will tell you.
Hope this helps
Neil
Hi Andres
Although I've done some work with Bluetooth, I hadn't tried this so it took me a while to get around to it - I now have it working in both Windows 7 and Windows 8.1 and the processes I went through were identical.
The HC06 is connected to the Rx/Tx pins of an Arduino (Digital Pins 0/1) with the RX input to the HC06 through a simple resistive voltage divider to reduce the signal from 5V to 3.3V
The Arduino is running this simple sketch to read serial input and output it to the serial monitor. I can transmit data from the PC using Tera Term terminal emulator, via the HC06, to the Arduino, where it is displayed on the serial monitor.
// receive data on serial port and display on serial monitor
// used to test Bluetooth connection
// Neil Kenyon 18 Feb 2015
//
String myString = "";
void setup()
{
Serial.begin(9600);
}
void loop()
{
while (Serial.available()) // Read while there are available characters
{
delay(3);
char c = Serial.read();
myString += c; // build the data string
}
if (myString.length() > 0) //If we have a data string
{
Serial.print(myString); // Output the full data string
}
myString = "";
}
On my Dell Inspiron desktop, W7, the Bluetooth is on com6 and on my Advent Tacto laptop, W8.1, the Bluetooth is on com3 - it will tell you.
Hope this helps
Neil