[Guide] ili-9341 true 60 fps fast refresh tutorial

Various user-contributed guides for hardware-related things
codeman0624
Posts: 107
Joined: Wed Nov 23, 2016 10:19 am
Has thanked: 3 times
Been thanked: 73 times

Re: [Guide] ili-9341 true 60 fps fast refresh tutorial

Post by codeman0624 » Wed May 16, 2018 11:53 am

I would be very interested in someone confirming that it works well on a PI0W.

This is something I would change pinouts on my board to get implemented. But right now I don't have a setup available to test this. Can someone confirm it does work on the PI0W? Is is also flexible like regular fbcp in that I can disable the LED drive pin?

bamsegod
Posts: 9
Joined: Tue Apr 24, 2018 7:01 am
Has thanked: 3 times
Been thanked: 5 times

Re: [Guide] ili-9341 true 60 fps fast refresh tutorial

Post by bamsegod » Thu May 17, 2018 3:23 pm

Sorry I don't have a RPI zero to test but it's been confirmed by JUJ himself that it will not work on RPI zero

User avatar
NimbleJoshua
Posts: 17
Joined: Tue Feb 06, 2018 1:17 pm
Location: Central New York
Has thanked: 8 times
Been thanked: 5 times

Re: [Guide] ili-9341 true 60 fps fast refresh tutorial

Post by NimbleJoshua » Fri Jun 01, 2018 1:04 am

Will this have any impact on emulator performance? Particularly the more intensive ones like N64 and Dreamcast

codeman0624
Posts: 107
Joined: Wed Nov 23, 2016 10:19 am
Has thanked: 3 times
Been thanked: 73 times

Re: [Guide] ili-9341 true 60 fps fast refresh tutorial

Post by codeman0624 » Mon Jun 11, 2018 5:19 am

He's done a lot of work on this driver recently, it is definitely worth checking out again:
https://github.com/juj/fbcp-ili9341

It was quite easy to get up and working on my project by just following his instructions. I don't have any actual data to say the result is better, but games definitely feel more responsive using his new display driver.

User avatar
fdeluxe
Posts: 83
Joined: Tue Aug 23, 2016 10:16 am
Has thanked: 14 times
Been thanked: 29 times
Contact:

Re: [Guide] ili-9341 true 60 fps fast refresh tutorial

Post by fdeluxe » Wed Jul 18, 2018 2:52 pm

I want to inform you guys that adjusting the screen brightness on this screens is very easy:

Connect LCD --> GPIO18

sudo apt-get purge wiringpi
sudo apt-get install wiringpi
gpio -g mode 18 pwm
gpio -g pwm 18 value

where value can be anything between 0 and 255 but you can also try higher values.
This is perfect for hooking up a poti or some buttons and let a python script run wich changes the brightness accordingly
You can also hook up your arduino to the LCD pin and use

analogWrite(LcdPin, value); // value can be 0-255

You will get a brighter screen using the Arduino, since the Pi only delivers 3,3V at PWM while the Arduino does 5V (I measured 4.6V and the image is slighty darker compared to using the 5V pin of the Pi)

Not sure if this will work on any pcb. I have exaclty the same one as in the video

I also tried using a PN2222 Transistor to use the 5V pin as power source and toggling the brightness by using the arduino PWM as base. But it still is not as bright as if I connect directly to 5V... Any suggestions on how to get it to full brightness?

bigbulb
Posts: 1
Joined: Mon Oct 22, 2018 3:31 am

Re: [Guide] ili-9341 true 60 fps fast refresh tutorial

Post by bigbulb » Mon Oct 22, 2018 3:37 am

Hi,
I follow this tutorial and it works , ( I'm using Pi Zero ) .
May I know how to switch off the top diyplayed data please ? ( showing fps etc) I found that was a little bit annoying while I'm playing retropie games.

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

Re: [Guide] ili-9341 true 60 fps fast refresh tutorial

Post by moosepr » Tue Oct 23, 2018 7:59 am

you need to re-make it all, and add in the option

-DSTATISTICS=0

that will set it to be off

'-DSTATISTICS=number: Specifies the level of overlay statistics to show on screen. 0: disabled, 1: enabled, 2: enabled, and show frame rate interval graph as well.'
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

gbjack
Posts: 15
Joined: Sun Oct 14, 2018 9:47 am
Has thanked: 2 times

Re: [Guide] ili-9341 true 60 fps fast refresh tutorial

Post by gbjack » Mon Nov 12, 2018 9:50 am

For me the screen works at a very great framerate but it flickers a lot in certains games (mostly in games with a lot of visual changes). I'm using a generic ili9341 with the red pcb and my cmake is:

cmake -DSPI_BUS_CLOCK_DIVISOR=6 -DILI9341=ON -DARMV8A=ON -DGPIO_TFT_DATA_CONTROL=22 -DGPIO_TFT_RESET_PIN=27 -DGPIO_TFT_BACKLIGHT=17 -DBACKLIGHT_CONTROL=ON -DSTATISTICS=0 -DDISPLAY_ROTATE_180_DEGREES=ON ..

Seems that changing the -DSPI_BUS_CLOCK_DIVISOR=6 with higher values like 8, 10, 12, 16... eliminates a little bit the flickering but lowers the spi bandwitdh, making the screen less responsive and slow. I've tried too to make the build with DADAFRUIT_ILI9341_PITFT=ON instead of the generic -DILI9341=ON but the results are identical.

Did this flickering happened to anyone? The flickering doesn't feel like framerate drops at all, it is more like a brightness flickering or flashing.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests