>> Design Automation Products
Thread views: 1649 View all threadsNext thread*Threaded Mode

(Stranger )
06/30/17 02:49 AM
ADC conversion error in code ATMEGA328p Report this article as Inappropriate to us !!!Login to Reply

I am trying to read values from ADC0 on the ATMEGA328p (the datesheet of atmega328p). The values expected are between 0-5v. This is due to ADC0 being connected to a potentiometer connected to the 5v output of a Xplained mini. I am getting either 0v or 5v usually. With no variation when the potentiometer is changed. I have looked at multiple ADC examples and tutorials online but cant find the error in my code.

And as mentioned above I know the error is not in my UART code but somewhere in the above ADC code. Cheers in advance for any help.

Jump to


DownStream: Solutions for Post Processing PCB Designs
TrueCircuits: IoTPLL

Internet Business Systems © 2018 Internet Business Systems, Inc.
25 North 14th Steet, Suite 710, San Jose, CA 95112
+1 (408) 882-6554 — Contact Us, or visit our other sites:
AECCafe - Architectural Design and Engineering TechJobsCafe - Technical Jobs and Resumes GISCafe - Geographical Information Services  MCADCafe - Mechanical Design and Engineering ShareCG - Share Computer Graphic (CG) Animation, 3D Art and 3D Models
  Privacy PolicyAdvertise