Electronic Switch Control
Electronic Switch Control
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.
Re: Electronic Switch Control
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
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
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
Re: Electronic Switch Control
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
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
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
- MikeB
- 9x Developer
- Posts: 17993
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Electronic Switch Control
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
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Electronic Switch Control
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
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
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
Re: Electronic Switch Control
I tried your suggestion but had to use "1-shot" for the duration..
João
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
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
Re: Electronic Switch Control
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.
Re: Electronic Switch Control
Mike, what is SAv?
Re: Electronic Switch Control
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
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
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
Re: Electronic Switch Control
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.
Re: Electronic Switch Control
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
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
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
Re: Electronic Switch Control
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
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
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