sparkfunX / SparkFun_ESP32_Thing_Plus_C

USB C ESP32 Thing Plus
Other
12 stars 4 forks source link

QWIIC Twist and Quad Relay not recognized - Updated #3

Closed jpecor closed 2 years ago

jpecor commented 2 years ago

I'm trying to use the Thing Plus C with a QWIIC Twist, and it does not recognize the device. I have the Twist working with an RPi and Python library, so I know it functions.

I also tried the I2C scanner code from this repo, and the Twist is not seen on the bus.

Has the QWIIC interface been verified on this device? Or is there something I should be doing differently?

jpecor commented 2 years ago

I have the same issue with the QWIIC Quad Relay, so it's not just isolated to the Twist.

nseidle commented 2 years ago

Are the power LEDs on the boards on? Are you doing anything with ESP32 pin 0? It controls the v-reg. It's pulled high by default (internal to the ESP32).

image

Can you detect other I2C devices using the scanner?

jpecor commented 2 years ago

Yes, there is power to the Twist. In fact, I ran the I2C scanner code, and it blinks the Twist LED, but there's no hit when it scans the addresses.

I haven't added other QWIIC boards to the chain to see if they are detected, yet. I'll try that next.

jpecor commented 2 years ago

Just tried with a QWIIC 9DoF IMU and PIR. Same result. ThingPlus_480x

PaulZC commented 2 years ago

Hi Jason,

Which version of ESP32 do you have installed? And do you have the ESP32 Dev Module selected?

Qwiic / Wire is working fine for me...

image

image

Best wishes, Paul

jpecor commented 2 years ago

SHAZAM!! I was not! I was using the Adafruit ESP32 Feather based on the instructions for the ESP32 Thing Plus.

Changing to the ESP32 Dev Module seems to be the ticket. Or, at least, I see the devices with the scanner code.

Now on to the intended application. If that works, I'll close this issue.

Thanks for the help!

jpecor commented 2 years ago

That worked. Thanks again!

jpecor commented 2 years ago

I am reopening this issue because I've run into a new wrinkle.

Here's the situation:

So, something changed post-header attachment.

Those through hole vias are very close to the ESP32 module CVs, and our concern was a possible solder bridge. Everything looks very clean under the microscope.

Is it possible the proximity of the ESP32 module to the vias allowed some of the solder to flow under a CV and create an open on one of the module I/O?

I can still program the device, so it's not flat-out broken. But the I2C bus is not working correctly.

Any thoughts?

Thanks! Jason

PaulZC commented 2 years ago

Hi Jason,

The device at 0x36 is the MAX17048 battery fuel gauge. That suggests the I2C bus is still working correctly.

Are you still connecting via the 4-Pin Qwiic connector? Maybe try connecting via the SCL/SDA header pins instead?

Best wishes, Paul

jpecor commented 2 years ago

Yes, I'm using the QWIIC connector. I'll try the header pins next.

Thanks for the Intel on the battery gauge. Good to know!

jpecor commented 2 years ago

Direct connection to SDA/SCL works. Hmmm....

Thanks @PaulZC !

nseidle commented 2 years ago

Sorry you're having so much trouble. Sounds like a bad Qwiic cable or bad connection. Continuity test the cable to see if it's bad. Also have a good look at the pins inside the Qwiic connector. It's rare but I've had an end pin bend sideways a few times.

Closing since it's not a hardware issue with the ESP32 Thing Plus C. Feel free to open more issues if you come across them.