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
  • beacon_dave
    0 beacon_dave over 7 years ago

    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:

     

    AVRRegistered Insights - Episode 17 - ADC Voltage Reference

    https://www.youtube.com/watch?v=fN3J6wxijrE

     

    There is also a block diagram of how it fits into the design on page 5 of this application note:

    http://ww1.microchip.com/downloads/en/AppNotes/00002538A.pdf#page=5

    As you can see the ADC is actually comprised of a DAC and a sample & hold comparator circuit.

     

    More information on AVR ADC parameters in this application note:

    http://ww1.microchip.com/downloads/en/AppNotes/atmel-8456-8-and-32-bit-avr-microcontrollers-avr127-understanding-adc-par…

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • beacon_dave
    0 beacon_dave over 7 years ago

    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:

     

    AVRRegistered Insights - Episode 17 - ADC Voltage Reference

    https://www.youtube.com/watch?v=fN3J6wxijrE

     

    There is also a block diagram of how it fits into the design on page 5 of this application note:

    http://ww1.microchip.com/downloads/en/AppNotes/00002538A.pdf#page=5

    As you can see the ADC is actually comprised of a DAC and a sample & hold comparator circuit.

     

    More information on AVR ADC parameters in this application note:

    http://ww1.microchip.com/downloads/en/AppNotes/atmel-8456-8-and-32-bit-avr-microcontrollers-avr127-understanding-adc-par…

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