DIYstompboxes.com

DIY Stompboxes => Building your own stompbox => Topic started by: smoguzbenjamin on January 12, 2004, 12:54:46 PM

Title: help me with evil LM386
Post by: smoguzbenjamin on January 12, 2004, 12:54:46 PM
Hey all.

I just breaboarded an LM 386 amp and it is distortion like crazy. I used a 1M pulldown R, 10uF cap into LM396 -input, and a 100uF cap between LM386 output and the speaker+. Good distortion but I'm wondering what's wrong. See at first the clipping sounds good but as the note decays it starts gating. :mrgreen: It's a 4ohm speaker , is that the problem?
Title: help me with evil LM386
Post by: smoguzbenjamin on January 12, 2004, 01:11:20 PM
Come on :mrgreen:
Title: help me with evil LM386
Post by: slajeune on January 12, 2004, 01:16:10 PM
Hi smoguzbenjamin,

my turn to help you!!!  Pin 1 and 8 control the gain of the LM386.  Put a resistance between pins 1 and 8.  More resistance = less gain (if I remember correctly).  Try various resistors there and let us know!

Thanks,
Stephane.
Title: help me with evil LM386
Post by: spongebob on January 12, 2004, 01:20:20 PM
Have a look at http://www.national.com/ds/LM/LM386.pdf, it has some schematics on how to wire this thing up...
Title: help me with evil LM386
Post by: smoguzbenjamin on January 12, 2004, 01:35:43 PM
I put a 5k pot inbetween pins 1 and 8. More resistance = not enough gain to drive the speaker. It's rated from 100Hz to 30kiloHz @ 4ohms and the rest of the sticker was peeled off. :?

thanks bob I'll take a look at that :D
Title: help me with evil LM386
Post by: Ge_Whiz on January 12, 2004, 02:09:41 PM
What supply voltage are you giving it? Battery or wall-wart?
Title: help me with evil LM386
Post by: RDV on January 12, 2004, 02:10:58 PM
Ground the inverting input which should stabilize it. 10uf is too big for a in-cap, try .01 or smaller, and 220uf for the out-cap allows more bass.

Regards

RDV
Title: help me with evil LM386
Post by: Joep on January 12, 2004, 03:52:39 PM
As you see in the datasheet, if you leave pin 1 and 8 open you will have the lowest gain. If I remember well at this setting you already have quit some distortion with a medium power humbucker guitar.

Is it really a gated sound you hear? Mine was oscillating with also gives a "gated-ish" sound. Try a small(!) cap (100n or something, not critical) between ping 4 and 6. This stoped oscillation in my circuit and is sounded a lot better.

Later,

Joep
Title: help me with evil LM386
Post by: Ansil on January 13, 2004, 04:00:16 AM
a .047 is a nice input cap,  for an amp i would go with a 470uf outcap if you have a wall wart  a 220uf i cyou are using a batterie.

grounding the unused input is ok,  but if you are using the non inverting try using the inverting as they tend to be more on the stable side.  also a 100uf to ground from the seventh pin is nice.

also if you are using the N-1  then smack yourself and get an n-3  cause ratshack is screwing people packing a n1 in a n3 package
Title: help me with evil LM386
Post by: smoguzbenjamin on January 13, 2004, 10:47:54 AM
I knowingly got an N1 because the local dudes didn't have nothin else :evil:

I'm using the inverting input, got the non-inverting input to ground. My guitar's a single-coil so hot pickup's ain't the problem. I have pin7(bypass) unconnected. Should I ground it? When I left the guitar unplugged I got a whiny oscillating tone so that's probably the problem.

Joep, pin 6 is power in, pin 4 is ground so what difference will the cap make? :? This chippy is more unstable than I suspected... :?
Title: help me with evil LM386
Post by: RDV on January 13, 2004, 11:08:31 AM
I'm not saying that you should copy the 'Little Gem', but there's probably something in there that will help, like the little filter circuit on the output.
http://runoffgroove.com/littlegem.html

Regards

RDV
Title: help me with evil LM386
Post by: smoguzbenjamin on January 13, 2004, 11:10:16 AM
Actually the little gem made me buy a few 386's :D And I think I breadboarded it and it was also fuzzzzzy.
Title: help me with evil LM386
Post by: Gus on January 13, 2004, 01:37:10 PM
The brand of IC used makes a difference here.  IIRC you want to use a JRC386
Title: help me with evil LM386
Post by: smoguzbenjamin on January 13, 2004, 01:46:17 PM
It says:



(logo) JM02AG
      LM
      386N-1


I can't get anything else :(
Title: help me with evil LM386
Post by: Joep on January 13, 2004, 01:53:28 PM
Hi Smoguz,

The small capacitors are used to get rid of the high frequence stuff. The capacitance of electrolity capacitor lowers rapidly  on high frequencies. So it is always good to add and extra small cap.

Later,

Joep
Title: help me with evil LM386
Post by: smoguzbenjamin on January 13, 2004, 01:59:17 PM
Oh yeah that makes sense. I'll try that I've got a 0.05uF cap lying around from the little gem experiment. Gotta find time though, combining school with electronics and girlfriend is tough :)

Hey we've been going out for 16 months today :)
Title: help me with evil LM386
Post by: Ansil on January 13, 2004, 02:21:37 PM
Quote from: GusThe brand of IC used makes a difference here.  IIRC you want to use a JRC386

(vomits  projectiles)  sorry never had good luck with the jrc one.  someone sent me a whole slew of them to play with  once , and not only could i not get the right voltage ones.  but they just werent' reliable.
Title: help me with evil LM386
Post by: smoguzbenjamin on January 14, 2004, 11:52:49 AM
Hang on that's a damn good idea. I might just not have enough headroom! N1, that's supposed to be 5-12V right? Maybe I should try feeding it 12V see if that helps...
Title: help me with evil LM386
Post by: idsnowdog on January 15, 2004, 09:09:42 PM
I was doing some research into building an ugglyface and I ran across a replacement for the lm386 chip.  It is called the nte823.  It has the same pinouts and frequency range but where the lm386 has noise rejection at 50db the nte823 has 250db.  You can find the pdf data sheets and compare them.  The cell phone industry uses them to keep noise to a minimum.

Snowdog
Title: help me with evil LM386
Post by: Ansil on January 15, 2004, 10:01:19 PM
Quote from: idsnowdogI was doing some research into building an ugglyface and I ran across a replacement for the lm386 chip.  It is called the nte823.  It has the same pinouts and frequency range but where the lm386 has noise rejection at 50db the nte823 has 250db.  You can find the pdf data sheets and compare them.  The cell phone industry uses them to keep noise to a minimum.

Snowdog

nice  .. thanks i may have found a new favorite chip.. ps try the lm380
Title: help me with evil LM386
Post by: smoguzbenjamin on January 16, 2004, 11:08:02 AM
Got it to work. Wierd though :? I realised that when i turned my guitar volume to '2' it quietened up. So I made it with 3 pots, 'gain 1', 'gain 2', and 'volume'. Gain 1 & 2 just to keep it simple for all the silly people out there. Now to get some headphones that can handle over 250mW. My current earplugs suck.

'gain 1' is the pre-LM386 volume,
'gain 2' is the LM 386 gain
'volume' speaks for itself.

It's kinda cool because you can get this mild distortion with gain 1 at about 4 but turn it to 3 and it's clean. :mrgreen: I like it!

But it works! :D My little plastic casing is frying up right now, painted it shiny silver :mrgeen: How cool is that!