Sending Sensor Data from Raspberry Pi to Arduino

Hello, I am currently working on a automated rover project. I am using a PiCar chassis with 4 DC motors, and a ultrasonic sensor. The motors are driven by the L293d motor driver shield for Arduino, and the ultrasonic sensor is connected to the Pi. I need the motor movement to be based on the sensor reading, e.g if the sensor detects a object 5 cm in front, turn motor 1 and 2 forward. However, I am having trouble sending the sensor data from raspberry pi to the Arduino, I have tried the serial port but it did not work. Any help would be appreciated

Hello @Kyle11 and welcome to the RobotShop forum,

Did you enable Serial in your Raspberry Pi? Did you use the same baud rate on both devices?

If you did and those are not the problems, we suggest checking the following tutorials


Let us know if you are able to make it work or if you need further assistance :wink: