Show us your Gamebuino clone or the last module you made.
by Sutchig » Mon Jul 24, 2017 12:12 pm
Hi,
since i am waiting for the new Gamebuino, i built a simple clone:
- first_clone.jpg (79.63 KiB) Viewed 16925 times
then i ordered a mega2560 and a color screen (160x128). This is the result:
https://youtu.be/BvuHxESkmisResolution of frame buffer is 80x64. Since its SPI i was not able to scale it up to 160x128, as this would require 4 times more bandwidth. Currently the screen update takes about 9ms per frame.
I'm waiting for a parallel TFT
-
Sutchig
-
- Posts: 67
- Joined: Sat May 23, 2015 3:48 pm
by Sutchig » Wed Jul 26, 2017 12:05 pm
Update:
https://www.youtube.com/watch?v=dL2-o4VTIEI&tDigger in color with fullscreen (upscaled to 160x128) via SPI.
Its not so bad as i was afraid of. maybe there are some improvements possible..
cycle counting could save some time:
- Code: Select all
while (!(SPSR & _BV(SPIF))) ;
could become some NOPs to match the 17cycles delay between loading a byte to SPDR.
-
Sutchig
-
- Posts: 67
- Joined: Sat May 23, 2015 3:48 pm
by erico » Wed Jul 26, 2017 1:14 pm
It looks nice!
Is the upscale what is responsible for the slightly slowdown?
-
erico
-
- Posts: 671
- Joined: Thu Mar 27, 2014 9:29 pm
- Location: Brazil
-
by Sutchig » Wed Jul 26, 2017 5:28 pm
Yes, as there are 30kB per frame to transmit. (444-color mode with lookuptable) Gamebuino needs 504Bytes per frame...
Next days i'll measure the fps
-
Sutchig
-
- Posts: 67
- Joined: Sat May 23, 2015 3:48 pm
by Georgian » Wed Jul 26, 2017 7:07 pm
Nice one, I'm also redesigning an old board I made to be gamebuino compatible. Very first prototipe looks promising
I'm sticking to the old nokia screen. Monochrome is enogh for me.
- Attachments
-
- WP_20170726_20_54_31_Pro_resized.jpg (77.28 KiB) Viewed 16894 times
-
Georgian
-
- Posts: 22
- Joined: Sat Aug 27, 2016 4:56 pm
by Sutchig » Thu Jul 27, 2017 7:23 am
- 20170727_084007.jpg (205.43 KiB) Viewed 16886 times
an actual image.
Running at 8fps in fullscreen. (sometimes 9, only 7 when sound is played)
Screenupdate itself needs 81ms -> this could getting better
/edit: 11fps, 53ms per frame for writing to screen.
/edit: disabled sound and got 16fps, 34.8ms per screen update (which is nearly full speed of SPI - 34.56ms for 30kB)
Enabling sound and call noInterrupts() at start of transfer and interrupts() at end has similar effect (beside sound output
), but getting time by micros() doesn't work anymore because interrupts are disabled
-
Sutchig
-
- Posts: 67
- Joined: Sat May 23, 2015 3:48 pm
Return to Hardware Gallery
Who is online
Users browsing this forum: No registered users and 1 guest