Go Down

Topic: How to display images from SD card on a color screen? (Read 4012 times) previous topic - next topic

sarkar

I wish to start a project with touchscreen. My idea is that, there will be a background image and a layer in which there will be a smaller image. One can move the smaller image on the background by touching and dragging it. :D

Now, the Basic Question is that, how to display an image on any tft/lcd/oled display?
Is there any library to display JPG, BMP or PNG image?
AND What's the best hardware to use with Arduino Uno, to perform the above task? :smiley-roll:

johnwasser

320x240 color touch-screen + SD card slot:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=3&products_id=55  $20.50

Arduino shield for the above:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=149  $4.80

The LCD is available in 8-bit and 16-bit bus flavors.

How to show images on this device:
http://iteadstudio.com/application-note/show-images-and-different-fonts-on-itdb02-series-lcd/
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

AWOL

Quote
Is there any library to display JPG, BMP or PNG image?

JPEG on an AVR?
How long have you got?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

sarkar


Quote
Is there any library to display JPG, BMP or PNG image?

JPEG on an AVR?
How long have you got?


Well, I dunno much abt image processing. But as far as I know, JPEG is all about RGB matrix. What's the issue with AVRs?

AWOL

Quote
JPEG is all about RGB matrix

JPEG has very little to do with RGB, it does all the compression in YUV.
There's the conversion from RGB to YUV, then the Discrete Cosine Transform, quantisation, run-length coding and Huffman coding (or the reverse, if you're decoding) on each of the components.
None of these operations is particularly well-suited to an 8 bit microcontroller with very limited RAM.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

sarkar

hmm.. ok... :smiley-roll-sweat:

now, let me know how to display bitmaps or png images on a display... :smiley-surprise:

olikraus

png is also difficult to handle in general and the zlib will probably also not fit into the AVR. BMP also has a lot of flavors to handle. I personally would start to use tga (http://en.wikipedia.org/wiki/Truevision_TGA). Gimp can still save pictures as .tga files, so it is easy to convert pictures into .tga.

Oliver

sarkar

thanks... well, for any image format... I wanna display it on any display...
pl continue suggestions... :D

sarkar


320x240 color touch-screen + SD card slot:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=3&products_id=55  $20.50

Arduino shield for the above:
http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=149  $4.80

The LCD is available in 8-bit and 16-bit bus flavors.

How to show images on this device:
http://iteadstudio.com/application-note/show-images-and-different-fonts-on-itdb02-series-lcd/


Hey johnwasser, please suggest me some more solutions if you know, so that I can compare the pros n cons... Well, Thanks for such a helpful post...! :smiley-surprise:

If you should go for the display and shield mentioned earlier in this thread you can display images easily with my libraries (also mentioned in the app-note mentioned).

Libraries:
ITDB02_Graph : http://www.henningkarlsen.com/electronics/a_l_itdb02_graph.php
ITDB02_tinyFAT : http://www.henningkarlsen.com/electronics/a_l_itdb02_tinyfat.php
tinyFAT : http://www.henningkarlsen.com/electronics/a_l_tinyfat.php

The ITDB02_tinyFAT library has demos showing how to load images from a SD card and displaying them on the screen.
A tool to convert images to the required format is included with the ITDB02_Graph library (Windows only), and a web-version of the tool is available at http://www.henningkarlsen.com/electronics/t_imageconverter565.php.

I am not sure if the Arduino is fast enough for the touch-and-drag function you want, though...

/Henning

johnwasser


Hey johnwasser, please suggest me some more solutions if you know, so that I can compare the pros n cons...


You want more?  Try

http://www.google.com/search?q=Arduino+Touchscreen
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

sarkar


If you should go for the display and shield mentioned earlier in this thread you can display images easily with my libraries (also mentioned in the app-note mentioned).

Libraries:
ITDB02_Graph : http://www.henningkarlsen.com/electronics/a_l_itdb02_graph.php
ITDB02_tinyFAT : http://www.henningkarlsen.com/electronics/a_l_itdb02_tinyfat.php
tinyFAT : http://www.henningkarlsen.com/electronics/a_l_tinyfat.php

The ITDB02_tinyFAT library has demos showing how to load images from a SD card and displaying them on the screen.
A tool to convert images to the required format is included with the ITDB02_Graph library (Windows only), and a web-version of the tool is available at http://www.henningkarlsen.com/electronics/t_imageconverter565.php.



GREAT!! Thanks!!! XD

Quote
I am not sure if the Arduino is fast enough for the touch-and-drag function you want, though...
:~

sarkar



Hey johnwasser, please suggest me some more solutions if you know, so that I can compare the pros n cons...


You want more?  Try

http://www.google.com/search?q=Arduino+Touchscreen

Like!

Go Up