特價

16路 TTP229 電容式觸摸開關 數位觸摸感測器模組

NT$80 NT$75

15 件庫存

貨號: SNI-005543 分類: 標籤: , ,

描述

16路 TTP229 電容式觸摸開關 數位觸摸感測器模組

1、板載TTP229電容式16鍵觸摸感應IC
2、板載電源指示燈
3、工作電壓:2.4V-5.5V
4、模組可以設置輸出模式、鍵輸出模式、長輸出時間和快速/低功耗選擇
5、PCB板子尺寸:49.3(mm)x64.5(mm)

/**Operating voltage:2.4V~5.5V

Built-in regulator

Stand-by current At 3V, and sleep mode slow sampling rate 8Hz:

=> Typical 2.5uA for 16 input keys

=> Typical 2.0uA for 8 input keys

8 Key or 16 key modes

Separate outputs to 8 keys in 8 key mode

2 wires serial output interface for both 16 key and 8 key mode

Outputs can be set to CMOS/OD/OC with active high/low

2 Wires serial interface can select active high or low by option

Optional Multi-key or single-key

Provides two kinds of sampling rate: slow sampling rate 8Hz and fast sampling rate 64Hz at sleep mode

Optional maximum key-on time about 80sec

Auto calibration at power up (keypad must not be touched for 0.5 seconds after power up)

Auto calibration for changes in environment

 

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)


* Contents
- Connect

VCC ----- 5V
GND ----- GND
SCL -----> D2 
SDO -----> D3 

**/

#define pulse 2
#define data 3
int old  = 0;
void setup()

{

  Serial.begin(9600);

  pinMode(pulse, OUTPUT);  

  pinMode(data, INPUT); 

}



void loop()

{

  int Key = getkey();

  

  if (Key!=0&Key!=old)

  {

    Serial.print("PUSH--->");

    Serial.println(Key);



  }

    

  old = Key;

}





byte getkey(void)

{

  byte cnt;

  byte num = 0;

  for(cnt = 1; cnt < 17; cnt++)

  {

    digitalWrite(pulse, LOW); 

    

    if (digitalRead(data) == 0)

      num = cnt; 

    

    digitalWrite(pulse, HIGH);

  }  

  

  return num; 

}

 

 

TTP229 16 Channel Digital Capacitive Switch Touch Sensor Module Compatible for Arduino

  • 1. 16-key board TTP229 capacitive touch sensor IC.
  • 2. Onboard power indicator.
  • 3. The module can be set to output mode, the key output mode, the longest time and fast output / low power options .
  • 4. Working voltage: 2.4V-5.5V.
  • 5. High quality,durable and have along life.

商品評價

目前沒有評價。

搶先評價 “16路 TTP229 電容式觸摸開關 數位觸摸感測器模組”

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *