Powered by Invision Power Board


Forum Rules Forum Rules (Please read before posting)
  Reply to this topicStart new topicStart Poll

> Simple Audio Amp, Check my schematic for me?
crimsondynamo329
Posted: December 31, 2012 04:44 pm
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 284
Member No.: 18,503
Joined: September 21, 2008




I'm fiddling with a simple "laser show" type audio visualization, like what's described here. By attaching a mirror to the focusing assembly from a DVD player and connecting the coils to an audio source, you can get a pretty nice effect when you reflect a laser off the mirror. I'm not worried about damaging the coils by overdriving (I probably will), but I'd like to make sure I'm using the LM386 correctly and that my circuit won't damage other input/output devices. The schematic has 3 "sections:"
  1. Input summing and pass-through. The idea is the input is connected to J1 and the speakers to J2, so this device is placed between the source and the speakers. The input is summed to a mono signal for amplification. I'm not too sure about this summing, but from my reading it seems correct. I'm shooting for minimal effect on the second output device (speakers) so the resistors are scaled up by 10 from examples I found online to improve channel separation. I'm not driving any long lines and don't care much about the quality of the audio driving the coils.
  2. Optional low-pass filter. It might be cool to have the laser react only to the bass notes, so the input can be passed through a simple RC low-pass before amplification.
  3. Amplification. I've never used the LM386 before, so this is what I'm least sure of. Two main questions:
    • If I want a gain of 20, are R5 and C2 necessary? It's my understanding that without them the "default" gain is 20.
    • I'm not clear on what pin 7 (bypass) is for. The capacitor is included to prevent oscillations of some kind?


The "AUD_AMP" signal is what will finally be connected to the coils, in case that's not clear.

Schematic:
http://i.imgur.com/XtozU.png


Updated schematic:
http://i.imgur.com/BJEGm.png

This post has been edited by crimsondynamo329 on January 02, 2013 06:28 am
PMEmail Poster
Top
dmg
Posted: December 31, 2012 09:18 pm
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 279
Member No.: 36,860
Joined: June 06, 2012




for the amplifier, just use the datasheet defult config.
The summing networks resistor may be.. 10K insted of 4.75K, the 200 K one prehaps 22K.

Prehaps a diode on the output will give it some threshold to make the laser blinking, not sure on thatone.
PMEmail Poster
Top
Nothing40
Posted: December 31, 2012 09:39 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 3,294
Member No.: 181
Joined: October 05, 2002




Summing section seems okay.

R5 and C2 are not needed for the default gain.
C5 is a bypass cap,for the input amp section internal to the LM386. It would be a good idea to use it. 10-22uF should be fine.
You might consider adding the R/C network (10ohm/0.1uf) on the output also.

This is all in the LM386 datasheet:
http://www.ti.com/lit/ds/symlink/lm386.pdf


--------------------
"we need an e-kick-in-the-nuts button" -Colt45
PMUsers WebsiteYahoo
Top
Geek
Posted: January 01, 2013 04:57 am
Reply to this postQuote Post


Moderator
Group Icon

Group: Moderators
Posts: 8,891
Member No.: 62
Joined: July 23, 2002




That low pass filter... too small R, too large C wink.gif


--------------------
-= Gregg =-
"Ratings are for transistors.....tubes have guidelines"
(please do not PM me for advice. Non-forum business messages will be ignored)
PMUsers Website
Top
crimsondynamo329
Posted: January 01, 2013 06:58 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 284
Member No.: 18,503
Joined: September 21, 2008




Thanks for the replies, exactly the type of tips I was hoping for.

QUOTE (Geek @ January 01, 2013 04:57 am)
That low pass filter... too small R, too large C wink.gif

I got those values from an online calculator. I put in 120Hz target cutoff and that's what it gave me smile.gif. Why are these values bad, and what would be a good alternative? Just scaling each up/down by 10 for 1.3k and 1uF?
PMEmail Poster
Top
Geek
Posted: January 01, 2013 07:46 am
Reply to this postQuote Post


Moderator
Group Icon

Group: Moderators
Posts: 8,891
Member No.: 62
Joined: July 23, 2002




For practical reasons, I'd definately go up by a factor of 10 to start... 1.3K + 1uF... and use a film cap smile.gif

Your "Q" will still be low, but should work better.


--------------------
-= Gregg =-
"Ratings are for transistors.....tubes have guidelines"
(please do not PM me for advice. Non-forum business messages will be ignored)
PMUsers Website
Top
Sch3mat1c
Posted: January 01, 2013 11:00 am
Reply to this postQuote Post


Forum Addict ++
Group Icon

Group: Moderators
Posts: 18,140
Member No.: 73
Joined: July 24, 2002




Considering R1-R2 are already providing a few kohms of series resistance, I don't think R7 matters. Nix it, and go with 0.1uF or so.

An RC filter is a very gradual thing, so don't worry about "Q" or cutoff frequency. It'll still let through plenty of recognizable melody, if you were to listen do it. This would be manifest in the display as very short loops and jags and squiggles. The mirror itself acts as a filter and may dampen much of this already.

Tim


--------------------
Answering questions is a tricky subject to practice. Not due to the difficulty of formulating or locating answers, but due to the human inability of asking the right questions; a skill that, were one to possess, would put them in the "answering" category.
PMEmail PosterUsers Website
Top
MacFromOK
Posted: January 01, 2013 11:43 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,945
Member No.: 5,314
Joined: June 04, 2006




Hmmm... I wonder how pieces of shiny foil glued directly to a small speaker would work. Or perhaps glued to a flexible strip in front of a speaker (or just use a strip of reflective mylar).

Meh, just a thought. beer.gif


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
crimsondynamo329
Posted: January 01, 2013 09:23 pm
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 284
Member No.: 18,503
Joined: September 21, 2008




@Sch3mat1c: My thinking on including R7 is to make the low-pass optional, i.e. if R7 were removed then both options on S1 would be identical and the amp input would always be filtered. Including R7 will help keep the AUD_IN line separated from the filtered line, right? If the gain just needs to be turned up a bit when that option is selected, it's not really a problem.

@Mac: The idea actually comes from my car, where the headlights reflected in the rearview "bounce" in nice patters when the subwoofers in the back kick in. However, I would like this device to be silent so I had to look for some other way of getting those kinds of vibrations on a mirror. A mirror glued to a balloon stretched across a speaker (or the vent for a sub enclosure) works well, but makes distorted sound that takes away from the effect. This DVD focuser setup is (very nearly) silent and gets about the same effect.

PS here's an updated schematic:
http://i.imgur.com/DNGex.png
PMEmail Poster
Top
Sch3mat1c
Posted: January 02, 2013 05:18 am
Reply to this postQuote Post


Forum Addict ++
Group Icon

Group: Moderators
Posts: 18,140
Member No.: 73
Joined: July 24, 2002




Yes, the extra series resistance helps isolate filtered from normal, but to do a reasonable job it must be many times the source impedance, i.e., over 20k easily. So now your impedance goes up even more. Simple solution, you only need an SPST to switch the capacitor in or out. smile.gif

Tim


--------------------
Answering questions is a tricky subject to practice. Not due to the difficulty of formulating or locating answers, but due to the human inability of asking the right questions; a skill that, were one to possess, would put them in the "answering" category.
PMEmail PosterUsers Website
Top
MacFromOK
Posted: January 02, 2013 05:24 am
Reply to this postQuote Post


Forum Addict ++
*******

Group: Spamminator Taskforce
Posts: 12,945
Member No.: 5,314
Joined: June 04, 2006




QUOTE (crimsondynamo329 @ January 01, 2013 02:23 pm)
A mirror glued to a balloon stretched across a speaker (or the vent for a sub enclosure) works well, but makes distorted sound that takes away from the effect.

I can see where it would, and that's why I mentioned a strip rather than a complete covering, and something light (foil or mylar) rather than a mirror.

Thanks for the reply btw, here's hoping yours works great. beer.gif


--------------------
Mac *

"Basic research is what I'm doing when I don't know what I'm doing." [Wernher Von Braun]

* is not responsible for errors, consequential damage, or... anything.
PMEmail Poster
Top
crimsondynamo329
Posted: January 02, 2013 06:27 am
Reply to this postQuote Post


Sr. Member
*****

Group: Trusted Members
Posts: 284
Member No.: 18,503
Joined: September 21, 2008




QUOTE (Sch3mat1c @ January 02, 2013 05:18 am)
Simple solution, you only need an SPST to switch the capacitor in or out.  smile.gif

Funny how I miss the obvious solutions because I'm overthinking... So just to make sure I'm clear: with the updated schematic below, with the switch closed R1/R2 will isolate the filtered line from the input and with the switch open there's no filter to worry about. Makes sense to me.

http://i.imgur.com/BJEGm.png
PMEmail Poster
Top
Sch3mat1c
Posted: January 02, 2013 10:41 am
Reply to this postQuote Post


Forum Addict ++
Group Icon

Group: Moderators
Posts: 18,140
Member No.: 73
Joined: July 24, 2002




Yup thumbsup.gif


--------------------
Answering questions is a tricky subject to practice. Not due to the difficulty of formulating or locating answers, but due to the human inability of asking the right questions; a skill that, were one to possess, would put them in the "answering" category.
PMEmail PosterUsers Website
Top
Geek
Posted: January 02, 2013 10:48 am
Reply to this postQuote Post


Moderator
Group Icon

Group: Moderators
Posts: 8,891
Member No.: 62
Joined: July 23, 2002




QUOTE (crimsondynamo329 @ January 01, 2013 10:27 pm)
Funny how I miss the obvious solutions because I'm overthinking...

Welcome to the "90% of us" club beer.gif

It's the curse of the geek biggrin.gif


--------------------
-= Gregg =-
"Ratings are for transistors.....tubes have guidelines"
(please do not PM me for advice. Non-forum business messages will be ignored)
PMUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 


:: support us ::




ElectronicsSkin by DutchDork & The-Force