
IDUINO for Maker’s life
Easy Button Switch Module(SE046)
1.Introduction
This module is simple and basic button switch module, usually used as the switch
of you diy project, when the button is pressed, the circuit is on, otherwise it off. And,
this module has integrated 3-pin terminal, which can be simply and tidily connected
with Arduino sensor expansion board, like the following picture:
www.openplatform.cc

IDUINO for Maker’s life
Digital signal output pin
Specification
Operation voltage: 5V
With 3-pin Jumper
2 Pinout
3.Example
Wire connection as below:
Vcc-----------5V
Gnd-----------gnd
OUT-----------D3
******Code begin******
int Led=13;
int button=3;
int val;
void setup()
{
pinMode(Led,OUTPUT);
pinMode(button,INPUT);
}
void loop()
{
val=digitalRead(button);
if(val==HIGH)
{
digitalWrite(Led,LOW);
}
else
{
digitalWrite(Led,HIGH);
}
}
******Code End******
www.openplatform.cc