I have an HC-06 Bluetooth module connected to an Arduino UNO board to allow for the data received by the Ultrasonic sensor to be transferred to my PC via bluetooth and serial communication. I am using the Putty program to view the data. The thing is, my PC says that it has paired with the bluetooth and I was able to see the COM number but when I opened Putty and entered the COM number while choosing the option 'serial' an error box appears saying: Unable to open serial port.
The way I am currently connecting my bluetooth to the arduino board is:
VCC-> 5V VCC
I am sure that the sketch in the arduino for serial communication via bluetooth is right as I have tested the system yesterday and it worked. Only after a time (say like 5-10 min) the connection breaks and I cant seem to figure out the problem. Oh and the Arduino is being powered by USB if that matters.