You are on page 1of 1

555 Timer as an A/D converter I had a Basic Stamp project that needed to measure a nominal 12 volt battery, an d I wanted

a simple solution. This is the simplest I could come up with. The 555 timer will put out positive pulses. The pulse width is inversely proportional t o the difference in voltage between the voltage at "ANALOG IN" and the voltage o f the 4.7uF capacitor(let's say 2.5 volts). To calibrate this circuit, hook it u p to a Basic Stamp measuring positive pulses, and give the circuit a known volta ge. Let's say you get the number 2092 when you give the circuit 15 volts. Your c oefficient is 2092 * (15 - 2.5) = 26150. Now you are ready to measure voltage wi th your Basic Stamp. Use the formula: voltage = 26150/pulse + 2.5 . You will hav e to modify this to work within the limits of the Basic Stamp's math. The accura cy of this circuit rivals many digital voltmeters within the range I tested it ( 6 volts to 18 volts), about the same as a 10 bit A/D converter. The accuracy wil l shift with the processor clock and the +5 supply, so it is pretty good. Conver sion time is under 1/10 second. Please note it will not measure voltages below 5 volts. Also, check the accuracy of your +5 volts. If it is 5.2 volts, you will need to use 2.6 in the formula. http://www.bobblick.com/techref/projects/a2d555/a2d555.html

You might also like