20x4 LCD

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
dork3nergy
Posts: 8
Joined: Thu Apr 09, 2020 7:19 pm

20x4 LCD

Post by dork3nergy » Wed Apr 15, 2020 8:25 pm

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

Listian
Posts: 6
Joined: Tue Apr 14, 2020 8:05 pm

Re: 20x4 LCD

Post by Listian » 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.

dork3nergy
Posts: 8
Joined: Thu Apr 09, 2020 7:19 pm

Re: 20x4 LCD

Post by dork3nergy » Thu Apr 16, 2020 1:53 pm

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.

zoom
Posts: 4
Joined: Tue May 05, 2020 5:26 am

Re: 20x4 LCD

Post by zoom » Thu May 14, 2020 3:05 pm

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.

mattsav0728
Posts: 3
Joined: Wed Jul 22, 2020 10:13 pm

Re: 20x4 LCD

Post by mattsav0728 » Thu Jul 23, 2020 1:34 am

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.

mattsav0728
Posts: 3
Joined: Wed Jul 22, 2020 10:13 pm

Re: 20x4 LCD

Post by mattsav0728 » Fri Jul 24, 2020 5:48 pm

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

Post Reply