Interfacing Touch screen via lpc21xx Resistive touch screens can be a great way to enable complex user input in your projects inexpensively and with a.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Jordan Barry Victor Brzeski
Get Up Stand Up GuSu Andrew Leger Joshua Rust Matthew O’Morrow Philip Bell Group 5 Summer 09.
Inputs: Digital and 4 configurable for Digital or 10 bit Analog Outputs:4 - 8 amp Relays or 700ma Transistors (1 PWM) 4 Line by 18 Character fully.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Analogue to Digital Conversion By Cap’n Tim Johnson, PE Prepared 11/12/2013.
SHIFT REGISTERS: CONVERTING BETWEEN SERIAL AND PARALLEL DATA Mark Neil - Microprocessor Course 1 Serial versus Parallel Data Transfers.
Robotics Club, Snt Council2 The 3 Schools of Robotics: Mechanical Design – Types of motors – Material selection –
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
Travis Reed Todd Hummel Kwan-Truc. Concept USB 1.1 SPI b.
Coordinate Based Tracking System
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
Embedded Programming and Robotics Lesson 1 Basic Electricity and Electronics Transistor Basics Lesson 1 -- Basic Electricity1.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
Camera Interfacing using ARM7
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
Little arduino microcontrollers Meghan Jimenez 12 February 2014.
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Module 4: Analog programming blocks. Module Objectives Analyze a control task that uses analog inputs. Connect a potentiometer to LOGO! controller and.
Segway Controller Notes. = connection on top layer of circuit board = connection on bottom layer of circuit board Ground Plane: Areas enclosed by the.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
System Clocks.
LPC2148 Programming Using BLUEBOARD
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
Embedded System Design Laboratory October 11, 2002Stanford University - EE281 Lecture #4#1 Lecture #4 Outline Announcements Project Proposal AVR Processor.
Timer Timer is a device, which counts the input at regular interval (δT) using clock pulses at its input. The counts increment on each pulse and store.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
Analog Video Capture with PCs Steve Preston IOTA Annual Meeting Oct 2015.
FLAC Audio Player An ability to decode files stored in the FLAC format. An ability to select files stored on the device. An ability to display visualization.
By Noordiana Kasim. MODERN I/O DEVICES 1. PRINTER 2. MONITOR 3. KEYBOARD 4. AUDIO SPEAKER 5. DVD DRIVE.
SHIFT REGISTERS: CONVERTING BETWEEN SERIAL AND PARALLEL DATA Mark Neil - Microprocessor Course 1 Serial versus Parallel Data Transfers.
Chapter Microcontroller
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
An introduction to PIC’s for KS3 and KS4. Mr Rooks Hetton School.
Computer Components Part #2 – Input and Output. Let’s Review.
Components of a typical full-featured microcontroller.
Microcontrollers JULES CALELLA. Microcontrollers vs Microprocessors  Microprocessors – do not contain RAM, ROM, I/O  Microcontrollers – The whole package.
8051 Microcontroller Tutorial and Architecture with Applications.
DIGITAL SHOWER CONTROLLER BY NATHAN GARNER KASUN KUMARAGE.
1. PIC ADC  PIC18F877 has 8 analog input channels i.e. port A pins(RA0 to RA5) and port E pins(RE1 and RE2). These pins are used as Analog input pins.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Application Case Study Christmas Lights Controller
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
ABSTRACT The controller continuously polls the temperature with certain regular time intervals and displays over the 7_segment display The temperature.
SUBMITTED BY EDGEFX TEAM
Microprocessor Systems Design I
Microprocessor Systems Design I
DIGITAL CALCULATOR USING 8051
Digital electronics and logic gates
Project Members: M.Premraj ( ) G.Rakesh ( ) J.Rameshwaran ( )
Digital Theremin with LED
Journey: Introduction to Embedded Systems
Arduino Board.
CSCI1600: Embedded and Real Time Software
Arduino : Introduction & Programming
MSP432™ MCUs Training Part 6: Analog Peripherals
Pondicherry Engineering College
AVR – ATmega103(ATMEL) Architecture & Summary
CSCI1600: Embedded and Real Time Software
EECE.3170 Microprocessor Systems Design I
Electricity and Circuits
Arduino म्हणजे काय?.
Introduction to arduino
Presentation transcript:

Interfacing Touch screen via lpc21xx Resistive touch screens can be a great way to enable complex user input in your projects inexpensively and with a minimum number of pins. With just four wires you can capture gestures, buttons clicks, constantly track the position of a finger or stylus, and other interesting things. Best of all... thanks to the success of current touch-enabled devices like the Nintendo DS, there is also a steady supply of inexpensive touch screens available (which is precisely why we've chosen to use the Nintendo DS touch screen as an example).

Operation of touch screen Resistive touch screens operate on the same principle as a simple potentiometer... you apply 3.3v and GND on opposite ends, and measure the resulting current in between the two on a third pin (using an analog to digital converter). The only difference is that rather than adjusting the resistance by turning a dial, you adjust it by touching a certain part of the screen. Like a potentiometer, the resistance varies depending on the position you touch, allowing you to accurately determine exactly where you are touching

Touch Screen View

The catch with touch screens is that you have two axis to handle (X and Y), but only 4 pins to measure with (X1, X2, Y1, Y2). You can easily measure one axis without doing anything special. You have to be a bit tricky, though, to measure both axis in software- only, as you'll see below. First, though, a quick diagram explaining how analog resistive touch screens work, and how to wire them up.

Reading method To read the current position on one axis, you simply need to apply 3.3V on one side, GND on the other, and measure the current on the bus running 'across' the axis you wish to check (see the diagrams and table below for an example of how to read both the X and the Y axis):

LPC2148 and Nintendo DS Touch Screen Connections X1 Y2 X2 Y1 To measure the position on X: 3.3V ADC GND --- To measure the position on Y: ADC 3.3V --- GND

PCONP register in lpc2148 Power control for peripherals (PCONP) allows you to turn the internal peripherals of the microcontroller (for example USB, analog to digital converters, etc.) on or off. The advantage of doing this is that you can save power by turning off any peripherals that you aren't using, which can make a big difference if your device is running off batteries or a similarly 'limited' power source.

PCONP register Bit(s) Alias* Description Value at Reset 0 -- Reserved NA 1 SCB_PCONP_PCTIM0 Timer SCB_PCONP_PCTIM1 Timer SCB_PCONP_PCUART0 UART SCB_PCONP_PCUART1 UART SCB_PCONP_PCPWM0 Pulse Width Modifier Reserved NA 7 SCB_PCONP_PCI2C0 I²C SCB_PCONP_PCSPI0 SPI SCB_PCONP_PCRTC Real Time Clock 1 10 SCB_PCONP_PCSPI1 SPI Reserved NA 12 SCB_PCONP_PCAD0 Analog to Digital Converter Reserved NA 19 SCB_PCONP_PCI2C1 1²C SCB_PCONP_PCAD1 Analog to Digital Converter Reserved NA 31 SCB_PCONP_PUSB USB