Shop OBEX P1 Docs P2 Docs Learn Events
2.8" TFT Touch Screen — Parallax Forums

2.8" TFT Touch Screen

cavelambcavelamb Posts: 720
edited 2015-03-12 14:47 in Propeller 1
Radio Shack has these touch screen displays on the rack for $15.
I grabbed one - just because it's too cool and looks like ought to
go well with An ASC board.

Is there any code for it yet?
«13

Comments

  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2014-08-27 19:23
    cavelamb wrote: »
    Radio Shack has these touch screen displays on the rack for $15.
    I grabbed one - just because it's too cool and looks like ought to
    go well with An ASC board.

    Is there any code for it yet?

    tsk tsk, you should know better. All we know is that you have "a touch screen display for $15" and from the subject line we also know it's 2.8". Try again.
  • jazzedjazzed Posts: 11,803
    edited 2014-08-27 22:04
    Is it this one?

    We could port the arduino code pretty easily.
  • cavelambcavelamb Posts: 720
    edited 2014-08-27 22:48
    jazzed wrote: »
    Is it this one?

    We could port the arduino code pretty easily.

    Let's change that to maybe.

    Probably this critter...
    http://www.seeedstudio.com/wiki/2.8''_TFT_Touch_Shield_V1.0
    Version 1 - parallel Data?
  • blittledblittled Posts: 681
    edited 2014-08-28 04:07
    I bought one 2 years ago for $50 then picked up one recently locally for under $15 they are the Seeed Studio V1.0 Touchscreen
  • blittledblittled Posts: 681
    edited 2014-08-28 07:48
    I just looked at their site and the price isn't discounted and also it looks like they are replacing the V1.0 with the V2.0 since the V2.0 is also listed on their site at $50.
  • jazzedjazzed Posts: 11,803
    edited 2014-08-28 11:54
    cavelamb wrote: »
    Let's change that to maybe.

    Probably this critter...
    http://www.seeedstudio.com/wiki/2.8''_TFT_Touch_Shield_V1.0
    Version 1 - parallel Data?

    Seems like the same link. Great minds link alike. LOL.

    The V2.0 version uses the IL9341 instead of the SF7781R, but if there is arduino code for either porting it for the ASC would not be so hard. Time is my only bottleneck.
  • cavelambcavelamb Posts: 720
    edited 2014-08-28 12:20
    jazzed wrote: »
    Seems like the same link. Great minds link alike. LOL.

    The V2.0 version uses the IL9341 instead of the SF7781R, but if there is arduino code for either porting it for the ASC would not be so hard. Time is my only bottleneck.

    I'm not turning up much information on SF7781R controller.
    IS that the correct part name?
  • frank freedmanfrank freedman Posts: 1,983
    edited 2014-08-28 12:41
    The controller is different between the v1 ad v2 units. Does not look different for the resistive touch screen. Will need ADC capability for using the touch part. (I have both, 1 of V1 and 2 of V2). V2 also has SD interface on it.
  • jazzedjazzed Posts: 11,803
    edited 2014-08-28 13:12
    cavelamb wrote: »
    I'm not turning up much information on SF7781R controller.
    IS that the correct part name?


    Sorry, it's ST7781R (not SF7781R). My fingers are fat today. LOL

    The controller part number and other information is in the link mentioned above.

    The ST7781R spec is here. Propeller ASC has an MCP3208 ADC chip on board.
  • cavelambcavelamb Posts: 720
    edited 2014-08-28 15:44
    The controller is different between the v1 ad v2 units. Does not look different for the resistive touch screen. Will need ADC capability for using the touch part. (I have both, 1 of V1 and 2 of V2). V2 also has SD interface on it.


    Yep. That's why I was thinking that this wedded to an ASC board would be a pretty hot set-up.
    The ASC has an MPC3008 A2D converter on board.
    AND a =5 volt supply.
    But now I wonder about the signal level differences. How to slip some resistors between the boards?

    @Jazzed:
    Thank you very much for the link.
    I can understand the fat finger problem. My brain gets that way some times.

    As for the data sheet...
    Wow. Pick and interface!

    SPI would save a squillion pins, but could it be fast enough to paint a whole screen quickly?

    Last complication (that I can see at the moment) is memory.
    Maybe having to adapt the Arduino drivers would be a blessing after all.
    It would force a C development system, and that would make it possible to add external RAM.
    But my imaginary pretty little two board stack doesn't look like it's going to happen.
    Pity.
  • David BetzDavid Betz Posts: 14,516
    edited 2014-08-28 16:37
    I just went to the local Radio Shack and they had no touch screens at all never mind ones on sale. :-(
  • KeithEKeithE Posts: 957
    edited 2014-08-28 16:51
    David - did you use their website to check for local availability? There may be another one close to you with stock. e.g. several stores near me claim to has inventory. Maybe I better drive straight over ;-)
  • blittledblittled Posts: 681
    edited 2014-08-28 18:31
    I used V1.0 shield with the UNO which is 5V, UNO32 pic based and 5V tolerant and the Ardunio Due 3.3V only so I don't think voltage level translation is needed. In fact I think it works well with both 3.3V and 5V. I've used the UTFT (Universal TFT library for Arduino) with a little modification to the code.
  • David BetzDavid Betz Posts: 14,516
    edited 2014-08-28 18:38
    KeithE wrote: »
    David - did you use their website to check for local availability? There may be another one close to you with stock. e.g. several stores near me claim to has inventory. Maybe I better drive straight over ;-)
    I'm in Philadelphia with no car so I checked the only one within walking distance. Maybe I'll check in NH over the weekend.
  • cavelambcavelamb Posts: 720
    edited 2014-08-28 19:37
    blittled wrote: »
    I used V1.0 shield with the UNO which is 5V, UNO32 pic based and 5V tolerant and the Ardunio Due 3.3V only so I don't think voltage level translation is needed. In fact I think it works well with both 3.3V and 5V. I've used the UTFT (Universal TFT library for Arduino) with a little modification to the code.

    You gonna share your mods?
    Or keep it all to yourself???

    :innocent:
  • blittledblittled Posts: 681
    edited 2014-08-29 04:16
    Here is a thread where I posted the code under the name Micronut. http://forum.arduino.cc/index.php?PHPSESSID=394bnco4pagnbnhomoah6p8lv4&topic=175179.0. I'll post it here later but it probably won't be until Monday.
  • JordanCClarkJordanCClark Posts: 198
    edited 2014-08-29 05:34
    David, I have one V1.0 shield that it seems I'll never have a time to develop (read 'play with'). Drop me a PM and I'll send it out to you.
  • localrogerlocalroger Posts: 3,451
    edited 2014-08-29 09:30
    I just picked one of these up last weekend; it was marked $15 but rang up for $11.98. Now I have an excuse to get a Prop ASC...
  • cavelambcavelamb Posts: 720
    edited 2014-08-29 10:49
    Duct tape is like The Force. It has a light side, a dark side, and it holds the universe together.

    TOO true to be that funny!
  • David BetzDavid Betz Posts: 14,516
    edited 2014-08-29 11:25
    David, I have one V1.0 shield that it seems I'll never have a time to develop (read 'play with'). Drop me a PM and I'll send it out to you.
    Thanks for the offer but I checked stock in a couple of Radio Shack stores near where I live in NH and one had it in stock. I'll check there tomorrow to see if it's still available. If not, I might take you up on your offer!

    Thanks,
    David
  • David BetzDavid Betz Posts: 14,516
    edited 2014-08-30 11:31
    I bought one for $15.45 at my local Radio Shack in NH. They had four in stock so anyone in the Manchester, NH area can pickup one at the store on South Willow Street. What amazes me about Radio Shack is that they put things on clearance sale but they don't bother to mark down the prices. How do they expect to clear stock if they don't tell anyone they're on sale?
  • jazzedjazzed Posts: 11,803
    edited 2014-08-30 13:14
    Hi.

    I've spent some time this morning making a demo for the subject TFT (the SeeedStudio 2.8" V1.0 model).

    The demo only writes to the screen at the moment, and it uses LMM mode (CMM mode is excruciatingly slow). A PASM driver should be created to speed things up (result would be 6 or more times better performance over LMM).

    The attached .zip file should allow you to repeat the same results I get with the Propeller ASC(+) board.

    Here are some useful links.
    Propeller ASC Schematic.
    Seeeduino Schematic.
    SeeedStudio 2.8" TFT LCD module V1.0 page.

    SeeedStudio TFT code examples (the video demo code comes from here).
    SeeedStudio TouchScreen driver (not ported yet).


    [video=youtube_share;edodNm8n1IY]
  • David BetzDavid Betz Posts: 14,516
    edited 2014-08-30 19:30
    jazzed wrote: »
    Hi.

    I've spent some time this morning making a demo for the subject TFT (the SeeedStudio 2.8" V1.0 model).

    The demo only writes to the screen at the moment, and it uses LMM mode (CMM mode is excruciatingly slow).

    The attached .zip file should allow you to repeat the same results I get with the Propeller ASC(+) board.

    Code is attached.

    [video=youtube_share;edodNm8n1IY]
    Thanks for the code! Is that you playing piano in the background?
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-08-30 21:05
    Will this work with the SeedStudio 3,2" TFT LCD?
  • jazzedjazzed Posts: 11,803
    edited 2014-08-31 08:55
    David, the video background music is MIDI. The live acoustic arrangement is better ;-)

    NWCCTV wrote: »
    Will this work with the SeedStudio 3,2" TFT LCD?

    That most likely requires a different driver.

    Maybe someone who has the display will port the code. The 2.8" example I posted needed very few changes; just look for PROPELLER in the source.
  • cavelambcavelamb Posts: 720
    edited 2014-08-31 21:39
    Jazzed,

    A belated thank you for the demo.
    I've been reading through it trying to figure it out.
    I've written some C code before.
    But I never claimed to be literate in it.

    It's cool that the Arduino stuff can be used almost directly.
    But its still Arduino code.
    Not really Propeller code.
    Do you think this can be done in Spin?
    Or PASM?

    But hey. the thank you is sincere.
    Even if I whine some...
    :)
  • CelticLordCelticLord Posts: 50
    edited 2014-08-31 23:43
    Yes this is $10 around the internet sites http://www.dealsmachine.com/best_185020.html?currency=USD&gclid=CjwKEAjwj4ugBRD1x4ST9YHplzMSJACTDms8JMqcnBM9cdqulOtGE6dOjTDZ0zJpsuRZ7ez23whj3xoCm-Hw_wcB
    (XS02 2.2" Serial SPI TFT Color LCD Module for (For Arduino)) it also uses ILI9341_Driver like the ver 2.0.
    http://wenku.baidu.com/link?url=LZ75wYgWfBFMJcHdphbPERLdvRwUUDxv_EuU75RHvGMCDqkaUq2qoRVCgu9HLsD0ztvMOrT0Av_2Ow60j16YKsQM72Ma_slrteY_U4L6y8e
    Im thinking if someone could port the code it would work with this too.
  • jazzedjazzed Posts: 11,803
    edited 2014-09-01 08:19
    cavelamb wrote: »
    Jazzed,

    It's cool that the Arduino stuff can be used almost directly.
    But its still Arduino code.
    Not really Propeller code.


    Both the are C++. And, it really is Propeller code. If it wasn't it wouldn't work ;-)

    I've considered speeding it up by making TFT::SendCommand and TFT::SendData use inline ASM.

    cavelamb wrote: »
    Do you think this can be done in Spin?
    Or PASM?


    Of course, but someone with time and desire will have to do that.
  • cavelambcavelamb Posts: 720
    edited 2014-09-01 13:37
    You mean "time, desire and talent", of course. :)

    But you did accomplish what was needed here - to show that an Arduino shield
    can be plugged into an ASC board and made to work pretty much with the existing Arduino software.
    That's just way cool.
  • localrogerlocalroger Posts: 3,451
    edited 2014-09-04 15:54
    Jazzed, when I try to build your example I get an error that says "Font.h: no such file or directory." I'm using the latest freshly downloaded SimpleIDE v0.9.64 on Windows XP. Any ideas?
Sign In or Register to comment.