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
Arduino
  • Products
  • More
Arduino
Arduino Forum AnalogRead() external power causes fluctuations
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 11 replies
  • Answers 6 answers
  • Subscribers 393 subscribers
  • Views 2723 views
  • Users 0 members are here
  • microphone
Related

AnalogRead() external power causes fluctuations

pjacobsen
pjacobsen over 7 years ago

Hey guys!

Thanks for all the help so far in my previous questions. This community has been a great tool in my learning process.

I am building an automated door buzzing machine for my apartment. The project works by reading analog signals from a microphone sensor. With a positive reading from a sensor, the module will then move a servo motor to buzz the person in.

When plugged into USB, my analog readings from the microphone are stable around 24 consistently.
When plugged into my 5V 4A power supply, readings are typically 24 but often fluctuate up to 45.

Both readings are taken in isolation from any servo movement.

Given that this would make establishing a buzz correctly difficult, is there something that would be causing this problem?

The Arduino is powered via the 5v pin and common grounds across all components. The components i'm using also bridge off of the 5V pin.

The arduino connects to the microphone via 3 wires (+/-/A0) and I do not have any capacitors or anything extra.

I found a few forums online talking about reference voltage and Aref, but I was quickly lost in the terminology.

Thanks in advanced!










  • Sign in to reply
  • Cancel

Top Replies

  • jc2048
    jc2048 over 7 years ago +5 suggested
    Looking at those boards online, it would appear that the board has a comparator. The potentiometer on the board is setting the threshold at which the comparator detects a sound when it goes above that…
  • rachaelp
    rachaelp over 7 years ago in reply to pjacobsen +3 suggested
    pjacobsen wrote: The part that confuses me still even with this new information is why there is a large difference between stable readings between USB and external wallwort. The USB maybe supplies a relatively…
  • beacon_dave
    beacon_dave over 7 years ago +3 suggested
    I found a few forums online talking about reference voltage and Aref, but I was quickly lost in the terminology. There is a very lightweight introduction to AREF here which may help: AVR Insights - Episode…
Parents
  • jw0752
    0 jw0752 over 7 years ago

    Hi Parker,

    It would be helpful to have a little more information. Is your 5 volt 2 A power supply linear or switching? Specifically what is connected to the 5V arduino pin. Can you draw a wiring diagram and post it? The solution may be as simple as a couple of decoupling capacitors but more information would be helpful.

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • pjacobsen
    0 pjacobsen over 7 years ago in reply to jw0752

    4743.contentimage_186359.jpg

    Microphone link: https://www.amazon.com/Gikfun-Microphone-Sensor-Detection-Arduino/dp/B00RLGFQTG/ref=sr_1_2_sspa?ie=UTF8&qid=1517040068&s…

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jw0752
    0 jw0752 over 7 years ago in reply to pjacobsen

    Hi Parker,

    This is a shot in the dark but it will be fairly easy to implement. Try putting a 100 nF (0.1 uF) ceramic capacitor between the ground and +5 volt line close to the microphone and another close to the arduino. Sometimes these little decoupling capacitors can solve these glitches.

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • jw0752
    0 jw0752 over 7 years ago in reply to pjacobsen

    Hi Parker,

    This is a shot in the dark but it will be fairly easy to implement. Try putting a 100 nF (0.1 uF) ceramic capacitor between the ground and +5 volt line close to the microphone and another close to the arduino. Sometimes these little decoupling capacitors can solve these glitches.

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • pjacobsen
    0 pjacobsen over 7 years ago in reply to jw0752

    I'm not I have .1 uf on hand... Will 1ufs work the same?

     

    With that being said, are there downfalls to over compensating capacitors in circuits?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jw0752
    0 jw0752 over 7 years ago in reply to pjacobsen

    Hi Parker,

    In this situation the 1 uF caps will work fine. There are a lot of factors that come into play in choosing a capacitor for a given application. In a timing application for example it is critical to getting the frequency or timing that you are looking for. For decoupling a power supply it isn't as critical but other factors like the effect serial resistance come into play. Some of the real engineers on this site could give us a much more detailed list. Give the 1 uF caps a try, they can't hurt, and let us know what happens. Note your 1 uF might be polarized so you may have to watch their orientation.

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • pjacobsen
    0 pjacobsen over 7 years ago in reply to jw0752

    I did find some .1uf Caps and i soldered them into the board per your request. Seems to be no change. I will gather some more data (frtitzing diagram and youtube video)

    and repost the question. Thanks for all your input. I still learned some things although the issue is not yet solved!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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