This mystery jewelry box might not be the most user friendly thing in the world, but it functions the way I wanted to and was a lot of fun to work on.
You should change your jewelry at night, as this box will only be nice to the user in darkness. If the user opens the box in broad daylight, the box will scream. However, if it's dark in the room, the box will light up when openend. The user will even be able to adjust the amount of light emenating from it.
Step 1: Materials
I used only the Arduino Starterkit, a random box, a cheap LED strip and a 9V battery.
- A box for your jewelry and more
- Arduino Uno
- Peizo speaker
- LED strip
- One 220Ω resistor
- Two 10kΩ resistors
- A lot of jumper wires
- 9V battery
Step 2: Setup
Just replace the LED from the picture with a LED strip. I couldn't find the strip in the Autodesk Circuits components library, so that's why I used a simple LED. Depending on the LED strip, you probably won't need a resistor (the one connecting the LED to pin 11).
Step 3: Coding
Now you'll only have to code the bit! This can be done with the file attached to this page.