[Guide] ili9341 SPI TFT Screen on Retropie

Various user-contributed guides for hardware-related things
User avatar
Mikethesith200
Posts: 60
Joined: Tue Nov 29, 2016 3:20 am
Has thanked: 39 times
Been thanked: 10 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by Mikethesith200 » Tue Jul 11, 2017 9:34 am

So the 9 pin display will work with this guide?

tonda2 wrote:
Tue Jul 11, 2017 7:42 am
Here is 2.2 inch display I bought.
http://m.ebay.com/itm/191816725599

User avatar
tonda2
Posts: 16
Joined: Fri Dec 30, 2016 6:31 am
Location: Czech Republic
Has thanked: 1 time
Been thanked: 2 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by tonda2 » Tue Jul 11, 2017 9:42 am

Yes

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by moosepr » Tue Jul 11, 2017 10:03 am

Mikethesith200 wrote:
Tue Jul 11, 2017 9:34 am
So the 9 pin display will work with this guide?

tonda2 wrote:
Tue Jul 11, 2017 7:42 am
Here is 2.2 inch display I bought.
http://m.ebay.com/itm/191816725599
ah, i missed that 9 pin bit!! As long as its an ILI9341 screen, your golden!
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
Mikethesith200
Posts: 60
Joined: Tue Nov 29, 2016 3:20 am
Has thanked: 39 times
Been thanked: 10 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by Mikethesith200 » Tue Jul 11, 2017 10:22 am

Sorry for the noob questions, but thanks so much for replying.

moosepr wrote:
Tue Jul 11, 2017 10:03 am
Mikethesith200 wrote:
Tue Jul 11, 2017 9:34 am
So the 9 pin display will work with this guide?

tonda2 wrote:
Tue Jul 11, 2017 7:42 am
Here is 2.2 inch display I bought.
http://m.ebay.com/itm/191816725599
ah, i missed that 9 pin bit!! As long as its an ILI9341 screen, your golden!

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by Holydohnut » Tue Aug 01, 2017 9:00 am

Hi all. I ordered myself an ili9341 from a seller in China about 10 days ago, and I was gobsmacked to find out it's arrived today! (Beating the usb sound card and speakers I ordered nearly a month ago! But I should have known that something would go wrong. I noticed immediately that the screen seemed to have extra pins down the side, and after a bit of investigating, I think they've sent me a ILI9225 instead.

I've read that this screen has a poor resolution compared to the ili9341, but as I can't face the returns process, is there a way to get this screen working for now? The pins don't match what's at the beginning of the guide, though I have read that the driver on Github *should* work.

Here's the pinouts on the screen. If someone could guide me in the right direction, I'd be appreciative.
1501599483182-1731392882.jpg
1501599483182-1731392882.jpg (3.69 MiB) Viewed 7090 times

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by moosepr » Tue Aug 01, 2017 11:01 am

Give it a go as ili9341, it might work, most use the same instructions. The pins ain't that far off


Display--------Raspberry Pi
LED/BL--------------pin 12 (GPIO 18)
CLK/SCK------------pin 23 (GPIO 11)
MISO----------pin 21 (GPIO 9)
SDI/MOSI----------pin 19 (GPIO 10)
CS--------------pin 24 (GPIO 8)
RST------------pin 22 (GPIO 25)
RS/D/C-------------pin 18 (GPIO 24)
VIN-------------pin 17 (3.3v)
GND-----------pin 20 (GND)
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by Holydohnut » Tue Aug 01, 2017 11:24 am

Thank you! I'll give it a go as soon as the kids are in bed! :-)

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by Holydohnut » Tue Aug 01, 2017 1:47 pm

Just got to give this a try. Connected up all the wires on a breadboard so I'm pretty sure the connections are good. Ran the first command and the screen lit up as described. But when I ran the con2fbmap 1 1 command, nothing happened.

For the MISO pin, the screen only has one of those on the opposite side of the board, and it's labeled SD-MISO. Is that the right one to connect to pi pin 21?

Thanks!

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by moosepr » Tue Aug 01, 2017 7:47 pm

You don't need to worry about the pins on the other side, they are for the SD card. The screen is one way communication, so you only need the SDI/MOSI.

Does the normal console stop responding like us on the other screen?
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
Holydohnut
Posts: 194
Joined: Wed May 10, 2017 2:02 pm
Has thanked: 29 times
Been thanked: 68 times

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by Holydohnut » Wed Aug 02, 2017 1:50 am

Thanks. I thought that might be the case so I removed it while I was testing last night. I spent a good few hours tinkering, but just can't get it to work. Reading through the Github pages I realised that if you specify the ili9341 card, dmesg displays a final line that amongst other things, contains a resolution higher than this screen can manage. It does say you can specify the ILI9225, but when I tried that, the backlight doesn't even come on, and the final graphics line is missing from dmesg. Looking through the config, I found another driver with the correct resolution (bn8430 or something) so I tried that as well, and that does activate the backlight, and while the screen doesn't come on with the con2.... Command, the hdmi screen. DOES stop responding until you use the 1 0 command.

I feel like I'm really close and yet still so far away! I might try a full system update today to make sure all the packages are the latest version. If you do have any other suggestions though, I'd be very grateful!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest