nikivanov / watney

Watney is a low-cost 3D-printable FPV rover
GNU General Public License v3.0
378 stars 39 forks source link

Feature request: Additional servo control #30

Closed sarreck closed 2 years ago

sarreck commented 2 years ago

Hi,

Thank you for the great project.

It would be really useful if there was an additional preconfigured servo PIN to allow additional functionality (e.g. left/right camera, turret or RC LED control).

There would also need to be associated keyboard keys for the web UI.

In my case I want to control a RC car type LED which is controlled as a servo (works fine when connected to the camera servo in testing)

PXL_20220405_015205757

Thank you for considering this.

nikivanov commented 2 years ago

Hi! To confirm, it sounds like you want another servo control bound to a new pair of keys. Is that correct?

nikivanov commented 2 years ago

Do you know how to code? I can point you to a few files that you'd need to modify to make this happen.

sarreck commented 2 years ago

Hi! To confirm, it sounds like you want another servo control bound to a new pair of keys. Is that correct?

Yes thats correct.

sarreck commented 2 years ago

Do you know how to code? I can point you to a few files that you'd need to modify to make this happen.

I have tried based on your response to an older issue, however I was not able to get it to work as I didn't really know what I was doing.

nikivanov commented 2 years ago

It shouldnt be difficult. I'll create a new branch and you should be able to copy the new files. I'll let you know when it's ready for you to test.

sarreck commented 2 years ago

Thank you, I appreciate it.

nikivanov commented 2 years ago

Hey @sarreck! I've made a new branch for your auxiliary servo. You can find here it: https://github.com/nikivanov/watney/tree/auxservo

By default the aux servo is on pin 6 and up/down is D / C

sarreck commented 2 years ago

Thanks, that works great!