Recently Viewed

16 key capacitive touch keypad

16 key capacitive touch keypad
  Zoom
 16 key capacitive touch keypad16 key capacitive touch keypad 
Our Price:  £3.60(Inc. 20% VAT)(£3.00 Exc. VAT)Earn 3 Loyalty Points

SKU:  PPAC0005
Part Number:  PPAC0005
Brand:  Proto-PIC

Available Now:  

41 in stock, immediate despatch
Higher Quantities Available within 10-15 Working days

This low cost keypad can give your next project up to 16 capacitive switches using the TTP229 IC. Using only power, ground, and any 2 GPIO pins as clock and data (they are not i2C) on your micro controller.

We have an example Arduino sketch here:

// Use any 2 pins you like - this is NOT I2C ;-)
#define SCL_PIN 8
#define SDO_PIN 9
byte Key;
void setup()
{
  Serial.begin(9600);
  Serial.println("Cap key board");
  pinMode(SCL_PIN, OUTPUT);
  pinMode(SDO_PIN, INPUT);
}
void loop()
{
  Key = Read_Keypad();
  if (Key)
  {
    Serial.println(Key);
    delay(200);
  }
}
byte Read_Keypad(void)
{
  byte pinCount;
  byte KeyCount = 0;
  for (pinCount = 1; pinCount <= 16; pinCount++)
  {
    digitalWrite(SCL_PIN, LOW);
    if (digitalRead(SDO_PIN) == LOW)
    {
      KeyCount = pinCount;
    }
    digitalWrite(SCL_PIN, HIGH);
  }
  return KeyCount;
}

 


Customers who bought this item also bought:


Customer Reviews

Be the first to Write a Review for this item!