3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Musical Greeting Card

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.
 
Remove these adsRemove these ads by Signing Up
 

Step 1The circuit diagram

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.
« Previous StepDownload PDFView All StepsNext Step »
50 comments
1-40 of 50next »
Feb 15, 2012. 6:57 PMmwilson213 says:
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!
Dec 4, 2011. 5:03 AMdheadz says:
neelandan:
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.
greets
Jan 18, 2012. 10:37 PMRYUNOROBERT says:
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! **************
Sep 23, 2011. 6:13 PMtechxpert says:
the pic10f206 is apparently an 8 pin microcontroler
Nov 11, 2011. 12:10 PMBrickmodder says:
Try looking at the SOT-23 size. That's a 6 pin chip. The other package sizes of this chip are 8 pin.
Sep 19, 2008. 8:03 AMyonsje says:
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
Nov 4, 2011. 9:01 PMnodoubtman says:
see in the beginning of the page... thanks!
Sep 19, 2008. 11:20 AMyonsje says:
10F200 but i found it, i diden't see it in the instructable at first
Sep 19, 2008. 11:45 AMyonsje says:
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
Nov 4, 2011. 9:00 PMnodoubtman says:
i cannot get it to work.. can someone help me out please... with pic10f206..

THanks !:)
Apr 18, 2010. 6:22 AMschorhr says:
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.
Mar 24, 2010. 11:16 AMurbanmari says:

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. 

Nov 26, 2007. 1:45 PMlocofocos says:
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.
Feb 21, 2010. 4:27 PMScoticus1 says:

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.

Feb 7, 2010. 8:41 PMkamlesh2012 says:
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.... 
Dec 26, 2009. 2:43 AMvinoth thyagarajan says:
 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...!!
Dec 16, 2009. 8:49 AMpreethikadinesh says:
can i write program to tell the names.is it possible.
Sep 10, 2009. 9:06 AMkhushboo says:
i would like to see the circuit diagram but im not able to acess it.
Aug 12, 2009. 10:36 PMshawnelec says:
nice project!!! can you tell me where can I buy this microcontroller ??
Aug 3, 2008. 10:59 AMDerin says:
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!
Oct 23, 2008. 8:33 AMJoell says:
Dude you have to wonder, the line 'la, a not to follow so' .... doesn't it seem just a tad bit lame? A little bit unfinished like? Like as if the writer of the song was getting into the flow of things nicely with the whole song and then suddenly had, like, a stroke or something and when he got back to it he couldn't remember what he wanted to write!! Seems wrong somehow, yea? lol :)
Aug 4, 2008. 1:15 PMThe Jamalam says:
... you truely disgust me
Dec 18, 2008. 11:16 AMGaark says:
Im happy to see the lyrics, reminds me of my Grandmother and how she used to sing it to us as kids *sigh*
Aug 20, 2008. 2:03 PMDerin says:
thats the whole thing,if you like it or not
Oct 23, 2008. 8:24 AMJoell says:
Alright so this might seem like a silly doubt: If i wanted to program a complex tune into this chip, like a full mp3, can i basically just generate the hex file of that mp3 and program it onto the chip? Or is there a tweak to be made to allow me to do this.
Can't see a reason why it shouldn't be possible but then again, i've been wrong before :)

I'll be using filealyzer to generate the hex file; it just gives it to you... download it and try it with an mp3 if you like.

Filealyzer
Nov 26, 2007. 4:15 PMGorillazMiko says:
always wanted to know how these were made. cool instructable, looks way too hard for me. im only 13 hahaha
Oct 16, 2008. 7:08 PMDYLEGO says:
im 13 and i can make it. so u can too
Jul 16, 2008. 3:13 PMtyroonelove85 says:
What are all the pieces i need for the musical card from start to finish including the micro chip,leads and wires? and where can i buy them all at to start building my card?
Aug 20, 2008. 1:59 PMDerin says:
BOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOM!
Aug 17, 2008. 7:37 PMindian99 says:
okay...i need some help on this topic (i.e musical greeting cards) i have a programmer and the voice modules ....i have to types...the recordable and the non recorable. This is it... the came from a foreign country and i have been trying to duplicate the voice module/re=program the chips i have already purschase from overseas... is there anyone who can duplicate pc board?
Jul 17, 2008. 9:06 AMsmudge121 says:
if i ad a high end programable chip nd a pic programer cud this idea b converted 4 other applications ie. making my own small alarm clock wiv my own tunes
Dec 16, 2007. 2:21 AM3XTR3M1ST says:
where can i get the software and hardware to reprogram my musical module from a greetings card?
Feb 11, 2008. 12:33 PMDesertE says:
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.
Jun 25, 2008. 11:34 AMDerin says:
or lo-end with some 1 wire eproms
1-40 of 50next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
70
Followers
38
Author:neelandan
Employed as an Engineer in Electronics. Interested in building small circuits around tiny chips (the electronic kind).