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);  

}

Posted by RDIoT
TAG

댓글을 달아 주세요