RLX COMPONENTS s.r.o. , Electronic Components Distributor.
RLX COMPONENTS s.r.o. , Electronic Components Distributor.
ELECTRONIC BRICK - TOUCH SENSOR/BUTTON BRICK (IM120710023)
This is a simple touch sensor module. You can use it to replace a traditional push button. Using the TTP223-B touch detector IC It measures the capacitance of a metallic pad. It can detect the change in capacitance when a finger is near it. This is the same technology used in the iPhone touch screen. So you can place the metallic pad under a non-metallic surface such as a plastic or glass sheet and it will still work as a button. This may be useful for projects that need to be waterproof. You can also make a secret button by placing it inconspicuously behind a smooth surface. For instance you could place them under a nonmetallic card table and by casually pressing the right location on a tabletop surface you could mysteriously control your DIY project.
The following sketch demonstrates a simple application of controlling the led by the Touch sensor. When you touch the electrode using your finger, the led light.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
const int TouchPin=9; const int ledPin=12; void setup() { pinMode(TouchPin, INPUT); pinMode(ledPin,OUTPUT); } void loop() { int sensorValue = digitalRead(TouchPin); if (sensorValue==1) { digitalWrite(ledPin,HIGH); } else { digitalWrite(ledPin,LOW); } } |
Brick Type |
Button and Switch |
Brick Interface |
3PIN |
Brick Power Supply |
5V |
Board Size |
37 × 21 × 1.6mm |
Weight |
15.00g |
Model |
IM120710023 |