SOUND problem


Closed Thread
Results 1 to 3 of 3

Thread: SOUND problem

  1. #1
    Join Date
    Dec 2005
    Posts
    21

    Default SOUND problem

    Hi,
    I have tried it has to connect a BUZZER and after an Speaker to the Pic, the sound is low and then it is not stable.
    If then I connect a condenser from 10 uF as from the manual of the Picbasic Pro doesn't work anymore!!



    pin------------+ C ---------- BUZZER----------gnd or

    pin------------+ C ---------- speaker 4 ohms----------gnd



    HOW TO?

    16f84a
    LOOP:
    PAUSE 1000
    SOUND PORTB.0,[100,50,80,30]
    GOTO LOOP

    THX
    CHIP

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Connect the buzzer directly.

    Hi,

    You can directly connect a buzzer to a PIC I/O. However it is a good practice to have some sort of current limiting resistor in the line (say around 200 ohms). This prevents the PIC getting fried in case of accidental short-circuits in the output.

    Buzzers generally work best in the mid-high freq. range. In the higher and lower frequency the outputs will vary. Also do not expect a very high volume with a 0-5v output toggle.

    I did not understand what you mean by "not stable"

    Regards

    Sougata

  3. #3
    Join Date
    Dec 2005
    Posts
    21


    Did you find this post helpful? Yes | No

    Default Stable

    Hi,
    the frequency is not stable.



    it would owe emetter a sound of height 100 and duration 50mS. In reality, if I program here the code under,
    a sound first lower part sends forth me and then one tall.
    Practically 2 sounds of which one don't have anything to do with it nothing.


    LOOP:
    Breaks 1000
    SOUND PORTB.0,[100,50]
    GOTH LOOP


    best regards and THX

    chip

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 : 1

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