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
CAP1188 Does not always communicate on reset
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
CAP1188 Does not always communicate on reset
- Attachments
-
- Screenshot 2022-09-24 at 18.40.01.png (109.98 KiB) Viewed 144 times
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
Realised 'CAP1188 not found' not shown on the screenshot. But it does happen.
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
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.
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: CAP1188 Does not always communicate on reset
Please post a photo of your setup showing how everything is connected.
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
Here's the connections pic. Ignore orange wires from previous project.
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: CAP1188 Does not always communicate on reset
Are these, and other connections, soldered?
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
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.
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
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.
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: CAP1188 Does not always communicate on reset
Looking at your serial output. For the sequence here:
What was being done between each "CAP1188 test!" line? Just hitting reset until it finally gets found?- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
Yes. that's right.
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
Or a power cycle. Same effect.
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: CAP1188 Does not always communicate on reset
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.
If that doesn't help, then most likely a marginal connection issue.
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
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.
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.
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
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.
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.
- ddwwcc
- Posts: 50
- Joined: Sun Jan 06, 2019 9:27 am
Re: CAP1188 Does not always communicate on reset
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.
Please be positive and constructive with your questions and comments.