UNO/MEGA TRU Components graphic display w/touch

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jan.didden
Posts: 82
http://meble-kuchenne.info.pl
Joined: Thu Dec 17, 2020 3:16 pm
Has thanked: 20 times
Been thanked: 12 times

UNO/MEGA TRU Components graphic display w/touch

Post by jan.didden »

This display is specifically laid out for the Arduino Mega 2560, plugs directly on the board.
It has an onboard ILI9341 controller, for which FC9 has a component in the display library.
I got it to work in sim (which doesn't say a lot, I know), not on hardware.

One thing I am unsure about is the FC component connection dc_pin; I don't know what pin that is on the actual display.
So far all display pins are accounted for on the FC component except the RS pin, which I believe is Register Select.
So, the display RS pin has no connection in the FC component, while the FC component pin dc_pin has no pin on the display hardware.
I made the obvious test to assume dc_pin is the RS pin, but it still doesn't work.

Anybody has any idea how to resolve this?

Jan Didden
Attachments
tru components 2560 MEGA display.pdf
(1.26 MiB) Downloaded 62 times

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: UNO/MEGA TRU Components graphic display w/touch

Post by BenR »

Hello Jan,

Yes the DC pin in Flowcode (Data/Command) is the same as the display RS (Register select) pin.

Can you send us your project file and I'll have a quick look at this to make sure nothing is wrong.

Does the display do anything? e.g. light up or do anything with any of the pixels at all?

Good news is I appear to have that exact same display here so I can test it with your project on a mega here.

jan.didden
Posts: 82
Joined: Thu Dec 17, 2020 3:16 pm
Has thanked: 20 times
Been thanked: 12 times

Re: UNO/MEGA TRU Components graphic display w/touch

Post by jan.didden »

Good morning Ben,

Thanks for chiming in. The display does light up, no issues with power so I assume that the basic connections are OK. There's only one way this display can be plugged into the mega because of the clever spacing of the header sections. See pic.
The project is an extremely simple attempt to get the usual "Hello World"...

Jan
Attachments
2560 test.fcfx
(10.57 KiB) Downloaded 57 times
mega.jpg
mega.jpg (101.83 KiB) Viewed 1272 times

BenR
Matrix Staff
Posts: 1706
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: UNO/MEGA TRU Components graphic display w/touch

Post by BenR »

Hello,

Working well for me now, you had your pin connections a little bit wrong, not surprising the ports on the mega are all over the place.

Took me a few attempts to get it right too ;)

2560 test.fcfx
(10.37 KiB) Downloaded 54 times

jan.didden
Posts: 82
Joined: Thu Dec 17, 2020 3:16 pm
Has thanked: 20 times
Been thanked: 12 times

Re: UNO/MEGA TRU Components graphic display w/touch

Post by jan.didden »

Thanks Ben - total success, yes. I had to figure out why I got an error message from AVRdude 'cannot open serial port com12' but I saw that the device was hanging off com5 and then discovered a setting in the Project Options to select the programmer.
Learning, learning, learning ...

Have a great day!

Jan

Post Reply