This CD Jewel Case Plays Music Without A Disc

We’ve all heard the terrible greeting cards that have soundbites of 2 bit jingles that usually make you want to tear the battery out… but Hallmark is finally catching up with technology and now including real music in their cards — it might only be about 10 seconds, but hey, it’s a step!

They’re still pretty corny though, and we’re not really sure what even dictates an ideal situation to give someone an audible greeting card — but regardless, [Dmitry Grinberg] thought he could do better than Hallmark — and we’d have to agree. He’s created a New Year’s Greeting card using a CD jewel case, and what he’s packed inside is pretty incredible.

The case, when opened, will play a full-length song in full fidelity. Next time you open it, it’ll play something new and at random, from its very own micro SD card 300-song library.

He’s achieved this using an ATTiny85 which uses two timers clocked at 64MHz and 32KHz to output the analog musical goodness. He’s also packed a micro USB charger in the case with a thin Li-Po battery, an SD card adapter soldered in place to allow for swapping of music files on the microSD, and the speaker plus amplifiers. When closed you can’t even tell there is something different about the case.

Audio Card Schematic

 

Pretty cool project. And he’s even thrown up the code (available on his site) if you’re interested in trying your own!

For an even more minimalist circuit, how about a single chip greeting card that might actually be cheaper than Hallmark’s offering? Or why not throw in some nice visual effects with a edge-lit musical greeting card?

17 thoughts on “This CD Jewel Case Plays Music Without A Disc

  1. Neat project, but the amplifier is wasteful (out of necessity from too few pins). Ignoring the turn on and turn off delays, the speaker still drives constantly. Say it takes one watt at full power, it still takes one watt at no power (50% duty cycle), if I am not misunderstanding the article. I would personally use just one FET and deal with driving the speaker in only one polarity.

    1. It’s not wasteful. Well, this particular one might be a little, since I have no idea if the relatively low switching frequency is high enough to see significant impedance from a speaker that small, but this is a fairly standard method to controlling an h-bridge. It’s also easier for the microcontroller to handle from a software perspective; since there’s no separate line to control the direction of the bridge, it’s also not necessary for the CPU to handle the zero-crossing and level inversion that would be necessary with the more-familiar sign/magnitude method.

  2. Can someone figure out how to rescue “dead” 8GB microSD cards, because I am pretty sure that the memory chips are OK on most of them as the external controller seems to be at fault.
    PC still sees the chip but they read as 0 bytes or in some cases 1K depending on the brand.
    On the back of the card there are dozens of tiny contacts under the label so perhaps this approach might work?

    I had some success with 32GB and 16GB AD**A ones where they went read only but the chip still otherwise worked.
    Ones which would not format were also responsive to this method :-)
    Seems that high density cells are more susceptible to <15kev than normal, because putting them 5mm away from an energized 5642 rectifier tube brought them back to life.

  3. It’s a great Idea, we can give our elderly and musically interested people a stocking suffer that can be customized to them…we can sort of do it now but Metallica might beat our asses…..lol @ bother said pooh… stick a stun gun to it…..it won’t help but tell me what happens….probably fries….I hate technology…sort of…this statement s suddenly ironic…not being on print….dammit….

    1. Probably not. It’s common to have two clocks available for driving the CPU. A main clock running at a Mhz speed, often higher than that of the instruction speed. And a secondary clock running at Khz, which you switch the CPU to for executing instructions slowly in low-power mode; since CMOS draws little power except when logic states change, and the clock drives most changes. For the latter, 32.768Khz is often used since watch crystals are cheaply and widely available at that frequency, should you need precision timekeeping in low-power mode. Calling them timers rather than clocks is a bit of a misnomer, but close enough.

  4. if he is trying to one better than Hallmark, he seems to have succeeded based on audio quality, length, and variety.
    However, with a a (micro)SD Card, containing 300 songs, it might be a clever way of sharing music.
    For production versions, I would eliminate any external media, and use an internal nand-flash or similar product — although a technically inclined, or determined, person could still rip the songs of the flash.
    However, the average person would not know how to do that.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.