Microchip Technology PICDEM Mechatronics Demo Board DM163029 DM163029 User Manual

Product codes
DM163029
Page of 64
PICDEM
TM
 Mechatronics Demo Board User’s Guide
DS51557C-page 26
©
 2006 Microchip Technology Inc.
Instructions
The LCD displays a temperature reading in degrees Celsius. Breathe on the 
temperature sensor or introduce another heat source. The displayed temperature 
should rise. Move the jumper wire from the temperature sensor to the potentiometer 
(POT1 on J4). Move the potentiometer to view the full range of temperature conversion.
Discussion
The project introduces you to use of the Analog-to-Digital Converter module. One of 
the biggest advantages to using a PICmicro
®
 microcontroller in applications that 
require temperature sensing is that the microcontroller can be used to calibrate the 
temperature sensor reading automatically (over varying supply voltages and process 
variations in the parts themselves). This saves the manufacturer costly calibration time 
at the factory that is typically required by traditional temperature sensing technologies.
LCD functions were introduced in this project for displaying data on the provided LCD. 
Take a look at the LCD worksheet in Appendix B. “LCD Segment Mapping 
Worksheet”
. This is the same worksheet located in the PIC16F91X Data Sheet 
(DS41250), only it has been filled in using the information from the PICDEM 
Mechatronics Schematic (see Appendix A. “Hardware Schematics” for the 
schematic). In the LCD source code provided in this project, you can see that the 
information in this worksheet has been converted into 
#define
 statements for each of 
the segments.