STMPE610

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
camerons3
 
Posts: 19
Joined: Thu Apr 03, 2014 1:52 pm

STMPE610

Post by camerons3 »

Hello,

I'm trying to communicate with a STMPE610 on my Beaglebone's pin 19 and 20.

For the STMPE610 I have the following:

Beaglebone 3.3 volts pin >> VIN pin
Beaglebone GND pin >> GND
MODE >> GND,
Beaglebone 19 >> SCL
Beaglebone 20 >> SDA

When I run i2cdetect -y -r 0 and i2cdetect -y -r 0

It doesn't find anything. Apart from for a very quick second when it did find something on 41, but then I ran it again and it didn't find anything.

Please do you have any suggestions?

Thanks,

Cameron.

and

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: STMPE610

Post by adafruit_support_rick »

I2C requires the python package 'python-smbus' installed from your distribution's package manager (opkg or apt-get) in order to function properly. Did you install it?

If so, check your connections

camerons3
 
Posts: 19
Joined: Thu Apr 03, 2014 1:52 pm

Re: STMPE610

Post by camerons3 »

Hi rick,

I do have those packages installed. Please can you confirm the correct connections for the board?

Btw: happy 4th of July!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: STMPE610

Post by adafruit_support_rick »

Yes, 19 (SCL) and 20 (SDA) on P9, and MODE to GND.
It should show up with i2cdetect -y -r 1

If you post a picture of the STMPE, I can have a look at your solders.

camerons3
 
Posts: 19
Joined: Thu Apr 03, 2014 1:52 pm

Re: STMPE610

Post by camerons3 »

Rick what is pin 9 on the stmpe610?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: STMPE610

Post by adafruit_support_rick »

Pin 9? I don't know what you mean. Did you mean the 'P9' I referred to? That is the long bank of header pins on the side of the BBB - the one adjacent to the 5V barrel jack.

camerons3
 
Posts: 19
Joined: Thu Apr 03, 2014 1:52 pm

Re: STMPE610

Post by camerons3 »

Thanks rick,

That makes sense. I will test it on Monday and let you know. Thanks for all your help.

camerons3
 
Posts: 19
Joined: Thu Apr 03, 2014 1:52 pm

Re: STMPE610

Post by camerons3 »

Hi rick,

I'm still getting the same thing. It's weird if I unplug the power and then reconnect and run:

oot@beaglebone:~# i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- 41 -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

I can sometimes get the 41. But as soon as I re-run the command it finds nothing. I checked the connections with a multimeter, but i'm a bit lost now in what I should do.

Please see attached a photo of my connections. (please note the blue write on the far left is my multimeter GND)

Thanks,

Cameron.
Attachments
connections.jpg
connections.jpg (805.25 KiB) Viewed 358 times

camerons3
 
Posts: 19
Joined: Thu Apr 03, 2014 1:52 pm

Re: STMPE610

Post by camerons3 »

FYI: If I connect A0 to 3.3 volts I get 0x44 on the I2C bus, but then it disappears!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: STMPE610

Post by adafruit_support_rick »

Try some different jumper wires, and some different breadboard sockets. Seems like you just have an intermittent connection someplace. Start with the ground - bad grounds are usually the culprit when I2C devices come and go like this.

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

Return to “Beagle Bone & Adafruit Beagle Bone products”