Baud rate

General discussion about topics related to OpenMV.
finnleh
Posts: 36
Joined: Sun Apr 14, 2019 12:12 am

Baud rate

Postby finnleh » Mon Jul 01, 2019 4:27 am

Hello! I have my arduino connected to the camera. They communicate through UART.

With a baud rate of 9600, the communication works just fine. But I need to increase the baud rate to 115200.

When I do that, the communication doesn’t work anymore. Is there a way, to change the baud rate for the camera? Or does it only work with 9600 baud rate?

Thank you for your help,
Finn
User avatar
iabdalkader
Posts: 952
Joined: Sun May 24, 2015 3:53 pm

Re: Baud rate

Postby iabdalkader » Mon Jul 01, 2019 10:09 am

No it should work with any baud rate, do you also change the baud rate on the Arduino ?
finnleh
Posts: 36
Joined: Sun Apr 14, 2019 12:12 am

Re: Baud rate

Postby finnleh » Mon Jul 01, 2019 10:15 am

Yes, I did. In the setup, I set all baud Rates to 115200. Do i have to change it somewhere in the openmv code as well? Or does it do that automatically?
User avatar
iabdalkader
Posts: 952
Joined: Sun May 24, 2015 3:53 pm

Re: Baud rate

Postby iabdalkader » Mon Jul 01, 2019 11:47 am

finnleh wrote:
Mon Jul 01, 2019 10:15 am
Yes, I did. In the setup, I set all baud Rates to 115200. Do i have to change it somewhere in the openmv code as well? Or does it do that automatically?
Yes you have to set the baud rate in the code:

Code: Select all

uart = UART(3, 115200, timeout_char=1000)

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 3 guests