Professional Documents
Culture Documents
LCD Module conn-WPS Office
LCD Module conn-WPS Office
char *text;
void main()
do
if(v!=vp )
vp = v;
volt[4] = (v/10)%10+48; // Extract tens of millivolts if you want the format 00.000
Lcd_Out(4,1,"Voltage= ");
Lcd_Out(4,9,volt);
Delay_ms(200);
} while(1);
}
Digital Voltmeter using PIC16F877a (Schematic Diagram)
Results :
Compile the PIC code and generate the hex file from it. For simulating with PROTEUS ISIS hit run button
and then you will get above output.
So, now we can see the LCD is displaying exactly the same values as are shown in the voltmeter. Now if
you change the value of variable resistor RV3 then the value of voltage will change in LCD.
This digital voltmeter using PIC16F877A can read voltage only between 0-20 volt.
Resource :