Using a touch screen with an STM32 microcontroller

[Andy Brown] has been working on a series of tutorials revolving around the STM32 processor family. He’s using the STM32plus development board, with an STM32F1 ARM Cortex M3 processor to drive a couple of different full color graphic LCD screens. His latest installment shows how to read from the touch screen included with both displays.

After the break we’ve embedded the video from which this screenshot was taken. As an example, [Andy] has programmed a painting program to show off what the touchscreen overlay is capable of. It starts off with the calibration routine we’re all familiar with, then drops to this screen with a virtual control panel and blank canvas.

This hardware uses the Texas Instruments ADS7843 controller, which [Andy] says is extremely common and that several other manufacturers use the same communications protocols. He discusses how to communicate with the controller, and how to incorporate the data into your program. Included is an open source library which you can use in your own projects.

Comments

  1. MobileWill says:

    Sweet, I was just thinking if it would be possible to interface a touchscreen with my phone. Maybe this can give a starting point. I hope the Lilyput TS uses the same IC.

  2. SARodrigues says:

    Isn’t the display from a chinese cellphone?

  3. Chris says:

    hmm i really want to get a decent display that will fit inside my car where heating controls are so i can control everything through touchscreen but every screen big enough requires expensive chips.

  4. maiden says:

    this reminds me of some dev-boards i imported from china. http://q-sharewe.com/Qxw/viewtopic.php?f=1&t=132 or http://item.taobao.com/item.htm?id=9058404557 . its even a opensource project :D

  5. Tectron says:

    I have a whole box of those screens on my shelf.

  6. sapdog says:

    hi, i have the same display would any one happen to know the name so i can find a data sheet. it would really help. thanks

  7. Tectron says:

    Ours are labeled Newhaven Display NHD-2.4-240320sf-CTXI#-T, We got them at digikey a couple of years back.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 94,463 other followers