Go Down

Topic: Animations on a TFT screen. Mission Complete (Read 599 times) previous topic - next topic

MagicD48

Sep 30, 2016, 10:50 pm Last Edit: Oct 01, 2016, 08:30 pm by MagicD48
I visit this forum quite a lot, normally lurking from the shadows. However I never really offer anything, I just take guidance from everyone else. Well on this occasion, I'd like to show what I have achieved from reading the advice of the people on this forum. So for a change, I'm not asking :)

I previously made two Ghostbusters Reboot proton Packs with an Arduino Uno controlling Neopixels, LED's and lights and sounds and stuff:

Reboot Proton Packs

It was a huge learning curve.

I decided I wanted to make a version 2 proton pack. But I also wanted it to have a small screen displaying basic animations. I tried loads of different TFT screens, and all of them were FAR to slow to make an animation.

Well thanks to the ILI9341 and the accompanying library by Marek Buriak, I was finally able to get raw 565 images to load at just over 4fps. Which was sufficient for very basic animations.

I'm still only using his half speed SPI, so I know I can squeeze a bit more power out of it, if I can get it to use FULL speed SPI. On jumpers, that's just not possible though.

Anyway, here's the footage...

Animations

The super fast library by Marek:

Here

ghlawrence2000

#1
Oct 01, 2016, 12:02 am Last Edit: Oct 01, 2016, 12:03 am by ghlawrence2000
Very cool!  8) Well done!  :)


But.... sorry to burst your bubble, I had 'video' 320x240 resolution running at 5.71 fps 2 years ago ;)


https://www.youtube.com/watch?v=x41LDqGanEk



I haven't actually bothered putting it to the test but theoretically I should now be able to achieve about 12.5fps since I have screen draw speeds as low as 78ms now for a resolution of 320x240 ;)


Regards,


Graham
UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

MagicD48

Very cool!  8) Well done!  :)


But.... sorry to burst your bubble, I had 'video' 320x240 resolution running at 5.71 fps 2 years ago ;)


https://www.youtube.com/watch?v=x41LDqGanEk



I haven't actually bothered putting it to the test but theoretically I should now be able to achieve about 12.5fps since I have screen draw speeds as low as 78ms now for a resolution of 320x240 ;)


Regards,


Graham
Woah, how did you manage this? Can you share the code? And the setup? I'd love to get more speed out of it. I'm even considering moving to a teensy.

MarekB

#3
Oct 01, 2016, 11:30 am Last Edit: Oct 01, 2016, 11:30 am by MarekB
Nice work! Would you mind if I link your video in my 'Demos' section in ILI9341_due docs?

@Graham: I presume that screen uses 16bit interface, right?

MagicD48

Nice work! Would you mind if I link your video in my 'Demos' section in ILI9341_due docs?

@Graham: I presume that screen uses 16bit interface, right?
That would be awesome. You can embed me on your tutorial page as well if ya like? :)

Traffic is goooood :)

ghlawrence2000

@marek , yes 16 bit.

@magic, will have to see if I still have the sketch.
UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

ghlawrence2000

#6
Oct 01, 2016, 04:38 pm Last Edit: Oct 01, 2016, 05:08 pm by ghlawrence2000
So I been doing some tweaking (and cheating  ;) :P). How upset would you be if I got 20.09FPS for 320x180??  8)

Proof to follow soon..........

https://youtu.be/0nZNbyKuHV8

The 'cheating' is using SPI flash not SD as source, hence I only have 132 frames for the whole video sequence :( but never the less, it is impressive to see!! ;)

G

UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

ghlawrence2000

I am REALLY looking forward to receiving my Teensy 3.6 and 3.5 very soon :)

G
UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

TFTLCDCyg

#8
Oct 01, 2016, 07:38 pm Last Edit: Oct 01, 2016, 07:41 pm by TFTLCDCyg
@magic, @ghlawrence2000: Amazing videos!!!

ghlawrence2000

UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

MagicD48

@magic, @ghlawrence2000: Amazing videos!!!
Thank you :)

I am REALLY looking forward to receiving my Teensy 3.6 and 3.5 very soon :)

G
You are a God among mere mortals haha.

Are you gonna release the sorcery?

pYro_65

So I been doing some tweaking (and cheating  ;) :P). How upset would you be if I got 20.09FPS for 320x180??
Nice job.

This is also with an Arduino Due? I bought one ages ago and have literally only done a 'hello world' test via serial to confirm it works.

Might have to whip it out again as I have a few SPI flash chips lying around.
Forum Mod anyone?
https://arduino.land/Moduino/

ghlawrence2000

@pyro,

Yes it is using a DUE. Can't wait to see what the Teensy  can do!  :)


G
UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

ghlawrence2000

#13
Oct 05, 2016, 05:09 pm Last Edit: Oct 08, 2016, 03:15 pm by ghlawrence2000
@magic, There is no sorcery, it is using my UTFT_GHL library which used SPI Flash as source instead of SD Card, it makes a fair bit of difference!

Since my last message and disappointingly short video clip, I have been working on my library to make it possible to combine multiple Flash IC to be seen as one large one, I now have a 314 frame video clip which runs at 18.6
FPS, it is a little slower as a result of the voodoo which makes the 3 Flash chips appear as 1....

Code: [Select]
314 frames drawn in 16861.38ms =18.62 FPS
314 frames drawn in 16861.27ms =18.62 FPS
314 frames drawn in 16861.23ms =18.62 FPS
314 frames drawn in 16861.35ms =18.62 FPS
314 frames drawn in 16861.19ms =18.62 FPS
314 frames drawn in 16861.30ms =18.62 FPS
314 frames drawn in 16861.32ms =18.62 FPS
314 frames drawn in 16861.42ms =18.62 FPS
314 frames drawn in 16861.29ms =18.62 FPS
314 frames drawn in 16861.35ms =18.62 FPS
314 frames drawn in 16861.26ms =18.62 FPS
314 frames drawn in 16861.24ms =18.62 FPS
314 frames drawn in 16861.15ms =18.62 FPS
314 frames drawn in 16861.15ms =18.62 FPS
314 frames drawn in 16861.27ms =18.62 FPS
314 frames drawn in 16861.34ms =18.62 FPS
314 frames drawn in 16861.24ms =18.62 FPS
314 frames drawn in 16861.25ms =18.62 FPS
314 frames drawn in 16861.22ms =18.62 FPS
314 frames drawn in 16861.28ms =18.62 FPS
314 frames drawn in 16861.29ms =18.62 FPS


Still, not too shabby :D

G

Edit, I now have 424 frames which runs even slower :( at 16FPS, clip shown here https://youtu.be/1b0_cKh4ZP8
UTFT_SdRaw now included in library manager!! ;) High speed image drawing from SD card to UTFT displays for Mega & DUE.
UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! 8) Shipping April 1 2016!

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy