Need Raspberry pi 4 to send servo commands to pixhawk to control rc car

699 Views Asked by At

Hello I am working on a group project of trying to complete an autonomous rc car. There a pixhawk that has the main control and commands to navigate the car. However there raspberry pi that's doing path tracking that will eventually need control over the servo. Is there a way fro the pixhawk to receive pwm values that will set the servo in real time. Keep in mind that the pixhawk is having control over the servo as well. Do anybody have any suggestions?

1

There are 1 best solutions below

4
On BEST ANSWER

You have to decode the output of your RC receiver first. Just check on what the receiver is sending to pixhawk by connecting any microcontroller/microprocessor at the output channel of receiver, and generate the same ppm signal using your raspberry pi. Else, you can directly connect your raspberry with pixhawk using RX/TX(UART) pins.

There is a tutorial on it here