friends i am working on distance measuring sensor and i am going to display the output on LCD i got the output but , how can I get the output in increment form mean ,just like digital counter on LCD. plz help!!!!!......
but i want LCD show me the digits just like "24" and increase and decrease when sensor sense any object indeed it measures the distance between object and sensor .. but i am facing the trouble of lcd display plz help
but i want LCD show me the digits just like "24" and increase and decrease when sensor sense any object indeed it measures the distance between object and sensor .. but i am facing the trouble of lcd display plz help
First check whether you can display something on lcd or not.
I think you can..
Than there is a simple algorithm to convert the output coming from the sensor and display it on lcd.
Suppose you get 24 it is in decimal you have to convert it into seprate '2' and '4' character to display it on lcd.
Divide 24 by 10 you will get remainder as 4
add 0x30 to it you will get 0x34 means '4' character
Now extract quotient you will get 2 add 0x30 you will 0x32 which is '2' in charcter
Display these characters on lCD