Search Engine www.edaboard.com

Float Lcd

Add Question

51 Threads found on edaboard.com: Float Lcd
unsigned int PWM_DUTY_OC1 = 0, PWM_DUTY_OC2 = 0, PWM_DUTY_OC3 = 0, PWM_DUTY_OC4 = 0, PWM_DUTY_OC5 = 0, PWM_DUTY_OC6 = 0; float PWM_FREQUENCY_OC1 = 0, PWM_FREQUENCY_OC2 = 0, PWM_FREQUENCY_OC3 = 0, PWM_FREQUENCY_OC4 = 0, PWM_FREQUENCY_OC5 = 0, PWM_FREQUENCY_OC6 = 0; float lcd_DUTY_1 = 0, lcd_DUTY_2 = 0; signed int (...)
"0.00488" seems to be a scaling factor. it might be possible that this code is for different circuit. you have to find your scaling factor. also "vout" should be float and "int_out" should be integer type.
Now both variable are declared as float and I apply your code the answer is strange am attaching the image that what i get after applying the code. my expactation was 2.500 but the lcd displayed 159.843
I want to make array of 20 buttons.such that i sud be able to know which button was pressed at what time! intially i was usiing digital pins of arduino,but it is giving me float value with no proper reading.what sud i do?? You'll have to use pull-up or down resistors to solve the floating problem. Maybe you a
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 (...)
problem in displaying on lcd is that it slows down decrementing my duty. unsigned int adc_data; unsigned char analog_selected = 0; unsigned char str; unsigned short duty1=255; float form1; // lcd Module connections sbit lcd_RS at RD0_bit; sbit lcd_EN at RD1_bit; sbit lcd_D7 at (...)
You have to use float or double type variables and use floatToStr() function. I have answered to a similar question in your another thread. I have fixed the code as you need. I have tested in Proteus 8.1
you can declare t and max as global because you use it in other functions to reduce consumption of RAM. another function to transfor float to ascii unsigned char *float2Ascii (float x, unsigned char *str,char precision) { /* converts a floating point number to an ascii string */ /* x is stored into str, which should (...)
You have to use Potentiometic float or eTape for sensing the liquid level. Check what ADC value you get for water low and high levels for Over Head Tank and water low level for SUMP. Two ADC channels are needed. If water in SUMP is not low and water in Over Head Tank (OHT) is low then turn ON pump. If water in OHT is high then turn OFF pump. [synt
Dear All, I am facing problem in below code. Please refer below. void main() { int data; unsigned int b,c,d,z=0,e,i,f,a,x,p=0,g,h,j,k,l,o,q; unsigned int v; float t=0; long long m,n; PORTD=0x00; PORTC=0x00; PORTB=0x00; TRISD = 0x00; TRISB = 0x00; TRISC = 0x00; ADC_Init(); f = ADC_Re
Hi ecaits, sprintf() can eat up more memory on PIC16F877. Fixed point arithmetic is good. But if you still want to use float, use the follwoing code to display on lcd. #define DECIMAL_PLACES (100) // 2 digits after decimal void displayfloat(float value) // Assume value = 123.456 { (...)
hello, I did some comparative test with void Energydisplay(double V): void floatTolcd(float fval); unsigned char *fltToa (float x, unsigned char *str,char precision) and the result is clear, only the third function is OK the other can give wrong ( garbage) results. Even test is made with Uart output instead of (...)
convert float into string and then send to lcd... use "sprintf" function if you are writing code in C language...
Hi! I want to display a float value with more than 4 decimal points on the lcd display. I'm using MikroC pro. I tried floattostr function but it only displays one decimal point. After that it shoes like ' e-2'. The sprintf function is also not available since I'm using PIC16F887.
hello, sin(x) x in degrés 0 to 360 or radiant x* PI/180 ? i don't know your type of lcd,but you can try this: maybe include also a library link "math.h" char x1,y1 = 0; float x,y; do { x= (float)x1; y=sin(x)*30.0+32.0; // offest 32 and range +-30 around the offset y1=(int)y; T6963C_line(x1, 32, x1,y1, T6963C_WHITE); // this
Can you plz help me to print on the lcd an index of any number after comparison of the following arrays;the pic is reading a frequency on its TICK1 of PIC16F877A and then that value is compared in those two arrays and print the index on the screen. void final() { const float lo_limit = {1,2,3,4,5,6,7,8,70,85}; const float hi_limi
I have written pgm in mkroc for energy calculation..using PIC16f877a can you convert it to mplab?? i dont knw mplab..its lcd&adc initializtion.. [HTMLunsigned float adcval,adcval1,V1,Is,I,I1,Is1,power,energy; char val; void main() { energy = 0; TRISA=0XFF; TRISD=0X00; ADCON1=0X80; lcd_init(&PORTD); (...)
Couple of simple observations -- 1) your ADC isr is way too long in terms of execution time. You have float operations as well as lcd outputs going on inside which take a long time. 2) the line -- tenBitValue = ADCH<<2 | theLow>>6; is incorrect. It should be :: tenBitValue = ADCH<<2 | theLow ;
use a variable as float and display it on lcd.
float y,rtdr,temp; char opr; y = 0.15274- (rtdr-100.0)*2310.0e-7; if(y>= 0) y= sqrt(y); temp = (y-0.39083)/(-0.0001155) ; floatToStr(temp,opr); lcd_Out(1,1,lcd); lcd_Out(1,1,lcd); Where did you get this "lcd" variable? floatToStr(temp,opr[/