Hi,
I'm measuring a reference voltage using one of the analog pins and storing the measure value on a float.
When I display the value of the float on the LCD or check in the serial display it only show two decimal places. Can I display more decimal place?
float dRes;
test=analogRead(A0);
dRes=map(test,0 ,1023, 0, 6000);//Map A/D digital data. 6V max
dRes=(dRes/1000);//This is my work around display decimal digit
lcd.print(dRes);
Serial.println(dRes);
My Ref Voltage is 3.3V so I'm using a voltage divider circuit with 9k/11k ratio, the measurement so far is accurate I just want to see more digits if possible.
Thanks