Analog To Digital Converter Build

analogue_digital_converter

[Daniel Garcia] sent us a quick tutorial he put together demonstrating how to use an ATmega168 to perform analog to digital conversions. This timely tutorial would make for a nice complimentary project for those of you who decided to build your own digital to analog converter after reading our post from a few days ago.

The ATmega168 has six pins that are typically used for digital I/O, but they can be used for analog input as well. In his example, he uses a trimpot as an analog input device, connecting it to one of the aforementioned analog pins. Its value is returned as a 16-bit number which is then displayed on the attached LCD. The LCD display and the breadboard layout used in this project are covered in his previous writeups, so be sure to give those a read through before working through this tutorial.

13 thoughts on “Analog To Digital Converter Build

  1. Hacking (English verb to hack, singular noun a hack) refers to the re-configuring or re-programming of a system to function in ways not facilitated by the owner, administrator, or designer. The term(s) have several related meanings in the technology and computer science fields, wherein a “hack” may refer to a clever or quick fix to a computer program problem, or to what may be perceived to be a clumsy or inelegant (but usually relatively quick) solution to a problem, such as a “kludge”.

  2. Without a doubt this is an instructive tutorial that will be helpful in a hack. Also I agree that not everything on hackaday is a real hack but I never saw anyone complain when someone did an awesome build (which isn’t a hack either, it’s a build).

  3. Why are there so many people bitching again about the “not-a-hack”? The site sports great hacks, and compliments that with great articles and tutorials. I love coming here to see what people build of what people share/teach. Are you never interested about on how to get to a hack instead of only seeing a end result with maybe a build log? Well, im glad the site is how it is!

  4. Also wanted to say, I think this is a great topic to post, I have been looking for a nice design write up for building an adc, particularly after reading the write up building a dac.

    Keep these coming, basics are essential, if the hacking community is to grow, it has to provide for those whom aren’t just avr programmers and electrical engineers.

  5. @Dekar, et al.

    I don’t understand what all the griping is about, none of us readers own any part of this site and most probably have no stake in it (i.e. no projects of their own posted by the editors). Therefore everyone should quit griping. Nowhere does it say what the authors/editors have to post, that is solely at their own discretion. If you must disagree feel free to do so with your eyes and mouse, you aren’t forced to visit the site.

Leave a Reply to PatCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.