0

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?

asked Feb 25, 2015 at 19:02

1 Answer 1

5

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.

answered Feb 25, 2015 at 19:42
1
  • "at slower speeds" -- sounds weird :) Commented Jul 24, 2024 at 5:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.