Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 18th November 2007, 09:58 PM   (permalink)
Default The LM386 and PWM (schematic included) what sort of filter is on the input?

Here's the schematic for a Soundgin sound generator. My question is how does R1 , R2, C12 & C13 affect the upper frequency. Is it a good general purpose design for a PICs PWM output? Will it run ok at 5V?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 18th November 2007, 10:13 PM   (permalink)
Default

It's 3dB down at 800Hz on the high end.
No problem on the low end. In fact, for the low end, you could replace the 10uF cap (C3) with 100nF and still have the LF corner at 25Hz. What is your PWM frequency?
__________________
Ron

Roff is offline   Reply With Quote
Old 18th November 2007, 10:18 PM   (permalink)
Default

Well I wanted to develop a general amp for PWM based sound. Does it have a sharp cutoff above 800Hz? Telephone audio quality 2KHz should be fine.

It's for the Junebug & Firefly kits as a user built option.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 18th November 2007, 10:31 PM   (permalink)
Default

The LM386 is rated down to 4-5 volts but will only give maybe 200mw at that Vcc driving a 8 ohm speaker. Should be enough for experimental level quality audio.

Lefty
__________________
Measurement changes behavior
Leftyretro is offline   Reply With Quote
Old 18th November 2007, 10:33 PM   (permalink)
Default

It'll be a pretty weedy wee speaker, only about 2" as it has to fit on a 57mm PCB. Maybe the 800Hz isn't so bad.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 18th November 2007, 11:12 PM   (permalink)
Default

As I'm sure you know, your filter requirements depend on the audio bandwidth you want, the pwm frequency, and probably some other stuff (I'm no expert on PWM).
__________________
Ron

Roff is offline   Reply With Quote
Old 19th November 2007, 12:16 AM   (permalink)
Default

On another thread I posted a link to a PIC that sings. It is this Soundgin circuit.
It makes some noises that resemble somebody singing but I can't understand the "robot" lyrics. It is almost 2008 and I though it would sound better than that.

The simple lowpass filter is very droopy. A Sallen and Key Butterworth lowpass filter is flat up to its cutoff frequency which might be able to be higher if used in this circuit.

The LM386 produces a whopping 78mW into an 8 ohm speaker at clipping with a 5V supply. Like loud headphones.
With the 9V as shown its output is 450mW, nearly 6 times more power, like a cheap clock radio.

R3 is wrong at 10k ohms. It is supposed to be 10 ohms.
The polarity of C4 and C8 are backwards.

A tiny 2" speaker without a proper enclosure will try to make a squeak but there are no high frequencies so it will just beep. (Hee, hee. I am a poet)

My 486 Compaq Presario pc had 1" x 2" oval speakers in small ported bass-reflex enclosures. They actually sounded pretty good, about 1W each.
__________________
Uncle $crooge
audioguru is offline   Reply With Quote
Old 19th November 2007, 12:47 AM   (permalink)
Default

Quote:
Originally Posted by audioguru
The polarity of C4 and C8 are backwards.
According to the MAX232 datasheet, pin 2 is +10V, so the polarity of C8 is OK.
__________________
Ron

Roff is offline   Reply With Quote
Old 19th November 2007, 01:31 AM   (permalink)
Default basic filter info

See 'Series Lowpass' in figure 1.

http://www.qrp.pops.net/filter1.asp


Christopher
cnetherton is offline   Reply With Quote
Old 19th November 2007, 03:45 PM   (permalink)
Default

Quote:
Originally Posted by cnetherton
See 'Series Lowpass' in figure 1.

http://www.qrp.pops.net/filter1.asp


Christopher
Also note this quote from the same site:
Quote:
Unfortunately, interactions between the two series filter sections will change the cutoff frequency from the design frequency somewhat.
The calculated cutoff frequency for the circuit in question is 595Hz. The measured cutoff frequency (in simulation) is about 800Hz. As Audioguru noted, an active 2-pole lowpass might be adequate if this filter isn't.
__________________
Ron

Roff is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 08:40 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.