I am trying to interface HD44780 LCD with Arduino Uno.
All the connections are done as per https://github.com/RIOT-OS/RIOT/tree/master/tests/driver_hd44780
Below is my code:
The code is compiled successfully but does not work as expected on flashing to Arduino Uno i.e I could not see cursor blinking
I noticed that I am using JHD162A LCD display. In one of the RIOT-OS doc, I read that LCM1602C LCD is needed.
Could this be the reason of my unsuccessful Implementation of LCD?
Hi Patil. The reason might be wrong pin connections. Are you sure about these two LCD have same pin configurations? Sometimes event Vcc and GNC positions differs
24 Eki 2019 Per 12:21 tarihinde PATIL Sangeeta <Sangeeta.PATIL@3ds.com> şunu yazdı:
Yes ,the pin connections are correct .
To confirm ,I coded in Arduino IDE (keeping the same pin connection) and it works perfectly
Then, there might be an issue. It is better to open an issue in github.
4 Kas 2019 Pzt 10:34 tarihinde PATIL Sangeeta <Sangeeta.PATIL@3ds.com> şunu yazdı:
I noticed that I did not include “hd44780_params.h” header file in my sketch. On including it in my sketch, compilation hits error
But in main.c file located in “driver_hd44780 “folder, this header file is included.
Does anyone know about this?
We are looking into some issues with the hd44780 in PR 12634  and hope to have it solved soon. You could try testing with this PR so see if it fixes your issue.
Finally ,I could make LCD (JHD162A) work with Arduino-Uno through RIOT OS
I removed lcd initialization from setup and added below two lines in main function ….and it worked !
But I don’t understand the logic in context of &hd44780_params.
I understand that we are checking the successful initialisation of lcd by using if loop but what are we checking when we pass &hd44780_params
Why can’t we just initialize the lcd as I did in my below e-mail?
Thanks in advance for help!