Pages: [1]   Go Down
Author Topic: How to display images from SD card on a color screen?  (Read 3202 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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. smiley-grin

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
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8669
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25730
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is there any library to display JPG, BMP or PNG image?
JPEG on an AVR?
How long have you got?
Logged

"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.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25730
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"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.

0
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Germany
Offline Offline
Edison Member
*
Karma: 133
Posts: 1443
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks... well, for any image format... I wanna display it on any display...
pl continue suggestions... smiley-grin
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Oslo, Norway
Offline Offline
Full Member
***
Karma: 6
Posts: 126
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8669
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!!! smiley-lol

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Pages: [1]   Go Up
Jump to: