ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

4 Wire Resistive Touch Screen Sensor Interfacing with ATmega32

3840
1
Mark as Favourite

The term generally refers to touching the display of the device with a finger or hand. Touch screens can also sense other passive objects, such as a stylus. Touch screen technology has been around for a number of years but advanced touch screen technology has come on in leaps and bounds recently. Companies are including this technology into more of their products. The three most common touch screen technologies include resistive, capacitive and SAW (surface acoustic wave). Of all the kinds of touch screens available, Resistive touch screens are easy to interface, cheap and they have fair sensitivity. Resistive Touch screens are simply transducers. This touch screen has a resistive layers in both X and Y directions. According to the position of the touch, their X channel and Y channel resistance changes. So, what we have to do is we have to determine the X and Y Channel resistance to get the position of the touch in terms of X and Y co-ordinates. To read the position of the touch, we have to read touch position sequentially i.e. first read X position and then read the Y position.

In this project, we will learn How to interface a 4 wire Resistive Touch Screen with AVR ATmega32 microcontroller. Here, we will find the coordinate value of the point at which the touch screen is touched and we will display the coordinate value in a 16X2 Alphanumeric LCD. The AVR ATmega32 Microcontroller will first read the X and Y value of the coordinate point of the touch screen. But, the two outputs of touch screen sensor are analog in nature and microcontroller cannot process the analog signal directly. So, first it will convert the two analog outputs of touch screen sensor to digital values using its analog to digital converter and then it will display the two converted digital values in the 16X2 alphanumeric LCD. Now, we will touch the touch screen sensor at different position and we will see the changes in its output values(X and Y values) in the 16×2 alphanumeric LCD.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega32 1pc
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 1pc
4 Wire Resistive Touch Screen Sensor 1pc
RG1602A 16X2 Alphanumeric LCD Green 1pc
1 to 1 Connector-Female to Female 1pc
5 to 5 Connector-Female to Female-1 Meter 3pc
10 to 10 FRC Female to Female Connector 1pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for 4 Wire Resistive Touch Screen Sensor Interfacing with ATmega32 is as follows

  • Steps - 1 ( 0f 9 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 2 ( 0f 9 )

    Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 9 )

    Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

  • Steps - 4 ( 0f 9 )

    Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

  • Steps - 5 ( 0f 9 )

    Connect the Pin1, Pin1, Pin1, Pin1 and VCC pins of 4 Wire Resistive Touch Screen header with PA0, PA1, PA2,PA3 and VCC pins of PortA header of AVR Trainer Board-100 with 5 to 5 Connector.

  • Steps - 6 ( 0f 9 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 7 ( 0f 9 )

    Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

  • Steps - 8 ( 0f 9 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Steps - 9 ( 0f 9 )

    Download 4 Wire Resistive Touch Screen Sensor Interfacing with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 9 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 9 )

  • Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 9 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 4 ( 0f 9 )

  • Connect the Pin1, Pin1, Pin1, Pin1 and VCC pins of 4 Wire Resistive Touch Screen header with PA0, PA1, PA2,PA3 and VCC pins of PortA header of AVR Trainer Board-100 with 5 to 5 Connector.

    Steps - 5 ( 0f 9 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 6 ( 0f 9 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

    Steps - 7 ( 0f 9 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 8 ( 0f 9 )

  • Download 4 Wire Resistive Touch Screen Sensor Interfacing with ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 9 ( 0f 9 )

Downloads

4 Wire Resistive Touch Screen Sensor Interfacing with ATmega32 Project File
  • 23 downloads 0 Kb

Post a Comment

    • YaseerShah
      hi
      2017-12-03 10:28:46
      Reply