Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
4Activity
0 of .
Results for:
No results containing your search query
P. 1
Touch Screen Tecnology

Touch Screen Tecnology

Ratings: (0)|Views: 189|Likes:
Published by PRKSH007

More info:

Published by: PRKSH007 on Apr 24, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

12/04/2010

pdf

text

original

 
TOUCH SCREENINTRODUCTIONTouchscreens or touchscreen panels are display overlays which have the ability to display and receiveinformation on the same screen.The project aims to develop a user interface for the visitors to access thecollegedatabaseusing a touch screen. This device helps the students to access information about classtiming, location of rooms, fees structures, notices etc and of various departments from the college database.OBJECTIVE OF THE PROJECTThe project aims to develop a user interface for students/visitors to access the college database using atouch screen. This device helps the students to access information about the class timing, location of rooms,notices etc and of various departments from collegesystem database. There by, the college authorities can provide the correct information to the needed person without any human intervention and can managecentralized multi user information system. This system can help the students by providing details such asclass room location, class timing, fees structures, dues and marks. This system also includes an area toannounce new information about the college, exams and other activities.OVERVIEW OF THE PROJECTThe embedded touch screen is used here asinput device. The touch sensor/panel is placed over a displayscreen so that the responsive area of the panel covers the viewable area of the video screen. The sensor generally has an electrical current or signal going through it and touching the screen causes a voltage or signal change. This voltage change is used to determine the location of the touch to the screen. Thesevoltage changes are detected by the fast microcontroller in theembedded system.The controller determines the necessary actions and establishes connection with PC using RS232 communication The entries madeby the user through the touch screen is read and interpreted by the microcontroller. The system interpretsthe incoming data from the microcontroller and sends back the corresponding data by accessing the database.For this purpose we develop application software using VB.NET/ASP.NET. WORKING PRINCIPLEWe are using a 5 wire resistive touchscreen panel. Out of which the 4 wires are used for providing inputvoltage and the 5th wire is used to get the output voltage corresponding to the touch. The four wiresrepresent the voltages at four sides. First left side is made zero voltage and the right side is made 5 volt bymaking the corresponding pins of the microcontroller low and high. By this arrangement there will beincrease in voltage from left to right, this helps in finding the x coordinate of the touch. If a touch is made, thecorresponding voltage changes and this is fed to the PICmicrocontroller.The ADC converts this analog voltage into digital value. This value is divided by set numbers thatcorresponds to the amount of movement in pixels of the mouse. This helps in determining the point of touchand moves the mouse position. The mouse pointer is moved to the point of touch by sending correspondingcodes to the RS232 port via USART transmission. Now the mouse is moved in x direction.Similarly for finding the Y coordinate, the top and bottom sides are made 0 and 5v respectively. The voltageis taken and the steps used for x coordinate are repeated. After moving the mouse to the position the codefor left click is sent to the PC via RS232 port using USART transmission. Then the mouse pointer is movedto the default position that is left corner of screen. It is to be noted that the touchscreen to be detected asmouse, the value ‘M’ should be sent to PC during initialization at a baud rate of 9600.PROGRAM(attachment)COMPONENTS REQUIRED:7805 +5V regulator PIC16F877 microcontroller MAX232BC547 npn transistor 4MHz crystalIN4007 rectifier diode
 
LEDRESISTOR:22-kilo-ohm10-kilo-ohm4.7-kilo-ohm2.2-kilo-ohmBC557 pnp transistor CAPACITOR:4.7microfarad ,electrolytic0.1 microfarad, ceramic disk0.1 microfarad, ceramic disk470microfarad ,electrolytic1 microfarad , electrolyticPROGRAM FLOW/* Microcontroller -- PIC 16 F877 - 40-pin - 8-bit- Clock Frequency is 20 MHz *//* Driver: Microsoftserial mouse format */ 1. Start.2. Do the basic initializations – ADC(channel 0), USART(1200bps), EXT_INT and Basic variables3. Configure UART to send “M” on every EXT_INT.4. Send mouse code to move mouse to default position (0, 0)5. Set RB3 to scan Y axis. Scan & save ADC value for Y axis.6. Set RB2 & clear RB3 to scan X axis. Scan & save ADC value for X axis.7. Send mouse command to move mouse & Left click the saved X,Y location .8. Now send mouse command to retrace the mouse to default position.9. Repeat the steps 4-7 for every touch.
Attachments
 Code (1501-101551-code.txt)
 
Coding
PROGRAM#include<pic.h> //Header Filevoid default();//function declarationsvoid mov1(int m);void mov2(int m);void mov3(int m);void mov4(int m);void mov5(int m);void mov6(int m);void mov7(int m);void mov8(int m);void divide1(int p);void divide2(int q);void click();void interrupt ext()void usartinit()void ExternalInt()void adc();int x,y,u,m,c,p,q;/***********************************************************************//*MainFunction *//***********************************************************************/void main(){uartinit();//call UART transmissionintializing functionExternalInt();//call External Interruptintializing functiondefault();//call Default Condition functionwhile(1)//infinite loop{RB3=1;//Pin 3 of port B is madehigh(5v) & Pin 2 is made lowRB2=0;//for making left side 0v and right 5v.x=adc();//adc function initializedfor finding x coordinate digital//valueif(x>90){RB3=0;//Top side is made 0v and bottom 5vRB2=1;y=adc();//adc function initializedfinding y coordinate digital

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->