View Full Version : Analog-Digital Interfacing

12-28-2009, 04:26 PM
Hello experts there,
I am in quite a need of you all. I am new to Avr uc. I have a peizoelectric sensor that is analouge. I don't know how to interface it with my Atmega 128 development board.
Is ther any website or weblink which you can suggest me.
Please reply as soon as possible as i hv very little time left.

12-28-2009, 07:06 PM
I dont know about your Dev Board , but just interface it to the ADC on your Mega 128 and use simple polling to detect the changes in the sensor and sending them on serial. And move on from there.

12-28-2009, 07:17 PM
Hello There,

Please see this tutorial for using AVR ADCs


Also you should have searched Google for

"avr adc tutorial"


"avr adc"

You should have already got to that page !!!

Hope it helps

12-28-2009, 07:21 PM
Also one more thing

You said you are new to AVRs then why are u usin ATmega128 ??? Its like the super-set of AVR features (and super-set of confusion for beginners).

All I knew was that law of learning tells that "Go Step by Step"

I think you should have used AVR ADC on some little brothers of ATmega128 (like a ATmega8)

I bet you can't use more that 1% of the features Offered !

12-29-2009, 06:48 PM
Thank you for the tutorial.
Well, u r write actually. So can you suggest me some development board to buy so that i can work on Atmega8.

12-30-2009, 05:39 PM

Yes. You can go for xBoard MINI v2.0 + USB AVR Programmer

It will give you complete startup with ATmega8 or ATmega168 MCUs

xBoard MINI v2.0

Help Files

USB AVR Programmer v2.0