Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 21st May 2008, 11:37 AM   (permalink)
Default

i am also working on ATmega ADC. I need complete circuit diagram of interfaced device with ATmega and what should be applied to ATmega at what pin.
shahbaz.ele is offline  
Old 2nd August 2008, 09:12 PM   (permalink)
Default need help


hi mikey,
i want to use a digital calliper witha atmega 16,
simply i want to display the vaue gained by the calliper.on the lcd,

calliper has four wires - ground,data,clock,vcc
i am trying to put the data wire to the atmega 16
but its not working ,i used an ldr and ir sensor they both are working on same port using the same program,
is it because of i am using a "digital device" now?
Quote:
Originally Posted by MrMikey83 View Post
Both grounds on the ATMEGA32 are connected to main ground and Accellorometer is connected to main ground as well.

Perhaps I have it set up wrong...

Right now, I have the ADC referenced to AVCC (5V). The output for the accellorometer is connected to ADC0, all other ADC outs are not connected.
As far as the code, I'm using Codevision AVR C Compiler (full version) to write my code. I have tried both using an interrupt on the ADC and just calling the ADC when I need it. The only thing I can't find any information on is when I call the ADC using read_adc() but there is supposed to be a number in the ()'s. I have been using 0 but have tried 1 and other numbers. What exactly is supposed to be in the brackets?

~Mike
jasminder is offline  
Old 3rd August 2008, 12:33 AM   (permalink)
Default

Quote:
Originally Posted by shahbaz.ele View Post
i am also working on ATmega ADC. I need complete circuit diagram of interfaced device with ATmega and what should be applied to ATmega at what pin.
check this page http://www.ikalogic.com/tut_8051_to_avr.php

at the end there is an example showing how to use the ADC
__________________
Ibrahim Kamal
check my electronics and robotics page: http://www.ikalogic.com/
ikalogic is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 03:36 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker