Tech News
← Back to articles

Setting serial baud rate on ESP-IDF does nothing

read original related products more articles

What are we talking about? This line of code that appears in pretty much every single Arduino sketch/project:

Serial.begin(115200);

This line of code is everywhere - a quick search on GitHub finds over 450,000 instances of it.

GitHub Search

I started to question this when I was testing out my new boards. I was streaming audio from the board and noticed that the rate I was receiving data at bore no relation to the baud rate I was setting.

Audio testing

If we look closely at the image, we can see that we connected to the serial port at 115200 baud. This matches exactly what I put in the Serial.begin of the firmware.

115200 Baud Rate

This baud rate (115200) should give us 14.4kB/s. But if we look at the rate at which we are receiving data, we can see that it is much higher. 94.7kB/s.

What on earth is going on?

... continue reading