Arduino Projects    |   Raspberry Pi  |     Electronic Circuits   |   Electronics Reference Design Library  |   AVR    |    PIC    |    8051    |    Electronic Projects

Interfacing 4-wire Resistive Touchscreen with ATMega16 Microcontroller

Description

Table of Contents:

  1. Interfacing 4-wire Resistive Touchscreen with ATMega16 Microcontroller
  2. Process
  3. Working
Contributor: 
Ganesh Selvaraj
Touch screens are two dimensional input devices. Nowadays most of the electronic gadgets use them. Laptops, smart phones, tablets and even some home appliances like washing machines & microwave ovens also use a touch screen nowadays.
Why Touch screens?
Touch screens are preferred over keypads because they need very little or no pressure to operate whereas the Keypads/ buttons need a minimum pressure to operate and our hands start aching after some time of continuous usage.

And one more great advantage in using a touch screens is that it enables us to make more room for the screen itself instead of wasting the space on the permanent keypad. And that’s the reason for our smart phone’s screens to become big enough to browse web pages also and still fit in our pockets.
Touch screens are of various types like Resistive, Capacitive, Surface Acoustic Wave (SAW), Infrared Grid, Optical Imaging, etc.
In this tutorial we’ll learn how to interface a 4-wire Resistive touch screen with ATmega16 microcontroller
Components Required
      1.      ATMega16 development board
      2.      UART to USB converter or (UART to RS-232 converter + RS-232 to USB converter)
      3.      Touch Screen with connector
      4.      Few female to female jumper wires
       5.      Breadboard
      6.      4 x 10k Resistors
Making a Connector
Before learning how to interface a touch screen we need to look into a problem. One of the biggest drawbacks of using a cheap touch screen is that they usually don’t come with the connector which is very much required to interface them with any kind of microcontroller development board. You can buy connectors online but in some cases they cost more than the touch screen itself. So I’ll show how to make break out board by soldering tiny wires onto the strip emerging from the touch screen.
Caution: Do the following procedure with your own risk. It does require some good soldering skills (not expert level but if this is your first time soldering then I advice not to do this by your own) since the strip emerging from the touch screen is very narrow.
Making a connector Things Required
      1.      Soldering iron with pointed tip
      2.      Flux paste
      3.      Soldering wire
      4.      4 Tiny Wires
      5.      Wire stripper
      6.      A small PCB
      7.      4-pin Male Header
      8.      A Magnifying Glass
Soldering Tip
 
Magnifying Glass The Magnifying Glass is a must (unless you are a super human). I had a third hand PCB holder which had a good quality magnifying glass with 4X power so I used that. 

Circuit Diagram

Source Code

This Code is only visible to Registered users. Please Login/Register

 

Comments (15)

Very Good, Thanks.

Very Good, Thanks.

ok i will

ok i will

Hi Ganesh i like ur project i

Hi Ganesh i like ur project i am very impressed with it . But actually i am working on project to interface 4-wire touch screen with PC/laptop so that i can control the laptop through touch screen. Can you please help me in it. I m just a beginner hobbyist engineer. Can you suggest me the code req for it.!!!!!

Hi Sumit. Sorry for the late

Hi Sumit. Sorry for the late reply. Look at my latest project titled "4 Wire Touch screen based Digital Magic slate". The project uses a software named Processing on the PC side and that can be used to control the laptop. You have many examples pre-loaded in the software.

Thank you for the reply

Thank you for the reply friend!!!!!!!!

i ll definately go th'gh ur latest project and get u soon  thank you!!!!!!!!

 

tahnku buddy for all that...

tahnku buddy for all that...

i want code for this project

i want code for this project

hi,do we need to use a

hi,do we need to use a touchscreen driver when using the touchscreen with atmega 16? i am making a digital drawing pad using glcd and touchscreen interfaced with microcontroller atmega16. i have written the code for checking both the x and y co-ordinates so will a driver for the touchscreen be necessary?

 

i am also working on similar

i am also working on similar project with 128x64 glcd and 4 wire touch screen, but facing problem like my touch screen coordinates are coming in random order there is no order b/w them.

I need u r help in getting

I need u r help in getting information abt ts.and i want code

i dont want 

i dont want 

i have make this ckt and burn

i have make this ckt and burn above code but it is showing only

0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 

 

please help me

Hi ganesh i like your

Hi ganesh i like your project, and i need some of the components you used in your project, so can you email me your project so that i can modify more in that.

hello, this website is

hello, this website is awesome site for student.i help me to choose my semester project as well as help me to make it.

I like your project, and i need  your project Detail with its c code, so can you email me your project so that i can modify more.thanx.

 

 

@Ganesh Selvaraj,I have

@Ganesh Selvaraj,I have interfaced 4 wire resistive touchscreen (Y1 1083) with atmega 32 output pins by doing the soldering as you have told but directly using female connector.I am not getting proper response i.e.not expected cooordinates

 on lcd.I doubt that it is because of improper hardware connections.May be i am not able solder properly so will you please tell me where will I get a touchscreen module with connector online or in mumbai.Awaiting your reply.... 

You are here