Capacitive sensor driver AT42QT1110 do not work!

Hi everyone!

I´m working with an AT42QT1110 but I have many troubles.
I spent sometime searching on others forums, in Google,etc but I not have a solution

The problem is in the communication between Arduino and the QT1110

I have this little snippet for test:

#include <LiquidCrystal.h>
#include <SPI.h>
#define SS_PIN 26

    LiquidCrystal lcd(A3,A4,A5,A6,A7,42,41);
    uint8_t BYTES;

void setup() {
SPI.begin();
pinMode(SS_PIN,OUTPUT);
lcd.begin(16,2);
lcd.clear();
}

void loop() {
    SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE3));
    digitalWrite(SS_PIN, LOW);
    SPI.transfer(0xC9);
    BYTES=SPI.transfer(0x00);
    digitalWrite(SS_PIN, HIGH);

    SPI.endTransaction();

lcd.setCursor(0,0);
lcd.print(BYTES,HEX);
lcd.setCursor(0,1);
//lcd.print(BYTES[2],BIN);
delay(200);

}

I do not recive the QT1110 device info, only recive “C9” on the LCD. I test another command and recive the the command string.

What is wrong?

AT42QT1110 datasheet:

Thanks!

Try the library.. from github