SKU_BOS0008_Boson_Touch_Sensor_i8-DFRobot

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

Board Overview

Pinout

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

  1. Touch-controlled Fan

Description: The fan starts to rotate when the touch sensor detects a touch.

Components:

bos0008 bos0021 bos0035
BOS0008 Touch Sensor BOS0021 Fan Module BOS0035 Mainboard-3IO
mbt0039 BOS0040
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:

Connection 1

Programming Project

Connection Diagram:

Connection 2

Program Flowchart:

Flowchart 1

Mind+ Sample Code:

MakeCode Sample Code:

Video Demo

Non-programming Programming
Touch fan non-programming Touch fan programming
  1. Burglar Alarm for Art Gallery

Description: When someone touches the exhibit or the exhibit is tilted, it makes sound to alarm.

Components:

bos0005 bos0020 bos0008
BOS0005 Tilt Sensor Buzzer Module Touch Sensor
BOS0035 bos0028 bos0040
BOS0035 Mainboard-3IO BOS0028 Logic OR module BOS0040 micro:bit BOSON Expansion Board
MBT0039
MBT0039 micro:bit

Tip: micro:bit and its expansion board will be used in programming projects.

Non-programming Project

Connection Diagram:

Connection 3

Programming Project

Connection Diagram:

Connection 2

Program Flowchart:

Flowchart 2

Mind+ Sample Code:

MakeCode Sample Code:

  1. 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 bos0020 mbt0039
BOS0008 Touch Sensor BOS0020 Buzzer Module MBT0039 micro:bit
BOS0040
BOS0040 micro:bit Boson Expansion board

Connection Diagram:

Connection 4

Program Flowchart:

Flowchart 3

Mind+ Sample Code:

MakeCode Sample Code:

Video Demo

Programming
video demo 3
  1. 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 BOS0017 mbt0039
BOS0008 Touch Sensor BOS0017 Red/Blue/Green LED Module MBT0039 micro:bit
BOS0040
BOS0040 micro:bit BOSON Expansion Board

Connection Diagram:

Connection 4

Flowchart:

flowchart 4

Mind+ Sample Code:

MakeCode Sample Code:

Video Demo:

Programming
Demo 4

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum

Turn to the Boson Kit Page