You are on page 1of 4

Model: 1255

Quantity Pricing
Qty Discount Price
1-4 None Rs.1,200/-
5-9 5% Rs.1,140/-
10-99 10% Rs.1,080/-
100+ 20% Rs.960/-
Available (Ships in 3 days)
Qty: 1 Buy
Download Files
Terminal.exe
(/media/files/p/Terminal.exe)
(/img/p/254/254_800.jpg)
Click image to enlarge
Home (/) Displays (/c23) Touchscreen (/c27) Touch Screen(Resistive) with Serial Out
Touch Screen(Resistive) with Serial Out
Decoder outputs touch coordinates at 9600 baud rate
This product is a
combination of
resistive touch
screen and a
controller which
decodes the
cordinates and
output as serial
data at 9600 bps.
The data can be
fed to any
controller or
passed to PC to
view and further
development.
This resistive
touch screen can
be used with a stylus or fingertip and is easy to use with a microcontroller. You can put it over a paper overlay for a
touch control panel or attach it to an LCD to DIY a touch-activated display.
Touch Screen Specifications
2.2" x 2.75" (55mm x 70mm) overall dimensions, 1.5mm thick
3.2" diagonal active area, 80mm
Adhesive backing to attach easily to LCDs
Serial output at 9600 bps, X, Y & Z co-ordinates with LED indication
Electrical Specifications
Name Typ Unit
Working Voltage 3-5 V DC Regulated
Output Reading Rate Every 50 Mili Seconds
Data Format (Fixed Length) 22 Byte ASCII
UART baud rate (8 bit data, no parity, 1 stop bit) 9600 bps
Use any microcontroller with RX pin to receive the data from controller or read serial data on PC and develop application. To understand how
touchscreens work, and the techniques used to read from them, we suggest this good app note
(http://www.sunrom.com/media/files/p/255/AVR341.pdf).
Pinouts
Pin Pin Name Details
TX-O Transmit Output
Output serial data of 3-5V logic level, Usually connected to RXD pin of
microcontrollers/PC/RS232. Note: Do not connect this pin to direct PC serial
port without MAX232. It will damage the module since direct PC serial port has
+12V voltage level.
+3-5V Power Supply Regulated 3V or 5V supply input or any voltage in between.
GND Ground Ground level of power supply. Must be common ground with microcontroller.
Data Format
The output of data from sensor is in 22 bytes fixed length ASCII characters. The baud rate of output is 9600 bps. It output X, Y and Z values. The XY
are cordinates of touch and Z is pressure value.
Example output string on screen would be strings like below,
X:0065 Y:0089 Z:0029
X:0066 Y:0089 Z:0030
X:0066 Y:0089 Z:0030
X:0062 Y:0090 Z:0026
(/)
My Account (/account) | USD($) (/site/currency/currency/USD) | PDF Catalog (/catalog) | How to Order? (/help) | Contact (/contact)
Welcome! Login (/login) or Create Account (/login)
Enter Model# or Keyword to Search
Shopping Cart
(/cart)
CATEGORIES (/c)
Page 1 of 4 Touch Screen(Resistive) with Serial Out [1255] Sunrom Technologies
1/29/2014 http://www.sunrom.com/254
Count-> 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
Start End
ASCII-> X : 0-9 0-9 0-9 0-9 Y : 0-9 0-9 0-9 0-9 Z : 0-9 0-9 0-9 0-9
Fixed
HEX ->
0x0A 0x580x3A
Value of X in 4
digits
0x200x590x3A
Value of Y in 4
digits
0x200x5A0x3A
Value of Z in 4
digits
0x0D
The string starts with 0x0A which is new line as well as start of string idenfier. The string ends with 0x0D which is acting as line feed character or End
of string idenfier.
Terminal software
We recommend this Terminal (http://www.sunrom.com/media/files/p/Terminal.exe) software which can be used receive serial data for testing purpose
on PC side.
Interfacing with Microcontrollers
Just connect board output to MCU's RXD pin.
Following code is C language to decode incoming serial data and covert to Integers.
Page 2 of 4 Touch Screen(Resistive) with Serial Out [1255] Sunrom Technologies
1/29/2014 http://www.sunrom.com/254
Interfacing serial data output
The output from board can be interfaced with many ways
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//Compiler:Keil,Processorany8051core
#include<REGX51.H>//standard8051defines
//=====================
//==== HardwareDefines=======
//=====================
char sbuffer[30],ch;
unsignedchar pos;
unsignedint Xval;
unsignedint Yval;
unsignedint Zval;
//receiveserialcharacterfromserialport
char mygetchar(void)
{
char c;
while(!RI);
RI=0;
c=SBUF;
return SBUF;
}
//=====================
//==== MainProgram=======
//=====================
void main()
{
//== Intializevariables===
pos=0;
//== IntialiseSerialPort===
//SetsupMCUtouse9600bps@11.059MHzCrystal
SCON=0x52;//8bitUARTmode
TMOD=0x20;//timer1mode2autoreload
TH1=0xfd;//96008n1
TR1=1;//runtimer1
//== ProgramLoop===
while(1)
{
ch=mygetchar();//looptillcharacterreceived
if(ch==0x0D)//ifreceivedcharacteris<CR>,0x0D,13thenprocessbuffer
{
pos=0;//bufferpositionresetfornextreading
//extractdatafromserialbufferto8bitvalue
//convertdatafromASCIItodecimal
Xval=((sbuffer[3]'0')*1000)+(sbuffer[4]'0')*100)+((sbuffer[5]'0')*10)+(sbuffer[6]'0');
Yval=((sbuffer[10]'0')*1000)+(sbuffer[11]'0')*100)+((sbuffer[12]'0')*10)+(sbuffer[13]'0');
Zval=((sbuffer[17]'0')*1000)+(sbuffer[18]'0')*100)+((sbuffer[19]'0')*10)+(sbuffer[20]'0');
//Dowhateveryouwishtodowiththisintegervariables
//ShowonLCDorDosomeactionasperyourapplication
//Valueofsensorwillbebetween01024(10bitvalue)
//Youcandosomethinglikebelow
//if(Xval>100)
//RELAY=1
}else {//storeserialdatatobuffer
sbuffer[pos]=ch;
pos++;
}
}//endwhile
}//endmain
Page 3 of 4 Touch Screen(Resistive) with Serial Out [1255] Sunrom Technologies
1/29/2014 http://www.sunrom.com/254
You will need to add MAX232 IC if interface with PC's Serial port, Since the output of board is at 5V UART and PC serial port accepts RS232 level.
For USB interfacing you can use any USB to TTL UART adapter and you can also take power from USB itself.
Related Products
USB to Serial UART TTL Converter - Plug Type (/183)
(/183)
Touch Screen, 4 wire Resistive (/255)
(/255)
Popular Products
Temperature/Humidity Indicator
(/124)
(/124)
WIFI Module (/519)
(/519)
Serial JPEG Camera -
RS232 (/99)
(/99)
RF Remote, 220V, 1 Keypad + 4
Receiver (/499)
(/499)
Multliplexed 4 digit Seven
Segment Display (/209)
(/209)
Ultrasonic Distance Sensor -
Serial Out + Display (/164)
(/164)
Fingerprint Sensor with
Interface Board (/162)
(/162)
SiLabs C8051F340 Dev Board +
USB Debug Programmer (/545)
(/545)
Copyright 2014 Sunrom Technologies. All Rights Reserved.
Page 4 of 4 Touch Screen(Resistive) with Serial Out [1255] Sunrom Technologies
1/29/2014 http://www.sunrom.com/254

You might also like