UART comminication between RPI and arduino

hello everyone,

We are trying to communicate with Arduino using hw uart (RPI pin 8,10).

But we are able to communicate between Arduino and RPI due to a mismatch in baud rate.

to receive the data, we have to select 115200 baud rate on RPI. and 78400 on Arduino. then only we are able to receive any data.


Please help us, solving this problem

Hi,
I was also curious how to build a Raspberry Pi UART interface and make a communication between the 2 devices; found a couple of guides and pics, though didn’t have enough time (I’m up to my neck in other projects). I haven’t tried it yet, but here’s a tutorial >> Rpi to Arduino Serial UART Communication Tutorial:

https://raspberrypi.stackexchange.com/questions/96184/rpi-to-arduino-serial-uart-communication-tutorial

Please check out the official RPi documentation which applies to DietPi as well since we use the same firmware, kernel and repository.
E.g.: https://www.raspberrypi.org/documentation/configuration/uart.md
First of all it depends if you use the hardware UART on ttyAMA0 or the software UART on ttyS0, AFAIK there was some dtparam or dtoverlay to set the baudrates for those, check out /boot/overlays/README: https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README