PDA

View Full Version : What am i doing wrong with sound?



guest_05
- 20th July 2007, 23:07
Hi guys,

I'm trying to make some tunes with a 16f628 and a Piezo.

OK,

first, i have only tried with proteus and the "Sounder" component, which real piezo can i buy from maplins that will let me work with a 16f84 to make tunes?

Will this one do?

http://www.maplin.co.uk/Module.aspx?ModuleNo=3202&C=Maplin&U=SearchTop&T=SOUNDER&doy=20m7


Also, all the sounds are very SLOOOW and "buzzy", how do you make nice clean sounds and make it faster? I do not really know how to set the internal clock and everything.

If someone could give me all the "@" setups and a tune, that would be great, right now im trying someones "bar bar black sheep" tune they posted.

Any help getting me going will be amazing.

Cheers.

mackrackit
- 21st July 2007, 03:09
This thread has good info.
http://www.picbasic.co.uk/forum/showthread.php?t=5197

As far as the element, depends on the frequency range you will be operating in(sound frequency).

Piezo speakers are pretty limited as to the range. Poor quality sound.

You would be better off with a small speaker. The piezo you picked may not have the range you need. Try one and test in your application. Might be good enough.

guest_05
- 21st July 2007, 12:00
lol, the thread you quoted was my old thread :)

I just cannot seem to get the "whistling sound" i want, i need it to sound like a bird.

You think it's not possible to do?

Many thanks.

mackrackit
- 21st July 2007, 14:43
lol, the thread you quoted was my old thread
I looked at your past questions and it appeared that enough info was given to get you started.


I just cannot seem to get the "whistling sound" i want, i need it to sound like a bird. You think it's not possible to do?
Ross made a cricket sound, so I would think a bird could be done. http://www.picbasic.co.uk/forum/showthread.php?t=1294&highlight=cricket

Now , why is you application not working? Who knows?
Have you been trying to use the FREQOUT routine with PBP? Let us know what you have tried with PBP and I am sure someone can help. i have head sirens made with PBP too. Look at the FREQOUT command. Dual or single frequencies millisecond time blocks. Nest several in a FOR/NEXT loop.


first, i have only tried with proteus and the "Sounder" component
I do not know proteus, but when I google it stuff like this come up http://www.bact.wisc.edu/Microtextbook/index.php?name=Sections&req=viewarticle&artid=254&page=1

pmcleod
- 21st July 2007, 16:39
I do not know proteus, but when I google it stuff like this come up http://www.bact.wisc.edu/Microtextbook/index.php?name=Sections&req=viewarticle&artid=254&page=1

Protues is produced by labcenter.co.uk it has a virtual simulation module which includes PIC's running code. very useful IMHO.

mackrackit
- 21st July 2007, 17:29
Protues is produced by labcenter.co.uk it has a virtual simulation module which includes PIC's running code. very useful IMHO.
Thanks for the info. Looked at the site, does Protues support PBP?


guest_05,
Why not just get a piezo and try it on a breadboard? I have never like simulation software myself. If the sim is all you are using the problem may be in the sim. I am referring to the (SLOOOW and "buzzy") part.

pmcleod
- 22nd July 2007, 16:55
Thanks for the info. Looked at the site, does Protues support PBP?


Yes and no, it will run a hex files produced by PBP but it will not run a basic program step by step as it does with proton PDS basic. This is one of the reasons I will probably stay with PDS as my main dev tool, I have so much money and time invested in proteus/PDS. PBP does have some advantages such as the better support for interupts, but PDS will have that too in a coulpe/few weeks.

mackrackit
- 22nd July 2007, 20:01
Yes and no, it will run a hex files produced by PBP but it will not run a basic program step by step as it does with proton PDS basic. This is one of the reasons I will probably stay with PDS as my main dev tool, I have so much money and time invested in proteus/PDS. PBP does have some advantages such as the better support for interupts, but PDS will have that too in a coulpe/few weeks.
Again, thank you for the info. For some of the same reasons you stated I will stay with PBP. Nice to know an alternate though.