Author Topic: Simplest Analog to Digital Converter  (Read 12682 times)

0 Members and 1 Guest are viewing this topic.

Offline PauloConstantinoTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 154
  • Country: gb
Simplest Analog to Digital Converter
« on: July 06, 2017, 08:00:10 am »
Howdy pirates,

What would be the simplest analog to digital converter you can think of with say 8bit resolution ? I'm talking about an actual circuit rather than an IC.


Best response gets a cookie.  :-+
« Last Edit: July 06, 2017, 08:18:23 am by PauloConstantino »
 

Offline daqq

  • Super Contributor
  • ***
  • Posts: 2302
  • Country: sk
    • My site
Re: Simplest Analog to Digital Converter
« Reply #1 on: July 06, 2017, 08:02:12 am »
If you are OK with a one bit resolution then you can go for a comparator that compares against VREF/2.

The simplest ADC with a reasonable resolution would be this: http://www.atmel.com/images/doc0942.pdf
Believe it or not, pointy haired people do exist!
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
 
The following users thanked this post: tablatronix

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Simplest Analog to Digital Converter
« Reply #2 on: July 06, 2017, 08:27:47 am »
If you are OK with a one bit resolution then you can go for a comparator that compares against VREF/2.
And if you make VREF a triangle wave, you have PWM which is very easy to digitise.
 

Offline daqq

  • Super Contributor
  • ***
  • Posts: 2302
  • Country: sk
    • My site
Re: Simplest Analog to Digital Converter
« Reply #3 on: July 06, 2017, 08:56:59 am »
You can build a discrete comparator. Also, the second was to demonstrate a principle rather than the actual implementation. Also, the original wording of the post was different.
Believe it or not, pointy haired people do exist!
+++Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
 

Offline PauloConstantinoTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 154
  • Country: gb
Re: Simplest Analog to Digital Converter
« Reply #4 on: July 06, 2017, 09:10:40 am »
You can build a discrete comparator. Also, the second was to demonstrate a principle rather than the actual implementation. Also, the original wording of the post was different.

hehee I changed it after you pointed out the 1bit adc. At least 8bits and made of discrete components  ........
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16647
  • Country: 00
Re: Simplest Analog to Digital Converter
« Reply #5 on: July 06, 2017, 09:11:18 am »
What would be the simplest analog to digital converter you can think of with say 8bit resolution ? I'm talking about an actual circuit rather than an IC.

Create a circuit that charges a capacitor and compares the capacitor voltage against the incoming voltage. Run a binary counter in parallel and stop the counter when the capacitor voltage passes the incoming voltage.
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12297
  • Country: au
Re: Simplest Analog to Digital Converter
« Reply #6 on: July 06, 2017, 09:58:24 am »
8 bit analogue to digital converter.



Just see what bit the needle is pointing to....

;D
« Last Edit: July 06, 2017, 10:00:05 am by Brumby »
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Simplest Analog to Digital Converter
« Reply #7 on: July 06, 2017, 10:00:36 am »
256 high precision resistors and 256 comparators :D

Maybe you could build an integrating ADC?
I also like the PWM idea
 

Offline coppice

  • Super Contributor
  • ***
  • Posts: 8642
  • Country: gb
Re: Simplest Analog to Digital Converter
« Reply #8 on: July 06, 2017, 10:05:33 am »
If you want to look for the inherently simplest solution, its usually worth looking at the earliest ones. For purely electronic converters I guess that would be the slope converters used in early digital meters.
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Simplest Analog to Digital Converter
« Reply #9 on: July 06, 2017, 10:13:48 am »
If its a peripheral to a processor, you can use a 1 IO slope ADC, you have an RC filter hooked up to an IO pin, you set the pin to output low to reset it, set to input with a pull up and time how long it takes to register high, for an open input it will take as long as the weak pullup allows, if the input signal is to ground it will take a little longer, and if its connected to a positive voltage it will take a little shorter.

The resolution of such a device is limited only by your timing resolution e.g. clock speed vs sample rate.


If you want semi automatic, then a Comparitor + clock divider with outputs used as R2R dac + latch, the clock divider counts up the R2R dac in binary steps, when the comparitor changes state it latches the reading. it then reaches the end, loops around and converts the voltage for the next run. 
 

Offline Aodhan145

  • Frequent Contributor
  • **
  • Posts: 403
  • Country: 00
Re: Simplest Analog to Digital Converter
« Reply #10 on: July 06, 2017, 10:26:11 am »
If you want semi automatic, then a Comparitor + clock divider with outputs used as R2R dac + latch, the clock divider counts up the R2R dac in binary steps, when the comparitor changes state it latches the reading. it then reaches the end, loops around and converts the voltage for the next run.

That's what I thought would have been the obvious solution. Too many people attempt to baffle on these forums. This is very feasible and not that complex. It's just a basic SAR ADC.

https://en.wikipedia.org/wiki/Successive_approximation_ADC

This should be enough information to get you started.
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7732
  • Country: ca
Re: Simplest Analog to Digital Converter
« Reply #11 on: July 06, 2017, 10:31:00 am »
Unfortunately, though the above solutions have a comparator somewhere in them, they all still have ICs, though not a specific ADC component.  Way back, I use to used a precision voltage to frequency converter from BurrBrown, then had a latched counter which was loaded and reset at a fixed interval producing an ADC to any number of bits depending on the load/reset interval time.  The BurrBrown part, I believe they coined it a VFC, not the normal VCO, went from 0.001Mhz to 4Mhz, with an input from 0v to 10v.

Excellent results given the slow source signal of a load cell.  Wow, they still make it... It's over 27 years old.
https://www.digikey.com/product-detail/en/texas-instruments/VFC110AP/VFC110AP-ND/251222
« Last Edit: July 06, 2017, 10:38:24 am by BrianHG »
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Simplest Analog to Digital Converter
« Reply #12 on: July 06, 2017, 10:32:12 am »
http://tinyurl.com/y8mldodq

A 8 bit SAR ADC build in falstads simulator for you to have a play with.

Full link incase it breaks later on.

Code: [Select]
http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+10.20027730826997+64+5+50%0Ar+-64+0+-64+-64+0+100000%0Ar+-16+0+-16+-64+0+100000%0Ar+32+0+32+-64+0+100000%0Ar+-64+-64+-16+-64+0+50000%0Ar+-16+-64+32+-64+0+50000%0Ar+-160+-64+-112+-64+0+100000%0Aw+432+-64+432+-16+0%0AO+432+-64+496+-64+1%0Ar+-64+-64+-112+-64+0+50000%0Ar+-112+-64+-112+0+0+100000%0Ar+32+-64+80+-64+0+50000%0Ar+80+-64+128+-64+0+50000%0Ar+128+-64+176+-64+0+50000%0Ar+80+0+80+-64+0+100000%0Ar+128+0+128+-64+0+100000%0Ar+176+0+176+-64+0+100000%0Ar+224+0+224+-64+0+100000%0Ar+176+-64+224+-64+0+50000%0Aw+320+-64+224+-64+0%0A164+240+64+384+64+1024+4+0+0+0+5+false%0A164+240+224+384+224+1024+4+0+5+5+0+false%0Aw+240+224+240+192+0%0Aw+240+192+368+192+0%0Aw+368+192+368+64+0%0Aw+368+64+336+64+0%0Aw+240+64+224+64+0%0Aw+224+64+224+0+0%0Aw+240+96+176+96+0%0Aw+176+96+176+0+0%0Aw+240+128+128+128+0%0Aw+128+128+128+0+0%0Aw+240+160+80+160+0%0Aw+80+160+80+0+0%0Aw+240+224+32+224+0%0Aw+32+224+32+0+0%0Aw+240+256+-16+256+0%0Aw+-16+256+-16+0+0%0Aw+-64+0+-64+288+0%0Aw+-64+288+240+288+0%0Aw+-112+0+-112+320+0%0Aw+-112+320+240+320+0%0Aa+640+0+720+0+1+5+0+1000000+4.98624995111725+0.4296874999999993%0AR+640+16+576+16+0+1+5+2.5+2.5+0+0.5%0Aw+640+-16+432+-16+0%0AM+720+0+784+0+0+2.5%0A168+-256+224+-192+224+1024+4%0A168+-256+64+-208+64+1024+4%0Aw+-112+320+-160+320+0%0Aw+-64+288+-160+288+0%0Aw+-16+256+-160+256+0%0Aw+32+224+-160+224+0%0Aw+80+160+-160+160+0%0Aw+128+128+-160+128+0%0Aw+176+96+-160+96+0%0Aw+224+64+-160+64+0%0Aw+-160+192+-128+192+0%0Aw+-128+192+-128+352+0%0Aw+-160+352+-128+352+0%0Aw+-128+352+720+352+0%0Aw+720+352+720+0+0%0AM+-256+64+-288+64+0+2.5%0AM+-256+96+-288+96+0+2.5%0AM+-256+128+-288+128+0+2.5%0AM+-256+160+-288+160+0+2.5%0AM+-256+224+-288+224+0+2.5%0AM+-256+256+-288+256+0+2.5%0AM+-256+288+-288+288+0+2.5%0AM+-256+320+-288+320+0+2.5%0AR+336+224+448+224+1+2+10000+2.5+2.5+0+0.5%0Aw+320+-64+432+-64+0%0Ag+-160+-64+-192+-64+0%0Ax+474+233+591+236+4+24+ADC%5CsClock%0Ao+42+64+0+4099+5+0.00009765625+0+2+42+3%0Ao+60+64+0+4098+5+0.1+1+1%0Ao+61+64+0+4098+5+0.1+1+1%0Ao+62+64+0+4098+5+0.1+1+1%0Ao+63+64+0+4098+5+0.1+1+1%0Ao+64+64+0+4098+5+0.1+1+1%0Ao+65+64+0+4098+5+0.1+1+1%0Ao+66+64+0+4098+5+0.1+1+1%0Ao+67+64+0+4098+5+0.1+1+1%0A
 
The following users thanked this post: Aodhan145

Offline coppice

  • Super Contributor
  • ***
  • Posts: 8642
  • Country: gb
Re: Simplest Analog to Digital Converter
« Reply #13 on: July 06, 2017, 10:49:25 am »
Unfortunately, though the above solutions have a comparator somewhere in them, they all still have ICs, though not a specific ADC component.  Way back, I use to used a precision voltage to frequency converter from BurrBrown, then had a latched counter which was loaded and reset at a fixed interval producing an ADC to any number of bits depending on the load/reset interval time.  The BurrBrown part, I believe they coined it a VFC, not the normal VCO, went from 0.001Mhz to 4Mhz, with an input from 0v to 10v.

Excellent results given the slow source signal of a load cell.  Wow, they still make it... It's over 27 years old.
https://www.digikey.com/product-detail/en/texas-instruments/VFC110AP/VFC110AP-ND/251222
So your response to the use of comparators and ICs is a suggestion to use an IC with comparators in it? The chip you describe is basically just another integrating converter.
 
The following users thanked this post: Aodhan145

Offline Aodhan145

  • Frequent Contributor
  • **
  • Posts: 403
  • Country: 00
Re: Simplest Analog to Digital Converter
« Reply #14 on: July 06, 2017, 11:25:53 am »
Unfortunately, though the above solutions have a comparator somewhere in them, they all still have ICs, though not a specific ADC component.  Way back, I use to used a precision voltage to frequency converter from BurrBrown, then had a latched counter which was loaded and reset at a fixed interval producing an ADC to any number of bits depending on the load/reset interval time.  The BurrBrown part, I believe they coined it a VFC, not the normal VCO, went from 0.001Mhz to 4Mhz, with an input from 0v to 10v.

Excellent results given the slow source signal of a load cell.  Wow, they still make it... It's over 27 years old.
https://www.digikey.com/product-detail/en/texas-instruments/VFC110AP/VFC110AP-ND/251222

He can make a comparator with transistors the results won't be great but it will work. He can make a counter with transistors, these are all just abstracted solutions that can be implemented at the lower levels just intended to simplify the direction he needs to go in. There is well over enough to start with here. He should first understand how the ADCs operate before he tries to build one from transistors. Then he can learn how counters work and comparators. 
 

Offline Aodhan145

  • Frequent Contributor
  • **
  • Posts: 403
  • Country: 00
Re: Simplest Analog to Digital Converter
« Reply #15 on: July 06, 2017, 11:27:32 am »
http://tinyurl.com/y8mldodq

A 8 bit SAR ADC build in falstads simulator for you to have a play with.

Full link incase it breaks later on.

Code: [Select]
http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+10.20027730826997+64+5+50%0Ar+-64+0+-64+-64+0+100000%0Ar+-16+0+-16+-64+0+100000%0Ar+32+0+32+-64+0+100000%0Ar+-64+-64+-16+-64+0+50000%0Ar+-16+-64+32+-64+0+50000%0Ar+-160+-64+-112+-64+0+100000%0Aw+432+-64+432+-16+0%0AO+432+-64+496+-64+1%0Ar+-64+-64+-112+-64+0+50000%0Ar+-112+-64+-112+0+0+100000%0Ar+32+-64+80+-64+0+50000%0Ar+80+-64+128+-64+0+50000%0Ar+128+-64+176+-64+0+50000%0Ar+80+0+80+-64+0+100000%0Ar+128+0+128+-64+0+100000%0Ar+176+0+176+-64+0+100000%0Ar+224+0+224+-64+0+100000%0Ar+176+-64+224+-64+0+50000%0Aw+320+-64+224+-64+0%0A164+240+64+384+64+1024+4+0+0+0+5+false%0A164+240+224+384+224+1024+4+0+5+5+0+false%0Aw+240+224+240+192+0%0Aw+240+192+368+192+0%0Aw+368+192+368+64+0%0Aw+368+64+336+64+0%0Aw+240+64+224+64+0%0Aw+224+64+224+0+0%0Aw+240+96+176+96+0%0Aw+176+96+176+0+0%0Aw+240+128+128+128+0%0Aw+128+128+128+0+0%0Aw+240+160+80+160+0%0Aw+80+160+80+0+0%0Aw+240+224+32+224+0%0Aw+32+224+32+0+0%0Aw+240+256+-16+256+0%0Aw+-16+256+-16+0+0%0Aw+-64+0+-64+288+0%0Aw+-64+288+240+288+0%0Aw+-112+0+-112+320+0%0Aw+-112+320+240+320+0%0Aa+640+0+720+0+1+5+0+1000000+4.98624995111725+0.4296874999999993%0AR+640+16+576+16+0+1+5+2.5+2.5+0+0.5%0Aw+640+-16+432+-16+0%0AM+720+0+784+0+0+2.5%0A168+-256+224+-192+224+1024+4%0A168+-256+64+-208+64+1024+4%0Aw+-112+320+-160+320+0%0Aw+-64+288+-160+288+0%0Aw+-16+256+-160+256+0%0Aw+32+224+-160+224+0%0Aw+80+160+-160+160+0%0Aw+128+128+-160+128+0%0Aw+176+96+-160+96+0%0Aw+224+64+-160+64+0%0Aw+-160+192+-128+192+0%0Aw+-128+192+-128+352+0%0Aw+-160+352+-128+352+0%0Aw+-128+352+720+352+0%0Aw+720+352+720+0+0%0AM+-256+64+-288+64+0+2.5%0AM+-256+96+-288+96+0+2.5%0AM+-256+128+-288+128+0+2.5%0AM+-256+160+-288+160+0+2.5%0AM+-256+224+-288+224+0+2.5%0AM+-256+256+-288+256+0+2.5%0AM+-256+288+-288+288+0+2.5%0AM+-256+320+-288+320+0+2.5%0AR+336+224+448+224+1+2+10000+2.5+2.5+0+0.5%0Aw+320+-64+432+-64+0%0Ag+-160+-64+-192+-64+0%0Ax+474+233+591+236+4+24+ADC%5CsClock%0Ao+42+64+0+4099+5+0.00009765625+0+2+42+3%0Ao+60+64+0+4098+5+0.1+1+1%0Ao+61+64+0+4098+5+0.1+1+1%0Ao+62+64+0+4098+5+0.1+1+1%0Ao+63+64+0+4098+5+0.1+1+1%0Ao+64+64+0+4098+5+0.1+1+1%0Ao+65+64+0+4098+5+0.1+1+1%0Ao+66+64+0+4098+5+0.1+1+1%0Ao+67+64+0+4098+5+0.1+1+1%0A

+1 this is very neat
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7732
  • Country: ca
Re: Simplest Analog to Digital Converter
« Reply #16 on: July 06, 2017, 11:36:06 am »
He can try 256 NPN transistors, each sitting on-top of each other, with a signal feeding all the bases with a nice 1meg resistor, going over 100v to turn them all on.  Then level shift each collector output down to a logic output level, and convert the individual 256 outputs to a digital binary 8 bit code.

(Ok, I realize this is nuts... but for 4 bit, 16 levels, this might work, no comparator, no clock, no counter...)
« Last Edit: July 06, 2017, 11:38:13 am by BrianHG »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Simplest Analog to Digital Converter
« Reply #17 on: July 06, 2017, 12:20:38 pm »
He can try 256 NPN transistors, each sitting on-top of each other, with a signal feeding all the bases with a nice 1meg resistor, going over 100v to turn them all on.  Then level shift each collector output down to a logic output level, and convert the individual 256 outputs to a digital binary 8 bit code.

(Ok, I realize this is nuts... but for 4 bit, 16 levels, this might work, no comparator, no clock, no counter...)
A very basic comparator can be built with one transistor. In the circuit you've described, the transistors are acting as comparators.
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Simplest Analog to Digital Converter
« Reply #18 on: July 06, 2017, 12:25:04 pm »
Simplest  and working ADC with a rather high precision and linearity but low sample rate is a dual slope integrating ADC.

Can be made from  jellybean parts very easily. Just an opamp, coparator and analog mux, together controlled by an MCU. Single timer with interrupt capability is required.  16bit resolution can be achieved easily, with not that much effort.


But taking the "simplest" seriously, then the a comparator alone is the simpliest ADC of all times.
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Simplest Analog to Digital Converter
« Reply #19 on: July 06, 2017, 01:30:07 pm »
This might help -


http://www.ti.com/lit/an/snoa627/snoa627.pdf


And attached.


Regards, Dana.
« Last Edit: August 14, 2017, 10:23:02 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • 0999
Re: Simplest Analog to Digital Converter
« Reply #20 on: July 06, 2017, 02:35:15 pm »
file:///C:/Users/Dana/Documents/1%20Cypress/Ap%20Notes/A%20to%20D/SimpleSigmaDeltaADCDocumentation.pdf
You forgot to upload it to the Internet.
 

Offline MK14

  • Super Contributor
  • ***
  • Posts: 4535
  • Country: gb
Re: Simplest Analog to Digital Converter
« Reply #21 on: July 06, 2017, 02:43:22 pm »
file:///C:/Users/Dana/Documents/1%20Cypress/Ap%20Notes/A%20to%20D/SimpleSigmaDeltaADCDocumentation.pdf
You forgot to upload it to the Internet.

Probably this:
http://www.latticesemi.com/~/media/LatticeSemi/Documents/ReferenceDesigns/SZ/SimpleSigmaDeltaADCDocumentation.pdf?document_id=35762
 
The following users thanked this post: Zero999

Offline C

  • Super Contributor
  • ***
  • Posts: 1346
  • Country: us
Re: Simplest Analog to Digital Converter
« Reply #22 on: July 06, 2017, 03:07:55 pm »
Unfortunately, though the above solutions have a comparator somewhere in them, they all still have ICs, though not a specific ADC component.  Way back, I use to used a precision voltage to frequency converter from BurrBrown, then had a latched counter which was loaded and reset at a fixed interval producing an ADC to any number of bits depending on the load/reset interval time.  The BurrBrown part, I believe they coined it a VFC, not the normal VCO, went from 0.001Mhz to 4Mhz, with an input from 0v to 10v.

Excellent results given the slow source signal of a load cell.  Wow, they still make it... It's over 27 years old.
https://www.digikey.com/product-detail/en/texas-instruments/VFC110AP/VFC110AP-ND/251222

Use to do something like this
Temp sensor with the circuit apx. sensed temp.
Convert temp to freq.
Send through 20,000 feet of cable
Use calibration program to correct for all changes.
Was a temp sensor that started around 0C with upper range above 200C



U
 

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2254
  • Country: ca
Re: Simplest Analog to Digital Converter
« Reply #23 on: July 06, 2017, 04:44:04 pm »
I have a few power Wayne Kerr supplies whose front panel display board implements a ADC using one op-amp, one comparator, and one CMOS analog switch IC, plus a voltage reference. The basic 8051 CPU controls the analog switch and looks at the comparator output. Very simple. It achieves 12 bit resolution (>3500 counts) at maybe 10 samples per second. It's a basic dual slope design: switches either the voltage or current signal to integrate into a capacitor for a fixed period, then switches to the opposite polarity voltage reference and measures de-integration time.
 

Offline PauloConstantinoTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 154
  • Country: gb
Re: Simplest Analog to Digital Converter
« Reply #24 on: July 06, 2017, 08:58:22 pm »
What would be the simplest analog to digital converter you can think of with say 8bit resolution ? I'm talking about an actual circuit rather than an IC.

Create a circuit that charges a capacitor and compares the capacitor voltage against the incoming voltage. Run a binary counter in parallel and stop the counter when the capacitor voltage passes the incoming voltage.

Very good :-//
 

Offline PauloConstantinoTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 154
  • Country: gb
Re: Simplest Analog to Digital Converter
« Reply #25 on: July 06, 2017, 09:01:51 pm »
http://tinyurl.com/y8mldodq

A 8 bit SAR ADC build in falstads simulator for you to have a play with.

Full link incase it breaks later on.

Code: [Select]
http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+10.20027730826997+64+5+50%0Ar+-64+0+-64+-64+0+100000%0Ar+-16+0+-16+-64+0+100000%0Ar+32+0+32+-64+0+100000%0Ar+-64+-64+-16+-64+0+50000%0Ar+-16+-64+32+-64+0+50000%0Ar+-160+-64+-112+-64+0+100000%0Aw+432+-64+432+-16+0%0AO+432+-64+496+-64+1%0Ar+-64+-64+-112+-64+0+50000%0Ar+-112+-64+-112+0+0+100000%0Ar+32+-64+80+-64+0+50000%0Ar+80+-64+128+-64+0+50000%0Ar+128+-64+176+-64+0+50000%0Ar+80+0+80+-64+0+100000%0Ar+128+0+128+-64+0+100000%0Ar+176+0+176+-64+0+100000%0Ar+224+0+224+-64+0+100000%0Ar+176+-64+224+-64+0+50000%0Aw+320+-64+224+-64+0%0A164+240+64+384+64+1024+4+0+0+0+5+false%0A164+240+224+384+224+1024+4+0+5+5+0+false%0Aw+240+224+240+192+0%0Aw+240+192+368+192+0%0Aw+368+192+368+64+0%0Aw+368+64+336+64+0%0Aw+240+64+224+64+0%0Aw+224+64+224+0+0%0Aw+240+96+176+96+0%0Aw+176+96+176+0+0%0Aw+240+128+128+128+0%0Aw+128+128+128+0+0%0Aw+240+160+80+160+0%0Aw+80+160+80+0+0%0Aw+240+224+32+224+0%0Aw+32+224+32+0+0%0Aw+240+256+-16+256+0%0Aw+-16+256+-16+0+0%0Aw+-64+0+-64+288+0%0Aw+-64+288+240+288+0%0Aw+-112+0+-112+320+0%0Aw+-112+320+240+320+0%0Aa+640+0+720+0+1+5+0+1000000+4.98624995111725+0.4296874999999993%0AR+640+16+576+16+0+1+5+2.5+2.5+0+0.5%0Aw+640+-16+432+-16+0%0AM+720+0+784+0+0+2.5%0A168+-256+224+-192+224+1024+4%0A168+-256+64+-208+64+1024+4%0Aw+-112+320+-160+320+0%0Aw+-64+288+-160+288+0%0Aw+-16+256+-160+256+0%0Aw+32+224+-160+224+0%0Aw+80+160+-160+160+0%0Aw+128+128+-160+128+0%0Aw+176+96+-160+96+0%0Aw+224+64+-160+64+0%0Aw+-160+192+-128+192+0%0Aw+-128+192+-128+352+0%0Aw+-160+352+-128+352+0%0Aw+-128+352+720+352+0%0Aw+720+352+720+0+0%0AM+-256+64+-288+64+0+2.5%0AM+-256+96+-288+96+0+2.5%0AM+-256+128+-288+128+0+2.5%0AM+-256+160+-288+160+0+2.5%0AM+-256+224+-288+224+0+2.5%0AM+-256+256+-288+256+0+2.5%0AM+-256+288+-288+288+0+2.5%0AM+-256+320+-288+320+0+2.5%0AR+336+224+448+224+1+2+10000+2.5+2.5+0+0.5%0Aw+320+-64+432+-64+0%0Ag+-160+-64+-192+-64+0%0Ax+474+233+591+236+4+24+ADC%5CsClock%0Ao+42+64+0+4099+5+0.00009765625+0+2+42+3%0Ao+60+64+0+4098+5+0.1+1+1%0Ao+61+64+0+4098+5+0.1+1+1%0Ao+62+64+0+4098+5+0.1+1+1%0Ao+63+64+0+4098+5+0.1+1+1%0Ao+64+64+0+4098+5+0.1+1+1%0Ao+65+64+0+4098+5+0.1+1+1%0Ao+66+64+0+4098+5+0.1+1+1%0Ao+67+64+0+4098+5+0.1+1+1%0A

+1 this is very neat



Yay I thought I was the only one using falstad  :-//
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Simplest Analog to Digital Converter
« Reply #26 on: August 13, 2017, 09:47:26 am »
I have a few power Wayne Kerr supplies whose front panel display board implements a ADC using one op-amp, one comparator, and one CMOS analog switch IC, plus a voltage reference. The basic 8051 CPU controls the analog switch and looks at the comparator output. Very simple. It achieves 12 bit resolution (>3500 counts) at maybe 10 samples per second. It's a basic dual slope design: switches either the voltage or current signal to integrate into a capacitor for a fixed period, then switches to the opposite polarity voltage reference and measures de-integration time.

I have offered a dual slope integrating ADC on the previous page already, but everyone seems to ignore it. It is I think the best bang for a buck ADC type. Simple design can achieve like 20 000 count accuracy and 60 000 count resolution without a blimpse.
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Simplest Analog to Digital Converter
« Reply #27 on: August 13, 2017, 09:52:09 am »
Little bit of necro posting, but i believe it was overlooked because you gave no reference to how to implement it other than saying it could be done with jellybean parts
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Simplest Analog to Digital Converter
« Reply #28 on: August 13, 2017, 10:03:12 am »
That is quite obvious, if you know how the dualslope integration works.  Just google it.

You integrate unknown voltage for an exactly known amount of time and then "unintegrate" it down to zero voltage using a voltage reference, but measure the time how long it took.
The measured voltage is then Ux = Uref * T2/T1  where the T1 is the exactly known time (usually selected as an integer multiple of mains period to suppress noise) and T2 being the measured time.

Simple timer and external ISR,  opamp integrator, comparator and a CMOS switch like 4052 is needed. CMOS switch will select what will be put onto the integrators input: Ux, -Uref or COMP_OUT (feedback, that is when you do not need to measure).

There is a ton of possibilities to improve this simple dualslope ADC.
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 16614
  • Country: us
  • DavidH
Re: Simplest Analog to Digital Converter
« Reply #29 on: August 13, 2017, 07:51:15 pm »
If the simple ADC requires a whole microcontroller state machine to operate it, then the microcontroller needs to be included in the complexity.  Today though there is a lot to be said for using a cheap microcontroller with its built in 8 or better ADC as a programmable ADC.

For the simplest ADC, I would go with a voltage or current to frequency converter of which there are several configurations.  This is especially the case where a digital output in the form of a frequency is acceptable so no counter is required.  They can be built with a single operational amplifier and no logic to easily achieve better than 8 bits of resolution.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 19493
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Simplest Analog to Digital Converter
« Reply #30 on: August 13, 2017, 08:23:16 pm »
The simplest one is the one we had to use at school during physics A-levels, for measurements where the 2% of a moving-coil meter is insufficient.

This ADC give 0.1% accuracy and resolution. It consisted of:
  • an ~2V NiFe cell
  • a Weston standard cell
  • a metre rule with 1mm divisions
  • 1m of resistance wire
  • a sensitive moving coil meter used to measure the null-point

Put the NiFe cell across the 1m of resistance wire alongside the 1m rule.
Use the Weston cell and null meter to find the point along the resistance wire corresponding to 1.018V. From that calculate the NiFe cell voltage.
Find the null-point along the resistance wire corresponding to the unknown voltage.
Do the obvious arithmetic to determine the unknown voltage.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Simplest Analog to Digital Converter
« Reply #31 on: August 13, 2017, 09:26:50 pm »
If the simple ADC requires a whole microcontroller state machine to operate it, then the microcontroller needs to be included in the complexity.  Today though there is a lot to be said for using a cheap microcontroller with its built in 8 or better ADC as a programmable ADC.

For the simplest ADC, I would go with a voltage or current to frequency converter of which there are several configurations.  This is especially the case where a digital output in the form of a frequency is acceptable so no counter is required.  They can be built with a single operational amplifier and no logic to easily achieve better than 8 bits of resolution.

And  for a V to f converter, you will need what to display the value? Another MCU, huh? Single opamp V to f with "easily 8bit or more", strongly doubt it, no offense intended.
//EDIT: Maybe 8bit resolution, fine, but the linearity will suck!

A simple counter is what you need to operate the integrating ADC.  The state machine in the simpliest version (with continuous intgration) has just two states: Integrating Ux or Integrating -Uref. You do not need an MCU for that, do you?  :)

What do you think is in the good old 7106? Just a three state FSM of FB/zero, Ux and -Uref and a decadic counter.
« Last Edit: August 13, 2017, 09:33:34 pm by Yansi »
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 16614
  • Country: us
  • DavidH
Re: Simplest Analog to Digital Converter
« Reply #32 on: August 13, 2017, 11:29:29 pm »
If the simple ADC requires a whole microcontroller state machine to operate it, then the microcontroller needs to be included in the complexity.  Today though there is a lot to be said for using a cheap microcontroller with its built in 8 or better ADC as a programmable ADC.

For the simplest ADC, I would go with a voltage or current to frequency converter of which there are several configurations.  This is especially the case where a digital output in the form of a frequency is acceptable so no counter is required.  They can be built with a single operational amplifier and no logic to easily achieve better than 8 bits of resolution.

And  for a V to f converter, you will need what to display the value? Another MCU, huh? Single opamp V to f with "easily 8bit or more", strongly doubt it, no offense intended.
//EDIT: Maybe 8bit resolution, fine, but the linearity will suck!

The original question did not include anything about a display.

VtoF resolution is usually specified in terms of linearity.  Simple single operational amplifier VtoF converters are easily 10 bits or better.  Drift and PSRR can be challenging.

Quote
A simple counter is what you need to operate the integrating ADC.  The state machine in the simpliest version (with continuous intgration) has just two states: Integrating Ux or Integrating -Uref. You do not need an MCU for that, do you?  :)

Even with provisions for a display, a VtoF converter is simpler.  See below.

Quote
What do you think is in the good old 7106? Just a three state FSM of FB/zero, Ux and -Uref and a decadic counter.

And a pile of CMOS analog switches, and a state machine to control them, etc.  If we just want the most integrated converter then the criteria are much different.

I am very familiar with the 7106 and its ancestors.  We always had trouble with dielectric absorption in the integrating capacitor limiting linearity such that the capacitors had to be qualified.  Oddly enough, the 7106 was also sensitive to clock jitter.  I might have liked the LD120/LD121A and LD111A/LD110 which should have suffered less from dielectric absorption but never got to use them.

Remove anything in common and compare what is left over to the schematic of an ancient and admittedly terrible but still 10 bit linear VtoF converter shown below.  Add a counter and timebase for a parallel digital output or display.  Implement the operational amplifier with discrete transistors and it becomes a completely discrete design.

An even simpler VtoF converter using a single operational amplifier to drive an LTC1043 CMOS charge pump can achieve 0.005% linearity for 20,000 counts.  Temperature drift then becomes the chief error.  A more complicated version using two chopper stabilized amplifiers an some clocking logic achieves 0.001% linearity and 100,000 counts by correcting residual charge injection.
 

Offline Ash

  • Regular Contributor
  • *
  • Posts: 161
  • Country: au
Re: Simplest Analog to Digital Converter
« Reply #33 on: August 14, 2017, 12:17:41 am »
Well, the simplest ADC I've ever made was 2 resistors, a capacitor and 2 digital IO pins on a micro..

R1 is the input resistor to Cap. Cap goes to ground. R2 is from output pin to Cap. other pin is an input also connected to the cap.

You then build a simple converter in software.. Been a while, but basically sample regularly (timer interrupt?). If the input is high, drive the output low, if the input is low drive the output high. You count the number of times the pin is high.. Do this enough times and you can output a value. You are basically charge balancing the cap at the logic level threshold of the input pin. Don't expect super accuracy and that drifts and probably has hysteresis.

You can scale the R1/R2 ratio to support wide voltage input ranges.. Some messing around needed to tune the sampling rate etc. :)

I used this to measure a bunch of pots with an old 8 bit PIC with no ADC.. a long time ago now though.

EDIT: might be that you count the number of times the input is low.. one will get you an "inverse" reading..

Ash.
« Last Edit: August 14, 2017, 12:19:30 am by Ash »
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 16614
  • Country: us
  • DavidH
Re: Simplest Analog to Digital Converter
« Reply #34 on: August 14, 2017, 03:34:47 pm »
Well, the simplest ADC I've ever made was 2 resistors, a capacitor and 2 digital IO pins on a micro..

R1 is the input resistor to Cap. Cap goes to ground. R2 is from output pin to Cap. other pin is an input also connected to the cap.

You then build a simple converter in software.. Been a while, but basically sample regularly (timer interrupt?). If the input is high, drive the output low, if the input is low drive the output high. You count the number of times the pin is high.. Do this enough times and you can output a value. You are basically charge balancing the cap at the logic level threshold of the input pin. Don't expect super accuracy and that drifts and probably has hysteresis.

For the equivalent performance, the discrete version of a ramp converter is more complex than a VtoF converter so they were not commonly used except in the types of application you discussed where very low performance is acceptable.

Below is an example of what is required for a 10 bit self timed ramp converter.  The schematic is mismarked and the ramp capacitor is actually suppose to be 1000 picofarads.  Note the clever method used to achieve 10 bit accuracy with the 2N2222 operating in inverted mode to provide a low saturation reset of the integration capacitor.

An 8 bit implementation still requires the comparator instead of a gate input but the reset circuit can be simplified.  I am not sure if a resistor instead of the current source can be used at 8 bits; I suspect not since a reference is still needed.

Quote
I used this to measure a bunch of pots with an old 8 bit PIC with no ADC.. a long time ago now though.

The Apple ][ used this method for its analog controller inputs.  The Atari 2600 did as well for its paddle controllers.  Common potentiometers do not have even 8 bits of accuracy so ramp converters suit them just fine.
 

Offline schmitt trigger

  • Super Contributor
  • ***
  • Posts: 2222
  • Country: mx
Re: Simplest Analog to Digital Converter
« Reply #35 on: August 14, 2017, 04:01:56 pm »


Excellent results given the slow source signal of a load cell.  Wow, they still make it... It's over 27 years old.
https://www.digikey.com/product-detail/en/texas-instruments/VFC110AP/VFC110AP-ND/251222

Burr Brown products were so thoroughly engineered and offered such high performance, that they have stood the test of time very well.
Even nowadays, they are still viable components for high performance circuits.

Speaking of A/D converters, the late Bob Pease which designed National's LM331 VCO, mentioned in one of his many magazine articles that some of the earliest customers were Japanese shipbuilders, which used them to send telemetry from deep inside the ship's bowels to the bridge.
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Simplest Analog to Digital Converter
« Reply #36 on: August 14, 2017, 10:25:34 pm »
Some more simple variations -


http://www.ti.com/lit/an/snoa627/snoa627.pdf



Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Simplest Analog to Digital Converter
« Reply #37 on: August 15, 2017, 11:13:00 am »
I am very familiar with the 7106 and its ancestors.  We always had trouble with dielectric absorption in the integrating capacitor limiting linearity such that the capacitors had to be qualified.  Oddly enough, the 7106 was also sensitive to clock jitter.  I might have liked the LD120/LD121A and LD111A/LD110 which should have suffered less from dielectric absorption but never got to use them.

I have actually built some prototypes of the dualslope ADC few years ago. Used some older MKT axial cap for the integrator and at 20 000 counts I couldn't tell any linearity problems, compared to a HP34401 instrument, that I took as a reference. The conversion results vere bang on what the 34401 showed, just +-1LSB different. I still have the measurement comparison table, for the whole range of 0 to 2.24V (it was 22400 counts top it appears) stepped by a approx. 20mV, that was measured on the breadboard prototype.
Actually, the internal count number was up to full 16 bits, then calibrated and scaled to volts display, with the nominal range of 0 to 2V, 0.1mV resolution.
« Last Edit: August 15, 2017, 01:24:46 pm by Yansi »
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3238
  • Country: gb
Re: Simplest Analog to Digital Converter
« Reply #38 on: August 15, 2017, 11:57:28 am »
Well, the simplest ADC I've ever made was 2 resistors, a capacitor and 2 digital IO pins on a micro..

R1 is the input resistor to Cap. Cap goes to ground. R2 is from output pin to Cap. other pin is an input also connected to the cap.

You then build a simple converter in software.. Been a while, but basically sample regularly (timer interrupt?). If the input is high, drive the output low, if the input is low drive the output high. You count the number of times the pin is high.. Do this enough times and you can output a value. You are basically charge balancing the cap at the logic level threshold of the input pin. Don't expect super accuracy and that drifts and probably has hysteresis.

I've used simple converters like this in the past when the cheap micros didn't have an ADC but there is so much choice now that you'd really need to shave the last cent of a big production run rather than use a part with built in ADC.
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 16614
  • Country: us
  • DavidH
Re: Simplest Analog to Digital Converter
« Reply #39 on: August 16, 2017, 04:15:20 pm »
We always had trouble with dielectric absorption in the integrating capacitor limiting linearity such that the capacitors had to be qualified.  Oddly enough, the 7106 was also sensitive to clock jitter.

Used some older MKT axial cap for the integrator and at 20 000 counts I couldn't tell any linearity problems, compared to a HP34401 instrument, that I took as a reference.

We used polystyrene or polypropylene film capacitors but some models from some manufacturers were better than others.  Qualifying them was easy enough but then you have to convince purchasing not to substitute a part not on the qualified list.

The clock jitter problem showed up as flicker noise and just required changing the RC oscillator to an LC oscillator.

The LD120/LD121A and LD111A/LD110 that I mentioned are a run-up integrating converter so they use a much smaller value of integrating capacitance allowing the use of a silver mica part.
 

Offline Ash

  • Regular Contributor
  • *
  • Posts: 161
  • Country: au
Re: Simplest Analog to Digital Converter
« Reply #40 on: August 17, 2017, 12:00:54 am »
Well, the simplest ADC I've ever made was 2 resistors, a capacitor and 2 digital IO pins on a micro..

R1 is the input resistor to Cap. Cap goes to ground. R2 is from output pin to Cap. other pin is an input also connected to the cap.

You then build a simple converter in software.. Been a while, but basically sample regularly (timer interrupt?). If the input is high, drive the output low, if the input is low drive the output high. You count the number of times the pin is high.. Do this enough times and you can output a value. You are basically charge balancing the cap at the logic level threshold of the input pin. Don't expect super accuracy and that drifts and probably has hysteresis.

I've used simple converters like this in the past when the cheap micros didn't have an ADC but there is so much choice now that you'd really need to shave the last cent of a big production run rather than use a part with built in ADC.

Yes, I'd not do it again today without a very, very good reason.

I don't want to be working on any products where the decision is about shaving dollars (let alone cents) off the unit costs.. My products aren't high volume, but have actual profit margins and that is how I like it (got to feed the family, and my Test Gear addiction)  :phew:  :-+

Ash.
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7732
  • Country: ca
Re: Simplest Analog to Digital Converter
« Reply #41 on: August 17, 2017, 03:08:55 am »
The OT asked just for an 8-bit ADC, he didn't ask about speed or linearity.
I wonder if with some ingenuity, something like split power supply, 16 NPN transistors and 8-16 small signal mosfets and a bunch of resistors, maybe a few diodes, no counters, no comparators, no op-amps, no clocks or uC, can we actually create a lousy, but functional analog in, 8 bit digital out?  I bet we can achieve a 4 bit ADC with the above listed components, but can we squeeze an 8 bit code output without going to 256 transistors?
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 7732
  • Country: ca
Re: Simplest Analog to Digital Converter
« Reply #42 on: August 17, 2017, 03:14:13 am »
As for the counting methods, the easiest way would be a tiny DC motor with a contact reading the revolutions into a uC's counter input.  No comparators, no op-amps, no fancy voltage-frequency converter ICs, an almost all mechanical solution except for the uC counting the motor's RPM.
 

Online David Hess

  • Super Contributor
  • ***
  • Posts: 16614
  • Country: us
  • DavidH
Re: Simplest Analog to Digital Converter
« Reply #43 on: August 17, 2017, 02:46:20 pm »
The OT asked just for an 8-bit ADC, he didn't ask about speed or linearity.
I wonder if with some ingenuity, something like split power supply, 16 NPN transistors and 8-16 small signal mosfets and a bunch of resistors, maybe a few diodes, no counters, no comparators, no op-amps, no clocks or uC, can we actually create a lousy, but functional analog in, 8 bit digital out?  I bet we can achieve a 4 bit ADC with the above listed components, but can we squeeze an 8 bit code output without going to 256 transistors?

Unless it is specifically mentioned, it is a safe assumption that an 8 bit ADC should be 8 bits linear or have a low enough total error to support 8 bits of accuracy.  Otherwise a lower resolution ADC would have been specified.  Remove the linearity requirement and the simple design with a single comparator or operational amplifier becomes even simpler.

The circuit you are suggesting has been used in the past for things like 1-of-10 DACs which are 3.3 bits and then the ADC was made from 10 simple comparators and some logic to produce a 1-of-10 or BCD output from the thermometer code.

You could make an 8 bit DAC that way if precision resistors are used but then a comparator and the logic for a digital ramp generator or successive approximation register would be needed to make an ADC from the DAC.  This was a pretty common thing to do in the 1980s when integrated DACs plus a comparator and some logic were much less expensive than integrated ADCs.
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8517
  • Country: us
    • SiliconValleyGarage
Re: Simplest Analog to Digital Converter
« Reply #44 on: August 17, 2017, 03:19:28 pm »
pulse width modulator . measure duty cycle with cpu.
you can do it with a 555 if needed ...
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14192
  • Country: de
Re: Simplest Analog to Digital Converter
« Reply #45 on: August 17, 2017, 05:22:07 pm »
A PWM signal and a frequency are still analog signals, so this only a first step towards an ADC.

On can do a relatively simple counter with not so many transistors (AFAIK 2 transistors per Bit). So the VCO and counter version can be reasonably simple. So can be a kind of successive approximation version with an R2R DAC and logic from DTL. It can get away with a low number of parts, but still quite a lot of parts.

The lowest transistor count might be a kind of recirculation ADC similar to that used in some Fluke / Phillips DMMs. Not sure one could do it with the mentioned 16 transistors and few mosfets - by I would not expect much more if you really want too. The result would than be in a serial format, starting with the highest bit and going to lower values. The idea could be charging a capacitor in proportion to the input signal (sample phase) - discharge by a certain amount it if the charge is larger than a threshold and than amplify the charge by a factor of 2 (as good as it is possible) before repeating the process. The tricky part is adjusting the factor of 2, the charge removed and threshold.
 

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 5231
  • Country: us
Re: Simplest Analog to Digital Converter
« Reply #46 on: August 17, 2017, 09:57:10 pm »
OP needs to define goals more clearly.  The simplest approach is to use an IC.  It can be as little as one component.  Which can be comparable in size to a TO-3 transistor.  It is also the cheapest.  That is why they sell so well.

All of the old approaches to A/D  V to F, single slope, dual slope can be implemented with discrete components, but the approaches suffer from a combination of size, performance and cost issues.  They are useful as learning tools but little else.

The requirement to not use ICs, but do 8 bit conversion is a little contradictory.  There are few uses for binary representations of analog data outside of ICs.  But there are examples.  One might be if the data to be converted is in an environment not survivable by commercial ICs.  Reactor cores.  Deep bore wells.  Jet engine interiors.  Furnaces.  In these cases an IC is not "simple".  Conversion might be desired to maintain SNR while transmitting the data to a more benign location.  But PWM or V to F conversion without full A/D might satisfy the need.

Knowing the real problem might guide the suggested solutions.
 

Offline colinza

  • Contributor
  • Posts: 14
  • Country: za
Re: Simplest Analog to Digital Converter
« Reply #47 on: August 18, 2017, 01:01:45 pm »
If you are OK with a one bit resolution then you can go for a comparator that compares against VREF/2.
And if you make VREF a triangle wave, you have PWM which is very easy to digitise.

Isn't there a design in use which actually uses a sawtooth wave on a comparator and compares the interrupt generated from that to the timing of the sawtooth wave?
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8517
  • Country: us
    • SiliconValleyGarage
Re: Simplest Analog to Digital Converter
« Reply #48 on: August 18, 2017, 02:32:44 pm »
If you are OK with a one bit resolution then you can go for a comparator that compares against VREF/2.
And if you make VREF a triangle wave, you have PWM which is very easy to digitise.

Isn't there a design in use which actually uses a sawtooth wave on a comparator and compares the interrupt generated from that to the timing of the sawtooth wave?

yes. that's called a slope or dual slope integrator. the a/d converters in multimeters work like that . and they get 6 1/2 or more out of it.
a dual slope converter cancels out all its errors.

what you do is charge a capacitor , for known time with a current derived from the input voltage.
then you discharge the capacitor with a known current and measure how long it took.  the ratio is a direct number for the input voltage.

Multislope converters do not fully disccharge the cap. they pump the input for a known time and pump the reference for a known time. they have different current sources so they can change the ramp speed dpeending on the magnitude of the incoming signal.
and 'track' the input that way. such converters can take thousands of readings a second. Multislope is the basis for the 3478 and 34401 multimeters that have been around since the 80's and are STILL the go-to laboratory machines.

the first chip to work that way was the icl7106/icl7107/icl7109 and the RCA 3161/3162
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf