10 years, 2 months ago.

Pin arrangement

Hi, this is not so obvious for me; I do have the Nucleo F030R8 that is both with Arduino compatible headers and two double Morpho headers. The sample code is refering to pins 15-20. How can I determine what the equivalence is on the Nucleo board? Villi

Question relating to:

1 Answer

10 years, 2 months ago.

You need to give it whichever pins you use. Since the HD44780 afaik only uses regular GPIO pins, you can connect them however you want (of course power, ground, contrast, etc needs to be correct), and just set in the code which pins you used. The Nucleo pinnames are given here: http://mbed.org/platforms/ST-Nucleo-F030R8/

Thanks Erik, so I just replace e.g. p15, p16 ... with D1, D2 ... etc if I plug into the Arduino header, or PA_5, PA_6... etc if I plug into the Morpho headers? Is that all? Villi

posted by Vilhjalmur Sigurjonsson 23 Feb 2014

Yes, that should be all. Of course with the correct ones for the connection. And sometimes it is a bit debugging, the HD44780 aren't the easiest ones due to the number of connections, and the contrast voltage. Wim knows more about them, but in general: If you don't see anything after setting it up and running code, change the contrast voltage pin. If you see the top row filled squares, it isn't communicating correctly.

posted by Erik - 24 Feb 2014

Just a follow up: All is OK by renaming the pins. Thanks again.

posted by Vilhjalmur Sigurjonsson 24 Feb 2014