Can I make midi music with a PIC16F873a
Hi Everyone,
I'm new here. I'm looking for a way to make music with my PIC16F873a. And I don't mean the beep beep sound, but real midisound. I have a casio synthesiser and I would like to copy a short tune into my pic, to play it over and over again. I know that I need PWM to make a "natural" sound, and I looked at some schematics for use with a little loudspeaker.
Along with the music some lights have to flash, but that part works allready.
Is there anyone who knows how this works? I would love to hear from you.
Thanks,
Mathy
One time recording or multiple
Hi,
If I have understood correctly then you want a custom melody to be reproduced by a standalone circuit. You would play/sequence the number on your casio keyboard.
There is an application of a PIC playing 1bit audio available here http://members.home.nl/b.vandam/lonely/pagina47.html This may be interesting for you.
There are OTP (One Time Programmable) Voice chip available from APLUS INC. http://www.aplusinc.com.tw I have checked their Indian website and found that a chip capable of recording about 341 seconds audio costs around $2.5 USD. They sale in low quantities too. But I have no idea if they would ship international. Beware these OTP chips may need a dedicated programmer (costs around $200 USD). Do not expect great sound quality. Because it uses a maximum of 8KHz sampling rate and uses 4bit ADPCM compression. It can also record PCM but that will reduce the playback time. These can be controlled by a PIC to playback multiple segments . I have seen one application here by charudatt who uses a PIC clock to enchant digital mantras. I am not sure if he uses one of these. But they are available in his hometown Mumbai in India. I am attaching one datasheet for your reference.
Aplus also makes melody generators (sort of a MIDI playback engine mainly targeted as bells/ringers) . You don't get enough polyphony or rich sound due to the limited fm synthesis (May be there are some which uses a ROM table).
There are chips from Aplus which can record/re-record audio standalone or controlled by a micro. But they are more expensive.Price is directly proportional to the maximum recording time.
I think I have seen a post by Melanie producing tunes. Why not post your sample tune here ?! In MP3/Wave/Midi whatever.
Please describe your application in details. May be someone from here has done before.
2 Attachment(s)
Ooops I forgot the attachment.
Sorry guys. Here is the pdf datasheet. Its split into two parts by Winrar available from www.rarlabs.com . Remove the ".txt"
I tried ".bak" but didn't work. I should have gone through the entire list which files are allowed by the vbulletin admin.
You can also have look at the PICLIST here http://www.piclist.com/techref/microchip/io/audio.htm
P.S. - Original author's site is working . http://www.romanblack.com/picsound.htm