Electronic Switch Control

Post Reply
keninvic
Posts: 5
Joined: Tue Jul 03, 2018 4:41 am
Country: -

Electronic Switch Control

Post by keninvic »

I have a receiver channel electronic switch that controls leds. It has different modes, flashing,alternating,on,off, depending on how many times the channel is toggled. I simply want them to go on when I operate the SF retract down switch. I cant be toggling that switch 3 times just to get the landing lights to stay on. Have tried using the timer option on the logical switches but cant figure out how to stop them after 3 cycles. Any help on this would be greatly appreciated.

User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Electronic Switch Control

Post by jhsa »

Good challenge :) Will try this just for the fun of it :) but I use Ersky9x, not opentx.. I will try to translate it to opentx if i can still find companion on my computer ;)

There is a project that I posted a while ago here on the forum that is a switch controlled only by one channel of the receiver, but it can control 4 different switches independently from each other.. If you want blinking it is programmed on the radio.. :)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Electronic Switch Control

Post by jhsa »

and how many times after the light is already on do you need to toggle the switch to turn them off??
I think iI have turning ON already working :)
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Electronic Switch Control

Post by MikeB »

Set up a logical switch like:
L01 AND SAv SAv duration 2.9
then another:
L02 Timer 0.5 0.5 AND switch L01
then use L02 as the source of a channel and the channel will toggle 3 times.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Electronic Switch Control

Post by jhsa »

I did it in Ersky9x but used a GVAR and a few logical switches :)
Perhaps because we don't have the "duration" option in Ersky9x?? ;)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Electronic Switch Control

Post by jhsa »

I tried your suggestion but had to use "1-shot" for the duration..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
keninvic
Posts: 5
Joined: Tue Jul 03, 2018 4:41 am
Country: -

Re: Electronic Switch Control

Post by keninvic »

Thanks for the quick reply guys. It takes 3 pulses (on-off cycles) to get to both LEDs on mode, and one more pulse to turn them off. LED lights out would be linked to the SF switch toggled the other way for gear up.
keninvic
Posts: 5
Joined: Tue Jul 03, 2018 4:41 am
Country: -

Re: Electronic Switch Control

Post by keninvic »

Mike, what is SAv?
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Electronic Switch Control

Post by jhsa »

SAv is SA down

Try as Mike suggested.. I will add the bit to turn the lights OFF

L1 AND SFv SFv duration 2.9
L2 Timer 0.5 0.5 AND switch L1
L3 AND SF^ SF^ duration 0.8
L4 OR L1 L3

then use L04 as the source of a channel and the channel will toggle 3 times.
When you turn the switch OFF it should toggle once.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
keninvic
Posts: 5
Joined: Tue Jul 03, 2018 4:41 am
Country: -

Re: Electronic Switch Control

Post by keninvic »

Tried your code Joao, still unpredictable outcome unfortunately. It does give me something to play with though so will keep trying. There are 3 locations on the L1 line where I could put SFv, I put SFv in the 1st two slots.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Electronic Switch Control

Post by jhsa »

What you mean with unpredictable outcome??

Please check on your radio's channel monitor that the channel is going to +100% 3 times when you turn the switch ON, and once when you turn the switch back OFF..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Electronic Switch Control

Post by jhsa »

I do apologize, I did do a couple mistakes :( I have just tried again.

Try this:

L1 AND SFv SFv duration 2.9
L2 Timer 0.5 0.5 AND switch L4
L3 AND SF^ SF^ duration 0.8
L4 OR L1 L3

then use L2 as the source of a channel and the channel will toggle 3 times.
When you turn the switch OFF it should toggle once.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

Post Reply

Return to “openTx for FrSky radios”