Problem: The capacitive buttons work without a case, but don't work at all when the shield is placed inside the case. This problem has been around for over two years, so it's hard to believe this hasn't been fixed:
In the code I changed CARRIER_CASE = false to CARRIER_CASE = true
void setup() {
Serial.begin(9600);
//Wait to open the Serial monitor to start the program and see details on errors
delay(1500);
//Initialize the MKR IoT Carrier and output any errors in the serial monitor
CARRIER_CASE = true;
carrier.begin();
carrier.display.setRotation(0);
}
I also tried various configurations like these to no avail:
/arduino-libraries/Arduino_MKRIoTCarrier/blob/master/examples/TouchPads/Custom_Sensitivity/Custom_Sensitivity.ino
Maybe I'm still missing something fundamental. Has somebody a working example/configuration with the buttons working in the case?
Any updates on that?
I'm in the same situation. Buttons work perfectly outside the case but not inside. I've tried the calibration tutorials. There is just no input on the buttons while with the case (tested with the serial plotter). Note about the plotter : I'm stuck with only 50 points showned on the plot, so it's difficult to have a good plot to show to you.
Is the sensivity will change the output of the analogread function? In my case, it doesn't seem to change anything.
#include <Arduino_MKRIoTCarrier.h>
MKRIoTCarrier carrier;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
carrier.begin();
}
void loop() {
// put your main code here, to run repeatedly:
Serial.print("lower_bound:0, ");
//Serial.print(value);
for (int i = 0; i < 5; i++) {
Serial.print("button");
Serial.print(i);
Serial.print(":");
Serial.print(analogRead(i));
Serial.print(", ");
}
Serial.println("upper_bound:1200");
delay(10);
}