Author Topic: Avr / arduino with a tft lcd screen  (Read 7586 times)

0 Members and 1 Guest are viewing this topic.

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Avr / arduino with a tft lcd screen
« on: June 16, 2013, 05:15:36 pm »
What sort of frame rate would a tft screen such as this ebay item: 360565808398
Be on a standard 16MHz arduino? And would it be improved if i moved to an atmel avr that runs at a higher frequency?
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Avr / arduino with a tft lcd screen
« Reply #1 on: June 16, 2013, 05:26:18 pm »
Just realised its in the wrong section :/. Any chance of moving it? :)
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5140
  • Country: ro
  • .
Re: Avr / arduino with a tft lcd screen
« Reply #2 on: June 16, 2013, 05:54:25 pm »
Read the datasheet of the controller used:  http://www.adafruit.com/datasheets/ILI9325.pdf

You have there all you need to know... latencies, frequencies etc
 

Offline Harvs

  • Super Contributor
  • ***
  • Posts: 1204
  • Country: au
Re: Avr / arduino with a tft lcd screen
« Reply #3 on: June 17, 2013, 04:25:32 am »
What sort of frame rate would a tft screen such as this ebay item: 360565808398
Be on a standard 16MHz arduino? And would it be improved if i moved to an atmel avr that runs at a higher frequency?

I assume you're referring to what frame update rate could the AVR produce.  Driving full colour displays is always a difficult task for uC's where you need to draw things quickly.  You've got 76.8k pixels to draw with probably multiple bytes per pixel (e.g. 16bit colour is common.)

So the question is how do you intend on using it?  Are you just going to pump frame data from flash memory directly onto the display?  Or do you actually intend on drawing stuff pixel by pixel?  Are you making a gui or a picture viewer?
 

Offline Stonent

  • Super Contributor
  • ***
  • Posts: 3824
  • Country: us
Re: Avr / arduino with a tft lcd screen
« Reply #4 on: June 17, 2013, 07:28:52 am »
It can be done, or at least you can drive a VGA Monitor or a TV with sound.



« Last Edit: June 17, 2013, 07:31:34 am by Stonent »
The larger the government, the smaller the citizen.
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Avr / arduino with a tft lcd screen
« Reply #5 on: June 17, 2013, 08:53:36 am »
Im would like to make a gui which would be loading information from an sd card to view it with text overlay (i belive you can do that).

Ive got a ps/2 keyboard attached to my avr currently which i can type words ect onto it so i would like to words to come up onto the screen if possible
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline Harvs

  • Super Contributor
  • ***
  • Posts: 1204
  • Country: au
Re: Avr / arduino with a tft lcd screen
« Reply #6 on: June 17, 2013, 12:52:53 pm »
Well you can do it, sure.  But it may not be as quick as you'd like (and you don't have a DMA to preload sections out of the SDCARD like on a larger uC.)

It's not exactly all that expensive, so why not just give it a go.  It's a reasonable learning experience anyway.
 

Offline airiclenz

  • Contributor
  • Posts: 28
  • Country: se
    • Airic Lenz
Re: Avr / arduino with a tft lcd screen
« Reply #7 on: June 17, 2013, 01:18:04 pm »
This might be a good resource for you (this guy pretty much goes to the limits):

http://andybrown.me.uk/wk/

Good luck!
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Avr / arduino with a tft lcd screen
« Reply #8 on: June 17, 2013, 01:53:42 pm »
type "arduino screen" in youtube you'll find many variation and performance. the keypoint is not processor speed alone, but the method, code or algorithm used or what application you want it to do. you can do shit with GHz processor driving this lcd module... few simple examples....



« Last Edit: June 17, 2013, 01:55:22 pm by Mechatrommer »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Avr / arduino with a tft lcd screen
« Reply #9 on: June 17, 2013, 02:22:25 pm »
whould the screen have a faster refresh rate if i changed to a 32 bit avr with a higher frequency? or is it limeted to the speed of the data bus between it? (that if the data bus is not being hindered by the avr already :)
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5140
  • Country: ro
  • .
Re: Avr / arduino with a tft lcd screen
« Reply #10 on: June 17, 2013, 02:43:08 pm »
Oh man, lcd screens don't have a "refresh rate" ... once a pixel is lit it stays lit, it's not like CRTs.

The datasheet should tell you how often it can go update pixels with new information, it's related to duty cycle and other things which are specified in the datasheet.

Read (or at least browse) the datasheet I linked  to in a post above, the controller supports i2c, spi, rgb, i think even s-video or composite.

I don't think you  have to send full screens to the LCD so there's no issue of refresh rate,  i think it supports basic commands like line drawing and individual pixels. If it doesn't, you're only limited by the bandwidth of your SPI or i2c bus or whatever you use.

I don't know how fast an Arduino is, but it may have only a 400 Khz i2c bus, or a 1.7 Mhz SPI bus, or something like that... if you only work with a 32x32 icon on the display maybe you can get 60 updates a second, maybe less.
 
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Avr / arduino with a tft lcd screen
« Reply #11 on: June 17, 2013, 06:19:23 pm »
agree, read the datasheet for maximum data rate, from there you can calculate the minimum time to redraw a screen which i believe what you mean refresh rate?
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Avr / arduino with a tft lcd screen
« Reply #12 on: June 17, 2013, 06:23:02 pm »
Yea thats what i meant. Sorry i have not had time o rea threw the data sheet (revising foran exam tomorrow)
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 

Offline carbon dude oxideTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: Avr / arduino with a tft lcd screen
« Reply #13 on: June 18, 2013, 10:57:07 am »
Ab i see, i didnt realise you could update pixles at a time instead of having to reload the whole screen.

Another quick question for this project that i am doing, would it be better to either:

Stick with my PS/2 keyboard shield and library to read the keyboard (for arduino) or would it be better to get an AVR with device/host usb capabilitys to read it off of a usb keyboard?
-----
Everything Should Be Made as Simple as Possible, But Not Simpler
-----
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf