I'm tying to do a project, similar to a voltmeter. That's very simple: read a analog input, convert the scale of measure and send the result to a LCD.
How can I convert the float variable toa string to be processed by lcd.printIn() command?
If you are using Arduino v. 13 and your LCD uses the built-in LiquidCrystal library, then by virtue of the class inheriting from Print, you can just write:
The 0013 floating point print code has the decimal point fixed at two places. You could change the print class in 0013 to take an argument for the number of digits. Or there is some code in this thread that you can use for outputting to an LCD that also works with 0012 or earlier: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1207226548/0