Page 1 of 1

LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Sep 13, 2018 3:44 am
by silicioslab
Hello, I'm developing a menu using an Arduino and a 16x2 LCD, but when I write the code on the Arduino, to show on the LCD, the values do not appear.

What should I do to solve the problem?

This is my flowchart and a image of the project.

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Sep 13, 2018 9:08 am
by Benj
Hello,

It could be the length of your wires causing the problem. Can you plug the LCD directly into the breadboard?

Does adjusting the contrast potentiometer help at all?

Looking at the picture you sent have you wired up the data bus as shown here. e.g. using the top nibble D4 - D7.
https://www.matrixtsl.com/wiki/index.ph ... 954a4191ea

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Jan 13, 2022 8:42 am
by MartinSpeed
Longshot i know. See attached images. Using flowcode 7and trying to set pins for the wiring diagram atrached. Any help please. Students have exam soon.

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Jan 13, 2022 8:52 am
by MartinSpeed
Longshot i know. See attached images. Using flowcode 7and trying to set pins for the wiring diagram atrached. Any help please. Students have exam soon.

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Jan 13, 2022 10:38 am
by Steve
Do you have a spec for the LCD? Specifically, which drivers is it using?

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Jan 13, 2022 12:15 pm
by medelec35
Hi Martin.
To me it looks like the wiring does not match the pins set within LED properties.
Looking at your wiring diagram image, which is not very clear, you have the following:
RS > D7
EN > B0
D0 > B1
D1 > B2
D3 > B3
D4 > B4
Within LCD properties It looks like you have EN going to D4 etc.
Uno Digital 0 to 7 = PortD 0 to 7
Uno Digital 8 to 13 = PortB 0 to 5
Uno Analogue A0 to A5 = PortC 0 to 5

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Jan 13, 2022 3:37 pm
by MartinSpeed
Steve wrote:
Thu Jan 13, 2022 10:38 am
Do you have a spec for the LCD? Specifically, which drivers is it using?
medelec35 wrote:
Thu Jan 13, 2022 12:15 pm
Hi Martin.
To me it looks like the wiring does not match the pins set within LED properties.
Looking at your wiring diagram image, which is not very clear, you have the following:
RS > D7
EN > B0
D0 > B1
D1 > B2
D3 > B3
D4 > B4
Within LCD properties It looks like you have EN going to D4 etc.
Uno Digital 0 to 7 = PortD 0 to 7
Uno Digital 8 to 13 = PortB 0 to 5
Uno Analogue A0 to A5 = PortC 0 to 5
Thanks for the reply. Pin 7 or 8 are not available with the properties of the display so I have used 2 and 4 but still will not work.

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Jan 13, 2022 3:54 pm
by MartinSpeed
Forgot to say that it compiles but no message on the display.

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Thu Jan 13, 2022 3:59 pm
by medelec35
MartinSpeed wrote:
Thu Jan 13, 2022 3:37 pm
Pin 7 or 8 are not available with the properties of the display
?
pin7 is D7
and Pin8 is B0 as in the table I posted.
Looking at your wiring diagram you should have:
LCD pin connections.png
LCD pin connections.png (15.01 KiB) Viewed 5386 times
As the diagram is not clear, can you state what pin of the Arduino (Digital 0 to 13)each connection of the LCD is connected to?
E.g.

LCD > Pin
RS > 7
EN > 8
D0 > 9
D1 > 10
D3 > 11
D4 > 12

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Fri Jan 14, 2022 11:52 am
by MartinSpeed
RS 7
EN 8
D4 9
D5 10
D6 11
D7 12

Thanks

Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7

Posted: Fri Jan 14, 2022 1:12 pm
by medelec35
Can you post your flowchart, please?
If I was you, I would make sure all the connections are sound and there is continuity as I have had O/C DuPont connections before.
If connections are all ok then what is the reply to
Steve wrote:
Thu Jan 13, 2022 10:38 am
Do you have a spec for the LCD? Specifically, which drivers is it using?