Page 1 of 1

LCD-00791 software driver problem

Posted: Tue Jul 04, 2017 4:43 pm
by rgsparber
I bought an LCD-00791 16X2 display and it worked fine in 2015. I just wrote some new code that uses this display and find that I can't move to the second row. Anything that is printed appears on the first row. "lcd.setCursor(0,1);" has no effect.

I do have lcd.begin(16,2); in my setup(). I'm driving the display with a Pro Micro. Printed characters are correct.

I understand that this is a discontinued product but hope that the drivers are still available.

Help would be greatly appreciated!

Thanks,

Rick
PS: I'm also having no joy with an MCP23017 port expander that runs via I2C but don't think it is related.

Re: LCD-00791 software driver problem

Posted: Wed Jul 05, 2017 12:21 pm
by rgsparber
I doubt this is the right way to do it, but I modified LiquidCrystal.h at line 75 from begin(16,1); which says 16 columns and 1 row to begin(16,2); which says 16 columns 2 rows. Display now works as expected. It is not at all clear why I had to do this.

Rick

Re: LCD-00791 software driver problem

Posted: Wed Jul 05, 2017 7:22 pm
by Ross Robotics
That is odd. Not sure why either..

Re: LCD-00791 software driver problem

Posted: Thu Jul 06, 2017 11:02 am
by lyndon
Did you update your Arduino libraries in that time? I'm trying to debug a similar problem remotely. My code works just fine at my site, but at the overseas site, the same display does weird things. The actual display over there was working before I updated libraries.

If you figure out the answer, I'd really like to know. It's a puzzle.

Re: LCD-00791 software driver problem

Posted: Fri Jul 07, 2017 11:01 am
by rgsparber
I did not update my library AFAIK.

Are you sure the overseas site has the same hardware configuration? A broken wire or misplaced wire can cause strange results. It is not unheard of that around the time of a software update, a wire breaks. I suggest you go back to basics and assume that it never worked. Check every connection and then check the version of each software component. If that is the same as at home, try downloading the code again.

Rick

Re: LCD-00791 software driver problem

Posted: Mon Jul 10, 2017 9:42 am
by lyndon
Thanks, but we've already troubleshot the hardware. It's definitely a software problem. Most likely culprit is that there's an existing software bug, but it only shows up on the remote site since it has a slightly different display board.

Re: LCD-00791 software driver problem

Posted: Thu Jul 20, 2017 7:30 am
by Anthony Fremont
I have an older Hitachi based LCD that needs a longer reset period than the datasheet would indicate. It wouldn't work with the library default. Perhaps you have a similar issue.

Sent from my Moto G (4) using Tapatalk