FREQOUT 4mhz


Closed Thread
Results 1 to 21 of 21

Thread: FREQOUT 4mhz

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    Don't know if PWM is my only option. FREQOUT can't be used and SOUND is a sine wave right?

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    and that should be 127, not 50 for duty cycle -- typo

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    I think it may be this crap piezo I'm using --

    https://www.ebay.com/itm/US-Stock-50...72.m2749.l2649

    hard to work with. maybe someone can suggest an inexpensive one that they know works well. need low cost as this may be a product idea. 6500 hz is pretty high as well.

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,696


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    Don't know if PWM is my only option. FREQOUT can't be used and SOUND is a sine wave right?
    wrong
    from manual
    SOUND outputs TTL-level square waves. Thanks to the excellent I/O characteristics of the PIC MCU, a speaker can be driven through a capacitor. The value of the capacitor should be determined based on the frequencies of interest and the speaker load. Piezo speakers can be driven directly


    I just put in --
    PWM portc.4,127,6500

    Piezo is 6500 hz. Hearing nothing.
    pwm does not do what you have expected

    @4mhz clock pwm output is 6500 cycles @200 hz


    a 6500hz resonator can be driven at frequencies other than its resonant frequency

    your chip has a pwm/ccp module , you could use HPWM

    to get maximum noise you can drive the resonator bipolar mode between to output pins antiphased

    I notice those resonators you linked have no connecter leads , how good is your soldering ?
    they don't work if they have been cooked
    Warning I'm not a teacher

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    Ok Richard thanks. I'll try SOUND and stick with it and yes, those transducers are something I've never dealt with -- they're a pain. Going to try something else.

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    Do you think these will work on a PIC output with the SOUND command at 2300 hz ? At least they're 5V.

    https://www.ebay.com/itm/Gfortune-15...UAAOSwErFZ0-ze


    Having problems getting piezo diaphragms and driver circuits to be very loud. barely hear them in fact. --Thank you

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    Those are self resonating. They will buzz at 2300hz when 5 volts is applied. Look for "transducer".

    Something like this
    https://www.ebay.com/itm/AT-12-Piezo...gAAOSwZd1Vewuj

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    I realized that after posting -- thanks. Will try that part you suggested. Can't believe something so simple has been such a headache.

    Thanks.

  9. #9
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    Just to try a piezo to see if it works, just use the HPWM 1,127,2000 command and connect your piezo to the PWM output. I found some processors the SOUND command doesn't work so well for. I would be chasing my tail trying what you are with what I was working on.

    Once you know the piezo is good for a PWM output, then work on the SOUND software. My opinion, and I reserve the right to be wrong.

  10. #10


    Did you find this post helpful? Yes | No

    Default Re: FREQOUT 4mhz

    Quote Originally Posted by Michael View Post
    I realized that after posting -- thanks. Will try that part you suggested. Can't believe something so simple has been such a headache.

    Thanks.
    It also helps to place a 1K resistor in parallel with the transducer when driving with a logic signal. Like the others said use HPWM. Sound and Freqout are blocking commands.

Similar Threads

  1. FREQOUT command
    By Art in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th February 2015, 07:21
  2. Freqout ? ? ?
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th March 2009, 01:39
  3. bootloader Freqout problems
    By handgio in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th December 2007, 14:38
  4. FREQOUT - PWM question
    By Etcho in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 26th February 2007, 00:51
  5. FREQOUT delays
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th December 2003, 00:49

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