Solved ✔: LCD shows strange cryptical Characters on LCD LiquidCrystal I2C and ESP32 nodeMCU Arduino

preview_player
Показать описание
Include Wire.h
Wire.SetClock(10000);
Рекомендации по теме
Комментарии
Автор

1000 points for this. Solved my issues after hours of struggling. Unfortunately this problem seams to be common but nobody got this answer like you. Thanks a lot.

manuelkoch
Автор

to follow up, in a video from the dronebot workshop about i2c i found the advice to use 10k pull up resistors on the SDA and SCL line. This also solved the problem for me.

takevanpopta
Автор

For all you working with the Raspberry Pi and experience the issue with the LCD showing strange characters after some time; one workaround is after every time your relay goes to low or high power, reinitialize the LCD. It is not a perfect solution since it does not remove the main issue, but it works.

TheEmperor
Автор

Awsome dude implemented it and not found errors and struggled for 4 months to rectify this error thanks in advance.

chiranthmurthy
Автор

Thanks alot buddy. Wire.setClock(10000);// "s" is small letter, do not copy paste what he written

anurajn
Автор

Mine with a few seconds began to appear strange characters ... 100% solved! Thank you man

gabrielgomesdossantos
Автор

Holy Crap dude that was super helpful, one piece of code for something i thought was too complex that would take forever to figure out lol Thanks again my guy.

therealskoodle
Автор

I have similar problems with my lcd. Hope this work. Thanks alot!

luciano.alfredo.bonfil
Автор

Thanks for this, it was driving me crazy... just slow down I2C...:)

DiogoSanti
Автор

what if we are not using the I2C module and using LCD in 4/8bit mode, how to solve the weird characters problem ?

yashsrivastava
Автор

Thanks!
Just a small correction:
In the video description, the code is Wire.SetClock(10000) the correct is Wire.setClock(10000), not with a capital S on set.
If you just copy paste it won´t work.

PFLMCTT
Автор

in my situation, every time I hold the LCD to move it, the strange characters shows up, regardless of adding that line of code, which also slowed down the push button count :(

Anyone with similar issue? I will use another LCD to compare, then edit my comment

abdullatifalothman
Автор

Thank you so much!! I had the same problem on an ESP-32 which you solved for me!

davemartin
Автор

Thanks for that explanation, just one more info, do you also use resistors for pull-up?

albertomanske
Автор

Realise that this is an old video but the issue here is earthing of the LCD causing logic levels to be all over the shop.

At 0:16 the whole LCD momentarily shuts down (back light dims and displayed characters are corrupted) and I can almost guarantee that the LCD and LED board earths (the pad around the screw hole) touch / disconnect and create the earthing issue.

Reducing the clocking speed has likely masked the issue and reduced the likelihood of it happening.

Run proper grounding across all boards and the issue will go away.

I'd love to see the black/white/grey wiring running to the LCD board, from memory if this is a 1602A it will need board power and ground and the LCD back light has its own (current limited) power supply.

astrawally
Автор

Error not solved when timer runing and relay open and closed 😢

ولدزايد-ذغ
Автор

Thanks a lot I was struggling for hours with it

marcelogonzalez
Автор

is this statment in the setup() zone? thanks.

rodolfovargas
Автор

unfortunately on my esp32 the problem is still facing :(

Antobarbunz
Автор

How do one fix this in a c language programing

electrowashyelect