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

An area to discuss AVR and Arduino specific problems and examples

Moderator: Benj

Post Reply
silicioslab
Posts: 8
Joined: Fri Sep 22, 2017 5:25 am
Has thanked: 2 times
Contact:

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

Post 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.
Attachments
MenuLCD.fcfx
(24.39 KiB) Downloaded 152 times
e4e78f27-1dba-4670-a4db-17567df7af5d.jpg
e4e78f27-1dba-4670-a4db-17567df7af5d.jpg (57.15 KiB) Viewed 2615 times

User avatar
Benj
Matrix Staff
Posts: 15274
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4780 times
Been thanked: 4305 times
Contact:

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

Post 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

MartinSpeed
Posts: 28
Joined: Tue Nov 09, 2021 11:53 am
Been thanked: 1 time
Contact:

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

Post 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.
Attachments
Screenshot_20220113-074100_Gallery.jpg
Screenshot_20220113-074100_Gallery.jpg (40.26 KiB) Viewed 138 times
20220113_073315.jpg
20220113_073315.jpg (210.43 KiB) Viewed 138 times

MartinSpeed
Posts: 28
Joined: Tue Nov 09, 2021 11:53 am
Been thanked: 1 time
Contact:

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

Post 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.

User avatar
Steve
Matrix Staff
Posts: 3340
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 111 times
Been thanked: 420 times
Contact:

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

Post by Steve »

Do you have a spec for the LCD? Specifically, which drivers is it using?

medelec35
Matrix Staff
Posts: 9425
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2570 times
Been thanked: 3786 times
Contact:

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

Post 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
Martin

MartinSpeed
Posts: 28
Joined: Tue Nov 09, 2021 11:53 am
Been thanked: 1 time
Contact:

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

Post 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.
Attachments
Pin7_8.jpg
Pin7_8.jpg (45.45 KiB) Viewed 116 times

MartinSpeed
Posts: 28
Joined: Tue Nov 09, 2021 11:53 am
Been thanked: 1 time
Contact:

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

Post by MartinSpeed »

Forgot to say that it compiles but no message on the display.

medelec35
Matrix Staff
Posts: 9425
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2570 times
Been thanked: 3786 times
Contact:

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

Post 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 111 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
Martin

MartinSpeed
Posts: 28
Joined: Tue Nov 09, 2021 11:53 am
Been thanked: 1 time
Contact:

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

Post by MartinSpeed »

RS 7
EN 8
D4 9
D5 10
D6 11
D7 12

Thanks

medelec35
Matrix Staff
Posts: 9425
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2570 times
Been thanked: 3786 times
Contact:

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

Post 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?
Martin

Post Reply