What am i doing wrong with sound?


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Posts
    14

    Question What am i doing wrong with sound?

    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?...UNDER&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.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Oct 2006
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    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.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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/show...hlight=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/Microtextbo...tid=254&page=1
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Jun 2007
    Location
    Burton on Trent. UK
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    I do not know proteus, but when I google it stuff like this come up http://www.bact.wisc.edu/Microtextbo...tid=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.
    Pete Mc

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by pmcleod View Post
    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.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Delayed output 10 secs
    By lilimike in forum mel PIC BASIC Pro
    Replies: 37
    Last Post: - 14th October 2011, 06:28
  2. new to PIC programming could really do with some help
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th March 2008, 14:03
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  4. Sound and sound control with minimal parts
    By bartman in forum General
    Replies: 23
    Last Post: - 18th January 2005, 14:08
  5. Re: quick fix for sound command?
    By Melanie in forum Code Examples
    Replies: 0
    Last Post: - 9th July 2004, 01:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts