I have a HC-06 bluetooth module. The module has an RX and TX pin which(the RX pin receives data and TX transmits data) connect to the TX and RX pin of an Arduino respectively (in my case an Arduino pro mini).
My question is in what scenario would someone use the RX pin of the module(basically for what purpose would the bluetooth module receive a signal from the Arduino)?
In my project i have a simple LED that i turn off and on. I just sent the signal from my phone to the module and the module sends the signal to the Arduino. So basically i've only connected the TX pin of the module (which transmits the data) with the RX pin of the Arduino (which receives the data).
So if someone only wants to transmit data from the module to the Arduino, is there a reason on why would he connect the other two pins?
When you communicate with the HC-06 using your Arduino by uploading a sketch to it, it makes use of both the Rx and Tx pins.
You can also get some Bluetooth boards to send messages via bluetooth upon some event - controlled by code of course. So that is another use of both pins.
pavalispace:
I have a HC-06 bluetooth module. The module has an RX and TX pin which(the RX pin receives data and TX transmits data) connect to the TX and RX pin of an Arduino respectively (in my case an Arduino pro mini).
Could be a problem.
The RX/TX pins of the Arduino are already used for comms between the MCU and USB/Serial chip.
Better to use SoftwareSerial on two different pins (examples in the IDE).
TX of the BT module can be connected straight to the Arduino, but BT RX needs a 1k/2k level shifter,
because the BT module is not 5volt tolerant.
pavalispace:
My question is in what scenario would someone use the RX pin of the module(basically for what purpose would the bluetooth module receive a signal from the Arduino)?
You need the BT RX pin if you want to send e.g. sensor data from the Arduino to the phone.
Leo..