Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi,
Try this design, as you can see you only get 10mv per deg C. 1.5v is the maximum output from the LM35
Also you need to Pull UP Mclre otherwise your program will not run.
If this design does not work, post you code in case that is causing the problem. - Assume you have configured you input port for analogue ?
I modified the design,but still its not working... I don't have much knowledge about sensors circuit..pls help me .....
Thanks in advance.....
Prasanth
View attachment 76166
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 // LCD module connections sbit LCD_RS at RB4_bit; sbit LCD_EN at RB5_bit; sbit LCD_D4 at RB0_bit; sbit LCD_D5 at RB1_bit; sbit LCD_D6 at RB2_bit; sbit LCD_D7 at RB3_bit; sbit LCD_RS_Direction at TRISB4_bit; sbit LCD_EN_Direction at TRISB5_bit; sbit LCD_D4_Direction at TRISB0_bit; sbit LCD_D5_Direction at TRISB1_bit; sbit LCD_D6_Direction at TRISB2_bit; sbit LCD_D7_Direction at TRISB3_bit; // End LCD module connections int i; unsigned input; char output[13],tmp[10]; void main(){ Lcd_Init(); //ADC_Init(); TRISA = 1; while(1) { PORTA=0; Delay_ms(300); input = ADC_Read(0); input=floor(input*0.48876); strcpy(output,"Temp :"); IntToStr(input,tmp); i=strlen(tmp); tmp[i]='\0'; strcat(output,tmp); //strcat(output, " ' C"); Lcd_Cmd(_LCD_CLEAR); Lcd_Out(1,2,output); // Lcd_Cmd(_LCD_CLEAR); } }
Hi Tahmid,
He had make a mistake while connecting VDD of LCD1602 to GND....Please correct me if I am wrong...
I refer the link -
**broken link removed**
regards,
milind
I'm trying to read the temperature from a LM35 sensor and print it on an LCD display using PIC 16F877.. But I'm getting an error message in PROTEUS ISIS as 'Power Supply' (1.52v) is outside specified range(3.5v-30v)..
Pls help me .
View attachment 76145