Shop OBEX P1 Docs P2 Docs Learn Events
Frqout problems — Parallax Forums

Frqout problems

ArchiverArchiver Posts: 46,084
edited 2001-08-16 22:53 in General Discussion
Hi Folks,

i tried to generate a frquence from the Stamp using the freqout command.
But whatever frequence I trie to get out it will always put out about 50
khz.
What am I doing wrong? Do I have to filter the output? How?
I would need to give out 0 to 10 khz.

Thanks for your help,

Uli


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-08-16 22:53
    >Hi Folks,
    >
    >i tried to generate a frquence from the Stamp using the freqout command.
    >But whatever frequence I trie to get out it will always put out about 50
    >khz.
    >What am I doing wrong? Do I have to filter the output? How?
    >I would need to give out 0 to 10 khz.
    >
    >Thanks for your help,
    >
    >Uli

    Hi Uli,

    The freqout command generates sound by using PWM. The raw frequency
    measured by a counter is very high, with fundamental components up to
    110 khz. Yes, you need a filter, which might be as simple as a
    10kohm resistor and a 0.01 uF capacitor. The filter also changes the
    amplitude, decreasing the output at the 10khz end, so you may need to
    compensate for that.

    -- Tracy
Sign In or Register to comment.