Normally negative and positive references of the ADC module are VSS and VDD, but VDD is not exactly equal to 5.00V and here we should use the fixed voltage reference as a positive reference of the ADC module. With the fixed voltage reference we get approximately an exact result. The good thing with this microcontroller is the fixed voltage reference. The PIC12F1822 is an 8-bit microcontroller which has 4 analog channels with 10-bit resolution. For example if the LM335 output voltage is equal to 3.03 (3030 mV) that means the temperature is: 303 Kelvin = 30 ☌elsius. The LM335 has a breakdown voltage directly proportional to absolute temperature at 10 mV/°K. Directly Calibrated to the Kelvin Temperature Scale.The LM335 sensor has the following features (from LM335 datasheet): The compiler used in this project is Microchip MPLAB XC8 (MPLAB X IDE with MPLAB XC8 compiler). Temperature data is displayed on 16×2 LCD screen (I2C LCD). This project works also with DFRobot I2C LCD displays. This post shows how to build a simple thermometer using PIC12F1822 microcontroller and LM335 analog temperature sensor. This sensor requires an ADC to convert the analog data into digital data. LM335 Sensor is a 3-pin analog device which can measure temperature (converts temperature to analog voltage).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |