r1r2 r3 r4 r5 r1r2 r3 r4 r5 ab c d how do you isolate the x,y coordinate? (x,y) or (r1,r5) 1. use...

12
Touch Panel ABCD

Upload: raymond-blake

Post on 19-Jan-2016

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

Touch Panel

ABCD

Page 2: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

C

D

A BR1 R2

R3R4

R5

Page 3: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

R1 R2

R3R4

R5

A B

C

D

How do you isolate the x,y coordinate?

(x,y) OR (R1,R5)

1. Use the microcontroller to read the resistance between pairs of wires.

2. Use simultaneous equations to calculate the values of individual resistances.

Page 4: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

Tri-State Logic

HIGH:

I/O pinOUTPUT, HIGH

LOW:

I/O pinOUTPUT, LOW

HIGH IMPEDANCE:

I/O pinINPUT

Page 5: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

To Read Between Two Wires

Digital I/O pin 1

Digital I/O pin 2

Digital I/O pin 3

Digital I/O pin 3

Analogue Inputs1 2 3 4

A

B

C

D To Touch Panel

Page 6: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

To Read Between Two Wires

Digital I/O pin 1

Digital I/O pin 2

Digital I/O pin 3

Digital I/O pin 3

READ FROM 31 2 3 4

A

B

C

D

HIGH

LOW

HIGH IMPEDANCE

HIGH IMPEDANCE

PASSES THROUGH R1, R3, R4

Page 7: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

To Read Between Two Wires(Pin 1,HIGH) V+

(pin 3,LOW) 0V

100Ω fixed resistor (Rf2)

100Ω fixed resistor (Rf1)

Panel Resistance (Rp)

Analogue 3

A

C

Page 8: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

Use Simultaneous Equations

D-A: R1+R3+R5D-B: R2+R3+R5A-B: R2+R1

A-D: R5+R3+R1A-C: R4+R3+R1C-D: R4+R5

(R1,R5)-Isolated coordinates

Page 9: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

Too Many Pins!

What Next?

Page 10: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

The solution: Serial In Parallel Out Shift Registers

01100011 01100011

Chained Together!

Page 11: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

Row Control

Column Control

Page 12: R1R2 R3 R4 R5 R1R2 R3 R4 R5 AB C D How do you isolate the x,y coordinate? (x,y) OR (R1,R5) 1. Use the microcontroller to read the resistance between

Matrix Schematic

Benefit: Fewer pins than if connected individually.Problem: Can only have individual control of LEDs

one row at a time.