'touch'에 해당되는 글 1건

  1. 2017.02.28 Digital Touch Sensor Module Capacitive Switch [S243]

Digital Touch Sensor Module Capacitive Switch [S243]





https://www.youtube.com/watch?v=p1z_nWX7cvg


*GitHub https://github.com/rdiot/rdiot-s243.git


* Specs

Features:
Low power consumption
Power supply for 2.5-5.5V DC
The module is based on a touch-sensing capacitive touch switch module. In the normal state, the module output low, low power consumption; When a finger touches the corresponding position, the module output high, if not touched for 12 seconds, switch to low-power mode.

Specifications:
Color: Blue
Module size:1.4*1.4cm
Modes: jog, self-locking

Package includes:
1 x Digital Touch Sensor Module



* Contents

- Connect

VCC ----- 5V

Middle ----- GND

OUT ----- D2


- Key Code

int touchPin = 2; 

 

void setup() {

  Serial.begin(9600);

  pinMode(touchPin, INPUT);  

}

 

void loop() {

  int touchValue = digitalRead(touchPin);

  Serial.println(touchValue);

 

  delay(100);  

}

'2) Sensor > Touch' 카테고리의 다른 글

Metal Touch Sensor Module [S042]  (0) 2016.09.12
Catalex Capacitive Touch Sensor (TTP223B) [S009]  (0) 2016.09.12
Posted by RDIoT
|