CAP1188 Does not always communicate on reset

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

CAP1188 Does not always communicate on reset

Post by ddwwcc »

Hi,

I have a problem with the CAP1188 board. I have on attached to a Arduino Nano Every via I2C. On reset or power up, the board does not always communicate with the Nano Every. For software, I'm using the example cap1188test. I have two CAP1188 boards, and both react identically. I have tried it with and without the reset wired in (and appropriate change to the software), but it still acts identically. I've attached a screenshot of the serial monitor. This shows 3 behaviours 1) Communications established, reports input touches. 2) Board not found. 3) s/w gets stuck in the cap.begin(), I assume.

The first assumption is dodgy connection on the I2C. However, in the cases where communications start correctly, the link is rock solid, reporting all touches, for a half hour test.

So, any suggestions on tracking down the problem?

Thanks
Attachments
Screenshot 2022-09-24 at 18.40.01.png
Screenshot 2022-09-24 at 18.40.01.png (109.98 KiB) Viewed 144 times

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

Realised 'CAP1188 not found' not shown on the screenshot. But it does happen.

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

I've now tried this with a Arduino Uno, with identical results, i.e. sometimes, full communication and all works, sometimes CAP1188 reported as not found, sometimes nothing after the 'CAP1188 test!' report.

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

Re: CAP1188 Does not always communicate on reset

Post by adafruit_support_carter »

Please post a photo of your setup showing how everything is connected.

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

Here's the connections pic. Ignore orange wires from previous project.
IMG20220927114548-sm.jpg
IMG20220927114548-sm.jpg (289.91 KiB) Viewed 130 times

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

Re: CAP1188 Does not always communicate on reset

Post by adafruit_support_carter »

Are these, and other connections, soldered?
wires.jpg
wires.jpg (83.89 KiB) Viewed 124 times

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

Those two are soldered. They were on Wago connectors, like the power, but I shortened them and soldered them, to see if it made a difference. It didn't.

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

All connections on the CAP1188 board are soldered. On the Uno there those horrible pins, but held in more firmly with tape. On the Nano Every I tested with, they are all soldered.

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

Re: CAP1188 Does not always communicate on reset

Post by adafruit_support_carter »

Looking at your serial output. For the sequence here:
sermon.png
sermon.png (20.3 KiB) Viewed 121 times
What was being done between each "CAP1188 test!" line? Just hitting reset until it finally gets found?

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

Yes. that's right.

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

Or a power cycle. Same effect.

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

Re: CAP1188 Does not always communicate on reset

Post by adafruit_support_carter »

Can try adding a small delay in setup() before init'ing the CAP1188 to see if maybe it's an initial power issue.

If that doesn't help, then most likely a marginal connection issue.

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

The delay works. As I can't get to the reset button, I'm power cycling the circuit. It's powered from a Mac, via USB C. I found with quick power cycling, a delay of 200mS worked (20 cycles) but noticed the first one after a lengthy disconnect didn't. So, doing 30sec (10 cycles) disconnects required 2000mS delay for consistent working. 2000mS also seems to work for 10min and 30min disconnects. Requires more testing, but 2000mS looks like the delay needed.

While testing, amongst the failures, I'm still seeing the occasional 'CAP1188 test!' with no following 'CAP1188 found!' or 'CAP1188 not found'. This feels like a bug.

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

Repeated the test with the Arduino Nano Every and a second CAP1188 board: 30 sec disconnects, then see if comms is established with the CAP1188. Found I needed a delay of 4000mS for reliable comms. Test of 10 times, so needs further testing.

In all these tests I do a good half hour check with comms connected, to see if comms gets lost, to make sure there is no intermittent connections.

User avatar
ddwwcc
 
Posts: 50
Joined: Sun Jan 06, 2019 9:27 am

Re: CAP1188 Does not always communicate on reset

Post by ddwwcc »

Further to this. Just done tests with the Arduino Uno and Nano Every, and in both cases, no delay was required when powering the boards not via USB. A 12V battery was used.

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

Return to “Other Products from Adafruit”