Need a bit of help here. I need to connect stemma stuff to a pybadge-lc and a pyportal. For neither I have the correct connectors or cables, so I snipped a cable in half and plan to connect each half to each board.
Not the best soldering, but I think the connections are ok. Now, when I connect any sensor over stemma, I get this Pull Up error in circuitPython. Not sure if SDA/SCL are in reverse or what I did wrong.
Pull up error with soldered stemma cable
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Pull up error with soldered stemma cable
- Attachments
-
- stemma-pullup.png (141.09 KiB) Viewed 100 times
-
- DSCN2979-small.JPG (439.94 KiB) Viewed 100 times
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Pull up error with soldered stemma cable
Hello fede2,
Thanks for showing the pics of your code and i2c connection. All adafruit sensors on breakout boards including the DPS310 you are using have built-in pullups. The issue is either with wire length, soldering or wiring mixup.
Let's start with the logic pins. Make sure the DPS310 is connected to your pybadge-lc like so:
DPS310 <--> pybadge-lc
SCK <--> SCL
SDI <--> SDA
Vin <--> 3v/5v
GND <--> GND
https://cdn-learn.adafruit.com/assets/a ... 1556577492
Thanks for showing the pics of your code and i2c connection. All adafruit sensors on breakout boards including the DPS310 you are using have built-in pullups. The issue is either with wire length, soldering or wiring mixup.
Let's start with the logic pins. Make sure the DPS310 is connected to your pybadge-lc like so:
DPS310 <--> pybadge-lc
SCK <--> SCL
SDI <--> SDA
Vin <--> 3v/5v
GND <--> GND
https://cdn-learn.adafruit.com/assets/a ... 1556577492
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Re: Pull up error with soldered stemma cable
I does look like it, I just check them with a multimeter with continuity from the soldered cable ends, to the pin holes of the sensor, and also measured voltage on the side of the sensor.
I'm adding a new crop of the original image, which shows that the cable I'm using is a normal stemma qt cable cut in half so it should not affect length wise.
I'm adding a new crop of the original image, which shows that the cable I'm using is a normal stemma qt cable cut in half so it should not affect length wise.
- Attachments
-
- DSCN2979-cable-crop.JPG (855.84 KiB) Viewed 96 times
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Pull up error with soldered stemma cable
Can you show the other end of the cable plugged into the sensor.
What was the voltage you were reading on each side of the sensor?
What was the voltage you were reading on each side of the sensor?
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Re: Pull up error with soldered stemma cable
Sure.
On the sensor side in the pin holes for vcc-gnd, it reads 4.18v when it's on battery, and 4.78v when the PyPortal plugged into usb.
On the sensor side in the pin holes for vcc-gnd, it reads 4.18v when it's on battery, and 4.78v when the PyPortal plugged into usb.
- Attachments
-
- DSCN2980-sensor-crop.JPG (636.55 KiB) Viewed 93 times
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Pull up error with soldered stemma cable
You have the orientation right on the pins you have soldered to the PyBadge-LC
yellow SCK/SCL
blue SDI/SDA
red Vcc
black GND
Are you detecting any shorts in the connections when reading each pin with a mutli-meter. I'm more worried about the soldering than anything else. How much did you shorten the cable length when the JST connector was cut off?
yellow SCK/SCL
blue SDI/SDA
red Vcc
black GND
Are you detecting any shorts in the connections when reading each pin with a mutli-meter. I'm more worried about the soldering than anything else. How much did you shorten the cable length when the JST connector was cut off?
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Re: Pull up error with soldered stemma cable
I cut the stemma qt cable in aprox half (so that I can use the other half on a poor pyportal that I'm going to have to remove the nice connector...).
I will try to re-do the soldering tonight and post a reply.
I will try to re-do the soldering tonight and post a reply.
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Re: Pull up error with soldered stemma cable
I re-did the soldering, looks a bit cleaner, but I still get the same error.
Any ideas?
Any ideas?
- Attachments
-
- DSCN2988-crop.JPG (402.08 KiB) Viewed 83 times
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Pull up error with soldered stemma cable
Hi fede2,
Thank for checking the solder points again. The blue SDI/SDA cable looks like it has a small connection the 5v trace. I circled it below.
The last time I had a killer troubleshooting issue the SDA/SCL error it turned out to be the i2c clock speed being set to high for the peripheral. I would suggest trying a lower clock speed as well to see if that helps.
Thank for checking the solder points again. The blue SDI/SDA cable looks like it has a small connection the 5v trace. I circled it below.
The last time I had a killer troubleshooting issue the SDA/SCL error it turned out to be the i2c clock speed being set to high for the peripheral. I would suggest trying a lower clock speed as well to see if that helps.
Code: Select all
i2c = busio.I2C(board.SCL, board.SDA, frequency=400000)
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Re: Pull up error with soldered stemma cable
I'm checking the solder with a jeweler's magnifying glass and it look ok.
If I can find the ccd for my microscope I'll take another image of it. It was probably a textile hair at the moment of the photograph.
I also added the code to change the speed of i2c but I still get the same error.
If I can find the ccd for my microscope I'll take another image of it. It was probably a textile hair at the moment of the photograph.
I also added the code to change the speed of i2c but I still get the same error.
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Re: Pull up error with soldered stemma cable
Oh, I also check continuity with the multimeter, between the blue and red wire, and there isn't.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Pull up error with soldered stemma cable
Okay, my bad on the baudrate. 400k is full normal speed. Let's drop you down to standard mode 100kbit/s.
Code: Select all
i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Re: Pull up error with soldered stemma cable
Tested with the lower i2c freq, same pull up error.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Pull up error with soldered stemma cable
Well aside from somehow have the SDA or SCL connections reversed (which I do not think is happening here) we might as well try the 4.7k pull up. Can you introduce a resistor on each of the SDA and SCL lines of 4.7k and see if it resolves the issue? This of couse should not be necessary, but it would be interesting to see.
- fede2
- Posts: 25
- Joined: Thu Jan 15, 2015 7:35 pm
Re: Pull up error with soldered stemma cable
How would that go? From SDA I need to connect a 4.7k to GND or VCC?
And then the same with another 4.7k in SCL.
And then the same with another 4.7k in SCL.
Please be positive and constructive with your questions and comments.