LCD-I2C Analog input/output displayed
This is a practice project of mine, I wanted to display the analog values (in and out) scaled on a LCD.
The goal of this project was to practice a bit with a LCD (with backpack LCM1602 IIC).
First I wanted to display the raw analog values 0 to 1023 wich came from 10k pot. on A0.
That proved to be a bit complicated, when displaying the sensorvalue it was written left to right.
As the number became < 1000 the last digit didn't refresh. To correct this I've searched for a function that place leading zeros (or any other character of your choosing)
After that I wanted to scale the raw analog values from 0 to 5 V.
At last I used the analog input to dim a LED and placed the percentage of the power on the LCD.