Anda di halaman 1dari 10

,

analogread(pin)
To pin pin
, 0-5 Uno
boards, 0-15 Mega

...
O atmega328 ADC
( )
10bit ... analogRead
0-1023.
Vref/1024.
Vin=analogRead*Vref/1024

Aref ( 0 5V).
Aref
32
http://arduino.cc/en/Reference/AnalogRef
erence

analogreference(type)
analogreference(type)

5V
(1.1V, 2.56V, board)
pin Aref.

board analogread
analogreference.
:
https://www.arduino.cc/en/Reference/AnalogReference

A/D converter,
100s ,

10000 .

...
:
http://www.arduino.cc/playground/CourseWare/AnalogInput

;
, (LDR, thermistor, flex)
..
LDR ,
thermistor flex .
,
()


LDR

LM35
(National Semiconductors)
Features
Calibrated directly in Celsius
(Centigrade)
Linear + 10.0 mV/C scale factor
0.5C accuracy guaranteeable (at
+25C)
Rated for full -55 to +150C range
Suitable for remote applications
Low cost due to wafer-level trimming
Operates from 4 to 30 volts
Less than 60 A current drain
Low self-heating, 0.08C in still air
Nonlinearity only C typical
Low impedance output, 0.1 Ohm for
1 mA load

LM35
(National Semiconductors)

temp = (5.0 * analogRead(0) * 100.0) / 1024




(b: TMP36, a: LM35).


,

.
.. TMP36 :
Temp in C = [(Vout in mV) - 500] / 10

calibrated ()

, .

Anda mungkin juga menyukai