PIC16F877A – Interfacing Temperature sensor

PIC16F877A mini development board has on board temperature sensor MCP9700. Here in this section, we discuss the interfacing of the same with its host controller PIC16F877A. PIC16F877A has 8 channel 10-bit successive approximation ADC.
On the Mini Development Board the temperature sensor MCP9700 is connected to pin RA1 of the controller i.e, channel1 via jumper J17. The MCP9700/9700A and MCP9701/9701A family of  Linear Active Thermistor™ Integrated Circuit (IC) is an analog temperature sensor that converts temperature to analog voltage. It has an accuracy of  ±2°C from 0°C to +70°C (MCP9700A/9701A)  ±4°C from 0°C to +70°C (MCP9700/9701) while consuming 6µA (typical) of operating current. Sensitivity is 10mV/°C. At 0°C, the output is 500mV. So that’s the spec and description for MCP9700, now lets see its actual working here below.

SchematicNote: To use temperature sensor, don’t forget to short jumper J17. Leaving it open frees RA1 and it can be used for any other desired purpose.

Sample Code

Sample code to check the temperature sensor is given below. The output is displayed on LCD.


Topics related to PIC16F877A Development Board-Mini

  1. PIC16F877A Mini Development Board – Overview
  2. PIC16F877A Mini Development Board – Interfacing LED
  3. PIC16F877A Mini Development Board – Interfacing LCD
  4. PIC16F877A Mini Development Board – Serial communication(USART)
  5. PIC16F877A Mini Development Board – Interfacing Switch
  6. PIC16F877A Mini Development Board – Interfacing Buzzer
  7. PIC16F877A Mini Development Board – Interfacing  POT(ADC)
  8. PIC16F877A Mini Development Board – Interfacing Temperature sensor
  9. PIC 16F877A Mini Development Board – Interfacing Servo Motor
  10. PIC 16F877A Mini Development Board – Interfacing μRFID Reader

Resources

How to buy?

SupportPlease share your ideas with us, visit our forum for discussion

 

Leave a Reply