STMPE610 Resistive Touch Screen Controller, Raspberry pi 3 B

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
xa14
 
Posts: 11
Joined: Wed Jun 06, 2018 1:43 pm

STMPE610 Resistive Touch Screen Controller, Raspberry pi 3 B

Post by xa14 »

Hello,

I want to have my Resistive Touch Screen to work with my pi,
so i bought https://www.adafruit.com/product/1571

and there is a code in github:
https://github.com/adafruit/Adafruit_STMPE610

but after a search, some people say that it does not work with the pi, is that true?

I have connected the controller to i2c but i can't find its address using

Code: Select all

i2cdetect -y 1
is that normal?

The connection is:
SDA to pin 3
SCL to pin 5
GND to pin 6
And finally, Vin to pin 1

please help me controlling my pi with my resistive touch screen.

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: STMPE610 Resistive Touch Screen Controller, Raspberry pi

Post by adafruit_support_carter »

The code you linked to is for Arduino, so won't work on a Raspberry Pi. For a Pi, this might have been a better choice:
https://www.adafruit.com/product/1580

However, I would expect the device you have to at least show up with the i2cdetect scan. The wiring you mention is correct. Can you post a photo of your setup showing how you've made these connections.

User avatar
xa14
 
Posts: 11
Joined: Wed Jun 06, 2018 1:43 pm

Re: STMPE610 Resistive Touch Screen Controller, Raspberry pi

Post by xa14 »

Thanks for your reply,

below are the images:

..., there is a problem with uploading images to adafruit, please see the following link instead:
https://mega.nz/#F!Z54R3YbT!evEk0tcqKgQpc0aDPtT2Cw
Attachments
IMG_20180606_225404.jpg
IMG_20180606_225404.jpg (184.93 KiB) Viewed 510 times

User avatar
xa14
 
Posts: 11
Joined: Wed Jun 06, 2018 1:43 pm

Re: STMPE610 Resistive Touch Screen Controller, Raspberry pi

Post by xa14 »

After trying for many times disconnecting and reconnecting the thing, it has finally showed up as 41, but only after it gave me a boom electric shock!

That's a success, but the weird thing is, when i connected the 4-wire resistive touch screen to the connector, it rebooted the Pi before even i connect the wire properly.

Is there something i can do to link its output to evtest and then use ts_calibrate to calibrate the screen?

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: STMPE610 Resistive Touch Screen Controller, Raspberry pi

Post by adafruit_support_carter »

It sounds like a connection issue. An address of 0x41 is correct. Are you using female-male jumper wires? Is that why you have to bridge across the breadboard?

User avatar
xa14
 
Posts: 11
Joined: Wed Jun 06, 2018 1:43 pm

Re: STMPE610 Resistive Touch Screen Controller, Raspberry pi

Post by xa14 »

yes, im using female to male wires.

User avatar
adafruit_support_carter
 
Posts: 29483
Joined: Tue Nov 29, 2016 2:45 pm

Re: STMPE610 Resistive Touch Screen Controller, Raspberry pi

Post by adafruit_support_carter »

OK, not sure what caused the sparking. But having the Pi reset can happen when connecting things while powered. Or even just connecting things to the GPIO header. It's best to do that un-powered. And the intermittent detection with i2cdetect could just be poor connection on the breadboard.

Since you've got the i2c version, I'm not sure how you could have that show up so you can run evtest, etc. For the USB version (linked above) you can do that.

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”