Setting baud rate of R4 wifi ESP

Setting baudrate for an ESP2866 requires using AT commands in command mode to change it to match the Arduino code. Is it a similar process for the Arduino WiFi R4?

For the R4 wifi, the ESP32 board is integrated with the Arduino so I don't know to what extent parameters are written automatically.

This Arduino Cloud notes that the ESP32's data lines are exposed for flashing firmware. Is changing baud rate considered "flashing firmware"?

I'd prefer not to mess with the ESP if I can avoid it.

Why can't you can set the baud rate for the Uno R4 WiFi using Serial.begin() ?

If you're using a typical Arduino board connected to a wifi board such as ESP2866 board, both boards have different voltages and baudrates. The ESP2866's default data rate is 9600, the Arduino is whatever you set it to. To configure the ESP2866's baudrate, you have to enter a command mode by wiring it up a certain way.
If you don't, there is a risk that the conflicting baudrates will skew or compromise the data.

I don't know if this applies to the R4 Wifi.

True, but your question was about how to set the baud rate of the Uno R4, or at least I think so

Again, why to change the ESP8266 baudrate? Why not setup the Arduino to use the 8266's defaults 9600?

The data from my sensors needs to be at a specific, higher rate for it to be useful. 9600 is not enough

the baudrate is 115200 and right now there is no way to change it other than changing the source code of the firmware and library

1 Like

I am confused

Which board are the sensors connected to and what exactly is the ESP8266 used for ?

Come to that, why use an ESP8266 at all and exactly which board is it on ?

the question is about Uno R4 WiFi where esp32-s3 listens on Serial2 for commands from the WiFiS3 library

I am glad that is clear to you because it is far from clear to me

It is a comparison between a standard procedure to get wifi on a normal Arduino board (by adding an ESP8266) vs. using wifi on an Arduino wifi R4.
On a normal Arduino board sensors are connected to it. Serial data from the Arduino board microcontroller is then communicated through the ESP8266 to web server/PC/Android, etc.

If that's true its unfortunate.
Thanks!

why?

I can't imagine any data that would require a specific serial baudrate, so that neither a lower nor a higher speed would be suitable.
Could you please to share a more details about the project?

The baud rate is set by other factors in the project and I can't change it.
I was told it was necessary because of the selected sensor refresh rate

How the refresh rate of the sensor could be connected with Arduino-Esp8266 baudrate?

If you insist on keeping details of your project to yourself then providing help is going to be difficult

For instance, what sensors are you using ?

1 Like