Run a motor for a set time

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
Post Reply
CraigKane
Posts: 27
Joined: Sun Aug 03, 2014 4:36 pm
Country: United Kingdom

Run a motor for a set time

Post by CraigKane »

Is there a way to activate a channel for a set period of time?
I have a motorised winch that i would like to run for 24 seconds after the switch is operated and then stop.

Horus X12s OpenTx 2.2
FrSky convert! Farewell Spektrum!

User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Run a motor for a set time

Post by Kilrah »

Logical switches have a Duration setting that might be of help.
You'll want to set up another switch to cancel it if needed obviously.
lshems
Posts: 63
Joined: Tue Sep 15, 2015 5:36 pm
Country: -

Re: Run a motor for a set time

Post by lshems »

I'll need to look for the posts, but Mike and I exchanged some setup ideas for that here on the general thread I think.
CraigKane
Posts: 27
Joined: Sun Aug 03, 2014 4:36 pm
Country: United Kingdom

Re: Run a motor for a set time

Post by CraigKane »

Thanks for the replies.

Basically I want to link the winch to SC:

SC(up): winch run for 24 seconds to pay out cable.
SC(mid): winch off - This will be the default position.
SC (down): winch run for 24 seconds to reel in cable.
FrSky convert! Farewell Spektrum!
lshems
Posts: 63
Joined: Tue Sep 15, 2015 5:36 pm
Country: -

Re: Run a motor for a set time

Post by lshems »

Ok. That's not a plane motor :)

You can set duration on a logical switch, so create two logical switches to check for position of SC up and down, and set duration of 24. Use those as switch on a mix with MAX as source, and 100 for up and -100 for down in weights.

It can be done based on the weight of the switch etc. But this is readable in the radio.

Post Reply

Return to “openTx”