I've managed to get myself very confused. The HM-10 (BLE module) has a RX and a TX pin that get connected to an Arduino as follows (I think),
The TX pin of the Arduino sends out the serial data and connects to the RX pin of the module - blue wire.
So, is the RX pin of the module accepting data to be transmitted?
In other words, is the above diagram correct?
Unfortunately, a fritzing diagram is about as useful as a screen door on a submarine. If I were to make book I would swap the connections, you are showing.
Not sure of your model, but many of the HM-10 are 3.3V devices, not 5V. Now, your board may have level converters on it, can't tell by your pictorial. Check the datasheet for your device. Otherwise, the TX/RX connections should be correct if labelled properly on the HM-10 board.
My module is indeed 3.3V but I'm using a resistive divider from the Pic TX pin to the modules RX pin. I believe the Pic's RX pin "should" work fine on 3.3V. I'll meter the model when I get it to ensure the RX pin etc. is correctly labeled. Not really got room on my PCB to add level converters.
just found this image. It is of the bare module rather than one mounted on a PCB so it depends how the PCB is connected. Looks like metering it might be the only way.
Normally Rx --> Tx and Tx --> Rx, but some devices, trying to be helpful, label the pins as what they should connect to rather than what they are. So NOT helpful!
Transmit pins should output a high signal when idle; receive pins will be low at idle. Check with a meter to verify which is which.
The TX pin of the Arduino sends out the serial data and connects to the RX pin of the module - blue wire.
So, is the RX pin of the module accepting data to be transmitted?
In other words, is the above diagram correct?
It seems especially confusing with a Bluetooth module when data into the RX pin might cause the data to be transmitter over Bluetooth, hence both directions. Think a meter is the only answer.
If they had a description of what the pin does it would be helpful.
I "think" the RX pin is,
"Recieves data from the attached device for transmission over bluetooth"
So the RX pin may be the transmit data pin!!!
No wonder I'm confused.
As stated, I'll check which pin is held low when I receive the modules.
As I showed above (#1 & #5) both are shown on the internet. It's just that noone seems to know which is correct.
I suspect that if it's a module (on PCB) it's RX>TX etc.
But if just a chip (none mounted module) it's RX>RX etc.
If they had a description of what the pin does it would be helpful.
I "think" the RX pin is,
"Recieves data from the attached device for transmission over bluetooth"
So the RX pin may be the transmit data pin!!!
No wonder I'm confused.
As stated, I'll check which pin is held low when I receive the modules.
It's seems fairly random on the Chinese modules, it's something you always need to check and make sure - I'm sure pretty well all of us have fallen foul of it at various times