[Ham-Computers] Reading A/D Converters
Joe
k9hde at comcast.net
Thu Jul 11 19:21:21 EDT 2013
<start>
Loren wrote:
I would like a way to read 2 analog voltages and scale the readings to my own engineering units. Just simple read, scale, and display whether using a PIC or some other board.
I would like to be able to write programs or use programs to do this.
Any ideas?
Loren Moline WA7SKT
<end>
The Arduino provides libraries which contain functions to write to LCD displays and to read voltages.
The Arduino "analog read" web page shows the Arduino A/D functionality.
http://arduino.cc/en/Reference/analogRead
Excerpt:
analogRead()
Description
Reads the value from the specified analog pin. The Arduino board contains a 6 channel (8 channels on the Mini and Nano, 16 on the Mega), 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023. This yields a resolution between readings of: 5 volts / 1024 units or, .0049 volts (4.9 mV) per unit. The input range and resolution can be changed using analogReference().
It takes about 100 microseconds (0.0001 s) to read an analog input, so the maximum reading rate is about 10,000 times a second.
zzzz
More information about the Ham-Computers
mailing list