Home - Search - Members
Full Version: How to Interface an TOUCH SCREEN to a microcontroller
shyam
Apr 7 2011, 7:41 AM
rescue me from this ........

>i will stick up with a resistive touch screen

>how can i interface a touch screen with a mc(specify which one to use)

>i have a idea of making a robo which wil move in the pattern drawn on the touch screen......is that possible

-----for example if i draw a circle my robo should make a circle

>i am not at advanced stage just a beginner with some knowledge on avr so what way i can make my robo come true

>i have googled for a long time i havn't found any sources........provide me if u have any


pravin_35
Apr 7 2011, 8:48 AM
Hi shyam,

first i like to ask which touchscreen ur using... resistive touch means.. is it a HMI or touchreen module..

if it a HMI u can directly.. communicate with standard rs232 or rs485 hardware.... u can control the robot by entering data... one thing keep in mind... if u want to draw the graphical or gomentrical.. inputs means u have to try for a diff vendor.. to purchase a HMI..

shyam
Apr 7 2011, 9:50 AM

first i like to ask which touchscreen ur using... resistive touch means.. is it a HMI or touchreen module..



i dont know what HMI means but i am using a 4 wire resistive touch screen

if it a HMI u can directly.. communicate with standard rs232 or rs485 hardware....



can't i doit through a microcontroller,with out using a pc,actually my pc doesn't have serial ports...

if u want to draw the graphical or gomentrical.. inputs means u have to try for a diff vendor..



can u mention the vendor,i want to do exactly what u meant...



pravin_35
Apr 7 2011, 10:02 AM
http://www.advantech.in/products/WebOP-2057V/mod_D5F5789B-937D-4E69-BF25-3788B6AB6ABA.aspx


see the link it shows the HMI..

without using a pc u can control the robot with hmi
shyam
Apr 7 2011, 10:16 AM


http://www.advantech.in/products/WebOP-2057V/mod_D5F5789B-937D-4E69-BF25-3788B6AB6ABA.aspx


see the link it shows the HMI..

without using a pc u can control the robot with hmi

pravin_35



>COST matters here i want to make it cheap and simple im not willing to interface any application oriented kit .......but thanks for ur sugg.
...
my application itself is an HMI
pravin_35
Apr 7 2011, 10:19 AM
k fine wat touch screen u r using and wat is the manufacturer name ... ?? plz post the datasheet or image of touch screen...
pravin_35
Apr 7 2011, 10:36 AM
so r u using dis controller

http://atmel.com/dyn/resources/prod_documents/doc8091.pdf
shyam
Apr 7 2011, 10:51 AM


http://atmel.com/dyn/resources/prod_documents/doc8091.pdf

pravin_35



iam not using this i want to read it just from the avr it self......
pravin_35
Apr 7 2011, 10:57 AM
ya for u have to learn the 4 wire communication standard protocol .. from the touch screen manufacturer .. rite
shyam
Apr 7 2011, 11:04 AM
im not getting what u mean but briefly i want to read the patterns drawn on the touch pad through microcontroller and run the robo
pravin_35
Apr 7 2011, 11:17 AM
ya s u have to read the touch screen data through mc ..... the data read and write the touch screen as some standards... refer the data sheet..
shyam
Apr 7 2011, 11:21 AM
hmm i know how to read the values form that touch pad and make the robo move but my problem is how can i make the patterns drawn on the touch pad
detected........
ExperimenterUK
Apr 7 2011, 4:55 PM
The problem seems to be storing the pattern drawn, then sending movement
commands to make it follow the map.
This is mainly a software question, but will depend on the memory
available in your micro.

I would suggest you start by sending the "drawing" to a PC.
Use the PC to store the image and work out the movements,
then send move commands back to the micro.

When you get it working you will be in a better position to
write code for the micro.

Use a usb--serial adapter to connect your micro and PC.
shyam
Apr 8 2011, 2:58 AM


I would suggest you start by sending the "drawing" to a PC.
Use the PC to store the image and work out the movements,
then send move commands back to the micro.

When you get it working you will be in a better position to
write code for the micro.

ExperimenterUK




how can i achive this yar this is the exact problem i had how to do this .......
kirangowle
May 2 2011, 12:02 PM
Shyam,
Did you purchased it from NSk?
Are you successful with interfacing 4 wire Touch screen with AVR?
Pls share with us.
shyam
May 3 2011, 12:30 PM
no yarr i havnt been sucessful in doing so .....any if have done plzz share
mehtadhaval07
May 4 2011, 3:58 AM
here is the easiest way to interface a simple 4-wire resistive touch screen.

http://mehtadhaval.blogspot.com/2011/04/touch-screen-interfacing-with.html
prizmev
Jun 1 2012, 6:12 PM
Shyam,

In case you are still looking for a solution, the company I work for (Reach Technology) makes display modules using LCD panels with resistive touch screens in various sizes. Our display modules use ASCII strings sent over a standard RS232 port for commands and replies. You can download bitmap ../images to the display module, then send it commands to draw buttons, sliders, gauges, etc. using these bitmaps. The display module will send your controller notifications (ASCII strings) when a button (or any other hotspot) is pressed. There are no libraries to include into your application, and you may use any programming language that you prefer. You just need the ability to send/receive ASCII strings over a serial port.

The general spec's are:

screen size - resolution
4.3" - 480x272
5.7" - 320x240
7" - 800x480
8.4" - 640x480

More information can be found on our web page: http://www.reachtech.com/products/display_modules/

Ralph
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Rickey's World © 2003 - 2007