3.2" SPI LCD (working and ready for a build)

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by HoolyHoo » Fri Oct 13, 2017 5:04 am

VeteranGamer wrote:
Fri Oct 13, 2017 2:32 am
moosepr wrote:
Fri Oct 13, 2017 1:09 am
Yeah that looks much better, you can see his little feet going like mad now!

You can add debug=32 at the end of your config, then if you ssh in, a quick dmesg will show you the calculated FPS that the screen is getting (how long each screen update is taking). I would say take it back out if the config once your done, save spamming the system logs

just so that i know i doing it correctly.....

added debug=32 to the end of the config....
did dmesg....

is this what im meant to have seen....

Image


i'm not 100% certain, so apologies for the noob questioning....

.
Are you sure you added it to the contents of this file?

Code: Select all

/etc/modprobe.d/fbtft.conf 

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Fri Oct 13, 2017 5:34 am

HoolyHoo wrote:
Fri Oct 13, 2017 5:04 am


Are you sure you added it to the contents of this file?

Code: Select all

/etc/modprobe.d/fbtft.conf 

i did, but didnt do a reboot.....

just did it again
Last edited by VeteranGamer on Fri Oct 13, 2017 5:43 am, edited 1 time in total.

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by HoolyHoo » Fri Oct 13, 2017 5:38 am

You should see a flood of messages displaying the FPS when you type dmesg at the command line if you entered it correctly.

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Fri Oct 13, 2017 6:04 am

HoolyHoo wrote:
Fri Oct 13, 2017 5:38 am
You should see a flood of messages displaying the FPS when you type dmesg at the command line if you entered it correctly.
ok.... re-ran the test and this is what i got......

in the emulationstation menu
Image

while running SMW on the SNES

Image


now its showing around 30fps (both times) .... but the games dont seem that slow (if at all)
and i am aware alot of 16bit or lower games dont actually need 60fps to run smoothly

even though its not 60fps (which wasnt expected)....
to my novice eyes this still seems very viable (maybe not ideal)

it would also be interesting to see if the mintyPi setup gives different results, with it being a small screen does it perform better/same/worse


.

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

Re: 3.2" SPI LCD (working and ready for a build)

Post by codeman0624 » Fri Oct 13, 2017 8:47 am

VeteranGamer wrote:
Fri Oct 13, 2017 6:04 am


now its showing around 30fps (both times) .... but the games dont seem that slow (if at all)
and i am aware alot of 16bit or lower games dont actually need 60fps to run smoothly

even though its not 60fps (which wasnt expected)....
to my novice eyes this still seems very viable (maybe not ideal)

it would also be interesting to see if the mintyPi setup gives different results, with it being a small screen does it perform better/same/worse


.
This is very cool to be able to see the actual FPS!

You still have the speed setting at 99000000, right? I would be very interested in seeing if the FPS you just measured would go up if you set core_freq=300 in config.txt. This should increase your actual SPI frequency, and maybe increase the FPS

The minty pi should have the same results. It's the same number of pixels, just in a smaller screen size. So the FPS should be the same since it really only depends on pixel count and SPI speed

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Fri Oct 13, 2017 10:28 am

codeman0624 wrote:
Fri Oct 13, 2017 8:47 am
This is very cool to be able to see the actual FPS!

You still have the speed setting at 99000000, right? I would be very interested in seeing if the FPS you just measured would go up if you set core_freq=300 in config.txt. This should increase your actual SPI frequency, and maybe increase the FPS

The minty pi should have the same results. It's the same number of pixels, just in a smaller screen size. So the FPS should be the same since it really only depends on pixel count and SPI speed
still have the speed set to 99000000 (which i doubt i will change).....

Image

and i havent tinkered with anything else......

so far, so good (IMHO)......
for me this screen looks like a goer.... if compared to the BW screen, i think its a no brainer (again IMHO)
and if it performs the same as the mintyPi, its another reason... i havent seen people complaining about the perforance on those

when i come to starting my next build i'm gonna start having a look at other settings and see if tweaking here and there ups anything

.

penguinsfan16
Posts: 7
Joined: Tue Dec 13, 2016 1:27 pm

Re: 3.2" SPI LCD (working and ready for a build)

Post by penguinsfan16 » Fri Oct 13, 2017 10:44 am

anyone have a link to the red board in the 3rd picture??

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Fri Oct 13, 2017 10:51 am

penguinsfan16 wrote:
Fri Oct 13, 2017 10:44 am
anyone have a link to the red board in the 3rd picture??
that red board is from a 2.4" screen, which i used the screen in my TintyPi build.....

you can use one of these designed by moosepr.....

Image

https://oshpark.com/shared_projects/zUNmnlLF


read his guide....
viewtopic.php?f=22&t=2312


.

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

Re: 3.2" SPI LCD (working and ready for a build)

Post by moosepr » Fri Oct 13, 2017 1:26 pm

30fps isnt too shabby, especially for such a cheap and simple screen setup. If you nudge the speed up any further, you will just get crazy screen. This is what happens if i do speed=100000000
Image

@codeman0624 has done some digging and found the actual spi speed you get is actually linked to the core frequency of the pi, so you are limited to the speeds that actually make an impact on standard installs. Overclocking the pi will mean that you get a higher clock speed, and so in turn a faster spi bus, and as a result, higher FPS
codeman0624 wrote:
Mon Aug 21, 2017 5:38 am
So some things I learned about SPI screens over the weekend:

To get overscan to work, you need to have it enabled (obviously), but you also need to set overscan_scale=1. This may be set by default, but on my system it was not.

The SPI clock speed does not match the requested speed in the settings. The clock frequency depends directly on the core frequency of the chip. And the core frequency is only divisible by powers of 2. Mine seemed to like its core frequency at 250MHz, which means the only available SPI clock frequencies are 125MHz, 62.5MHz, 31.25MHz, 15.625MHz...etc. So dividing 250MHz by 2, 4, 8, 16, etc.

This was confirmed on an oscilloscope. The SPI clock stayed at 62.5MHz for speed settings of 70000000, and 110000000...it did not change because the core frequency divider was always rounded to 4. When I tried 125000000, I actually got a clock frequency of 125MHz, but the screen was very unhappy.

At 62.5MHz the screen has a pretty decent refresh rate, it's relatively smooth. But I was able to get it to run at 75MHz by setting core_freq=300 in config.txt. Adding this extra 12.5MHz made it look even better, I'm quite happy with the final result.
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
tinkerBOY
Posts: 710
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 206 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by tinkerBOY » Fri Oct 13, 2017 8:12 pm

VeteranGamer wrote:
Fri Oct 13, 2017 12:34 am
tinkerBOY wrote:
Thu Oct 12, 2017 5:16 pm
kite wrote:
Thu Oct 12, 2017 3:46 am
That is the FPS being output to the framebuffer, but FBTFT/FBCP reads FROM that framebuffer as fast as it can, so that FPS isn't what you're actually seeing.. you need to know the FPS that FBTFT/FBCP is able to write to the screen which will be a lot less. You will see 60fps on HDMI though and if you put side by side you'll see that they are quite different in terms of FPS
Im getting a 60fps too when i tried a 2.2" spi screen but obviously not 60fps at all.

how do you know your getting 60FPS.....
Show video framerate on the retroarch setting when playing a game.
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest