Play a sound as long as servo moves

Soundmodul und Fahrtregler in einem Modul
Antworten
reidardh
Beiträge: 6
Registriert: Di 16. Nov 2021, 10:06

Play a sound as long as servo moves

Beitrag von reidardh »

Hi, sorry if this is already answered. I have connected a Tow Truck Actuator ESC to Prop #6 via a 3 way switch. I would like to play a sound (hydraulic pump sound) as log as the actuator moves.
I have in the sound the Additional sound->Sound from servo 1 left (and right).
If I tick Loop / Complete, it plays the hole sound. Any other of them just plays a very short click.
So my question is it possible to play a tune as long as the switch are in "up" or "down" position
2021-11-19_22-00-01.png
2021-11-19_22-00-01.png (36.74 KiB) 1171 mal betrachtet
2021-11-19_21-59-38.png
2021-11-19_21-59-38.png (47.66 KiB) 1171 mal betrachtet
Kind Regards
Reidar
Rascal
Beiträge: 3252
Registriert: Do 9. Okt 2014, 01:31

Re: Play a sound as long as servo moves

Beitrag von Rascal »

Hello Reidar,

select "Sound when not in home position" instead of "Sound at servo movement".

See also the manual on page 79:
Sound at servo movement
If this option is activated, the additional sound for the servo will be played as long as the servo is moving.
"Moving" here refers to the signal output and how a servo will behave: when the servo output is activated the signal output changes until the desired position has been reached, at which point the signal will become steady. When a steady position is reached a servo would stop moving while an ESC will maintain a constant speed (hence the actuator still moves). Once the signal is steady the sound stops.

Therefore use the following option:
Sound when not in home position
With this function the additional sound will always be played, if the servo is not in home position.

This version is very well suitable if you are using a speed controller with motor instead of a servo. In home position (1,500ms) the motor is switched off and no sound is played. For example, if position #1 is set to 1,800ms and you “select“ this position, the motor will turn and you can play a corresponding sound.
reidardh
Beiträge: 6
Registriert: Di 16. Nov 2021, 10:06

Re: Play a sound as long as servo moves

Beitrag von reidardh »

Thanks for pointing me in the right direction!
For anybody that have the same issue, here are my settings:
2021-11-20_15-39-31.png
2021-11-20_15-39-31.png (32.56 KiB) 1148 mal betrachtet
2021-11-20_15-39-48.png
2021-11-20_15-39-48.png (32.02 KiB) 1148 mal betrachtet
2021-11-20_15-39-59.png
2021-11-20_15-39-59.png (46.95 KiB) 1148 mal betrachtet
Antworten