FREE UK Shipping

Orders over £75

Educational

Discounts

FREE Tech Support

Call 01592 572094

ISO 9001 Logo

Proto-PIC Promise

Quality Assured

16 key capacitive touch keypad

£3.60 inc VAT (£3.00 ex VAT)

37 in stock

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

Category:

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;
}

 

Additional information

Brand

Part Number

PPAC0005

SKU

PPAC0005

Barcode

5055421002343

Reviews

There are no reviews yet.

Be the first to review “16 key capacitive touch keypad”

Your email address will not be published. Required fields are marked *