LCD 16x2 don't works with Arduino UNO in Flowcode 7
Moderator: Benj
-
- Posts: 8
- Joined: Fri Sep 22, 2017 5:25 am
- Has thanked: 2 times
LCD 16x2 don't works with Arduino UNO in Flowcode 7
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.
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 378 times
-
- e4e78f27-1dba-4670-a4db-17567df7af5d.jpg (57.15 KiB) Viewed 10535 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 28
- Joined: Tue Nov 09, 2021 11:53 am
- Been thanked: 1 time
Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7
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 (40.26 KiB) Viewed 8058 times
-
- 20220113_073315.jpg (210.43 KiB) Viewed 8058 times
-
- Posts: 28
- Joined: Tue Nov 09, 2021 11:53 am
- Been thanked: 1 time
Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7
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.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7
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
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
-
- Posts: 28
- Joined: Tue Nov 09, 2021 11:53 am
- Been thanked: 1 time
Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7
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.medelec35 wrote: ↑Thu Jan 13, 2022 12:15 pmHi 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
- Attachments
-
- Pin7_8.jpg (45.45 KiB) Viewed 8036 times
-
- Posts: 28
- Joined: Tue Nov 09, 2021 11:53 am
- Been thanked: 1 time
Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7
Forgot to say that it compiles but no message on the display.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7
?MartinSpeed wrote: ↑Thu Jan 13, 2022 3:37 pmPin 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: 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
-
- Posts: 28
- Joined: Tue Nov 09, 2021 11:53 am
- Been thanked: 1 time
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: LCD 16x2 don't works with Arduino UNO in Flowcode 7
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
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
Martin