Electronic Brick - Big Button

Electronic Brick - Big Button

Electronic Brick - Big Button

Electronic brick of button switch is finger-sized, which can be connected to I/O port of main board or externally disconnected to check the switch state so as to control ON/OFF of LED lamp.

3 items in stock

Price:

1,50 €

Add to cart

Tinklapyje visos kainos nurodytos su 21% PVM.

No reward points for this product.

More info

What is an electronic brick? An electronic brick is an electronic module which can be assembled like Lego bricks simply by plugging in and pulling out. Compared to traditional universal boards and circuit modules assembled with various electronic components, electronic brick has standardized interfaces, plug and play, simplifying construction of prototype circuit on one’s own. There are many types of electronic bricks, and we provide more than twenty types with different functions including buttons, sensors, Bluetooth modules, etc, whose functions cover from sensor to motor drive, from Ethernet to wireless communication via Bluetooth, and so on. We will continue to add more types to meet the various needs of different projects.

Electronic brick of button switch is finger-sized, which can be connected to I/O port of main board or externally disconnected to check the switch state so as to control ON/OFF of LED lamp.

Data sheet

  • Width - 36
  • Depth - 24
  • Weight - 20 g
  • Supply voltage - 3.3 / 5V DC
  • Connectors - 2.54 mm 3 pin / Grove
  • The method of transmission - Digital

Source codes

Connect S port of electronic brick of button switch to D2 port of Arduino board, and we will use the following program to read the digital value. When the digital value is high level, LED lamp will be ON; when the digital value is low level, LED lamp will be OFF.

int Button=2; //connect button to D2 
int LED=13; 
 
void setup() {
 pinMode(LED, OUTPUT);  // Nustatomas 13 prievadas kaip išvedimas
 pinMode(Button, INPUT); // Nustatomas mygtuko prievadas kaip įvedimas
} 
 
void loop() { 
 if(digitalRead(Button)==HIGH) //Kai mygtuko modulio duodamas signalas yra aukštas 
 { 
   digitalWrite(LED, HIGH); //Įjungiamas šviesos diodas
 } 
 
 if(digitalRead(Button)==LOW) //Kai mygtuko modulio duodamas signalas yra žemas
 { 
   digitalWrite(LED, LOW); //Išjungiamas šviesos diodas
 } 
}

25 other products in the same category:

Customers who bought this product also bought: