1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

ADC in Atmega8 and Atmega328

Discussion in 'AVR' started by premkumar9, Feb 22, 2014.

  1. premkumar9

    premkumar9 Member

    Joined:
    Oct 28, 2008
    Messages:
    513
    Likes:
    1
    Location:
    India
    Hi,
    I used ADC of Atmega8 and Atmega 328. In first case I see fluctuation in the serial output value (ADC value of A0) and in the case of 328 it is more stable. I used the same program in both cases using Arduino IDE. Is this because of any difference in the ADC of these 2 ICs or some settings issue? Can anybody please help?
     
  2. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,160
    Likes:
    909
    Location:
    Rochdale UK
    How much fluctuation? Is the ADC is being read more frequently on one more than the other?
    The other factor is the input impedance of the two ADC modules... The later (328) is a newer chip and looking at the ADC characteristics... Seems to be a better ADC module with better non-linearity...
     
  3. premkumar9

    premkumar9 Member

    Joined:
    Oct 28, 2008
    Messages:
    513
    Likes:
    1
    Location:
    India
    Atmega8 shows around 40mv fluctuation while 328 is about 2 mv. Reading interval is kept same. (1 sec )
     

Share This Page