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.

12 thoughts on “Analog to Digital converter build

  1. “The ATmega168 has six pins that are typically used for digital I/O, but they can be used for analog input as well.”

    Well, true for the DIP package, the rest have 8 analog pins.

  2. 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”.

  3. 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).

  4. I clicked this hoping to see an analog threshold-detecting circuit to convert an analog waveform to a digital signal.

    This is far less interesting.

  5. 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!

  6. 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.

  7. @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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s