Introduction
This capacitive sensing-based touch switch detects direct pysical touch on metal surface or touch through a certain thickness of plastic, glass and other materials. The sensitivity is related to the size of the metal surface and the thickness of the covering material. Please note that the module needs to be at a certain height from the desktop in use(related to the desktop material).
With the copper foil self-adhesive, it can be easily pasted to the door or glass. Users can combine it with the Arduino sensor expansion board to make interesting touch interactive works.
Note: This touch sensor requires users to connect and solder the copper foil sensor plate and the sensor board according to their own needs.
Specification
- Working Voltage: 3V-5V
- Interface Mode: PH2.0-3P
- Product Size: 22×26(mm)/0.87×1.02 inch
- Signal Type: 0 or 1
Board Overview
Num | Label | Description |
---|---|---|
1 | GND | Power - |
2 | VCC | Power + |
3 | Signal | Signal Line(Digital) |
Usage Description
The components on the touch sensor can sense whether the object is in contact with the sensor, and can be used to make human touch-based interactive project. It can be used with maincontroller like Arduino, micro:bit, etc. And more possibilities can be found in both non-programming or programming(MakeCode or Mind+) projects.
When a finger touches the metal surface on the touch sensor, the touch sensor outputs a high level, otherwise, it outputs low level.
Principle
This is a capacitive sensing-based touch sensor. When the human body directly touches the metal surface on the sensor, the electric field of the human body forms a coupling capacitor between the human finger and the working surface, and the coupling capacitance can be sensed. It can detect the touch of a finger through insulating masterial (glass, plastic, etc.) shell with thickness above 20mm.
Application
- Touch-controlled Fan
Description: The fan starts to rotate when the touch sensor detects a touch.
Components:
BOS0008 Touch Sensor | BOS0021 Fan Module | BOS0035 Mainboard-3IO |
MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Tip: micro:bit and the expansion board will be used in programming projects.
Non-programming Project
Connection Diagram:
Programming Project
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
Video Demo
Non-programming | Programming |
---|---|
- Burglar Alarm for Art Gallery
Description: When someone touches the exhibit or the exhibit is tilted, it makes sound to alarm.
Components:
BOS0005 Tilt Sensor | Buzzer Module | Touch Sensor |
BOS0035 Mainboard-3IO | BOS0028 Logic OR module | BOS0040 micro:bit BOSON Expansion Board |
MBT0039 micro:bit |
Tip: micro:bit and its expansion board will be used in programming projects.
Non-programming Project
Connection Diagram:
Programming Project
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
- Shy micro:bit
Description: micro:bit is very shy. He only smiles when no one touches the touch sensor. Otherwise, he shows a crying face on his LED array and makes a "crying sound".
Components:
BOS0008 Touch Sensor | BOS0020 Buzzer Module | MBT0039 micro:bit |
BOS0040 micro:bit Boson Expansion board |
Connection Diagram:
Program Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
Video Demo
Programming |
---|
- Colorful Lights
Description: When the touch sensor detects a touch, the micro:bit displays a "heart" pattern, and the red, blue and green LEDs blink in order to present a water flow lighting effect. When no touch is detected, all LEDs turn off and the micro:bit display a "square" pattern.
Components:
BOS0008 Touch Sensor | BOS0017 Red/Blue/Green LED Module | MBT0039 micro:bit |
BOS0040 micro:bit BOSON Expansion Board |
Connection Diagram:
Flowchart:
Mind+ Sample Code:
MakeCode Sample Code:
Video Demo:
Programming |
---|
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum
Turn to the Boson Kit Page