Blue Boat Servo Using LUA

Hello All,

I am trying to control a servo with the BlueBoat It is an rc winch Servo the INJs035-360.

As pictured above this is how it is wired in. It is connected to the V2-C power and its signal wire is the yellow one connected to pin 5.

My problem is that when i create and put upload a LUA script the servo does not move even though the LUA script is working. I get QGC updates from the script telling me it that it should be working. I don’t know if it is how I have the hardware set up or the script. Below is the Script i tried to use to get the servo to work.

If any one can see the problem if its my code or the hardware any help would be greatly appreciated.

Hi @AdamCB -

How are you powering the servo?

Since you’re treating the servo as a winch, you could set the ServoN_Function to winch, and have the lua script automatically find that output channel, as illustrated in this lua script from this thread.

I hope that example has enough to get things working for you! It’s worth noting that traditionally a Servo style PWM signal does not exceed 1900 or 2000us, 2500 seems out of range and your servo may not respond to it?