Hi, I have ADS ANRG08 touch sensor and I can't run it with Arduino, I tried it two whole days.. but no success. I used I2C scanner (Arduino Playground - I2cScanner) to get the addresses that I used in the code below, but it didn't work. What should I do to make it work? Thanks for answers.
The datasheet is in attachments.
/*
I2C device found at address 0x24 !
I2C device found at address 0x29 !
*/
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
#include <Wire.h>
int outputdata;
byte address = 24; //device adress from i2c scanner
void setup(){
Serial.begin(9600);
Wire.begin();
Wire.beginTransmission(address); //start transmission
Wire.write(0x3B); //in datasheet, page 21 - sensivity3 (3B H)
Wire.endTransmission(); //end of it
}
void loop(){
Wire.requestFrom(address,1); //request data from byte 1, there's doesn't matter when I use 0 - 7 ?? (see datasheet)
outputdata = Wire.read(); //get data
Serial.print("> ");
Serial.print(outputdata);
Serial.print("\n");
delay(500);
}
ANRG08SC - 8ch touch sensor.pdf (1.11 MB)