Picture of Musical Greeting Card
A small six pin processor is programmed with a melody to be played back through a piezo speaker. A lithium button cell provides the power and a leaf switch closes when the card is opened, turning the music on.

Step 1: The circuit diagram

Picture of The circuit diagram
The circuit is very simple and consists of just four components: the battery, microcontroller, piezo speaker and switch.

The switch (not shown in the diagram) is just two strips of metal pressed together, with a piece of paper in between. As the card is opened, the paper is pulled away and the two contact each other, thus closing the circuit.

A fragment of the code is shown, too. The program takes up 56 locations in memory. The PIC10F200 has 256 such locations available. A melody consisting of 200 notes or so can be fitted in to this chip.

This should be sufficient for a musical greeting card.
1-40 of 57Next »
DavinEdgar11 months ago

I actually own a company that sells the sound modules (or music chips / voice chips) used to make your own greeting cards. It's pretty simple to record or program your own modules. I even made some videos showing how this is done. Here are some links showing how this is done, how to make your own musical greeting cards, and how to purchase. We even put lcd video screens as well as webkeys and NFC tags (near field communication, rfid) in greeting cards, brochures, and invitations and sales folders as well.



DIY musical sound modules and voice chips, blank recordable greeting cards, usb programmamble sound, music box (light sensor), user programmable motion sensor sound boxes. Mainly for education, crafts, scrapbooking, and hobbies.


Prerecorded sound modules, and video lcd screens (with a sound or video you provide) and custom printed cards and invitations. Mainly for events (personal or business), and marketing purposes.

Please share your thoughts as we are trying to expand our business.

- Edgar Davin

Edgar, I had a question about chips for the greeting cards. Do they work the same for the lights that light up in greeting cards? I working on a project and if it works I would love to try it. Suggestions?

I know how to make musical notes. These cards have great demand in my country Kenya. Whom can I partner with so that we produce these products? +254733779750

Microchip, who manufactures the integrated circuit used in the card.

Hi, first time on here, nice site!

I have a comment, and a question! I want to be able to make, and program chips like those in music cards, so I can create and record my own songs.

What is the equipment I need to have to make these chips, and how will I be able to program the music chips myself? A list of equipment, and parts, or some help in the right direction would be appreciated! :)
dheadz3 years ago
Congrats for this tiny project - I have been listening it for many-many minutes non- stop :)
However, I would have 2 small corrections:
1. You connected the piezo to the ports 2 and 3, but in the program they are at 0 and 1 (and the latters are the correct - GPIO0, GPIO1);
2. I built with PIC10F222 - in this type of ICs , to disable the extra functions on the pins, the ADCON0 register has to be cleared(CLRF ADCON0).
And 1 idea: if I connect one wire of the piezo to the GND, it will result a little bit lower volume.
thanks for pointing that! :)
much appreciated!
Merry Xmas! :)
I got this whit MPLAB

Build C:\PRUEBA\Prueba for device 10F200
Using driver C:\Program Files (x86)\HI-TECH Software\PICC\LITE\9.60\bin\picl.exe

Executing: "C:\Program Files (x86)\HI-TECH Software\PICC\LITE\9.60\bin\picl.exe" -C C:\PRUEBA\Prueba.asm --chip=10F200 -P --opt=default -q -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Error [141] C:\PRUEBA\Prueba.asm; 19.21 can't open include file "P10F206.inc": No such file or directory

********** Build failed! **************
Numbuh1Nerd3 years ago
Is there any way to make this function with an mp3 or .wav file? Size and shape won't be an issue, since I'm trying to make my door play a specific sound when opened.
mwilson2133 years ago
Cool DIY. We actually make and sell musical sound chips and sound modules for crafts, hobbies, education, and DIY projects through our online store at http://store.bigdawgspromo.com. We also have light sensor, motion sensor, push button, and slide tongue greeting card modules (making musical greeting cards). However ours are programmed through USB using an MP3 file.

We also put video lcd screens in cards, and USB flash drives webkeys, but these are for our commercial customers such as printers, marketing agencies, etc. http://www.bigdawgspromo.com

I liked this posting very much. Looking eager to the next one!
techxpert3 years ago
the pic10f206 is apparently an 8 pin microcontroler
Try looking at the SOT-23 size. That's a 6 pin chip. The other package sizes of this chip are 8 pin.
yonsje6 years ago
hi, could anyone please give me the compiled hex? I tried doing it myself, bur i can't seam to figure out MPLab:s I use proton. I found a way to make a hex file out of it but that didn't work, my programmer program couldn't load it:s
see in the beginning of the page... thanks!
neelandan (author)  yonsje6 years ago
Which processor do you intend to use?
10F200 but i found it, i diden't see it in the instructable at first
yonsje yonsje6 years ago
now it won't program :s i keep getting an error message saying: rom programming error at adress 0x0000 Good 0x0A84 Bad 0x0FE I'm using the 8 pin DIP version instead of the 6 pin SMD version
nodoubtman3 years ago
i cannot get it to work.. can someone help me out please... with pic10f206..

THanks !:)
schorhr5 years ago
I picked up a few (ebay, 3*25, about 30 cents each) pic10f202 and it worked like a charm :-) Using a detector radio's headset though for testing. With the help of a friend I somewhat got "popcorn" playing, but in university I lost the darn microcontroller on the carpet ;-)
Once I got the thing back running, I'll post again. Thanks for this instructable.
urbanmari5 years ago

One day, maybe, when I become experienced with electronics, I'd like to try this out.  Sorry you caught so much relative flak but this really cool instructable. 

locofocos7 years ago
I've always wanted to learn to use those little tiny processors. Some1 should make a little kit with instructions about them. I know some of you had those that would let you make a little magnet, or a light, or maybe a little buzzer or somethin.

The data sheets from the manufacturers are usually the best instructions that there are, just google the chip name followed by data sheet, and (with a little understanding of digital devices) you can do whatever you want.

3XTR3M1ST7 years ago
where can i get the software and hardware to reprogram my musical module from a greetings card?
neelandan (author)  3XTR3M1ST7 years ago
Nowhere. You can't reprogram the module in a greetings card. What you can do is to get a six pin PIC from Microchip, program it to play the melody you want and stick it in place of the module in a greetings card.
i did some googling and found out that there are reprogrammable PIC chips out there. is it possible that the chip from my music card is reprogrammable? if i were to get a new module, where can i get the necessary hardware that connects my computer to the card to program it?
neelandan (author)  3XTR3M1ST7 years ago
I have never seen a reprogrammable music module in a store bought greeting card. My way of building your own is the only way to go if you want a customised tune in your card.
where can i get the necessary hardware that connects my computer to the card to program it? can you give me the specific name of that hardware.?
google "pic programmer"
Pretty much all pic microcontrollers are dead easy to reprogram, the problem is that when they're programmed at the factory, they can set a bit high that makes the chip unreadable, to prevent a company from stealing another company's code, unfortunately it also makes it unwriteable.
Do you know if those pins can be programmed with more than a simple melody. I am thinkin of a full 3-5 minute song with vocals and all.
neelandan (author)  DesertE7 years ago
I think it can be done with a "high end" micro - one with a megabyte or so of programmable memory, into which you can store your digitised song and a small program to play it back. That sort of chip will have typically eighty to a hundred pins in a quad flat pack - that is, a square chip with twenty to twentyfive leads on each side.
Derin neelandan7 years ago
or lo-end with some 1 wire eproms
kamlesh20125 years ago
can nyone oplz tell me whether i can do this project on atmega 16 microcontroler or not?i have a little knowledge on PIC10F.so can i write d program in my atmega 16 microcontroller?what will be d exart code 4 this??urgent,valentine day is coming nearer..n i have 2 complete it b4..plz understand d situation.... 
 want to make my own musical greeting card.
i have try to search it on google but i was getting only sites of dealers & greeting card sellers.

i have read like that they are using either voice recorder IC or micro-controller.

how can i load music files or my own voice in that chip.
is there any software for loading file in it then which format it supports.??

can anyone please tell me how i can get detail of circuit of musical greeting card.

thanking you all in advance...!!
can i write program to tell the names.is it possible.
khushboo5 years ago
i would like to see the circuit diagram but im not able to acess it.
shawnelec6 years ago
nice project!!! can you tell me where can I buy this microcontroller ??
Derin7 years ago
doe,a deer,a female deer,ray,a drop of golden sun,me,a name I call myself,far,a long long way to ruuuuuun,sew,a needle pulling thread,la,a note to follow sew,tea,a drink with jam and bread,and that brings us back to dooooooooooooooo!
... you truely disgust me
Im happy to see the lyrics, reminds me of my Grandmother and how she used to sing it to us as kids *sigh*
1-40 of 57Next »