EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

External ADC

Started by magsina October 4, 2008
Hello friends

I'm making a line follower robot. i decide to use external ADC(my
micro controller is MEGA16). but I don't know
what the name of the chip is(8 bits external ADC)!!!
also i don't know anything about writing the program for external ADC
(i use codevision )and i don't know how it send the digital output to
micro controller. because the input of micro should be analog or
digital 0,1. for example you cant send 234 to micro controller!(am I
right?)
by the way i don't like to use op-amp or internal ADC.
Would you please help me?
First off, you aren't going to be able to do anything wothout a data sheet
for the external ADC you're using. DO you know the part number and do you
have the data sheet?

If not, you might as well give up on that setup.

If you do, the data sheet should give you the info on how to set up and
use the chip.

Zack

On Sat, 4 Oct 2008, magsina wrote:

> Hello friends
>
> I'm making a line follower robot. i decide to use external ADC(my
> micro controller is MEGA16). but I don't know
> what the name of the chip is(8 bits external ADC)!!!
> also i don't know anything about writing the program for external ADC
> (i use codevision )and i don't know how it send the digital output to
> micro controller. because the input of micro should be analog or
> digital 0,1. for example you cant send 234 to micro controller!(am I
> right?)
> by the way i don't like to use op-amp or internal ADC.
> Would you please help me?

Use the ADC on the atmega16, it is pretty easy, way easier than using a external ADC. Although it uses GCC (WinAVR), I would suggest looking at the SRS workshop robot for an atmega16 ADC example.
----- Original Message -----
From: magsina
To: a...
Sent: Saturday, October 04, 2008 2:22 PM
Subject: [AVR club] External ADC
Hello friends

I'm making a line follower robot. i decide to use external ADC(my
micro controller is MEGA16). but I don't know
what the name of the chip is(8 bits external ADC)!!!
also i don't know anything about writing the program for external ADC
(i use codevision )and i don't know how it send the digital output to
micro controller. because the input of micro should be analog or
digital 0,1. for example you cant send 234 to micro controller!(am I
right?)
by the way i don't like to use op-amp or internal ADC.
Would you please help me?


--- In a..., "Jim Ronald" wrote:
> Use the ADC on the atmega16, it is pretty easy, way easier than
using a external ADC. Although it uses GCC (WinAVR), I would suggest
looking at the SRS workshop robot for an atmega16 ADC example.
> ----- Original Message -----
> From: magsina
> To: a...
> Sent: Saturday, October 04, 2008 2:22 PM
> Subject: [AVR club] External ADC
> Hello friends
>
> I'm making a line follower robot. i decide to use external ADC(my
> micro controller is MEGA16). but I don't know
> what the name of the chip is(8 bits external ADC)!!!
> also i don't know anything about writing the program for external ADC
> (i use codevision )and i don't know how it send the digital output to
> micro controller. because the input of micro should be analog or
> digital 0,1. for example you cant send 234 to micro controller!(am I
> right?)
> by the way i don't like to use op-amp or internal ADC.
> Would you please help me?
>
>
>
>
>
I wanted to know the name of that chip(8 bits external ADC)
also i told that i don't want to use the ADC of mega16. because you
can't use PWM and ADC simultaneously(mega16 may hang!!!)
so would you help me find a good external ADC and tell me how it works?
ADC0804

--- Pada Ming, 5/10/08, magsina menulis:

Dari: magsina
Topik: [AVR club] Re: External ADC
Kepada: a...
Tanggal: Minggu, 5 Oktober, 2008, 3:19 PM

--- In avrclub@yahoogroups .com, "Jim Ronald" wrote:
> Use the ADC on the atmega16, it is pretty easy, way easier than
using a external ADC. Although it uses GCC (WinAVR), I would suggest
looking at the SRS workshop robot for an atmega16 ADC example.
> ----- Original Message -----
> From: magsina
> To: avrclub@yahoogroups .com
> Sent: Saturday, October 04, 2008 2:22 PM
> Subject: [AVR club] External ADC
> Hello friends
>
> I'm making a line follower robot. i decide to use external ADC(my
> micro controller is MEGA16). but I don't know
> what the name of the chip is(8 bits external ADC)!!!
> also i don't know anything about writing the program for external ADC
> (i use codevision )and i don't know how it send the digital output to
> micro controller. because the input of micro should be analog or
> digital 0,1. for example you cant send 234 to micro controller!( am I
> right?)
> by the way i don't like to use op-amp or internal ADC.
> Would you please help me?
>
>
>
I wanted to know the name of that chip(8 bits external ADC)
also i told that i don't want to use the ADC of mega16. because you
can't use PWM and ADC simultaneously( mega16 may hang!!!)
so would you help me find a good external ADC and tell me how it works?

___________________________________________________________________________
Dapatkan alamat Email baru Anda!
Dapatkan nama yang selalu Anda inginkan sebelum diambil orang lain!
http://mail.promotions.yahoo.com/newdomains/id/


>> Hello friends
>>
>> I'm making a line follower robot. i decide to use external ADC(my
>> micro controller is MEGA16). but I don't know
>> what the name of the chip is(8 bits external ADC)!!!
>> also i don't know anything about writing the program for external ADC
>> (i use codevision )and i don't know how it send the digital output to
>> micro controller. because the input of micro should be analog or
>> digital 0,1. for example you cant send 234 to micro controller!(am I
>> right?)
>> by the way i don't like to use op-amp or internal ADC.
>> Would you please help me?
> Use the ADC on the atmega16, it is pretty easy, way easier than
>using a external ADC. Although it uses GCC (WinAVR), I would suggest
>looking at the SRS workshop robot for an atmega16 ADC example.
>
I wanted to know the name of that chip(8 bits external ADC)
also i told that i don't want to use the ADC of mega16. because you
can't use PWM and ADC simultaneously(mega16 may hang!!!)
so would you help me find a good external ADC and tell me how it works?

There are dozens of 8 bits external ADC chips.

The ATmega16 can do ADC, PWM and serial I/O without breaking a sweat.
Again, look at the Example SRS Workshop Robot code it's a good example.

Or take a look at Pascal Stang's AVRLib examples not to be confused with
AVRLibc

Regards
JR

Hi,
ADC0801 to 0809 are 8 bit parallel interface type ADC from national semi.
PCF8591 from philips (NXP) is 8bit ADC with I2C interface.

But why don't you use internal 10 bit ADC of mega16 ?

Kishor Soni

--- In a..., "Jim Ronald" wrote:
>
> >> Hello friends
> >>
> >> I'm making a line follower robot. i decide to use external ADC(my
> >> micro controller is MEGA16). but I don't know
> >> what the name of the chip is(8 bits external ADC)!!!
> >> also i don't know anything about writing the program for external ADC
> >> (i use codevision )and i don't know how it send the digital output to
> >> micro controller. because the input of micro should be analog or
> >> digital 0,1. for example you cant send 234 to micro controller!(am I
> >> right?)
> >> by the way i don't like to use op-amp or internal ADC.
> >> Would you please help me?
> >
> >
> > Use the ADC on the atmega16, it is pretty easy, way easier than
> >using a external ADC. Although it uses GCC (WinAVR), I would suggest
> >looking at the SRS workshop robot for an atmega16 ADC example.
> >
> I wanted to know the name of that chip(8 bits external ADC)
> also i told that i don't want to use the ADC of mega16. because you
> can't use PWM and ADC simultaneously(mega16 may hang!!!)
> so would you help me find a good external ADC and tell me how it works?
>
> There are dozens of 8 bits external ADC chips.
>
> The ATmega16 can do ADC, PWM and serial I/O without breaking a sweat.
> Again, look at the Example SRS Workshop Robot code it's a good example.
>
> Or take a look at Pascal Stang's AVRLib examples not to be confused
with
> AVRLibc
>
> Regards
> JR
>

>>> Hello friends
>>>
>>> I'm making a line follower robot. i decide to use external ADC(my
>>> micro controller is MEGA16). but I don't know
>>> what the name of the chip is(8 bits external ADC)!!!
>>> also i don't know anything about writing the program for external ADC
>>> (i use codevision )and i don't know how it send the digital output to
>>> micro controller. because the input of micro should be analog or
>>> digital 0,1. for example you cant send 234 to micro controller!(am I
>>> right?)
>>> by the way i don't like to use op-amp or internal ADC.
>>> Would you please help me?
>> Use the ADC on the atmega16, it is pretty easy, way easier than
>> using a external ADC. Although it uses GCC (WinAVR), I would suggest
>> looking at the SRS workshop robot for an atmega16 ADC example.
>>
> I wanted to know the name of that chip(8 bits external ADC)
> also i told that i don't want to use the ADC of mega16. because you
> can't use PWM and ADC simultaneously(mega16 may hang!!!)
> so would you help me find a good external ADC and tell me how it works?
>

I have never had any trouble with using the ADC and PWM on any AVR chip at
the same time. In fact, it's a great way to do simple DSP of audio
signals (FIR filters, etc).

Whoever said they had problems probably didn't initialize the functions
properly.

The data sheets should show you how to initialize the correct registers.

Zack

Hi friends,

Well, I never find anything wrong also when using internal ADC of AVR uC (Mega8, Tiny2313, Mega8535, and the latest, Mega128). It worked fine in control system using ADC to digitized sensor data and PWM to drive DC motor at the same time. Maybe you should check the configuration code or change your uC :)

But if you insist on using external ADC, I have ever used one, but serial 12-bit, TLV2543. Great one, but a little bit complex in the code, it is up to you.

Regards,
Adam

----- Original Message ----
From: Zack Widup
To: a...
Sent: Monday, October 6, 2008 7:56:17 PM
Subject: Re: [AVR club] Re: External ADC

>>> Hello friends
>>>
>>> I'm making a line follower robot. i decide to use external ADC(my
>>> micro controller is MEGA16). but I don't know
>>> what the name of the chip is(8 bits external ADC)!!!
>>> also i don't know anything about writing the program for external ADC
>>> (i use codevision )and i don't know how it send the digital output to
>>> micro controller. because the input of micro should be analog or
>>> digital 0,1. for example you cant send 234 to micro controller!( am I
>>> right?)
>>> by the way i don't like to use op-amp or internal ADC.
>>> Would you please help me?
>> Use the ADC on the atmega16, it is pretty easy, way easier than
>> using a external ADC. Although it uses GCC (WinAVR), I would suggest
>> looking at the SRS workshop robot for an atmega16 ADC example.
>>
> I wanted to know the name of that chip(8 bits external ADC)
> also i told that i don't want to use the ADC of mega16. because you
> can't use PWM and ADC simultaneously( mega16 may hang!!!)
> so would you help me find a good external ADC and tell me how it works?
>

I have never had any trouble with using the ADC and PWM on any AVR chip at
the same time. In fact, it's a great way to do simple DSP of audio
signals (FIR filters, etc).

Whoever said they had problems probably didn't initialize the functions
properly.

The data sheets should show you how to initialize the correct registers.

Zack


Dear Adam,

Could you pls send me code of AVR MIcro for me.I want to use it in 2313 or 88 series.

Thanks in advance,

Regards,
kundan
On Mon, 06 Oct 2008 Adam Aliyya Machfud wrote :
>Hi friends,
>
>Well, I never find anything wrong also when using internal ADC of AVR uC (Mega8, Tiny2313, Mega8535, and the latest, Mega128). It worked fine in control system using ADC to digitized sensor data and PWM to drive DC motor at the same time. Maybe you should check the configuration code or change your uC :)
>
>But if you insist on using external ADC, I have ever used one, but serial 12-bit, TLV2543. Great one, but a little bit complex in the code, it is up to you.
>
>Regards,
>Adam
>
>----- Original Message ----
> From: Zack Widup
>To: a...
>Sent: Monday, October 6, 2008 7:56:17 PM
>Subject: Re: [AVR club] Re: External ADC
>
> >>> Hello friends
> >>>
> >>> I'm making a line follower robot. i decide to use external ADC(my
> >>> micro controller is MEGA16). but I don't know
> >>> what the name of the chip is(8 bits external ADC)!!!
> >>> also i don't know anything about writing the program for external ADC
> >>> (i use codevision )and i don't know how it send the digital output to
> >>> micro controller. because the input of micro should be analog or
> >>> digital 0,1. for example you cant send 234 to micro controller!( am I
> >>> right?)
> >>> by the way i don't like to use op-amp or internal ADC.
> >>> Would you please help me?
> >>
> >>
> >> Use the ADC on the atmega16, it is pretty easy, way easier than
> >> using a external ADC. Although it uses GCC (WinAVR), I would suggest
> >> looking at the SRS workshop robot for an atmega16 ADC example.
> >>
> > I wanted to know the name of that chip(8 bits external ADC)
> > also i told that i don't want to use the ADC of mega16. because you
> > can't use PWM and ADC simultaneously( mega16 may hang!!!)
> > so would you help me find a good external ADC and tell me how it works?
> >I have never had any trouble with using the ADC and PWM on any AVR chip at
>the same time. In fact, it's a great way to do simple DSP of audio
>signals (FIR filters, etc).
>
>Whoever said they had problems probably didn't initialize the functions
>properly.
>
>The data sheets should show you how to initialize the correct registers.
>
>Zack
>
>
>
Sr. FAE

Excel Eltech inc.

A-76, EOK. New Delhi

110065

ph:9811675688



The 2024 Embedded Online Conference