Seite 1 von 1
2 functions, 1 switch
Verfasst: Do 11. Jul 2024, 21:44
von Sev
Hey all,
I have missed something with my idea, and hope you smart folks can help me out. Beier SFR-1 in the truck, Beier LM-BT-16 module in the trailer. Trailer has the Tamiya Motorized Legs which I have already implemented into the LM. 5th wheel coupler on the truck is also servo operated, plugged into Servo Output 1 on the SFR, and have it activated in the Sound Teacher
I have two function sequences setup to run the coupler open/close and motor up/down. As follows.
Function Sequence 1
Servo 1 Posistion 1: On (opens coupler)
LM Motor Down: On (3.50 seconds on duration)
LM Motor Down: Off
Function Sequence 2
Servo 1 Posistion 2: On (closes coupler)
LM Motor Up: On (3.50 seconds on duration)
LM Motor Up: Off
I have these set to my 2 pos. switch as follows:
In Static A: Function Sequence 1
In Static D: Function sequence 2
The legs work as they should, going up or down with the switch, and the motor shuts off as it should. The servo for the coupler does nothing. Endpoints are set in the transmitter. I've been banging my head against it, and cannot get the coupler to work with the function sequences. Any input or ideas is appreciated!
Re: 2 functions, 1 switch
Verfasst: Do 11. Jul 2024, 22:11
von Rascal
Hello Sev,
please upload the project file (*.sfr) for me to check.
The 2 position switch is +100% / -100% ?
Is the switch latching or momentary?
Re: 2 functions, 1 switch
Verfasst: Do 11. Jul 2024, 23:05
von Sev
Thanks for the reply Rascal. Those terms are foreign to me as far as latching/momentary. The transmitter is a FlySky ST8 if that helps.
Sure! I'll upload it when I get home from work. You might be asleep by then since I'm in California.
Re: 2 functions, 1 switch
Verfasst: Do 11. Jul 2024, 23:43
von Rascal
Hello,
latching: the switch will stay in its "ON" position after pushed, even you don't touch it anymore
momentary: the switch will only stay in the "ON" position as long as you push it / hold it there
Re: 2 functions, 1 switch
Verfasst: Fr 12. Jul 2024, 01:54
von Sev
Ahh ok, Thank you! It's a latching switch then.
Here's the requested project file.
Re: 2 functions, 1 switch
Verfasst: Fr 12. Jul 2024, 12:48
von Rascal
Hello Sev,
you didn't configure any of the servo positions, they are all still set to 1,500ms (default).

- servos.png (69.13 KiB) 2980 mal betrachtet
Re: 2 functions, 1 switch
Verfasst: Fr 12. Jul 2024, 14:12
von Sev
Gotcha. So these override the end points in the transmitter? Thank you for your time taking a look, I'll get these set after work.
Re: 2 functions, 1 switch
Verfasst: Fr 12. Jul 2024, 15:03
von Rascal
Sev hat geschrieben: ↑Fr 12. Jul 2024, 14:12Gotcha. So these override the end points in the transmitter? Thank you for your time taking a look, I'll get these set after work.
This is not related to the transmitter since you use a function ("Servo X Position #") to control the servos, as opposed to direct control.
Those values therefore set the absolute position of the servo but note that different servos have a different maximum angle, so the value will depend on the actual servo used (hence why we can't express the value in degrees).
You need to figure out the correct values for your servo, in one position the 5th wheel is open and on the other it's closed but without the servo hitting a mechanical stop at either end. If it does the servo will usually hum/buzz and draw a high current, so that should be avoided.
If you have a
servo tester with display you can use that to determine the values. Starting at 1500 µs (= 1,500 ms) use the tester to move the servo into the correct positions (coupler open & closed) and set the value on the display as servo position.
If you do not have a servo tester change the position in small steps and try, i.e. starting with 1,400 ms for Position #1 and 1,600 ms for Position #2.
Then decrease/increase the values in small steps until the coupler is fully open or fully closed respectively.
Re: 2 functions, 1 switch
Verfasst: Fr 12. Jul 2024, 15:29
von Sev
Ok, that makes a lot of sense now. I do have a servo tester, but it's just a basic one with a knob and centering function, no display. I'll implement the second method and hopefully get those posistons correct. Thank you so much for the help!
Re: 2 functions, 1 switch
Verfasst: So 14. Jul 2024, 03:01
von Sev
*UPDATE* - It works! Thanks to Rascal for pointing out my mistake and suggesting I order a better servo tester with display. I did have to change step one of Function Sequnce 1 to "Servo at home posistion" with the settings from the tester (don't know why servo 1pos 1 didn't work). Both functions are now operating off 1 switch as they should. Thank you again Rascal for your help and imput!