Using Sound cmd on 16F88


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Knowing your piezo-speaker resonnant frequency you should be able to produce a louder sound. Use a simple High/pauseUS/low/pauseUS loop or HPWM to produce the right resonnant frequency.

    Experimentation will give you the right resonnant frequency, kinda piezo g-spot. Closer you are, louder it is
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    ... piezo g-spot. Closer you are, louder it is
    Hi Steve,

    Is it true in other cases, too?



    ---------------
    Last edited by sayzer; - 7th October 2006 at 20:56.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    LMAO! i guess it would depend of the hardware
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Gator_sound's Avatar
    Gator_sound Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks for the reply sayzer and mister_e. I've tried both of your methods but but just the capacitor is louder then the npn transistor unless I am connecting it incorrectly. Any other suggestions? Thanks again for your ideas and help.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Provide your piezo part # so we could try to find the g-spot of it !
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Most piezo's oscillate at their resonant frequency when a DC voltage is applied.

    The SOUND command outputs a complex form of PWM that is intended to produce a sudo Sine Wave when used with a Low Pass Filter. This won't allow the piezo to oscillate very well at all.

    To get the Loudest sound, use sayzer's circuit (with 12V) then set the pin HIGH. (Don't have your ear too close or you'll lose it).

    Of course, I wouldn't want to wake up with that sound. It's more like a Smoke Detector high pitch blast.

    If you want a better sound using the SOUND command, run it through a low pass filter, then amplify it, then use a normal speaker instead of a piezo.
    <br>
    DT

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. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  3. Alfat Sd/mmc
    By eoasap in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 24th July 2006, 06:10
  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