4 wire resistive touch screen pannel with uno

hello,
i am new to this forum. i am here to sort out the solution to obstacles that i am facing in my project.

I am working on project in the following link.

i have connections accordingly and noted down the readings. when i take output at pin 12,13 i am getting output voltage high always even if i didn’t touch the pannel. when i go to other pins let say pin 11, 12 its showing 0V always irrespective of touch.

The output should be like when i touch on1 pin 11 must high and when on2 pin 12 must high ; and vice vesa.

I am attaching the code which i have used to read the values.

please help me.

thank you in advance.

janreadings.ino (577 Bytes)

Use:
yv = analogRead(A1);

and:
xv = analogRead(A0);

Archibald:
Use:
yv = analogRead(A1);

and:
xv = analogRead(A0);

Why? It’s exactly equivalent to

yv = analogRead(1);

and:
xv = analogRead(0);

Also, cross-post.

Thread locked.