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
  • jc2048
    jc2048 over 4 years ago in reply to jc2048

    Thinking about it a little more, this might be better than what I gave above

     

    image

     

    Your low value of coupling capacitor [10n], to give you a HPF, means that there's a considerable change in phase around the cut-off frequency [325Hz] (see plot below). If we keep the inverting path the same with a similar capacitor, the two effects will cancel, otherwise we're losing the benefit of the differential input lower down.

     

    imageimage

     

    BTW this 'solution' might actually make your situation worse rather than better, but at least it will be telling you things about what the noise is and how it's affecting the circuit. Any chance of some 'scope traces?

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

    Thinking about it a little more, this might be better than what I gave above

     

    image

     

    Your low value of coupling capacitor [10n], to give you a HPF, means that there's a considerable change in phase around the cut-off frequency [325Hz] (see plot below). If we keep the inverting path the same with a similar capacitor, the two effects will cancel, otherwise we're losing the benefit of the differential input lower down.

     

    imageimage

     

    BTW this 'solution' might actually make your situation worse rather than better, but at least it will be telling you things about what the noise is and how it's affecting the circuit. Any chance of some 'scope traces?

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

    I see where this one is going.  I'll try it out.

     

    I actually have a big ground plane that the ground of the 3.5mm port as well as the battery ground are connected to.  However, a ground loop is the problem here.

     

    Last night I cut the battery side relying on just the ground plane taking things to ground via the raspberry pi headphone jack.  Call me crazy, but it did get quieter.

     

    I'll get things going and should have something in a few hours.

    • Cancel
    • Vote Up +2 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