รหัสสินค้า | AG00196 |
หมวดหมู่ | Joystick/Keypad/Touch Keypad |
ราคา | 70.00 บาท |
สถานะสินค้า | พร้อมส่ง |
จำนวน | ชิ้น |
16-Way Swith Capacitive Touch module (TTP229)
โมดูล touch switch ทำหน้าที่เป็นสวิตซ์สัมผัส เราสามารถอ่านค่า touch switch โดยใช้ขาควบคุมจากบอด Arduino แค่สองสาย ทำให้ประหยัดขาใช้งานไปได้เยอะเลย
ตัวอย่าง Arduino Code
/* Define the digital pins used for the clock and data */ #define SCL_PIN 8 #define SDO_PIN 9 /* Used to store the key state */ byte Key; void setup() { /* Initialise the serial interface */ Serial.begin(9600); /* Configure the clock and data pins */ pinMode(SCL_PIN, OUTPUT); pinMode(SDO_PIN, INPUT); } /* Main program */ void loop() { /* Read the current state of the keypad */ Key = Read_Keypad(); /* If a key has been pressed output it to the serial port */ if (Key) Serial.println(Key); /* Wait a little before reading again so not to flood the serial port*/ delay(100); } /* Read the state of the keypad */ byte Read_Keypad(void) { byte Count; byte Key_State = 0; /* Pulse the clock pin 16 times (one for each key of the keypad) and read the state of the data pin on each pulse */ for(Count = 1; Count <= 16; Count++) { digitalWrite(SCL_PIN, LOW); /* If the data pin is low (active low mode) then store the current key number */ if (!digitalRead(SDO_PIN)) Key_State = Count; digitalWrite(SCL_PIN, HIGH); } return Key_State; }
ข้อมูลเพิ่มเติม
http://itimewaste.blogspot.com/2014/12/arduino-code-for-ttp229-touch-16-button.html
คลิปตัวอย่างสาธิตการใช้งาน
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,375,197 ครั้ง |
ผู้ชมทั้งหมด | 5,878,275 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 5 ก.ย. 2568 |