Sie sind auf Seite 1von 3

ADC without ADC. - Jose Pino's Projects and Tidbits.

http://www.josepino.com/microcontroller/adc_wout_adc

"Great stuff from someone with an inquisitive mind."


Interesting things to build, Electronics Projects, Free Science Projects, Crazy Ideas, Household hacks, Readings, Info and more!
4 Channel I2c Switch 4-Channel I2C & SMBus Switch w/ Reset Functions & 5.5-V Tolerance. ti.com LCD controller boards A/D Boards for all LCD makes high quality, low cost, buy direct. www.pandtronics.com PC USB Control Interfaces Connect your control panel switches pots, LEDs using our universal PCBs www.u-hid.com

Jose Pino's Projects & Tidbits.

Ads by Google Bookmark this site or

ADC

ADC Analog

Precision ADC

ADC Converter

1 de 3

6/5/2012 15:57

ADC without ADC. - Jose Pino's Projects and Tidbits.

http://www.josepino.com/microcontroller/adc_wout_adc

ADC without ADC.


Here is a example how to read analog values without an Analog-to-Digital converter. Any Microchip PIC microcontroller without ADC can be used. (10/1/2006)

Translate

The DAC5681 from TI


16-Bit 1.0-GSPS DAC w/Wideband LVDS Input & Internal Voltage Reference.
www.ti.com

Gadgets powered by Google

Digital electronics and Analog electronics doesn't mix easily. A Microcontroller can't get analog values unless an Analog-to-Digital converter is used, however, you may find a little complicated the use of an ADC and it need lots of Input/Output ports. Some Microcontrollers, like the small 8-pin Microchip PIC 12F675, do have an ADC integrated, but it is expensier than a PIC without ADC. A simple solution is to use a RC circuit to measure the resistance or capacitance. Basically, a RC circuit is just a capacitor and a resistor. The circuit labeled A shows the most common RC circuit used. I like to use the B circuit, I get better results.

Temperature Controllers
Industrial monitoring & control RTD Pt100 + Thermocouple J/K type

www.defineinstruments.com

Frete Grtis Em Todo Site


Mveis, Decoraes e Muito Mais Garanta J!
www.mobly.com.br/

Data Acquisition System


Analog Digital I/O & Frame Grabber Motion Control & Machine vision
www.daqsystem.com

You can replace the resistor and use a thermistor to measure temperature (PTC or NTC), also a photoresistor can be used to measure light. Any kind of resistive sensor can replace the resistor. If you are using a capacitive sensor, just replace the capacitor instead of the resistor. How it works: Just connect the RC circuit directly to an I/O pin of the microcontroller. You can use a 33pf capacitor and 1k resistor. First, make the I/O pin as OUTPUT. Second, make the pin POSITIVE (+) for one milisecond. (Using a PIC at 4mhz, a 255-cycles loop will be enough). Third, Make the I/O pin as INPUT and measure how long stays as POSITIVE (+). An good application of this technique is my "One wire keypad":

7075 visitas. Need to contact me? Please get a good reason before sending me an e-mail.

The PIC will measure the RC value of the I/O pin. If the time measured is too long, that means; there is no key pressed. Precision resistors and Mylar capacitor is required to get exact values. You can see my " Security Keypad " uses a similar technique.

Instead of using a single I/O pin, I used an I/O pin for each row. Note: Measuring capacitance or resistance usign this technique is affected by the voltage.

Design Block Diagram

2 de 3

6/5/2012 15:57

ADC without ADC. - Jose Pino's Projects and Tidbits.

http://www.josepino.com/microcontroller/adc_wout_adc

Ads by Google

ADC

ADC Analog

Precision ADC

ADC Converter

If any information, data, picture or design infringes a copyrighted material, please send me an e-mail asking to remove it along with the supporting data. Some features may not work with Google Chrome. 2006-2010 Jose Pino - Powered by JPC Alpha

3 de 3

6/5/2012 15:57

Das könnte Ihnen auch gefallen