I'm trying to create a toy for my young nephews that will generate different sound effects with the press of different push button switches.
My problem is if they press another push button while the first sound effects IC is still playing, both sounds will be playing simultaneously through the speaker (common speaker for all sound effect IC's).
There are six different IC's and six different push button switches.
I can design a nightmare circuit with relays or transistors that will only allow one switch to operate at a time but there has to be a better way.
Optimally, if one switch is pressed the IC will play it's sound but if another switch is pressed while the first is still playing it's sound, the first IC will be turned off and the second turned on (additionally, if a third button is pressed, only that IC will receive the supply voltage and all others will be off).
I'm hoping someone has more experience with an integrated circuit switch that would allow only one device to be active at a time. I've uploaded a block diagram.
Thank you in advance!
My problem is if they press another push button while the first sound effects IC is still playing, both sounds will be playing simultaneously through the speaker (common speaker for all sound effect IC's).
There are six different IC's and six different push button switches.
I can design a nightmare circuit with relays or transistors that will only allow one switch to operate at a time but there has to be a better way.
Optimally, if one switch is pressed the IC will play it's sound but if another switch is pressed while the first is still playing it's sound, the first IC will be turned off and the second turned on (additionally, if a third button is pressed, only that IC will receive the supply voltage and all others will be off).
I'm hoping someone has more experience with an integrated circuit switch that would allow only one device to be active at a time. I've uploaded a block diagram.
Thank you in advance!