I am using an Arduino Uno R3 with the MPU 6050 to get motion data. Different example codes use different baud rates, without any proper explanation as to why.
So how do I know which baud rate is perfect for my project?
1 Answer 1
I most cases it doesn't matter!
In some cases the highest possible is preferred, as it prevents delays. That is when the buffer is full (when sending large amounts of data through the serial connection). As Serial.write
will block until there is room in the buffer. In most cases this won't be an issue.
When running your arduino at slower speeds, you have to select a lower baudrate, or the micro-controller can't keep up.
When connection to other devices (e.g. GSM shield) using serial, that device may require a specific baudrate.
-
"at slower speeds" -- sounds weird :)LRDPRDX– LRDPRDX2024年07月24日 05:55:08 +00:00Commented Jul 24, 2024 at 5:55