2
\$\begingroup\$

I have an Arduino UNO which will be using an HC-05 bluetooth module to connect to a program running on PC. Its baud rate can be configured from as low as 4800 to as high as 1382400.

I know that there are the following considerations concerning choosing a proper baud rate:

Data speed (Higher baud rate = faster transmission)
Connection range (long distance ==> more distortion / loss ==> can only support lower baud rate)
Power (Higher baud rate = more power hungry)
Max / Min baud rate of PC & Arduino

My question is:

Did I get anything wrong?
Are there any other considerations for choosing the proper baud rate?
Suppose I disregard power and connection range will be at most 1 meter, what baud rate should I choose for fastest data transfer?

\$\endgroup\$
1

1 Answer 1

2
\$\begingroup\$

You need to do what we call a link budget. This typically takes into account:

  • the directivity of the antenna/its gain with respect to an omnidirectional antenna (transmitter and receiver)
  • the power converted into waves in the antenna. Not to mix up with the power in the transmitter, the efficiency of the antenna driver can vary quite a bit from transmitter to transmitter!
  • The free space loss which depends on frequency of the signal (related to baudrate) and distance (absorption of air)

Such a link budget sums all gains and losses and always equals zero, so you can solve for the maximum baudrate, knowing that the signal power at the receiver must be X times bigger than the estimated noise power at the receiver.

X is the signal to noise ratio, which is related to the bit error rate via the modulation technique that is used by the transmitter/receiver. i.e. Certain modulation techniques are more robust against noise than others and don't generate that many upsets.

Usually there is something else on top of the hardware layer which is encoding, to decrease further the bit error rate for a given modulation technique. In its simplest form, it's a parity bit.

With those keywords, you should be able to know what the specs are for bluetooth and calculate the maximum baudrate.

Or you could do it "the experimental way", and run the system for several days at a constant baudrate and record the number of bit upsets. If it's fine to you, stick to it. The above is only for your own understanding, if you can actually test it, test it.

\$\endgroup\$
2
  • \$\begingroup\$ The serial port baud rate is not related to the Bluetooth data rate. Changing it won't change anything. \$\endgroup\$
    – Austin
    Commented Apr 11, 2015 at 22:17
  • \$\begingroup\$ Technically they are not the same but they are related. In practice the Bluetooth module is a passthrough and if the baudrates don't match it won't work. If you downvoted you should explain why in more details. \$\endgroup\$ Commented Apr 12, 2015 at 2:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.