PIC18F4580 – Interfacing Temperature Sensor

PIC18F4580 mini development board has on board temperature sensor MCP9700. Here in this section, we discuss the interfacing of the same with its host controller PIC18F4550. It 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.

Schematic

Note: 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 PIC18F4580 Mini Development Board

  1. PIC18F4580 Mini Development Board – Overview
  2. PIC18F4580 Mini Development Board – Interfacing LED
  3. PIC18F4580 Mini Development Board – Interfacing LCD
  4. PIC18F4580 Mini Development Board – Serial communication(USART)
  5. PIC18F4580 Mini Development Board – Interfacing Switch
  6. PIC18F4580 Mini Development Board – Interfacing Buzzer
  7. PIC 18F4580 Mini Development Board – Interfacing POT(ADC)
  8. PIC18F4580 Mini Development Board – Interfacing Temperature sensor
  9. PIC18F4580 Mini Development Board – Interfacing Servo Motor
  10. PIC18F4580 Mini Development Board – Interfacing  μRFID
  11. PIC18F4580 Mini Development Board – Interfacing  CAN

Resources

How to buy?

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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">