[Guide] ili9341 SPI TFT Screen on Retropie

Various user-contributed guides for hardware-related things
User avatar
abrugsch
Posts: 971
Joined: Tue Aug 02, 2016 10:00 am
Has thanked: 356 times
Been thanked: 430 times
Contact:

Re: [Guide] ili9341 SPI TFT Screen on Retropie

Post by abrugsch » Thu Jun 01, 2017 9:20 am

well i was thinking arcade style games to include consoles too. sonic etc. plenty of amiga games, and uh.... others ;)

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 » Mon Jul 03, 2017 2:44 pm

Hi,
does this work the same with recalbox?

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 » Mon Jul 03, 2017 2:50 pm

tonda2 wrote:
Mon Jul 03, 2017 2:44 pm
Hi,
does this work the same with recalbox?
I would assume so, as long as the core filesystem isn't read only. This changes ALOT!

Also it gets more complicated if it doesn't have the drivers available.

Try the modprobe line and see what happens
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
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 » Sun Jul 09, 2017 1:31 pm

Hi,
I have installed Retropie and followed this guide, but I still have some problem. After I type

Code: Select all

sudo modprobe fbtft_device custom name=fb_ili9341  gpios=reset:25,dc:24,led:18 speed=16000000 bgr=1
the backlight turns on. But when I type

Code: Select all

con2fbmap 1 1
nothing happens on the screen and the terminal somehow freezes. After this the only way I can get it running again is to unplug USB cable. Can anyone help me?
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 » Sun Jul 09, 2017 3:01 pm

tonda2 wrote:
Sun Jul 09, 2017 1:31 pm
Hi,
I have installed Retropie and followed this guide, but I still have some problem. After I type

Code: Select all

sudo modprobe fbtft_device custom name=fb_ili9341  gpios=reset:25,dc:24,led:18 speed=16000000 bgr=1
the backlight turns on. But when I type

Code: Select all

con2fbmap 1 1
nothing happens on the screen and the terminal somehow freezes. After this the only way I can get it running again is to unplug USB cable. Can anyone help me?
Thanks
Well you have some progress there! When you do the con2fbmap line it actually transfers the terminal to the TFT screen. This is why it looks like it has stopped working.

First thing to check is your wiring. If you have a pin wrong then the screen might not be starting properly. If the screen if lit and white then you have backlight but not initialisation. If the screen is lit but showing black, then you should be good to go.

Check the wires first, then check for errors after typing the modprobe line buy typing

dmesg

In the terminal. You can ignore any messages about staging
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 5:12 am

Complete noob here. If I order your mininal board from oshpark, using this screen, can i connect controller buttons to GPIO, and use a USB DAC, like this one? http://www.sudomod.com/wiki/index.php?title=GBZ_Usb_DAC

Thanks!


moosepr wrote:
Wed Feb 01, 2017 2:11 am
Helder wrote: That is my whole reason to be looking into these screens to be honest and I'm well aware of those files but thanks for the links. I plan to make some changes to his choices of components for power and charging but I wanted to look into screen possibilities that are not 3.5 inch but more like 3.2inch so there doesn't need to be any case modding for the screen.

NTSC TVs (older tube sets) run at around 30fps and these SPI screens run about that speed so these emulators should run decent on them.

if we are sharing, then i best add to the list!! here is a link to the super minimal board in the puctures

https://oshpark.com/shared_projects/BP9tGKag

I did have a bit of a play making a board that would have the screen on one side, a pi zero stuck on the other, and power/gpio pins round the edges

https://oshpark.com/shared_projects/tSdupLd4

I have only been using eagle for a short while (only been designing pcb's the same length of time) so be gentle

I also made an eagle library for the ili9341 screens. Until my screens land i cant be sure its 100% right, but i think its ok

https://github.com/moosepr/eaglez/blob/ ... I-Zero.lbr

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 5:17 am

Mikethesith200 wrote:
Tue Jul 11, 2017 5:12 am
Complete noob here. If I order your mininal board from oshpark, using this screen, can i connect controller buttons to GPIO, and use a USB DAC, like this one? http://www.sudomod.com/wiki/index.php?title=GBZ_Usb_DAC

Thanks!
yeah you need to make sure it is a 14 pin screen (or 18 pin if its 2.4/2.8 inch) but yeah thats all you need!! :)
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 5:22 am

Awesome, thanks! I'm trying to find a 2" screen, but no luck.

I see 9 pin 2.2" but thats it.

moosepr wrote:
Tue Jul 11, 2017 5:17 am
Mikethesith200 wrote:
Tue Jul 11, 2017 5:12 am
Complete noob here. If I order your mininal board from oshpark, using this screen, can i connect controller buttons to GPIO, and use a USB DAC, like this one? http://www.sudomod.com/wiki/index.php?title=GBZ_Usb_DAC

Thanks!
yeah you need to make sure it is a 14 pin screen (or 18 pin if its 2.4/2.8 inch) but yeah thats all you need!! :)

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 7:34 am

Mikethesith200 wrote:
Tue Jul 11, 2017 5:22 am
Awesome, thanks! I'm trying to find a 2" screen, but no luck.

I see 9 pin 2.2" but thats it.

moosepr wrote:
Tue Jul 11, 2017 5:17 am
Mikethesith200 wrote:
Tue Jul 11, 2017 5:12 am
Complete noob here. If I order your mininal board from oshpark, using this screen, can i connect controller buttons to GPIO, and use a USB DAC, like this one? http://www.sudomod.com/wiki/index.php?title=GBZ_Usb_DAC

Thanks!
yeah you need to make sure it is a 14 pin screen (or 18 pin if its 2.4/2.8 inch) but yeah thats all you need!! :)
The 2 inch screens actually tend to have a lower resolution (176x220) and a different driver chip (LGDP4524) which wont work with this guide

currently cant find any 2.2 inch ones, i think they are getting a bit more rare now. here is a 2.4

https://www.aliexpress.com/item/2-4-inc ... 77290.html

you can ignore the last 4 pins, they are used for touch
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
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 7:42 am

Here is 2.2 inch display I bought.
http://m.ebay.com/itm/191816725599

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest