Page 212 - ARM Based Microcontroller Projects Using MBED
P. 212
198 8. INTERMEDIATE LEVEL PROJECTS
2.0
a. TMP35
1.8 b. TMB36
c. TMP37 c
1.6 +V S =3V
1.4 b
Output voltage (V) 1.2
1.0
0.8
0.6 a
0.4
00337-007
0.2
0
–50 –25 0 25 50 75 100 125
Temperature (°C)
FIG. 8.61 TMP36 characteristics.
FIG. 8.62 Circuit diagram of the project.
8.21.5 The Construction
The project is constructed on a breadboard as shown in Fig. 8.63. The sensor chip is
connected to the development board using jumper wires.
8.21.6 The PDL
Fig. 8.64 shows the program PDL.
8.21.7 Program Listing
The program listing (program: TMP36) is shown in Fig. 8.65. At the beginning of the pro-
gram, analog port ADC1/0 is configured as analog input using the statement AnalogIn.