I'm trying to use an HC-06 JY-MCU bluetooth slave to write to serial using Arduino Uno. I want to pair my MacBook Air with the device and be able to read that data. However, I don't seem to be able to read any serial data when connecting.
On the Arduino, I have the RX/TX from the HC-06 going to digital pins 0 and 1 and power and ground connected to 5V and GND. I am using the following code:
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.write("asdf");
}
On the terminal I can use screen
to read the data coming in. However, when I disconnect the serial cable and pair the Bluetooth to the laptop and attempt to screen
to view it, I am left with a blank terminal window.
What am I doing wrong / should I be doing?