Page 1 of 1

20x4 LCD

Posted: Wed Apr 15, 2020 8:25 pm
by dork3nergy
Hey,

I couldn't figure out how to get my cheapo, old, ebay 20x4 LCD to work with micropython and talk to my ESP32 so I cobbled something together to make it go.

You can find it here:
https://github.com/dork3nergy/lcd_2004

It's dead simple but it works.

Image

Re: 20x4 LCD

Posted: Thu Apr 16, 2020 1:17 am
by Listian
Works!

But can you tell me how to run the module locally from a computer, and not upload it to esp32?
And then it gives an error that the module was not found.

I use EsPy and Thonny IDE.

Re: 20x4 LCD

Posted: Thu Apr 16, 2020 1:53 pm
by dork3nergy
How would you be connecting the I2C directly to your computer? It might work with a raspberry pi. You'd have to connect the I2C to pins 3 and 5 in that case.

Re: 20x4 LCD

Posted: Thu May 14, 2020 3:05 pm
by zoom
Listian wrote:
Thu Apr 16, 2020 1:17 am
Works!

But can you tell me how to run the module locally from a computer, and not upload it to esp32?
And then it gives an error that the module was not found.

I use EsPy and Thonny IDE.
There are means with ampy (Adafruit) that allow you to run code, from your computer, on the ESP32 - look at the "run" option in the ampy documentation or help. I would imagine other development tools have this same capability.

Re: 20x4 LCD

Posted: Thu Jul 23, 2020 1:34 am
by mattsav0728
Thanks for putting this together and it worked great for me. I just started getting into the ESP32/MicroPython and had bought a 20x4 LCD display and was struggling to find a module that would work correctly, most of the code out there was for 16x2 displays and of the ones I used they didn't work well. Now to try and figure out how to add the ability to select a specific x or y location on the grid to place a character or begin a string.

Re: 20x4 LCD

Posted: Fri Jul 24, 2020 5:48 pm
by mattsav0728
Great library for the display it's simple and gets the job done, here I'm using it along with a DS3231 on the I2C bus to show current time and what the alarm is set for. New to MicroPython but loving it, I'm not sure I want to go back to Arduino C anytime soon.

Image