Previous in Forum: Quark Manual   Next in Forum: Incremental Encoder
Close
Close
Close
19 comments
Rate Comments: Nested
Active Contributor

Join Date: Nov 2010
Posts: 20

Analog To Digital Converter

09/23/2011 8:31 AM

Hi friends..i'm using ADC 0808 in my project. in that i'm not getting the actual digital value for the corresponding analog input and also in digital value of 1 not sure to get output 5 volt some has 3V, 4V like that. i'm not getting that exact value of 5V.Tell me the solution for that.Pls reply me......

Register to Reply
Pathfinder Tags: ADC
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#1

Re: Analog To Digital Converter

09/23/2011 9:23 AM

There are so many things that can cause any A/D system to report the wrong value. You could be measuring the wrong node. You could have an actual failure of the chip. You may be connected to the correct node but a voltage spike at the moment of conversion dominates the measurement. You may not have an appropriate (inaccurate or wrong frequency) Nyquist anti-aliasing filter. You may not be reading the data from the A/D correctly. You may not be allowing your multiplexer enough time to settle between channel changes. You may have the math wrong and are expecting an incorrect numeric conversion. The most common math error here is forgetting to subtract one for the full scale number. An eight bit A/D has 256 states but the maximum conversion number is 255 not 256. Another common mathematics error comes when the A/D reads a bipolar analog signal. Depending on the digital conversion method (i.e. two's compliment) a variety of different calculation errors can happen. You can even have an analog error from compression, loading, amplifier offsets, and other non-linearities.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Active Contributor

Join Date: Nov 2010
Posts: 20
#5
In reply to #1

Re: Analog To Digital Converter

09/25/2011 12:42 PM

Thanks for your reply. what is the solution for all these problems?

Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#7
In reply to #5

Re: Analog To Digital Converter

09/25/2011 1:17 PM

Hire an electrical engineer or technician that knows how to measure for each of these plausible conditions and then redesigns your circuitry or software to fix which one is ailing you.

By the way, do you know why a Nyquist filtering network is required for accurate analog to digital conversion?

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#10
In reply to #7

Re: Analog To Digital Converter

09/25/2011 7:20 PM

Hi redfred,

Our OP stated in post #8 that they weren't using a microprocessor with this. Is that even possible? OK, it probably is. Maybe a better question would be: "What would it take to operate this ADC without a microprocessor?" You could probably do it with logic ICs, but with the low cost of 8-bit microprocessors now, why would you want to?

I've downloaded the datasheet, and this product prides itself on being microprocessor-compatible.

Something is very weird here.

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#11
In reply to #10

Re: Analog To Digital Converter

09/25/2011 7:47 PM

As far as operating this chip without a microprocessor, it certainly is possible, but it begs the question why one should put in the extra effort. I can see this being done with a gate array that cycles through a series of known states. Obviously this will be much less flexible than using a microprocessor and the programming of the gate array will make most wish that they had a microprocessor instead. Possibly the OP is splitting hairs and is using a microcontroller (microprocessor with embedded usable memory) instead of a stand alone microprocessor. I'm afraid from the OP reply from my earlier listing of likely errors that the OP is way beyond their grasp.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#12
In reply to #11

Re: Analog To Digital Converter

09/25/2011 8:08 PM

I'm afraid from the OP reply from my earlier listing of likely errors that the OP is way beyond their grasp.

I'm with you on that one.

Thanks for your reply.

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#8
In reply to #5

Re: Analog To Digital Converter

09/25/2011 4:47 PM

The best thing you could do is show us a graphic of the circuit.

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#2

Re: Analog To Digital Converter

09/23/2011 10:35 PM

Taking everything redfred said into account, how sure are you of your programming?

Are you sure you're addressing the AD channel of choice correctly?

Are you sure you're addressing the desired AD channel for the right amount of time at the right time?

Hardware is relatively easy (you should recheck this first), but timing is everything!

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Active Contributor

Join Date: Nov 2010
Posts: 20
#6
In reply to #2

Re: Analog To Digital Converter

09/25/2011 12:45 PM

we are not interfacing with any microcontroller

Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#9
In reply to #6

Re: Analog To Digital Converter

09/25/2011 6:49 PM

Then what are you using to tell it what to do?

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Active Contributor

Join Date: Nov 2010
Posts: 20
#14
In reply to #9

Re: Analog To Digital Converter

09/26/2011 10:49 AM

i connected the output of AD 620 Instrumentation Amplifier with the input of adc 0808

Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#15
In reply to #14

Re: Analog To Digital Converter

09/26/2011 11:35 AM

A very good instrumentation amplifier with superb common mode rejection capability. I presume that you realize that your A/D has eight inputs. I hope you've connected to the correct one. But this is not what Mikerho was asking you. If you look at the timing diagram of the A/D itself there is some very specific timing requirements for the digital signals required to get this chip to work properly. Getting these digital pulses from a microprocessor or microcontroller is relatively easy. Question #1 in this game of 20 questions is how do you generate these pulses if you don't have a microprocessor? Additionally, since this is a successive approximation A/D converter it is very important that the analog level does not change more than a LSB during the conversion time.

We would like to help you in this project but if you don't answer our questions we cannot help you.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Active Contributor

Join Date: Nov 2010
Posts: 20
#16
In reply to #15

Re: Analog To Digital Converter

09/26/2011 12:14 PM

We externally giving the clock pulse for 1KHz

Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#17
In reply to #15

Re: Analog To Digital Converter

09/27/2011 11:35 PM

I think it's hopeless.

Unless the OP shows us a schematic, I don't think we'll ever know what's really going on.

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#18
In reply to #17

Re: Analog To Digital Converter

09/28/2011 9:57 AM

Agreed. It looks like the OP has no understanding of the questions being asked, so they cannot answer them properly. Right now I doubt the the OP knows how to use an oscilloscope to verify chip timing; let alone how an A/D, designed to work with a microprocessor, can work without a microprocessor.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#19
In reply to #18

Re: Analog To Digital Converter

09/28/2011 10:59 PM

Accurate assessment, I believe. And yes, .

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Associate

Join Date: Aug 2011
Posts: 40
Good Answers: 4
#3

Re: Analog To Digital Converter

09/24/2011 2:54 AM

Here are some websites that might help you.

1.) https://forum.allaboutcircuits.com/showthread.php?t=6809

Best of luck and hope the information is helpful. Let us know if you get it working correctly.

BEN

Register to Reply
Guru
Hobbies - Musician - Engineering Fields - Chemical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Instrumentation Engineering - New Member

Join Date: Jan 2007
Location: Moses Lake, WA, USA, Thulcandra - The Silent Planet (C.S. Lewis)
Posts: 4216
Good Answers: 194
#4
In reply to #3

Re: Analog To Digital Converter

09/24/2011 3:02 AM

I see that you are new here. Welcome to CR4!

__________________
"Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." - Ayn Rand
Register to Reply
Associate

Join Date: Aug 2011
Posts: 40
Good Answers: 4
#13

Re: Analog To Digital Converter

09/25/2011 8:35 PM

Hi One & All,

If you post the drawing on your circuit with the ADC 0808 in it. I may be able to help you.

BEN

Register to Reply
Register to Reply 19 comments
Copy to Clipboard

Users who posted comments:

ben1son1 (2); Mikerho (8); pmani0812 (4); redfred (5)

Previous in Forum: Quark Manual   Next in Forum: Incremental Encoder

Advertisement