Electronics

Touch Switch Digital Sensor 16 Button TTP229 Capacitive

AED 17.85

Low stock
1

Description

The TTP229 capacitive touch sensor module is perfect for adding capacitive touch inputs to your project. This capacitive touch sensor module uses the TTP229 integrated circuit, making it easy to add capacitive touch input to your project. It features 16 sensitive touchpads that make an ideal replacement for the old fashioned keypads.

Quick Spec

  • Operating voltage:2.4V~5.5V
  • Stand-by current At 3V, 2.5uA
  • On-Board Power Indicator LED
  • Operates In 8 Or 16 Channel Mode
  • Output Can Be Configure to Be Active High Or Low
  • Output Mode Can Be Configured To Toggle Or Momentary
  • 0.5 Second Startup Calibration Delay
  • Configurable Output Mode
  • 8 Key or 16 key modes
  • Separate outputs to 8 keys in 8 key mode
  • PCB Size At 49.3 x 64.5mm

Pin-outs

  1. VCC (2.4 - 5.5V)
  2. GND
  3. SCL (serial clock in)
  4. SDO (serial data out)
  5. OUT 1 (key 1 state)
  6. OUT 2 (key 2 state)
  7. OUT 3 (key 3 state)
  8. OUT 4 (key 4 state)
  9. OUT 5 (key 5 state)
  10. OUT 6 (key 6 state)
  11. OUT 7 (key 7 state)
  12. OUT 8 (key 8 state)

Resources

Arduino Code Sample


/*********************************** CIRCUIT **********************************\
| 16 Buttons Mode:                                                             |
|   * TTP229 VCC to pin VCC                                                    |
|   * TTP229 GND to pin GND                                                    |
|   * TTP229 SCL to pin 2                                                      |
|   * TTP229 SDO to pin 3                                                      |
|   * TTP229 TP2 to GND via 1 Megohm resistor!                                 |
|                                                                              |
| Important:                                                                   |
|   * Must reconnect the TTP229 power so the mode changes will take effect     |
|   * The 1 Megohm resistors already exist on some TTP229 modules              |
\******************************************************************************/
#include 
 
const int SCL_PIN = 2;  // The pin number of the clock pin.
const int SDO_PIN = 3;  // The pin number of the data pin.
 
TTP229 ttp229(SCL_PIN, SDO_PIN); // TTP229(sclPin, sdoPin)
 
void setup()
{
    Serial.begin(115200);
    Serial.println("Start Touching One Key At a Time!");
}
 
void loop()
{
    uint8_t key = ttp229.ReadKey16(); // Blocking
    if (key) Serial.println(key);
 
//  uint8_t key = ttp229.GetKey16(); // Non Blocking
//  Serial.println(key);
}