- 描述
- 評價 (0)
描述
描述
16路 TTP229 電容式觸摸開關 數位觸摸感測器模組
1、板載TTP229電容式16鍵觸摸感應IC
2、板載電源指示燈
3、工作電壓:2.4V-5.5V
4、模組可以設置輸出模式、鍵輸出模式、長輸出時間和快速/低功耗選擇
5、PCB板子尺寸:49.3(mm)x64.5(mm)
Arduino
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
/**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.
評價 (0)
相關商品
-
輸入控制單元
Grove Mech Keycap 全彩 LED 機械按鍵開關模組 美觀又可靠的機械式按鍵模組
0 out of 5NT$175原始價格:NT$175。NT$150目前價格:NT$150。 (未稅) -
輸入控制單元
Grove 6位 DIP 開關模組 Grove 6-Position DIP Switch
0 out of 5NT$175原始價格:NT$175。NT$150目前價格:NT$150。 (未稅)加入購物車產品速覽 -
工業物聯網 / 工控模組, 輸入控制單元
工業級 USB 轉 RS485 模組 MODBUS 協議轉換器 485 轉換器 TTL 串口通訊 防雷擊 抗干擾
0 out of 5NT$590原始價格:NT$590。NT$465目前價格:NT$465。 (未稅)加入購物車產品速覽 -
輸入控制單元
5-24V 寬電壓 紅外線免接觸直流開關模組 非接觸直流開關模組 電流最高 3A / 72W
0 out of 5NT$75原始價格:NT$75。NT$65目前價格:NT$65。 (未稅)加入購物車產品速覽
商品評價
目前沒有評價。