Servos through code

Hey there, im just a beginner in pixhawk. Im using pixhawk 2.4.8 and i want to control the sg90 servo through python code. I have written the code and servo is connected to pin 4 of main out. The code runs fine as i have added the print statement as well and it prints out the command that signal is being sent but the servo doesnt move, what am i doing wrong?

1 Like