Arduino Uno connection to ILI9341 TFT LCD

For general Flowcode discussion that does not belong in the other sections.
monie
Posts: 73
http://meble-kuchenne.info.pl
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Arduino Uno connection to ILI9341 TFT LCD

Post by monie »

Is there anyone here who would be helpful with the links below?
I want Arduino Uno connection to ILI9341 TFT LCD....

DISP. Arduino Uno.

CS > ?
Reset > ?
DC > ?
Mosi > ?
Sck > ?
Miso > ?

Is there anyone here who would be helpful in describing which connections should be used from the Arduino Uno to the ILI9341 TFT LCD

See Attachment:
DisplayArdinoUnoToLI9341.fcfx
(11.99 KiB) Downloaded 436 times
With best regards
Monie

mnfisher
Valued Contributor
Posts: 1554
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 138 times
Been thanked: 741 times

Re: Arduino Uno connection to ILI9341 TFT LCD

Post by mnfisher »

Hi Monie,

Easiest to use the standard SPI pins - so d10 is CS, d11 is MOSI, d12 is MISO and d13 is sck. The others you can choose to suit

Did you get it working with your esp32 'duino board?

Martin

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: Arduino Uno connection to ILI9341 TFT LCD

Post by monie »

Hi Martin

Did you get it working with your esp32' duino board? Yes, very nice

Working on getting Arduino uno together with ILI9341 working. So I'll try with your suggestion Martin

Monie

mnfisher
Valued Contributor
Posts: 1554
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 138 times
Been thanked: 741 times

Re: Arduino Uno connection to ILI9341 TFT LCD

Post by mnfisher »

One tip - output a 1 to d10 (CS) at the start of your program (before initialising the display). The MCU here likes d10 to be an output for SPI to work correctly (you can use another pin for CS, however, d10 must still be set as an output)

If you don't do this - occasionally you'll find nothing happens (no output on SPI).

Ben might have modified the component to do this - but the extra output won't hurt...

Martin

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: Arduino Uno connection to ILI9341 TFT LCD

Post by monie »

Hi Martin

I keep getting error message!

See Compiler Messages fail
----------------------------------
C:\Users\sun\Desktop>"C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\sun\Desktop\DisplayArdinoUnoToLI9341.elf" "C:\Users\sun\Desktop\DisplayArdinoUnoToLI9341.c" -lm -Wl,-gc-sections
Den angivne sti blev ikke fundet.

Error returned from [avr-gcc.exe]

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\AVR\batchfiles\avra.bat reported error code 0x3

Autoclose turned off

FINISHED
-------------------------------------------
Attached file:
Compiler Messages.pdf
(41.71 KiB) Downloaded 545 times
Display connection to Ardino UNO

DISP. too Arduino Uno.

CS > D10
Reset > D33 (Port D.6)
DC > D27
Mosi > D11
Sck > D13
Miso > D12
Led > (Port B.5)
D/C > ?


TOUCH.

Disp. ESP.

Sck. > TX2 = A17
Cs. > D4 = A4
Din > D21 = A21
Do > D5 = A5

See my setup in Connections below!
Connections.jpg
Connections.jpg (25.03 KiB) Viewed 4291 times

Monie

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Arduino Uno connection to ILI9341 TFT LCD

Post by monie »

Hi Martin


For all the time error message: " The specified path was not found." As shown below...
Attached file:
Compiler Messages 27-06-2023.pdf
(58.35 KiB) Downloaded 448 times
Can you see what I'm doing wrong and how to fix it?

Monie
Last edited by monie on Wed Jun 28, 2023 8:44 am, edited 8 times in total.

chipfryer27
Valued Contributor
Posts: 1614
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 357 times
Been thanked: 565 times

Re: Arduino Uno connection to ILI9341 TFT LCD

Post by chipfryer27 »

Hi

The subject line is "Arduino Uno connection to ILI9341 TFT LCD" and you are asking
Can you see what I'm doing wrong and how to fix it
Just a shot in the dark, but have you actually tried using an Arduino Uno...?

The chart you attached uses an ESP32 WROOM 32 and incidentally it compiles to Hex without issue for me.

Regards

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: Arduino Uno connection to ILI9341 TFT LCD

Post by monie »

Hi chipfryer27

I have an Arduino Uno attached!
Can also be seen in the document: Compiler Messages 27-06-2023.pdf

I do not use ESP32 WROOM 3 - But use only "Ardini Uno R3 and ILI9341 TFT LCD" i Flowcode v10

Flowcode Project:
DisplayArdinoUnoToLI9341.fcfx
(11.79 KiB) Downloaded 549 times


Monie

chipfryer27
Valued Contributor
Posts: 1614
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 357 times
Been thanked: 565 times

Re: Arduino Uno connection to ILI9341 TFT LCD

Post by chipfryer27 »

Hi

If you look in the chart you initially attached, you will see that under Build>Project Options the target is set as an ESP32_Wroom_32 not an Arduino.

Capture.PNG
Capture.PNG (15.64 KiB) Viewed 4203 times

If you change the target to an Arduino and then check pin allocations, you may be get better results.

I've often forgotten to change the target from previous, only realising when things wouldn't work.

Regards

chipfryer27
Valued Contributor
Posts: 1614
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 357 times
Been thanked: 565 times

Re: Arduino Uno connection to ILI9341 TFT LCD

Post by chipfryer27 »

Hi

I've downloaded your latest attachment that when simulated displays "Hey, you behind the screen there" which is far more amusing than "Hello World" :)

It compiles to Hex without issue for me. I can't check in Hardware as I don't have the components.

Regards

Post Reply