TFT ILI9341 driver mod for ILI9342 ?
-
Hi all!
I recently bought a very nice 1/12 Vewlix arcade cabinet model.
I want to mod it to a playable stuff by retropie with TFT display.After some research I found there have many resource on pi and ILI9341.
As this screen is a portrait screen originally so I cant centering the display if I put on the model (just around 6cm width).I starting search around and bought a 2.4" landscape tft which using ILI9342 chips.
The size is just prefect to use on this project but saddly I cant found anyone use this clip on Pi except Arduino.
After some research on Arduino side and basically difference between this 2 clip is just the orientation:So I wondering anyone have experience on this issue? Can give me some hints or suggestion ??
Thanks for watching and sorry for my english. :D
-
@tctctc that looks like a nice cabinet!! will make a great project
I have just had a quick look though the fbtft wiki and your correct, there is no ili9342 listed. If you follow the guide in my signature, see what happens for your screen. It might be interesting to see
-
thanks @moosepr! Your guide is the first few reference i read, its super helpful!
I will post some test result a while later.If no luck, my alternative is to get a car AV display:
car 2.5" displayBTW.. someone already did this
Its almost prefect if they have a screen right on the middle . -
@tctctc yeah the ili9342 will be better as the driver chip with be along the longer edge of the screen, meaning you will be able to center it in the case.
Are you going to make the controls work?
-
@moosepr No.. its too tiny to use..
-
@tctctc hahaha they do look tiny
I have ordered a screen myself, so i will be able to test the driver in 20-40 days time ๐
-
@moosepr You bought a IIL9342? thats great!!
-
@tctctc yeah they look to be ideal for another project im after making. they design the screens to be viewed with the chip at the bottom, so a landscape design would be ideal
-
@moosepr said in TFT ILI9341 driver mod for ILI9342 ?:
@tctctc hahaha they do look tiny
I have ordered a screen myself, so i will be able to test the driver in 20-40 days time ๐
Having had a quick look at the datasheets it looks like the main difference will be with the gamma settings and the MADCTL register (command 36h on both).
The big problem seems to be finding details of the connector pinout. This page has details of a screen with the same part number but it has a different version number and appears to use a different driver chip. It does have pin descriptions but there's no guarantee that they are the same. The OP's display also claims to have a 12864 interface which seems to be the row of 20 holes at the top. This document has a brief description of that. Exactly how you would use that interface isn't clear either nor is how you would specify which you wanted to use.
-
@davej the few i have found on aliexpress have pinouts for the display. The all seem to be pretty similar with the SPI and DPI pins available, normally with a few extras for touch
-
@moosepr said in TFT ILI9341 driver mod for ILI9342 ?:
@davej the few i have found on aliexpress have pinouts for the display. The all seem to be pretty similar with the SPI and DPI pins available, normally with a few extras for touch
That's good. I couldn't find one in the OP's linked screen.
SPI is frequently used for an SD card interface so that is something to look out for.
Going by the pinout you linked to, it has a 16 bit MCU interface rather than a DPI one. DPI uses things like VSYNC, HSYNC and DOTCLOCK. The RD, /WR and RS labels in the pinout indicate the MCU interface. The existing driver copes with outputting to an MCU interface (it calls it parallel) but the ILI3941 driver assumes SPI. I'm not familiar with the fbtft driver though so can't be much help there.
In case you haven't realised, I've been playing with a ILI9341 screen for a microcontroller project. The microcontroller doesn't have enough memory for a frame buffer so I can't even use the fbtft driver for inspiration. Updating the screen is a real pain - particularly drawing diagonal lines.
-
@davej ah yeah your right, I only skimmed the list for the simple spi connection pins.
These screens are always sold as MCU screens, but they are mainly designed for dumping images from the associated SD card. I think the ili9341 is great for tiny pi based devices, minimal cost and effort
-
Hi guys,
The copy of data form the seller:
https://pan.baidu.com/share/link?shareid=4248892308&uk=1445663752
(click [ไธ่ฝฝ(3.6M)] to download)
although some file naming using chinese, but all inside is english.
hope its help!module pins definition:
*translate:- (right top corner) *If you bought 8bit version (default sell as 16bit version, please remind), just connect pins D0-7!
- BL_VDD : backlight power source, can use 3.3V
- (bottom right corner) These pins just for touch enabled screen, no need to handle if the screen without touch.
SPT2230A-FPC-V01 pins definition:
-
Did you ever get the ILI9342 screen to work with a Pi?
-
@obsidianspider I got distracted with other projects, should really get back on it
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.