Skip to main content
JMarc.5
Associate II
June 29, 2021
Solved

Trouble with LCD and Nucleo Board f303ze

  • June 29, 2021
  • 2 replies
  • 4035 views

EDIT: In case someone in the futurehas the same problem, I solved it by welding each pin.

Hello, I'm trying to learn about microcontrollers and some of their characteristics, so bare with me as I'm pretty new to all of these stuff. Right now I'm trying to send some data to an LCD, just some basic program.

I've got a nucleo board f303ze which works fine on all the projects that I've done so far.

I recently I bought this LCD display: https://www.amazon.es/AZDelivery-HD44780-visualizaci%C3%B3n-16-caracteres-Arduino/dp/B07CQG6CMT/

And I'm trying to make it work with the nucleo board.

I've been following this tutorial: https://www.youtube.com/watch?v=e-KgHsQPkwg

Which uses the following libraries: https://github.com/MYaqoobEmbedded/STM32-Tutorials/tree/master/Tutorial%2042%20-%20LCD16x2%20I2C

Of which I had to edit lcd16x2_i2c.c, as it seemed to have soem duplicate lines. (I upload the new file .c, but I think it's fine now).

So, there are several problems after I connect the LCD+adpater to the board. First of all, the connectors seem pretty loose, so I have to force into a position for the screen to iluminate.

Then, even after I've found the spot, the screen only shows some gibberish.

I upload the whole code, in case some may find it useful as well as a photo of the setup, but I believe these are both correct.

0693W00000BcIa7QAF.jpg 

Variable bool check is set to true after the initialization.

So, what do you think coud be the cause?

Is this LCD compatible with the board (I wanted one which only needed 4 pins for the connection)?

Should I use other libraries (these seemed liked the simplest)?

Maybe the adapter is just broken?

I've also heard about addresses for the slave and such, which I'm not familiar with at all , so I really hope the problems are not coming that way.

Thank you very much.

This topic has been closed for replies.
Best answer by JMarc.5

Solved it by welding each pin. Now works fine.

2 replies

ST Technical Moderator
June 29, 2021

Hi @JMarc.5​ ,

Glad to know you overcame this issue :)

Please add your solution in new comment, then close this topic by marking your comment as "Select as Best". This will help other users find that answer faster.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
JMarc.5
JMarc.5AuthorBest answer
Associate II
June 30, 2021

Solved it by welding each pin. Now works fine.