QB012/QB091 Touch Sensor

1.Product Introduction

../../_images/Touch-1.jpg

Touch sensor is a kind of capacitive touch switch module, which can detect and respond to human touch. It has a built-in touch detection IC (TTP223B), which is able to convert the user’s touch action into electrical signals for interactive interaction with the device. The touch sensor outputs a low level when we touch a specific location with our finger, and switches to output a high level when there is no touch.

Widely used in touch screen mobile phones, tablet computers, smart watches, smart home, etc.

2.Parameter Specification

Parameter

Value/Representation

Operating voltage

3.3~5V

Operating temperature

-10°C~+60°C

Default output level

High level

Output signal

Digital signal

Size

3.16cm*2.38cm

../../_images/Touch-2.jpg

3.Wiring Diagram

../../_images/Touch-3.png

Touch Sensor

UNO

VCC

5V

GND

GND

S

Digital Pin 7

4.Sample Code

1void setup() {
2  pinMode(7,INPUT);
3  Serial.begin(9600);//Serial port initialization, baud rate 9600
4}
5void loop() {
6  Serial.println(digitalRead(7));//The serial port displays the value of the touch sensor detection in real time
7  delay(1000);
8}

5.Test Result

After uploading the code to the controller board, open the serial port monitor of the Arduino IDE, set the baud rate to 9600, and switch to the scroll mode. When our finger touches a specific position of the touch sensor, the sensor indicator turns on and the serial port monitor displays “0”, and when the finger does not touch, the sensor indicator turns off and the serial port monitor displays “1”.

../../_images/Touch-4.png
../../_images/Touch-5.png

6.Related Resources

7.Get One Now