element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum LM386N-4 Amplifier Noise with Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 8 replies
  • Subscribers 664 subscribers
  • Views 2227 views
  • Users 0 members are here
  • amplifier
  • lm386n-4
Related

LM386N-4 Amplifier Noise with Raspberry Pi

Sean_Miller
Sean_Miller over 4 years ago

I've been fighting a hum in my amplifier circuit on my Raspberry Pi -but only when my Pi and the amplifier are powered by the same battery.

 

If I plug a speakerbomb into the Pi which is powered by its own battery - it sounds great.

If I power my amplifier with anything other than the Raspberry Pi battery and plug the Pi's headphone jack to it - it sounds great

 

It only sounds bad when both the Pi's switching regulator and the amp circuit are powered by the same battery.  The amp is powered upstream of the switching regulator

 

I've tested many ranges of caps at the LM386-N4's power pin to no avail.  I tried different speakers.  I tried different LM386N-4LM386N-4 chips.  Same behavior.

 

I have a cap in the signal line from the headphone jack that helped a little, but not enough.

 

Any thoughts on what could remedy this behavior.

 

image

  • Sign in to reply
  • Cancel
Parents
  • jc2048
    jc2048 over 4 years ago

    Perhaps try this and see if it helps

     

    image

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • Sean_Miller
    Sean_Miller over 4 years ago in reply to jc2048

    This is the one (the first picture you sent) I went with and it eliminated the buzz.  I breadboarded it and was happy without that cap at pin 3.  After I soldered it on the perf board, I picked up a faint radio station.  So, in the morning, I'm going to add back in that cap to see if it kills that.  Somewhere along the way, I believe I found that would kill it.

     

    The data sheet simply shows pin 2, 4 and the incoming negative going to a common ground.  However, putting the negative from the pi's headphone jack directly to pin 2 definitely killed the hum.  I'm thinking "ground loops" was the issue.

     

    Thanks for the tip!

     

    See ya',

    Sean

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Sean_Miller
    Sean_Miller over 4 years ago in reply to jc2048

    This is the one (the first picture you sent) I went with and it eliminated the buzz.  I breadboarded it and was happy without that cap at pin 3.  After I soldered it on the perf board, I picked up a faint radio station.  So, in the morning, I'm going to add back in that cap to see if it kills that.  Somewhere along the way, I believe I found that would kill it.

     

    The data sheet simply shows pin 2, 4 and the incoming negative going to a common ground.  However, putting the negative from the pi's headphone jack directly to pin 2 definitely killed the hum.  I'm thinking "ground loops" was the issue.

     

    Thanks for the tip!

     

    See ya',

    Sean

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Sean_Miller
    Sean_Miller over 4 years ago in reply to Sean_Miller

    After I hooked it back to the battery and got it back in my project - the amp worked great.  Didn't need to add the pin 3 cap.

     

    The datasheet is very misleading on this one, so I'll be sure to mark up my copy so I don't connect pins 4 and 2 together ever again.

     

    Thanks,

    Sean

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
  • geralds
    geralds over 4 years ago in reply to Sean_Miller

    Hi Sean_Miller ,

     

    You can read this datasheet as well. The original datasheet from national.

    Best Regards

    Gerald

    ---

    Attachments:
    imageLM386_nat.pdf
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Sean_Miller
    Sean_Miller over 4 years ago in reply to geralds

    Thanks for sending.

     

    What gets me on these datasheets is the #2 pin showing ground just as all the others. 

     

    I don't see where it distinguishes this ground to be separate from the other grounds.  I found that tying pin 2 to a common ground versus just the '-' of the headphone cord led to the ground loop noise.

     

    See ya',

    Sean

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube