PDA

View Full Version : Analog-Digital Interfacing



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

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

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

Please see this tutorial for using AVR ADCs

http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/

Also you should have searched Google for

"avr adc tutorial"

or

"avr adc"

You should have already got to that page !!!

Hope it helps

avinash_g
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 !

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

avinash_g
12-30-2009, 05:39 PM
Hello

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
http://shop.extremeelectronics.co.in/product_info.php?cPath=23&products_id=107

Help Files
http://www.extremeelectronics.co.in/xBoardMINI2/docs/Index.htm

USB AVR Programmer v2.0
http://shop.extremeelectronics.co.in/product_info.php?cPath=21&products_id=28

http://www.extremeelectronics.co.in/xBoardMINI2/docs/images/xboard_mini_main.jpg