- 描述
- 評價 (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)
相關商品
-
輸入控制單元
DC 12V 120W 10A 微電腦數位溫控器 數位顯示溫控器控制開關
0 out of 5NT$165原始價格:NT$165。NT$120目前價格:NT$120。 (未稅)加入購物車產品速覽 -
輸入控制單元
Grove – I2C Touch Sensor 觸摸感測器
0 out of 5NT$629原始價格:NT$629。NT$530目前價格:NT$530。 (未稅)加入購物車產品速覽 -
輸入控制單元
Gravity: 360度旋轉編碼器開關 I2C / IIC 通訊控制
0 out of 5NT$425原始價格:NT$425。NT$380目前價格:NT$380。 (未稅)加入購物車產品速覽 -
商品評價
目前沒有評價。