activating relay to fire an audio file

Thread Starter

ARRCOMM

Joined Mar 4, 2025
19
Dry contact momentary closure activating relay to fire an audio file, then on next closure fire the next audio file
 

panic mode

Joined Oct 10, 2011
4,864
is the same relay triggered by each button press or every press triggers different relay? how long is relay supposed to be on before switching off?
 

schmitt trigger

Joined Jul 12, 2010
2,027
To determine what the TS wants, I am going to bring out my ancient crystal ball… wait a minute, it’s vacuum tube based, takes a while to warm up…

Ok; I can see that the TS has some sort of MP3 player… he pushes a button and the device plays a short audio segment. Push it again and the next audio segment plays, and so on.
I can further see, although the image is a low-res analog B&W and has multipath reception, that he wants to somehow control it remotely with….hmmm… ups….sorry, the image faded away. I am using some rabbit ears antenna and got poor reception.

We’ll have to wait until the TS clarifies his requirements.
 

Thread Starter

ARRCOMM

Joined Mar 4, 2025
19
Dry contact momentary closure activating relay to fire an audio file, then on next closure fire the next audio file
The First contact is a dry closure activated by a satellite receiver.
The trigger is to activate an audio file and at the next closure, activate another audio file.
There are 8 audio files. Each not in excess of 18 seconds. (Not important, just info)
I have a DY-HL50F voice playback module. Problem is, the 8 audio files are accessed by 8 different contacts. Each specific contact pair, Pin 0 to Pin 1, Pin 0 to Pin 2, etc., etc. must fire off once, then the next file fires off the next audio file on the next contact closure. Each file is only allowed to play once then at the next closure the next audio file plays.
I was looking at putting in an IC chip, right now which one slips my mind, that has ability to go High/Low and this can activate a closure to fire off the audio file that pin is connected to.
It continues this cycle always. As long as a closure from the sat receiver keeps sending closures.
Any ideas on a 5v chip that can do this cyclic operation?
 

sghioto

Joined Dec 31, 2017
8,633
Any ideas on a 5v chip that can do this cyclic operation?
First thing that comes to mind is a micro but a CD4017 configured to count to eight with an inverter on each output and using the dry contact from the receiver to generate an input pulse seems viable.
 
Last edited:

sparky 1

Joined Nov 3, 2018
1,218
Which relay are you concidering?


2>.Model DY-HL50F
3>.Work Voltage 9V-24V
4>.Work Mode: 9-Kinds
5>.File Format: MP3,WAV
6>.Speaker Power: 20W-60W
7>.Output Impedance: 4ohm-8ohm
8>.Memory:64Mbit (8MByte) Flash
9>.Audio Output: Active output
10>.Adjust Volume: Yes
11>.Trigger Signal: Low Level Signal(NPN)
12>.

4.Interface Description:
1>.GND/COM: Trigger signal common terminal.
2>.S1: Trigger playing 00001.mp3 music file.
3>.S2: Trigger playing 00002.mp3 music file.
4>.S3: Trigger playing 00003.mp3 music file.
5>.S4: Trigger playing 00004.mp3 music file.
6>.S5: Trigger playing 00005.mp3 music file.
7>.S6: Trigger playing 00006.mp3 music file.
8>.S7: Trigger playing 00007.mp3 music file.
9>.S8: Trigger playing 00008.mp3 music file.
10>.S9: Trigger playing 00009.mp3 music file.
11>.9-24V Terminal: Input work voltage.
12>.Speaker: Connect to 4-8ohm speaker.
 
Last edited:

BobTPH

Joined Jun 5, 2013
11,463
The question is how, exactly, the player is triggered.

Does it need a pulse that goes low then back to high before playing? I.e., does it trigger in level, leading edge or trailing edge?

If the signal remains low, does it play the clip again?
 

panic mode

Joined Oct 10, 2011
4,864
BobTPH is right...
but assuming that buttons are connected to GND and that one does not have to hold them pressed to complete playing, something like may do the trick

1741184993679.png
 

panic mode

Joined Oct 10, 2011
4,864
actually if 555 is set as monostable of correct duration, extra resistors and capacitors on outputs are not needed, since they are AND-ed with transistor on top....
 

Thread Starter

ARRCOMM

Joined Mar 4, 2025
19
The trigger is a closure to Gnd, so Yes it is a Low.
Looking at the Pin terminals and literature I have, it says for the Work Mode of the 3 Pin Dip Switch, in MP3 Mode 1,
I understand S1 the and S2 to be "next music". It should stop after playing Once. On next Trigger activation, play the Next file and continue moving to next file for every Trigger. I am not in office, yet, but heading that way. Going to try this Mode and Pin 2.
(Just gotta love translated Chinese to Taiwanese to English.)
As for the Chip I was thinking of, that was it.... the CD4017, but Not to use with the 555. This circuit can not be set up to a " timed" incident. Times vary.
Will try this, then get back to all here.
 

Attachments

sghioto

Joined Dec 31, 2017
8,633
The 555 chip is used to convert the mechanical dry contact into a pulse to advanced the count on the 4017.
It's not a timer.
No additional resistors or capacitors are required on the transistor inverters.
 
Last edited:

Thread Starter

ARRCOMM

Joined Mar 4, 2025
19
The trigger is a closure to Gnd, so Yes it is a Low.
Looking at the Pin terminals and literature I have, it says for the Work Mode of the 3 Pin Dip Switch, in MP3 Mode 1,
I understand S1 the and S2 to be "next music". It should stop after playing Once. On next Trigger activation, play the Next file and continue moving to next file for every Trigger.

Continued.... Back in office. That did not work setting up Dip switches to all ON. It just played that file, stopped, and when triggered again, played the same file.

So, I need some sort of switch that will advance to next Output and plug each.of those outputs to each of the Terminals on the audio card so that only THAT file plays and stops.
 

Thread Starter

ARRCOMM

Joined Mar 4, 2025
19
If Mode 1 is what I think it is then the 4017 can be eliminated and even the 555.
View attachment 343809
View attachment 343810
It plays 1 time then stops. If trigger pressed again, it plays same file.
S0 is Gnd, S1 first file, S2 second file, S3 etc.. It needs to play S1 then Stop. On next trigger play S2 then stop. Etc., etc. until all 8 files are played then go back to beginning file.
 
Top