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 2225 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
  • shabaz
    shabaz over 4 years ago

    Hi Sean,

     

    Removing the capacitor on pin 7 (i.e. leave pin 7 disconnected) can help, often it turns the LM386 into a radio receiver when that's there : )

    Also, personally, I would try to connect pin 3 to ground via 2.2k resistor, and then change your 0.01uF input capacitor to something larger (try 1uF to 4.7 uF or so).

    If you disconnect the left side of that capacitor, you can insert in a ferrite bead inline with the capacitor, and also solder a (say) 10nF capacitor to ground from that left side of the capacitor too. That will act as a sort of RC filter, where the R is the ferrite bead. It will help reduce high-frequency noisy pickup from the audio input. Also, between the supply pins (4 and 6) solder a capacitor (maybe 100 uF) and also a 100nF capacitor in parallel. Change the two left side resistors (1k) to something lower, say 220 ohm.

    These are just some ideas, others may have better suggestions, but I think there's a chance it may improve things a bit.

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

    Hi Sean,

     

    Removing the capacitor on pin 7 (i.e. leave pin 7 disconnected) can help, often it turns the LM386 into a radio receiver when that's there : )

    Also, personally, I would try to connect pin 3 to ground via 2.2k resistor, and then change your 0.01uF input capacitor to something larger (try 1uF to 4.7 uF or so).

    If you disconnect the left side of that capacitor, you can insert in a ferrite bead inline with the capacitor, and also solder a (say) 10nF capacitor to ground from that left side of the capacitor too. That will act as a sort of RC filter, where the R is the ferrite bead. It will help reduce high-frequency noisy pickup from the audio input. Also, between the supply pins (4 and 6) solder a capacitor (maybe 100 uF) and also a 100nF capacitor in parallel. Change the two left side resistors (1k) to something lower, say 220 ohm.

    These are just some ideas, others may have better suggestions, but I think there's a chance it may improve things a bit.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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