RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    TFT ILI9341 driver mod for ILI9342 ?

    Scheduled Pinned Locked Moved Projects and Themes
    ili9341ili9342tft screenguidelcd
    15 Posts 4 Posters 7.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tctctc
      last edited by

      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.

      2.4" TFT

      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:

      ili9341 vs ili9342

      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

      alt text

      mooseprM 1 Reply Last reply Reply Quote 0
      • mooseprM
        moosepr @tctctc
        last edited by

        @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

        want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

        T 1 Reply Last reply Reply Quote 0
        • T
          tctctc @moosepr
          last edited by

          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" display

          BTW.. someone already did this


          Its almost prefect if they have a screen right on the middle .

          mooseprM 1 Reply Last reply Reply Quote 0
          • mooseprM
            moosepr @tctctc
            last edited by

            @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?

            want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

            T 1 Reply Last reply Reply Quote 0
            • T
              tctctc @moosepr
              last edited by

              @moosepr No.. its too tiny to use..

              mooseprM 1 Reply Last reply Reply Quote 0
              • mooseprM
                moosepr @tctctc
                last edited by

                @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 😛

                want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

                T davejD 2 Replies Last reply Reply Quote 0
                • T
                  tctctc @moosepr
                  last edited by

                  @moosepr You bought a IIL9342? thats great!!

                  mooseprM 1 Reply Last reply Reply Quote 0
                  • mooseprM
                    moosepr @tctctc
                    last edited by moosepr

                    @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

                    alt text

                    want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

                    1 Reply Last reply Reply Quote 0
                    • davejD
                      davej @moosepr
                      last edited by

                      @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.

                      mooseprM 1 Reply Last reply Reply Quote 0
                      • mooseprM
                        moosepr @davej
                        last edited by

                        @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

                        alt text

                        want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

                        davejD 1 Reply Last reply Reply Quote 0
                        • davejD
                          davej @moosepr
                          last edited by

                          @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.

                          mooseprM 1 Reply Last reply Reply Quote 0
                          • mooseprM
                            moosepr @davej
                            last edited by

                            @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

                            want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

                            1 Reply Last reply Reply Quote 0
                            • T
                              tctctc
                              last edited by tctctc

                              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!

                              the screen

                              module pins definition:
                              0_1499827195310_ƒ£øÈ“˝Ω≈∂®“Â.jpg
                              *translate:

                              1. (right top corner) *If you bought 8bit version (default sell as 16bit version, please remind), just connect pins D0-7!
                              2. BL_VDD : backlight power source, can use 3.3V
                              3. (bottom right corner) These pins just for touch enabled screen, no need to handle if the screen without touch.

                              SPT2230A-FPC-V01 pins definition:
                              1_1499827195310_SPT2230A-FPC-V01“˝Ω≈∂®“Â.jpg

                              1 Reply Last reply Reply Quote 0
                              • obsidianspiderO
                                obsidianspider
                                last edited by

                                Did you ever get the ILI9342 screen to work with a Pi?

                                📷 @obsidianspider

                                mooseprM 1 Reply Last reply Reply Quote 0
                                • mooseprM
                                  moosepr @obsidianspider
                                  last edited by

                                  @obsidianspider I got distracted with other projects, should really get back on it

                                  want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

                                  1 Reply Last reply Reply Quote 1
                                  • First post
                                    Last post

                                  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.