Header Ads

How I managed to show the value on 16*2 LCD with Arduino

Last week, I was programming my Arduino for a new project. The project required me to use the ADC to sense a voltage appearing at AN0. I used the serial port also to debug the values read. I wrote, compiled and loaded the scatch on to the Arduino. But it was only sending value to the serial monitor. The LCD was showing 0000 only. I rechecked the scatch, loaded again, but the same problem exists. no output on LCD.
        After 2 hrs of brainstorming, I tried a thing. I added a delay of 1 ms after the AnalogRead command. Now with a prompt effect, the value was shown on the LCD also.
        So from now, I add a delay of at least 1 ms after AnalogRead command.


No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();
Powered by Blogger.