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.

 

 

Login to post a comment...

motonata1 8 months, 3 weeks ago

los dispositivos

fitter 2 years, 1 month ago

@shockmanNumeric, this is an adafruit board, you can download fritzing from https://github.com/adafruit/Fritzing-Library

shockmanNumeric 2 years, 6 months ago

I tryd to google it too but got no luck. Your link is working, thx

Crolus 2 years, 6 months ago

I Googled it. It's available at fritzing.org. http://fritzing.org/media/fritzing-repo/projects/i/iot-dht22-lcd-i2c-arduino-uno-and-ethernet-shield/fritzing/

shockmanNumeric 2 years, 6 months ago

Hi Sorry for the question, i am new here. Can you tell me please, how to get the LCM1602 IIC to fritzing? thx