Touch Switch - T U

2y ago
22 Views
2 Downloads
841.48 KB
11 Pages
Last View : 11d ago
Last Download : 3m ago
Upload by : Amalia Wilborn
Transcription

Touch Switchรายละเอียด 4-way Switch Digital Touch Capacitive � Capacitive 4 ช่อง มีเลข 1-4 ของแต่ละช่อง �านิ้วไปสัมผัส �ที่ช่อง OUT1-OUT4 ตามช่องที่กด พร้อมไฟ LED แสดงเอาต์พุต �ไฟฟ้ าต่าง ๆหรื อส่ งเป็ นสวิตช์ให้กบั Arduino ก็ได้รายละเอียด 4-way Switch Digital Touch Capacitive ModuleThis Capacitive Touch Module uses the touch-sensing IC TTP224 to add capacitive touch to your project .Just power with 2.4 to 5.5VDC and touch the pad to activate the sensor. These touch switches interfaceeasily to any project - with or without a microcontroller.When a capacitive load (such as a human hand) is in close proximity to the sense-pad, the sensor detectsthe change in capacitance and activates the switch. Custom sense-pads can be made from nearly anyconductive material and these sensors can detect touch through thin layers of non-conductive materialssuch as glass, plastic, fabric or even wood. So, you can make this sensor hidden in the wall, tabletop andother places, which allows you to remove the conventional push-buttons troubles.There are totally 4 pads on this module, these sense-pads can be extended with wire and almost anyconductive material, so that you can add 4 touch switch easily for your project.Specification Onboard TTP224 capacitive touch sensor IC 4 keys 4 board-level status indicator Working voltage: 2.4V-5.5VTouch SwitchPage 1

Advanced Pins breakout, so that the output mode and working mode selectable. Low power selection PCB board size: 35 (mm) x29 (mm)TTP224FEATURES Operating voltage 2.4V 5.5V Built-in regulator with external enable/disable option Operating current, @VDD 3V no loadAt low power mode typical 2.5uAAt fast mode typical 9.0uA @VDD 3V operating voltage :The response time about 100mS at fast mode, 200mS at low power mode for TTP224The response time about 60mS at fast mode, 160mS at low power mode for TTP224N Sensitivity can adjust by the capacitance(0 50pF) outside for each touch pad Provides Fast mode and Low Power mode selection by pad option(LPMB pin) Provides direct mode or toggle mode、CMOS output or open drain output active high or active low by pad option(TOG/OD/AHLB pin).Provides 2 output pins TPQ0D, TPQ2D that have no diode protection, active lowHave the maximum on time 120sec/64sec/16sec/infinite by pad option(MOT1, MOT0 pin)After power-on have about 0.5sec stable-time, during the time do not touch thekey pad, and the function is disabledAuto calibration for life, and the re-calibration period is about 4.0sec, when key has not betouched.Block DiagramAPPLICATION CIRCUITTouch SwitchPage 2

วงจรTouch SwitchPage 3

Description1. working voltage: 2.4V-5.5V2. 4 board-level status indicator3. PCB board size: 35 (mm) x29 (mm)4. TTP224 capacitive touch sensor IC 4 keys5. the module can set the output mode, the key output mode, the maximum output time and fast / lowpower selectionOutput DopenVDDPad TPQ0 TP3 option featuresDirect mode, CMOS active high outputDirect mode, CMOS active low outputDirect mode, Open drain active high outputDirect mode, Open drain active low outputToggle mode, COMS output, Power on state 0Toggle mode, COMS output, Power on state 1Toggle mode, Power on state high-Z, Active highToggle mode, Power on state high-Z, Active lowPad TPQ0D,TPQ2D (has no diode protection) option featuresVDD Toggle mode, Open drain active low output, Power on state high-Zopen Direct mode, Open drain active low output, Power on state high-ZTouch SwitchPage 4

Key operation mode:SMOption featuresopen Multi-key modeVSSSingle key modeMaximum key on duration time:MOT1 MOT0 Option featuresVSSVSSMaximum on time 120secVSSopenMaximum on time 64secopen VSSMaximum on time 16secopen openInfinite(Disable maximum on time)Fast and Low power mode:LPMBOption featuresVDDFast modeopen Low Power modeInput keys number select:DIS13Option featuresopen Enable TP1, TP3VSSDisable TP1, TP3วงจรทดลองTouch SwitchPage 5

ตัวอย่างที่ 1 ทดสอบสวิทช์ แตะสวิทช์ตวั �องสวิทช์น้ นั ออกทางพอร์ ทอนุกรมint i;void setup(){//set pins 2 - 5 as inputsfor(i 2; i 5; i ){pinMode(i, INPUT);}Serial.begin(9600);}void loop(){for(i 2; i 5; i ){if(digitalRead(i) HIGH){Serial.print("Press Touch SW ��่างที่ 2 �� ถ้าแตะสวิทช์เป็ นเวลา 100 ms – 300 ms ถือว่าเป็ นการกดสวิทช์ (SW ON) �่ได้กดสวิทช์ (SW OFF) โดยใช้ฟังก์ชนั่ Timer interrupt ��างนี้มีการใช้ Libraries Timer1**ดูการติดตั้ง Timer 1 ได้จาก ect/03-led-8x8 **Touch SwitchPage 6

#include TimerOne.h #define on true#define off false#define time 100ms 10 // 100ms/(time interval 10ms)#define time 300ms 30 // 300ms/(time interval 10ms)unsigned char sw time;bool sw flag off;int i,j;void setup() {Timer1.initialize(10000); // set a timer of length 10000 us 10msTimer1.attachInterrupt( timerIsr ); // attach the service routine herepinMode(i, INPUT);Serial.begin(9600);Serial.println("SW ON/OFF Test");sw time 0;}void loop() {if(sw flag){Serial.println("SW ON");sw flag off;}}/// -------------------------/// Scan key/// -------------------------void timerIsr(){if(digitalRead(2) HIGH) { sw time;if(sw time 200) sw time 210;}else{if((sw time 10)&&(sw time 30)) sw flag on;else sw flag off;sw time 0;}}ตัวอย่างที่ 3 �ิทช์ 1 ตัว แต่ทางานได้ 2 หน้าที่ โดยถ้า ถ้าแตะสวิทช์เป็ นเวลา 100 ms– 300 ms ถือว่าเป็ นการกดสวิทช์ (SW ON) �่า 1 วินาที ถือว่า Power sw ON โดยใช้ฟังก์ชนั่ Timer interrupt �ร์ทอนุกรม#include TimerOne.h #define on true#define off false#define t 100ms 10 // 100ms/(time interval 10ms)#define t 300ms 30 // 300ms/(time interval 10ms)#define t 1s 100 // 2000ms/(time interval 10ms)unsigned char sw time;bool sw flag off;bool power flag off;Touch SwitchPage 7

int i,j;void setup() {Timer1.initialize(10000); // set a timer of length 10000 us 10msTimer1.attachInterrupt( timerIsr ); // attach the service routine herepinMode(i, INPUT);Serial.begin(9600);Serial.println("SW ON/OFF Test");sw time 0;}void loop() {if(sw flag){Serial.println("SW ON");sw flag off;}else if(power flag){Serial.println("Power ON");power flag off;sw time 0;}}/// -------------------------/// Scan key/// -------------------------void timerIsr(){if(digitalRead(2) HIGH) { sw time;if(sw time 100){sw time 100;power flag on;}}else{if((sw time t 100ms)&&(sw time t 300ms)) sw flag on;else{sw flag off;power flag off;}sw time 0;}}Touch SwitchPage 8

ตัวอย่างที่ 4 ใช้สวิทช์ SW0 ควบคุม LED 0 – LED3#include TimerOne.h #define sw0 2#define sw0 ON digitalRead(sw0) HIGH#define on true#define off falsebool sw0 click off;bool Power sw off;#define time period 10//interrupt time's period 10 ms#define t 100ms 100/time period // 100ms/(time interval 10ms)#define t 300ms 300/time period // 300ms/(time interval 10ms)#define t 1s 1000/time period// 2000ms/(time interval 10ms)unsigned char sw time;unsigned char led state, operation, led;#define#define#define#defineled0 9led3 12standby mode 0ready mode 1void setup() {Timer1.initialize(10000); // set a timer of length 10000 us 10msTimer1.attachInterrupt( timerIsr ); // attach the service routine herepinMode(sw0, INPUT);Serial.begin(9600);Serial.println("The 2 function SW Test");sw time 0;//set pins 9 - 12 as outputsfor(led led0; led led3; led ){pinMode(led, OUTPUT);}pinMode(sw0, INPUT);led state 0;operation standby mode;}void loop() {switch (operation) {case standby mode:standby op();break;case ready mode:ready op();break;}}/// -------------------------/// Scan key/// -------------------------void timerIsr(){if(sw0 ON) {Touch SwitchPage 9

sw time;if(sw time 100){sw time 100;Power sw on;sw0 click off;}}else{if((sw time t 100ms)&&(sw time t 300ms)){sw0 click on;}else{sw0 click off;Power sw off;}sw time 0;}}void standby op(){led state 0;display state();if(Power sw){led state 1;display state();operation ready mode;Power sw off;sw0 click off;sw time 0;}}void ready op(){if(sw0 click){ led state;if(led state 4) led state 1;display state();sw0 click off;sw time 0;}if(Power sw){led state 0;display state();Power sw off;sw0 click off;sw time 0;operation standby mode;}}Touch SwitchPage 10

void display state(){for(led led0; led led3; led ){digitalWrite(led, LOW);}switch (led state) {case 1: digitalWrite(9, HIGH); break;case 2: digitalWrite(10, HIGH); break;case 3: digitalWrite(11, HIGH); break;case 4: digitalWrite(12, HIGH); break;default: ช้สวิทช์ 2 ตัว SW0 และ SW3 � LED 0 ถึง LED3Touch SwitchPage 11

รายละเอียด 4-way Switch Digital Touch Capacitive Module This Capacitive Touch Module uses the touch-sensing IC TTP224 to add capacitive touch to your project . Just power with 2.4 to 5.5VDC and touch the pad to activate the sensor. These touch switches interface e

Related Documents:

4. Adjust Date & time if needed, then touch NEXT. 5. Touch the switch on/off to select Google servies, once finished, then touch ACCEPT. 6. Set up face unlock if needed, or touch SKIP to next step. 7. Protect your phone by setting screen lock, or touch SKIP and then touch SKIP ANYWAY to next setup. 8. Touch the switch on/off to disable/enable the

HTC Touch Diamond HTC Touch Cruise HTC Touch HD HTC Touch 3G HTC Touch Viva HTC Touch Pro HTC Touch Dual HTC Touch Samsung i710 Samsung i780 Samsung i200 Samsung i900 Samsung i908E SamsungSGH-i617 . ZW-51006BT Manual 转曲 20100821 .

From the Home screen, touch Apps, and then touch the Get More icon. b. Touch an app icon that you want to add. c. Touch Add to confirm. 2. Remove apps a. From the Home screen, touch Apps, and then touch the Get More icon. b. Touch one or more apps icons to select the apps that you want to remove. c. Touch Yes to confirm.

Air Touch also builds off of previous work that synthe-sized multiple inputs to create new interaction possibilities. Pen Touch [11] synthesized pen and touch inputs to create new tools, such as using touch to hold a photo and pen to drag off and create a copy. Motion Touch [10] combined touch with the motion sensing capability of a mobile device

5. Touch the switch on/off to select Google servies, once finished, then touch NEXT. 6. Adjust Date & time if needed, then touch NEXT. 7. Input your Name, then touch NEXT. 8. Protect your phone, touch to set screen lock now. Or touch to move to next setup. 9. Set up your email, or touch to move to next setup. 10.

Thermal magnetic switch DIP (Dual In-line Package) Encapsulated switches Switch with delayed opening Double switch bipolar Time switch Timer Electronic limiter Mercury switch Inclination or motion detector Closed switch Switch delay when opening and closing Double limit switch

134-1400 LS EP Switch 265-1002 134-1402 LS EP Switch 265-1006 Original Part No. Mfg. Description Part No. 134-1403 LS EP Switch 265-1005 134-1404 LS EP Switch 265-1002 134-1405 LS EP Switch 265-1004 134-1406 LS EP Switch 265-1003 134-1407 LS EP Switch 265-1006 134-1452 LS Pressure Elec. Switch 134-1451 134-1456 LS Pressure Elec. Switch 134-1451 .

repair genes) in the datasets created in this research are as follows: ageing-related DNA repair genes‟ protein products tend to interact with a considerably larger number of proteins; their protein products are much more likely to interact with WRN (a protein whose defect causes the Werner‟s progeroid syndrome) and XRCC5 (KU80, a key protein in the initiation of DNA double-strand repair .