User manual
Example Projects
© 2006 Microchip Technology Inc. DS51557C-page 25
2.3.3 Project 3: Thermometer Using the Analog-to-Digital Converter
This project shows how to read an analog temperature sensor and display the
temperature on a LCD. The Analog-to-Digital Converter module is used to read the
analog voltage output from the temperature sensor. Then, the resulting value is
converted into degrees Celsius and displayed.
Objectives
1. Use the Analog-to-Digital Converter module on the PIC16F917 to read the
analog voltage output of the TC1047A temperature sensor.
2. Gain knowledge about the LCD module and using the LCD module worksheet.
Applicable Technical Documents
Precision Temperature-to-Voltage Converter (TC1047/A) Data Sheet (DS21498)
Jumper Configuration
• AN0 (J13) to TEMP (J4)
FIGURE 2-6: PROJECT 3: JUMPER DIAGRAM
FIGURE 2-7: PROJECT 3: SCHEMATIC
PIC16F917
VDD
AN0
V
SS
COMX
VDD
1 kΩ
R19
11/32
2
12/31
2
1
3
VDD
VDD
VSS
Out
C24
0.1
μF
TC1047A
C28
0.1 μF
SEGX
Common
Segment
pins
pins
LCD1
VIM-332-DP
Temp.
Sensor