# Blue Boat Servo Using LUA

**URL:** <https://discuss.bluerobotics.com/t/blue-boat-servo-using-lua/21483>\
**Category:** Blue Robotics Software\
**Tags:** blueboat, lua\
**Created:** [August 28, 2025, 12:22pm UTC](https://discuss.bluerobotics.com/t/blue-boat-servo-using-lua/21483 "2025-08-28T12:22:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdamCB](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@AdamCB](https://discuss.bluerobotics.com/u/AdamCB)\
**Post date:** [August 28, 2025, 12:22pm UTC](https://discuss.bluerobotics.com/t/blue-boat-servo-using-lua/21483/1 "2025-08-28T12:22:13Z")

</div>

Hello All,

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

 ![1000008647](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/4/9/49678296e0b594370456312d75c864e450869311.jpeg)

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.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/3X/9/6/96f18f68558a8bbb78c0e763b9cf7e3eba2f841b.png)

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

---

<div class="post-metadata">

**Author:** ![tony-white](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tony-white/32/13297_2.png) [@tony-white](https://discuss.bluerobotics.com/u/tony-white)\
**Post date:** [August 28, 2025, 4:40pm UTC](https://discuss.bluerobotics.com/t/blue-boat-servo-using-lua/21483/2 "2025-08-28T16:40:26Z")

</div>

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](https://github.com/vshie/luascript_library_BlueRobotics/blob/main/winch.lua) from this [thread](https://discuss.bluerobotics.com/t/controlling-external-devices-with-lua-scripts-on-ardurover-blueboat-winch/17134).

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?
