I just bought a bluetooth module (hc-06) . I’ve connected it to arduino micro and no communication ] . RX->TX and TX-RX. Vcc to 5V and GND to GND. The bluetooth is mounted on another board with voltage regulator, an LED and some rezistor ready to be connected to arduino (I guess). I can connect with an android smartphone to it, but nothing.
When I connect, the led stop flashing but arduino do nothing at my inputs.
The module has 4 pins (vcc,gnd,rx,tx), in datasheet say that when is not connected to a device is in AT mode.
The code I use is:
And do nothing.
I’ve also tried to enter in programming mode with AT command. I’ve used SoftwareSerial library to define another pins for RX and TX, then send commands from SerialMonitor to Arduino -->bluetooth and vice versa. Not “ok” at serial monitor.
Also I tried to connect the TX pin of the bluetooth to my pc microphone jack, and common GND. Is silence till I press a key on android, then begin a sound like a PWM for one second then stops. I’am a beginner but serial data of only one char should be transmitted under a second. (1/9600)*8 sec. Why keep beep so long? maybe the bluetooth is faulty.
Things I tried:
-use SoftwareSerial library and define pin 2 and 3 for RX TX (2,3 interrupters on micro)
-change the baudrate
-change android software (SENA BTerm, Bluetooth SPP etc)
-invert RX with TX, hope that this hasn’t destroy anything.
So the question is:
Is my module faulty or I missed something…or both. =(