Page 1 of 2
Arduino Uno connection to ILI9341 TFT LCD
Posted: Sun Jun 25, 2023 10:30 am
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:
With best regards
Monie
Re: Arduino Uno connection to ILI9341 TFT LCD
Posted: Sun Jun 25, 2023 10:34 am
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
Re: Arduino Uno connection to ILI9341 TFT LCD
Posted: Sun Jun 25, 2023 12:39 pm
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
Re: Arduino Uno connection to ILI9341 TFT LCD
Posted: Sun Jun 25, 2023 2:34 pm
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
Re: Arduino Uno connection to ILI9341 TFT LCD
Posted: Sun Jun 25, 2023 3:43 pm
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:
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 (25.03 KiB) Viewed 4322 times
Monie
Arduino Uno connection to ILI9341 TFT LCD
Posted: Tue Jun 27, 2023 4:15 pm
by monie
Hi Martin
For all the time error message: " The specified path was not found." As shown below...
Attached file:
Can you see what I'm doing wrong and how to fix it
?
Monie
Re: Arduino Uno connection to ILI9341 TFT LCD
Posted: Tue Jun 27, 2023 5:21 pm
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
Re: Arduino Uno connection to ILI9341 TFT LCD
Posted: Wed Jun 28, 2023 8:30 am
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:
Monie
Re: Arduino Uno connection to ILI9341 TFT LCD
Posted: Wed Jun 28, 2023 8:44 am
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 (15.64 KiB) Viewed 4234 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
Re: Arduino Uno connection to ILI9341 TFT LCD
Posted: Wed Jun 28, 2023 9:48 am
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