stip
Newbie level 5

Hi everybody!
I am using the Mikroc compiler with PIC18F2550 and simulating with Proteus.
I want to print a float value in lcd. It is a current value from the ACS712 hall sensor, but it is not working. The LCD doesn't show anything.
The part of the code to display the information is below. If I forgot some important information, please lemme know.
Thanks in advance.
I declared the "i" as a float and the "ch" as a char[15].
I am using the Mikroc compiler with PIC18F2550 and simulating with Proteus.
I want to print a float value in lcd. It is a current value from the ACS712 hall sensor, but it is not working. The LCD doesn't show anything.
The part of the code to display the information is below. If I forgot some important information, please lemme know.
Thanks in advance.
Code C - [expand] 1 2 3 4 5 6 7 while(1){ i = 0.0264*((valor_ad/1.75)-512); //the 1.75 is my ampop gain FloatToStr(i,ch); Lcd_Out(2,1,ch); Lcd_Chr_CP('A'); Delay_ms(100); }
I declared the "i" as a float and the "ch" as a char[15].
Last edited by a moderator: