Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to make a digital ohmmeter on a parallel port interface that can measure resistance with at least 95% accuracy. I have tried a 555 timer monostable assembly which generates a pulse with respect to the connected resistor. My program detects the width of pulse and then after calculation gives a value of resistance, but the results are not accurate, especially for small values. Is there any IC avaliable for resistance to digital converter? The output may be serial or parallel.

share|improve this question
any more ideas like delta sigma encoding? – Standard Sandun Jan 5 '13 at 14:31

If you are familiar with microcontrollers then you can use an ADC. Place the unknown resistor as one half of a voltage divider (with known precision resistor), apply known voltage and measure the output at the junction. Do the math and you can work out the unknown resistance.

There are a few variations on this (see Wheatstone bridge, pictured below) and you can get quite complex with it the more accurate you need it to be (see LCR meters also - they use a known frequency and measure amplitude and phase angle, so you can obtain a lot more data, e.g. DF, Q, θ, etc)

Wheatstone bridge configuration:


You can also get ICs and off the shelf modules that can be configured to measure voltage/current/resistance/etc. Obviously a multimeter (e.g. with USB/RS232 link) will do what you are asking for, but I'm guessing there must be a reason you want to avoid this route.

share|improve this answer

You specify 95% accuracy. This is more commonly expressed as 5% inaccuracy. But you must also specify the range of resistors that you want to measure. The wider the range the more difficult it gets, and very low and very high values are an extra challenge (even if the range is small).

I think pulse length measuring using the parallel port will suffer from interference from other activities on your PC. The audio input is probably better suited for this case: make sure the frequency you generate is in the audio range, determine the frequency in software (that's a SW problem, not for discussion here), and calculate back to the resistance.

If you really want to use the parallel port get yourself an A/D converter chip with two inputs and measure the reference voltage and te voltage over your resistor, with a known series resistor. A/D converter chips are available in parallel, SPI or I2C fashion (to name a few), which can be interfaced to a parallel port (with some SW effort).

share|improve this answer
would you mean audio input or game port. Using game port you could directly measure resistance. – Standard Sandun Jan 5 '13 at 13:47
I meant using Farid's original idea of a 55-based oscillator, and feeding its output (after attenuation) to the audio (microphone) input. No game port involved. But you are right in that a game port can also be used to measure resistance. – Wouter van Ooijen Jan 5 '13 at 14:09

Make that a constant current is driven through the resistor. Measure the voltage over the resistor.

For example, when the current would be 1A (way too high of course), the voltage would equal the resistance following U = I×R.

But when you make a constant current source of 1mA, the voltage equals the resistance in kilo-Ohms. So 1V equals 1k Ohm.

Choose a current that gives measurable and reasonable voltages on the reach you want to have. You can also do something with a potentiometer to allow multiple currents.

A way to create a constant current source can be found on Wikipedia.

Measuring the voltage can be done with a microcontroller's ADC or the 7106 IC if you want to display it on an LCD screen immediately.

Got the idea from: http://www.electro-tech-online.com/general-electronics-chat/97919-measure-resistance-ic.html

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.