# How to make some light-box-buttons with audio

**URL:** <https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659>\
**Category:** Uncategorized\
**Created:** [12 July 2021 08:12 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659 "2021-07-12T08:12:17Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt168780](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Matt168780](https://forum.core-electronics.com.au/u/Matt168780)\
**Post date:** [12 July 2021 08:12 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/1 "2021-07-12T08:12:17Z")

</div>

Hi everyone

I would like to make a series of light-box-buttons in my house that:

- Have a translucent front, where I can stick or replace decals

- When you press and hold the box, it will:  
- Switch on a set of LEDs that will light the box up.  
- Play a sound file (less than 2 seconds) through a speaker within the box

- When the box is released, the lights switch off.

Example of the buttons:

 ![mock-up-of-buttons](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/8/8ba435c00d0d897f0158f6a83e783480dea86fba.jpeg)

Example of the potential audio component  
([8M Recordable Sound Play Module MP3 WAV Music Voice Player with Speakers](http://www.icstation.com/recordable-sound-play-module-music-voice-player-with-volume-adjustment-lithium-battery-charging-circuit-music-gift-greeting-card-p-10060.html))

 ![example-play-audio-file](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/4/4acb31030ac09c74b3643eb1e9d1d6cdd6c587ee.jpeg)

Potential LEDs:

 ![potential-leds](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/7/78bbd4cc338f7442ee1b7c5b3c7448f37c4bed84.jpeg)

I think that what I need to do is wire the LEDs to the play button and also make it so that the LEDs are switched off when the play button is released. I suppose a different play button might be required.

I also need to make it easy to that the push and release of the button is controlled by the front of the box, regardless of where it’s pushed (by a toddler).

Not really sure where to start with this. But happy to try.

Any advice would be very well received.

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [13 July 2021 00:05 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/2 "2021-07-13T00:05:45Z")

</div>

Hi Matt,

What you’re likely looking for is an audio trigger board, a board with trigger inputs that you wire to switches, some flash storage on board to store your audio files (thankfully 2s is very short so you won’t need much). Some even have a small amp onboard driving speakers! Here’s a likely candidate for a first choice:

> **[Adafruit Audio FX Sound Board + 2x2W Amp - WAV/OGG Trigger - 2MB](https://core-electronics.com.au/adafruit-audio-fx-sound-board-2x2w-amp-wav-ogg-trigger-2mb.html)**
>
> This version of the FX boards is discontinued until Adafruit figure out why sometimes the amplifier doesn't work. Till then, you can use a Mini Sound FX board + one of .. read more

As for the huge “buttons” you could 3D print the two parts that house any switches etc, and laser-cut a clear faceplate that your decal would sit behind (both are offered as [manufacturing services](https://core-electronics.com.au/services.html) here at Core if you don’t have access to them)

As for the lights, we’ve got a ton of bright LEDs in our range, you’d just need to make sure that you limited the current with the appropriate resistor, getting them to light up on press would be super easy, you’d just need a separate microswitch or similar inside your “button” whose job is just to complete the circuit with the LED.

As for micro switches, any will do, but one with a roller will give you the smoothest operation, you might need to wire them up in parallel to your trigger to make sure that they’ll close no matter how the button is pushed. To give you an idea of what I mean, these ones are pretty versatile:

> **[Mini Microswitch - SPDT (Roller Lever)](https://core-electronics.com.au/mini-microswitch-spdt-roller-lever-48927.html)**
>
> Although small in size, KW4-Z5F roller microswitches are rated for controlling electrical loads ranging from logic level (computer based circuits) to power duty .. read more

That should be it really! Just a couple of 2W speakers should be all you need to get it going.

Keen to see where you go with this! Feel free to reply if you’ve got more questions.  
-James

---

<div class="post-metadata">

**Author:** ![Matt168780](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Matt168780](https://forum.core-electronics.com.au/u/Matt168780)\
**Post date:** [16 July 2021 01:11 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/3 "2021-07-16T01:11:24Z")

</div>

Hi James

Thank you so much for responding and for your time and insight!

I have to make 26 of these and my absolute top budget is $8 USD per button.

I’d like the flexibility to make each one completely isolated, tempting as it would be to have a ‘brain’ and ‘power’, then link up each light-box.

I love the idea of the roller levers.

Is there a similar item to the sound board / amp / speaker that is scaled down to support 1 trigger, one, audio file and one speaker?

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [16 July 2021 02:13 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/4 "2021-07-16T02:13:29Z")

</div>

Hi Matt,

For that budget constraint, you may be better off with the soundboard you linked initially.

> [@Matt168780](#):
>
> Is there a similar item to the soundboard/amp/speaker that is scaled down to support 1 trigger, one, audio file and one speaker?

James has linked the cheapest soundboard/amplifier/trigger module all-in-one product that Core stocks. You may be able to come up with a cheaper solution by programming a generic microcontroller to play a sound based on a digital input but it would take a lot more work.  
Ultimately it depends on how low-level into the design you want to go and what you are comfortable programming.

---

<div class="post-metadata">

**Author:** ![Matt168780](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Matt168780](https://forum.core-electronics.com.au/u/Matt168780)\
**Post date:** [19 July 2021 02:12 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/5 "2021-07-19T02:12:05Z")

</div>

Thanks Trent and James.

Perhaps having everything as isolated systems is too much cost (to retain the required quality).

How about if the 26 buttons were:

- roller lever switch
- LED’s
- a means of mechanically setting a 4 digit code (with little switches)
- battery
- a means of broadcasting the 4 digit code when pressed
- brain to support the above

Without any wires, there would then be an additional module with a that would receive the code and play the appropriate sound.

Would this change my options?

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [20 July 2021 07:06 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/6 "2021-07-20T07:06:41Z")

</div>

Hi Matt,

I can’t think of an easy way to do this. The two sound trigger boards being discussed are great because they don’t require a lot of configuration or low-level programming languages to setup and more or less do what you want out of the box, the catch is they cannot be triggered wirelessly.

Three of the Adafruit FX boards would be able to respond to 33 triggers and cover the number of inputs you are after with wired inputs.

To trigger these wirelessly you will need to program a microcontroller to receive inputs over some wireless protocol, and play audio from memory. This will probably need to be programmed in a low-level language like C or assembly.

---

<div class="post-metadata">

**Author:** ![Matt168780](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Matt168780](https://forum.core-electronics.com.au/u/Matt168780)\
**Post date:** [22 July 2021 03:45 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/7 "2021-07-22T03:45:46Z")

</div>

Hey Trent

Going back to isolated systems, what about replacing the button on this one with 4 roller leavers (to cover for pressing the front anywhere) and then wiring it so that the LEDs are activated / deactivated with the same action?

> **[4.38US $ 5% OFF|Sound Voice Module Recordable Music Changeable Volume 8M With...](https://www.aliexpress.com/item/32757929907.html)**
>
> Smarter Shopping, Better Living! Aliexpress.com

Thanks again,  
Matt

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [22 July 2021 04:18 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/8 "2021-07-22T04:18:11Z")

</div>

Hi Matt,

I don’t have any documentation on that product but I don’t see why that wouldn’t work.

---

<div class="post-metadata">

**Author:** ![Matt168780](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Matt168780](https://forum.core-electronics.com.au/u/Matt168780)\
**Post date:** [22 July 2021 05:58 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/9 "2021-07-22T05:58:44Z")

</div>

Hi Trent,

Excellent. I think I’m ready to attempt a prototype.

Please note that I’m a super novice.

I presume I’ll need to buy:

- a soldering iron
- the Sound Voice Module Recordable Music Changeable Volume 8M With Adjustment Lithium Battery Charger Circuit Replaceable
- appropriate LED module
- the recommended number of roller lever switches
- procure your services for 3D printed housing and slide on button cover (which I can put in different transparent decals

For the 3D printed housing, I presume it would be useful to have locations for the:

- roller lever switches
- LED module
- batteries (AAA or similar, not button batteries)
- wiring and fixings
- holes for mounting hooks and screw holes (perhaps have an open lattice at the back for flexibility of fixings?)

Considerations:

- it has to be rugged and be able to stand being pressed (hit) by my toddler

It seems like a chicken / egg scenario given that I can’t plan the inside of the system (ref mountings) before having the components.

Perhaps I should get the components all working together before thinking about how to arrange them inside the button.

If you agree with this, could you advise on what other materials (and tools) I would need to buy from yourselves in order to get started?

Thanks,

Matt

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [22 July 2021 06:52 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/10 "2021-07-22T06:52:49Z")

</div>

Hi Matt,

If you are a super novice then I’d recommend getting one module working on a breadboard or protoboard with minimal soldering is a good first intermediate goal, that way you are less likely to find soldering mistakes to be a handbrake on your progress.  
Your prototyping kit is reusable for many projects to come, get yourself a bit of a prototyping kit including the following:

> **[Professional Solderless Breadboard - 400 tie points (Metal Backing Plate)](https://core-electronics.com.au/professional-solderless-breadboard-400-tie-points-metal-backing-plate.html)**
>
> BreadBoard-400 is a solderless (plug-in) breadboard with 400 connection tie-points (i.e. 400 wire insertion holes). It has 4 power rails.

> **[3.3V + 5V Solderless Breadboard Power Supply Module Adaptor](https://core-electronics.com.au/3-3v-5v-solderless-breadboard-power-supply-module-adaptor.html)**
>
> Get your prototype online faster with a premade power supply module that can be powered by a DC Adaptor. Switchable 3.3V/5V rails and 5V USB output to cater for almost all common digital designs

> **[Jumper Wires - Connected 6](https://core-electronics.com.au/jumper-wires-connected-6-m-m-20-pack.html)**
>
> These are 6

> **[Jumper Wires - Connected 6](https://core-electronics.com.au/jumper-wires-connected-6-m-f-20-pack.html)**
>
> These are 6

> **[Jumper Wires - Connected 6](https://core-electronics.com.au/jumper-wires-connected-6-f-f-20-pack.html)**
>
> These are 6

Temporarily replacing some of the leads on the sound trigger module with header pins will aid in testing. [https://core-electronics.com.au/0-100-2-54-mm-breakaway-male-header-1x40-pin-straight.html](https://core-electronics.com.au/0-100-2-54-mm-breakaway-male-header-1x40-pin-straight.html)

You can get some assorted LEDs for testing and resistors to protect them here:

> **[5mm LEDs 100pcs Pack 20x Red Green Blue Yellow White](https://core-electronics.com.au/5mm-leds-100-pcs-pack-20x-red-green-blue-yellow-white.html)**
>
> This pack will equip your workspace with plenty of the most common LEDs you'll ever need. You'll have 20 LEDs in the following colors to mix into your projects; Red, Green, Yellow, Blue and White (That's 100 total).

> **[Resistor Kit - 1/4W (500 total)](https://core-electronics.com.au/resistor-kit-1-4w-500-total.html)**
>
> This assortment of through-hole Resistors comes jam-packed with 500 separate resistors, broken down into 20 of the most common resistance values you'll ever need. The folded sleeve packaging offers a awesome way to keep your collection organised over...

Speaking of which we have a good soldering guide here [https://core-electronics.com.au/tutorials/soldering-101.html](https://core-electronics.com.au/tutorials/soldering-101.html)

Our 3D printing services are just for printing CAD models, not designing them for a fee. You are right though that the case is the last step and we need to know how big the electronics to fit inside ends up being before you can design a shmick case to house it.

---

<div class="post-metadata">

**Author:** ![Matt168780](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Matt168780](https://forum.core-electronics.com.au/u/Matt168780)\
**Post date:** [24 July 2021 01:56 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/11 "2021-07-24T01:56:56Z")

</div>

Hi Trent

I’ve ordered these products. Did you mean by 6 Jumper Wires or 18?

Thanks,  
Matt

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [28 July 2021 03:37 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/12 "2021-07-28T03:37:56Z")

</div>

Hi Matt,

Sorry I didn’t see your question until just now, if you use the reply button when making a post I will get a notification.

The jumper wires I have linked are actually three different products but the thumbnails have shortened it, one set is male to male, one is male to female, and the last is female to female.

---

<div class="post-metadata">

**Author:** ![Matt168780](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Matt168780](https://forum.core-electronics.com.au/u/Matt168780)\
**Post date:** [28 July 2021 08:17 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/13 "2021-07-28T08:17:26Z")

</div>

Thanks - I’ve ordered the other two sets.

How do you recommend that I set this up?

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [30 July 2021 04:32 UTC](https://forum.core-electronics.com.au/t/how-to-make-some-light-box-buttons-with-audio/10659/14 "2021-07-30T04:32:26Z")

</div>

Hi Matt,

To get one unit together and working I’d desolder the switch and replace it with male pin headers, then use the hookup wires to connect to a breadboard. From there you can experiment with adding switched in parallel (so any switch triggers the input).  
I would also add an indicator LED in series with the switch (remembering to add a current limiting resistor to protect your LED).
