DIY Geeky Children’s Toy: LED Button Box

My little girl loves pressing buttons. As soon as she became aware that buttons existed she was drawn to anything that has them. If the buttons actually do something, she’s absolutely enthralled. She’s a good kid, even as a toddler under the age of two, so she doesn’t tend to mess things up too often by, say, pressing the power button on the family XBMC machine or mashing remote controls left on the coffee table (though she does carefully press the buttons she’s familiar with).

I gave her a cheap keyboard a while back, which she enjoys playing with, but since it isn’t connected to anything, the fun of pressing those buttons wears off pretty quickly. Months ago I envisioned building a simple toy that would consist of little more than buttons and lights, with each button press activating a light of some sort.

LED Button Box Kid’s Toy

A quick overview of Marshall Stokes’s home-built LED Button Box kid’s toy


LED Button Box in Action Enter the LED Button Box! Six colored buttons, each controlling a colored LED, with a power switch and a small LED to indicate the power is on. Despite having a fair amount of experience with basic electronics and being capable of wielding a soldering iron with slightly greater than beginner skill level, I had to do a bit of reading to understand what I was getting myself into. Here’s the stuff I studied before I went out and started shopping for parts:

Once I had a grasp of what I wanted to build and how to piece the components together, I put together a shopping list.


I also used the following tools, which you’ll need for this project:


  • Soldering Station (I can’t possibly recommend anything less than the X-Tronic 4000 series. Don’t even bother with the cheap $12 Radio Shack soldering iron. Seriously.)
  • Wire cutters
  • 90 Degree needle nose pliers
  • Wire stripper (I actually used a pair of scissors because I couldn’t find my strippers)
  • Cordless drill (I prefer the Makita 18V but anything that can drill holes will work just fine)
  • Drill bits
    • 1/16″
    • 3/32″
    • 1/2″
  • Sharpie for marking where to drill your holes



Testing an LED

Just making sure I actually know wtf I’m doing before I go soldering things up!

Before I even started marking where I would drill holes, I wanted to make sure I understood how to wire up the components I had purchased. So I loaded some batteries into the battery case I bought and experimented with an LED and some resistors. I quickly realized I had no idea how to even determine which resistors were which, so I made liberal use of this handy resistor color code calculator (I actually bought a wide variety of resistors, much more than what’s in the parts list above. And they arrived un-labeled).

Once I understood how to use those parts, I tried adding a button into the mix. The buttons I purchased have four contacts, which turned out to be super useful once I did a little testing with a multimeter to figure out what those extra contacts are for. Here’s what I learned:

Switch Contacts Diagram

How to wire a 4-contact tactile switch for the LED Button Box

It doesn’t matter how the switch is oriented. The diagram to the left applies regardless of which contact you decide to use as your input. It was definitely handy to have that bypass output contact, because it meant I didn’t need to do a ton of splicing inside the box. Instead, each switch’s input was connected to the previous switch’s bypass output. Pretty cool!

Build It!

First, lay out the parts on top of the box, then break out a ruler and sharpie and mark where each component will be installed.

Positioning Components

Place your components in roughly the position you’ll be installing them to get an idea of where everything will go before you begin marking and drilling

Next, drill two 1/16″ holes for each LED. I didn’t measure the distance between the LED leads, I just eyeballed it and it worked out pretty well. Go ahead and glue the LEDs into position with the high strength adhesive you got for this project.

Drill holes for LED installation

You’ll use adhesive to secure the LEDs to the box after drilling your holes

Buttons are next. I thought I would be able to mount the button bodies inside the box and have just the caps sticking out, but the box I got was too thick so I wound up drilling holes for each contact instead, and mounting the buttons to the top of the box. I used a 3/32″ bit to drill the holes so it would fit the leads and soldered wire. This is also where I broke the top of my acrylic box by pressing too hard when I drilled the first hole. After that was repaired, I let the heat of the drill bit do most of the work and used minimal pressure to avoid additional cracks in the plastic.

Button installation

Four 3/32″ holes for each tactile button

As you can see in the photo above, I also glued the battery holder into place. Pretty simple.

Next, I mounted the power switch on the side of the box. The body fit inside the box, with the actual switch protruding from a 1/2″ hole I drilled. This particular switch worked perfectly for the project, its hex nuts making it simple to secure the switch to the box without the need for adhesive.

Switch installation

Switch installed on side of box. 1/2″ hole was drilled and the component fit perfectly

Now it’s time to heat up the soldering station. My first soldering task was connecting the resistors to the positive lead of each LED. As you can see I’m not too great with a soldering iron, but hey it gets the job done 🙂

Resistors soldered to LEDs

Resistors soldered to LED positive leads

Then I installed one button, in order to confirm that the overall design would function as I expected. After wiring this first button, I turned the power switch on. connected the negative lead from the battery pack to the negative contact on the first LED, then pressed the button. To my delight, it worked! So then I cut wires and put them into position in preparation for a bunch of soldering.

LED Button Box Button Installation

First button installed and wires cut, stripped, and placed for soldering to remaining five buttons

Wire placement for button installation

Another view of button wires in place and ready to be soldered to other buttons

Once all your buttons are wired up, with positive wires soldered in place, all that remains to install is the negative (black) wires connecting all the negative leads from the LEDs to each other, and then to the black wire coming from the battery pack. Since I am truly untalented with the soldering iron, my solution for this is rather unsightly. See below…

Negative LED terminals wired up

Black wires connecting negative terminals of each LED

Once the whole unit was functional, I decided it would be a good idea to have an LED indicator when the power is switched on. So I drilled a couple holes above the power switch and added a 5mm violet LED, then wired it up using available leads from the power switch and an LED. This LED was a little too bright, so I used a 330 Ω resistor on it so it remains suitably visible without being overly distracting.

Power Indicator LED

Power LED lights up when the unit is turned on.

And here are a couple more shots of the completed device, fully functional.

Completed LED Button box for Children

Top-down shot of the finished product, completely wired and fully functional

Inside of LED Button Box

Inside of LED Button Box while a couple buttons are activated

Final notes

Small Parts

When I first showed this to my daughter, within 90 seconds she had removed the caps from two of the buttons, which I immediately realized are fantastic choking hazards for a small child. So, I glued those puppies tightly to the button bodies. Another issue is that she also quickly figured out how to open up the box and started touching the insides. This isn’t especially dangerous, but it is likely to result in a non-working toy pretty quickly. So I used a small piece of nylon strap and screwed it into the top and front side of the box. I’m pretty sure that the screw holes will strip out after a half dozen battery changes, so hopefully I can come up with a better solution by the time that happens. Although, considering the batteries will likely last a very long time in this device, I may not even wind up changing them that often… my girls might outgrow the toy before we go through 15 AA batteries!

LED Brightness

I won’t attempt to even begin to theorize about the inner workings of a 21-month-old’s brain, so what I’m about to describe is highly mysterious to me but warranted a revision to my design nonetheless. This may not apply to older children, or really any children other than mine.

After about five minutes of playing with her brand new LED Button Box, my little girl began placing her eyeball directly over the brightest of the six LEDs (white) and pressing the button to activate it. She thought this was hilarious, but of course I’m sitting there wondering how many times she can do that before she permanently damages her eyesight. So I decided to reduce the brightness of the brightest two LEDs (white and green) by pulling the existing resistors and installing higher ohm resistors in their place. After some testing, I settled on a 470 Ω for the white LED and 390 Ω for the green. Now they are still bright enough to enjoy but not so bright that I worry it’ll blind my kid if she stares at it for a few seconds. And of course I’ll also be discouraging that behavior.

Future Revisions

This toy could be more fun with a variety of upgrades. Some ideas I’ve already had:

  • Have each button generate a tone, like different beeps (might get very annoying to nearby adults, but I suspect children will really enjoy it)
  • Add a couple “special” buttons to trigger pre-programmed functions:
    • Light show (flicker random lights while button is pressed?)
    • Activate all LEDs
  • Add a new mode, with a selector switch to enable it, that would make the lights flicker or strobe with each button press, rather than just remain steadily lit

There are so many things one could do to make this toy more interesting, but most of them will require the use of a microcontroller, and that is a bit beyond my capabilities right now. Perhaps next winter I’ll be ready to tackle something more complicated as a holiday gift for my kids.

If you have built electronic toys for your kids I would love to hear about it. Please link similar projects in the comments section below!

Print Friendly, PDF & Email

10 thoughts on “DIY Geeky Children’s Toy: LED Button Box”

  1. Marshall Stokes says:

    Quick update: My daughter has been playing with her LED Button Box for a couple of days now. I’ve found that it’s a really fun learning tool for a child her age (~21 months). She is learning about colors, on/off switches, and next I’ll be using it as an educational aide for learning to count (“Press two buttons now…”).

    I think this toy can also be used to learn more advanced concepts, like combining button presses to light up multiple colors at once and learning patterns. For example, I’m going to see if I can get her to copy sequences I show her when she’s just a little bit older, and challenge her to remember and reproduce longer and longer sequences. And maybe when she’s quite a bit older, we can do some morse code exercises with it, sending messages to each other across a room (I’m going to have to re-learn morse code, though… and I imagine it’ll be quite a while before she’s old enough to learn that supergeeky skill!).

    Additionally, the adhesive on the button caps is holding up very well so far. She has stopped trying to pry the caps off for now. One thing she can’t quite do by herself yet, though, is operate the on/off switch. It has a pretty heavy throw, and I think she simply isn’t strong enough to switch it on and off. I suppose that’s something she can aspire to master 😉

  2. Michele says:

    Great overview! She sure does like her new button box. It was the first thing she wanted her Grandmother to see when she came over.

  3. Jak says:

    Why not just get her a leapfrog and call it a day? 😀

    1. Marshall Stokes says:

      What’s the fun in that? Besides, she absolutely loves her new toy. And she’s quickly learning all kinds of fun stuff with it!

      Also, what the crap is a “leapfrog”? 😉

  4. Marshall Stokes says:

    So I posted this to imgur ( and someone pointed out in the comments there that, were it not for needing to adjust the brightness of individual LEDs for the sake of my daughter’s eyes (!), this device could have been built with a single resistor connected to the positive wire coming from the battery pack, rather than a resistor on every LED. Just goes to show I have much still to learn about electronics 🙂

  5. Marshall Stokes says:

    I’ve heard from some readers out there who are building LED Button Boxes for their kids (or other variations of it) that they are opting for wood project boxes. I think this is a great idea, and I’ll probably be trying out a wood box for my next electronic toy project. Here’s the box I’m looking at: Rectangle Wood Box, 8-1/4-Inch

  6. Marshall Stokes says:

    It has now been over four months since this toy made its debut in my home. My daughter has spent many hours playing with it and it’s even been through a few drops and other physical mishaps. Yet it still works perfectly! The batteries have yet to need replacing, and nothing has broken or fallen off the device.

    Though I have been incredibly busy with work so far this year, I am hoping to start planning out a new version of this toy with some added functionality. I’m thinking sounds and one or two alternate modes of operation, based on a multi-position switch. I have yet to put pen to paper, so there are no concrete plans, but I wanted to give my readers an update on how this particular project has held up after a few months of use.

    For the next version, I am definitely going to avoid the acrylic box. Being able to see what’s inside is definitely a fun feature, but the material is just too fragile and potentially dangerous if it breaks since it’ll break into pieces with very sharp edges. If I can’t find a softer plastic that is transparent, I may go with wood (see previous comment).

    Ideas and suggestions are highly encouraged!

  7. Trever Santora says:

    Hi Marshall,

    First, I’m really excited to see there are others out there who thought of this already. My son (7 months) is absolutely nuts about illuminated objects — and the shadows they cast. He’s particularly fixated on LEDs.

    I like the corresponding button to light color on your box, and how you’ve thought about the learning experience as your daughter progresses. I’m visualizing chunky arcade-style buttons of varying colors (or translucent w/LEDs) for a bigger touch target at his age (or even larger Simon Says pads).

    At any rate, I’d love to hear about your progress since April on the this project. Thanks for sharing your efforts so far. I’ll keep you updated if I decide to work on a prototype.

    1. Marshall Stokes says:

      Hi Trever,

      Thanks for your comment! It’s funny you should ask how the tow has held up since this article was posted… earlier this month my daughter dropped the box on the kitchen floor and it broke. While I was initially impressed with the strength of the acrylic box I chose, despite having put a big crack in it during the build process, it definitely broke into a half dozen jagged pieces upon hitting the tile floor at an odd angle.

      So I began researching other boxes. As I mentioned earlier, I have heard from one reader who used a wooden box for a similar toy. But I really like the transparent box as it provides opportunities to learn about electronics as my kids become more curious. So, I’m looking at picking up one of these two potential options (one, two), since they are polycarbonate and NEMA rated, and likely far stronger and less hazardous should they break.

      I have quite a few projects backed up on my work table, but once I rebuild the LED Button Box in one of these new enclosures I’ll be sure to post pics and details.

      As to your inquiry regarding my child’s progress with using the toy as a learning tool, she is well beyond the color learning stuff and lately my younger child (just under 1 year old) has been playing with the box a lot. Until it broke, of course. She just loved the buttons and lights, and she interacted with it much differently than her older sister. Once I get it rebuilt I’ll see if we can do some Simon Sez style games with it 🙂

      Please let me know how your project goes. I would love to see photos with the larger buttons!

  8. Seth C says:

    Marshall, First, thank you for posting the instructions on how to build the LED button box. My kid is obsessed with pushing buttons and after searching for a pre-made toy that has button and lights, I realized that it didn’t exist and it was time to man-up and build something. I basically followed your exact instructions, except a different enclosure (LINK!). I was able to mount all the LED’s and switches in the box as the new enclosure was thinner. As the proud parent of a tiny man (whose destructive ability rivals a mini-Hulk), the box lasted about 24 hours before my kid stood on the box (which I immediately addressed) and then he basically threw it like Nolan Ryan into the wall where the “surface mount” buttons immediately gave up the ghost. I’ve ordered new buttons (LINK!!) and I’m happy to post a picture once it’s done. I just wanted to share my learnings, officially thank you for posting a very information blog, and highlight that there is no better feeling than hearing your kid (who only knows 20 words) screaming “buttons” while repeatedly pushing the buttons. –Seth

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see