Product ID : 221699965
Model / SKU : 173350523
Conditions : New
Specification
- PCB size: 38.0mmX24.0mmX1.6mm
- Working voltage 3.3 or 5V DC
- Operating voltage 3.3 or 5V DC
- Compatible interfaces 2.54 3-pin interface and 4-pin Grove interface(1)
- Note 1: S for digital output port, N for not used pin, V and G for voltage at the common collector and ground respectively. When there is no operation, digital output is VDD; when the button is pressed down, the digital output is 0V.
|
Unit |
Min |
Typical |
Max |
Supply Voltage |
VDC |
2 |
3 |
5.5 |
Working Current (VCC = 5V) |
uA |
- |
18 |
- |
Digital Output Voltage (VCC = 5V) |
V |
0 |
- |
5 |
Demo:
Connect S port of electronic brick of touch button switch to D2 port of Arduino board, and we will use the following program to read its digital value. When the digital value read is low level, LED lamp will be ON; when the digital value read is high level, LED lamp will be OFF.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
int Button=2; //connect button to D2
int LED=13;
void setup()
{
pinMode(LED, OUTPUT);
pinMode(Button, INPUT);
}
void loop()
{
if(digitalRead(Button)==HIGH) //when the digital output value of button is high, turn on the LED.
{
digitalWrite(LED, LOW);
}
if(digitalRead(Button)==LOW) //when the digital output value of button is low, turn off the LED.
{
digitalWrite(LED, HIGH);
}
}
|
For enquiries please Whatsapp 0125374838
https://wa.me/60125374838
Buy with confidence
ma****
221688649
5/24/2022 6:38:00 PM
Good in time
mO****
221721218
4/20/2022 8:40:00 PM
-
mO****
221718163
4/20/2022 8:40:00 PM
-
JH****
221683916
3/4/2022 11:16:00 AM
5 star seller.
je****
221729411
2/28/2022 1:22:00 PM
fast delivery..
gi****
221684025
2/25/2022 11:39:00 AM
item received just now.
gi****
221684025
2/12/2022 3:06:00 PM
Just received, busy charging unit. and doing other things.
Reasonable delivery speed, within 5 days or so.
Average Product Rating
0.0 stars out of 5
5 star
|
|
0
|
4 star
|
|
0
|
3 star
|
|
0
|
2 star
|
|
0
|
1 star
|
|
0
|
Share your thoughts with others
Write a review
Only buyers who purchased the product may leave a review