Page 1 of 1

UNO/MEGA TRU Components graphic display w/touch

Posted: Sun Jun 05, 2022 3:21 pm
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

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

Posted: Sun Jun 05, 2022 8:38 pm
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.

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

Posted: Mon Jun 06, 2022 7:00 am
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

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

Posted: Tue Jun 07, 2022 8:26 pm
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 59 times

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

Posted: Wed Jun 08, 2022 11:12 am
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