View previous topic :: View next topic |
Author |
Message |
anauta
Joined: 15 Jan 2007 Posts: 10 Location: EU
|
pic sounds, how to do |
Posted: Mon Jan 15, 2007 4:47 am |
|
|
Hi,
I noticed that Roman Black's site was updated.
http://www.romanblack.com/picsound.htm
He has improved his btc sound encoder utility very much.
Now my question:
How to implement the hardware and software. His instructions are reasonably detailed regarding the HW side (I will experiment).
Yet how to do the software part? (output to pin X, timing, etc).
I just want to play a very short wav file (1 to 2 seconds).
PIC4520, CCS compiler 4.020.
Has anyone pulled it off?
Can I see it, please, can I?
I would be very happy!
Greetings and thanks,
Auke |
|
|
Imanjl
Joined: 15 Nov 2004 Posts: 42
|
|
Posted: Mon Jan 15, 2007 11:15 am |
|
|
hey man,,,,,Im working on a same project but I use some type of DAC chip to generate the sound the thing that u want is Pwm DAC and i think this may help u ...
http://www.k9spud.com/traxmod/pwmdac.php |
|
|
anauta
Joined: 15 Jan 2007 Posts: 10 Location: EU
|
pic sounds, simple! |
Posted: Tue Jan 16, 2007 6:24 am |
|
|
Hi,
Thanks for yuor help.
The info you provided is not enough to get me started however (beginner, what can I say ;) ).
I am looking for a very simple system with minimal (extra) hardware to play a few seconds of low-fi sound.
Anyone?
Thanks,
Auke |
|
|
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
|
|
|
anauta
Joined: 15 Jan 2007 Posts: 10 Location: EU
|
pic sounds, simple! |
Posted: Wed Jan 17, 2007 4:11 am |
|
|
Thanks Humberto,
It seems like a nice solution.
However, I need to play short wave files.
That is why I pointed to www.romanblack.com/picsound.htm.
So, how to play short audio (wave) samples?
Thanks,
Auke |
|
|
yerpa
Joined: 19 Feb 2004 Posts: 58 Location: Wisconsin
|
|
Posted: Wed Jan 17, 2007 4:32 pm |
|
|
I have some code for the 16F873 that will play 11 Khz 8-bit wav files from a small eight-pin flash memory chip. It includes a simple X-Modem interface to upload the files via serial port. You command the files to play by sending a byte to the serial port. If you are interested, I could post the code. It uses all of the 'F873 code memory. You cannot move it to the larger PIC16 chips because the *=16 directive slows it down too much. Someday I'd like to port the program to the PIC18 series so that I can add features. |
|
|
anauta
Joined: 15 Jan 2007 Posts: 10 Location: EU
|
|
Posted: Thu Jan 18, 2007 2:31 pm |
|
|
Hi yerpa,
Yes, I would like to see your code.
I want to port it to the PIC18 4520, using internal flash memory.
Thanks for your help,
Auke |
|
|
CS Guest
|
|
Posted: Thu Jan 18, 2007 7:05 pm |
|
|
Yes I would like to have this code too.
Currently I am using PIC16F917, it trigger a buzzer which can only had one sound.
I would like it to had a selection of sound too.
Do you had the hardware wiring too?
CS |
|
|
yerpa
Joined: 19 Feb 2004 Posts: 58 Location: Wisconsin
|
|
Posted: Fri Jan 19, 2007 3:55 pm |
|
|
I just posted the code to the "code" section of these forums. If someone can tell me how to attach a pdf file a message in this forum. then I will post the schematic. Thanks for your interest and sharing of ideas! |
|
|
anauta
Joined: 15 Jan 2007 Posts: 10 Location: EU
|
pic sounds, simple! |
Posted: Mon Jan 22, 2007 4:53 am |
|
|
Thanks for the code, yerpa.
I shall give it a try!
Greetings,
Auke |
|
|
|