Hi here i am with a one more project which is Digital PIC Microcontroller based Temperature sensor whichs very useful application for students for learning of interfacing LM35 with PIC Microcontroller. This application also very useful for domestic and industrial use. You can use this to control the burner of geyser to control the water temperature.
Description:
In this application I am using LM35 temperature sensor with PIC microcontroller (mind it one thing here you must have the idea of ADC (Analog to Digital Converter)) whichs have the ADC built-in.
0 to 5 voltage is the input of Microcontroller ADC & output of ADC is in 10 bits so 2^10 = 1024 (parts of the input voltage) means
How many input voltage required to change the one bit increase or decrease = Vin max / 1024 = 4.8mv. It means if first 4.8mv at input then ADC output will be 0000000001
so following code lines are use to convert reading into temperature value in digits
val1 = ADC_Read(0);
val2 = val1*4.88; // convert reading into mv
temp = val2/10; // 10mv = 1 degree Centigrate
You can download:
LM35 Features:
LM35 Pinout:
Circuit diagram:
No comments:
Write commentsI am very thankful for your precious time