LCD 1602 HD44780 SPI

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

LCD 1602 HD44780 SPI

#1 Post by doxikus » 24 Oct 2015, 21:04

Hi, I would like to know is it this LCD module supported!?. In most my cases I need only two lines on LCD :-).

Thanks

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: LCD 1602 HD44780 SPI

#2 Post by BertB » 24 Oct 2015, 21:17

I think it is supported, but you need the I2C interface.

doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

Re: LCD 1602 HD44780 SPI

#3 Post by doxikus » 24 Oct 2015, 21:43

HI,

Well i need to test it then :-). Waiting for my post. Right now I have one but it is already used on different setup :-(.

I2C interface are already on module so I only need right address.

doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

Re: LCD 1602 HD44780 SPI

#4 Post by doxikus » 12 Nov 2015, 07:09

HI, I got my mail yesterday and there it was LCD 1602. Connected to ESP, at first boot I got message ESP easy, so it is working, now I trying to figure how to setup task, here is screenshot of my devices page, if someone can please answer what to write on line 1 to display temperature reading from DS18b20 sensor, thanks.
screenshot-192.168.5.21 2015-11-12 07-05-06.png
screenshot-192.168.5.21 2015-11-12 07-05-06.png (120.53 KiB) Viewed 20515 times

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: LCD 1602 HD44780 SPI

#5 Post by BertB » 12 Nov 2015, 10:52

Did you check the tutorial on the home page?
http://www.esp8266.nu/index.php/LCDDisplay

doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

Re: LCD 1602 HD44780 SPI

#6 Post by doxikus » 12 Nov 2015, 12:35

Hi BertB,
Yes, first I go to wiki, but I find a little bit confusing "So if you have a dallas sensor running, with taskname "Dallas", to get the temperature value, use this: "

Where I find taskname, under taskname is only number, 1. I have try few combination but it wont work, LCD show all entered data on line settings but without sensor value, temperature number. Maybe more details on wiki with few more screenshot, to show sensors page...

Thanks

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: LCD 1602 HD44780 SPI

#7 Post by BertB » 12 Nov 2015, 20:00

It works great for me. I tested it with a 4 line display, but it should not be a problem to use a 2 line type.
You can use the display to show fixed texts or variables from tasks. To do that, you first need to make at least one task. In my example, I used a DHT sensor. The task name is E9DHT.
Then you need to make a Display task. In that task you refer to the previous task.
See below:

In the Display I now see four times the line:
DHT: 22.30 h:53.90 %.
It is brilliant.

Image

doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

Re: LCD 1602 HD44780 SPI

#8 Post by doxikus » 13 Nov 2015, 09:10

Hi Bert,

Thanks for this detailed information. I follow guide and LCD works flawlessly (2 line 1602). I will do more test over weekend but it works :-). Now it is much clearer what is what :-). Can you please also update wiki with this example.

Thanks

maluko
Normal user
Posts: 112
Joined: 02 Sep 2015, 00:49

Re: LCD 1602 HD44780 SPI

#9 Post by maluko » 13 Nov 2015, 10:18

Can you tell me where we buy this display?

thnaks

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: LCD 1602 HD44780 SPI

#10 Post by BertB » 13 Nov 2015, 12:01

That depends on where you are. You may find them on Aliexpress http://www.aliexpress.com/item/IIC-I2C- ... eb201560_9
or, when in Netherlands, here http://www.nodo-shop.nl/nl/19-display-s

doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

Re: LCD 1602 HD44780 SPI

#11 Post by doxikus » 13 Nov 2015, 19:28

Bert already say it all, I have find that you can get best deal on aliexpress, also there is ebay or any other store which sells arduino components.

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: LCD 1602 HD44780 SPI

#12 Post by BertB » 13 Nov 2015, 21:50

Whatever type you choose, try to find out if it has pull up resistors to 5 volt on the i2c wires. The display requires 5 volts to operate. Pull up resistors will pull de sda and sdc to that level too.Esp then needs a level shifter. On the other hand, the display will work fine with external pull up resistors to 3.3 volt.

doxikus
Normal user
Posts: 57
Joined: 22 Sep 2015, 08:47

Re: LCD 1602 HD44780 SPI

#13 Post by doxikus » 15 Jan 2016, 14:53

Hi
I have some issues with LCD module. On latest version LCD after few hours shows strange characters on display (it is not related to wrong esp lib under boards manager) It is connected on 5V trough external breadboard power module. On version 43 works fine without problem only it is connected to 3.3V I need to add level shifter and update version.

Anybody have similar issues!? Or can someone to suggest where to look

Also my question will be is it better to stick to latest stable version on sourceforge because I have few nodes which are running on latest espeasy versions :-). I like new cool features :-).

Thanks

highroller
Normal user
Posts: 31
Joined: 09 Feb 2016, 22:16

Re: LCD 1602 HD44780 SPI

#14 Post by highroller » 24 Jun 2016, 19:21

Does anyone have the pinout for this one to connect to the ESP?:
https://www.kjell.com/no/produkter/elek ... lay-p90215

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: LCD 1602 HD44780 SPI

#15 Post by CoolWombat » 25 Jun 2016, 05:32

Hey Highroller

Most of the 16x2 or 20x4 LCD displays have the same pinouts. If you google "pinouts lcd 20x4" you will find all the info you will need. The last one I bought was this -
http://www.aliexpress.com/item/Free-shi ... 23170.html
and this module -
http://www.aliexpress.com/item/Free-Shi ... 01303.html
to connect it to the esp module.

Works like a charm. By the way, both the LCD module and I2C to LCD module works well on 3.3V.

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: LCD 1602 HD44780 SPI

#16 Post by costo » 25 Jun 2016, 17:27

CoolWombat wrote: Works like a charm. By the way, both the LCD module and I2C to LCD module works well on 3.3V.
My experience was that a 5V LCD module does not work on 3.3V, it needs 5V for the contrast setting. (Unless you have a 3.3V LCD module which has extra components on board to generate the contrast voltage.)

You can connect the SDA and SCL wires of the 5 volt LCD/I2C interface to the 3.3V of a ESP8266 , but only when you remove the 2 * 4k7 pull-up resistors from the I2C interface (connected between 5V and SDA/SCL) and connect two new pull-up resistors between SDA & SDL to 3.3V.

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: LCD 1602 HD44780 SPI

#17 Post by CoolWombat » 26 Jun 2016, 09:36

As I mentioned before the ones I got works like a charm with 3.3V power. I do have some really old 16x2 with no backlight which has the same issue costo mentioned, but all the new ones I bought since about 2 years ago works fine at 3.3V with the interface I listed in my previous post. I do like the yellow/green ones better as the contrast and viewing angle is much better than the blue ones. I did the mod for a couple of the old ones, but at the end it was too much hassle as the new LCDs are cheap enough for me to just junk the old ones. The new ones are 20x4 and comes with backlight as well which my old ones don't.

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: LCD 1602 HD44780 SPI

#18 Post by costo » 26 Jun 2016, 13:41

Last year I bought some Lcd's, a 4x20 character display and a 64*128 graphic display. Both are white dots/character with a blueish backlight and both need the 5 volt to have enough contrast. On 4.5 volt they have already not enough contrast.

Maybe I should try a yellow or green lcd :oops:

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: LCD 1602 HD44780 SPI

#19 Post by CoolWombat » 26 Jun 2016, 22:38

Hey Costo

I have not tried the 64*128, maybe they are different.

If you're interested, here are the two I bought that definitely work with 3.3V power -
http://www.aliexpress.com/item/Free-shi ... 23170.html
http://www.aliexpress.com/item/LCD-Boar ... 35438.html

and this I2C to LCD interface -
http://www.aliexpress.com/item/Free-Shi ... 01303.html

Like I said earlier, I like the green/yellow one better.

Good luck!

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: LCD 1602 HD44780 SPI

#20 Post by costo » 27 Jun 2016, 00:20

CoolWombat wrote: I have not tried the 64*128, maybe they are different.
The 12864 LCD doesn't work with ESPEasy, it works over the SPI bus and I used the U8Glib with Arduino to let it work.
http://www.aliexpress.com/item/128-64-D ... 46c0172495
Like I said earlier, I like the green/yellow one better.
I like the white on blue better. Blue leds need a higher voltage than yellow and green so maybe that is the reason the blue one doesn't have enough contrast with VCC below 4.5 volt.
The electronics is no problem with 3.3V, just the contrast is too low, the white on blue need 5V I guess.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests