EB - Button

$1.40

  • Model: EB0100210M
  • Shipping Weight: 3gram
  • 9998 Units in Stock

Add to Cart:



Item specifics

Brand Name:Maker Studio

Product Description

Electronic Brick - Button is an input module. The signal output pin is LOW level (0V) in default, and when the button is pressed, it will change to HIGH level (Power Voltage).

Features

  • Working Voltage: 3.3V-5V
  • With Power Light
  • Optional color(Red Blue Yellow Black White) for the Button Cap
  • With Makerduino Demo Code
  • Compact size
  • Weight: 3g

 

Details

aeProduct.getSubject()     

 

Use with Makerduino

The following steps show how to use EB - Button with Makerduino.

Materials

  • Makerduino
  • Electronic Brick Shield
  • EB - Button
  • A/B type USB cable
  • Female DuPont wires

Steps

1. Connect Electronic Brick Shield onto Makerduino to bring out all the Makerduino Pins.

aeProduct.getSubject()

 

2. Connect EB - Button to Makerduino as following.

 

aeProduct.getSubject()

 

3. Connect the Makerduino to Computer by the USB cable.

 

4. Download the Makerduino demo code EB - Button.zip. Unzip the code directly into the libraries folder.

 

5. Open Makerduino IDE, choose the right Board and Serial Port. Open the sketch EB_Button.ino and upload it to the Makerduino.

 

The following is the demo code for EB - Button. (Note: It could be a little different from the code file downloaded. Please follow the downloaded file.)

/*

  EB - Button demo code

 

  Detect the state of a button and display the information on Serial Monitor

 

 

*/

 

// constants won't change. They're used here to

// set pin numbers:

const int buttonPin = 2;     // the pushbutton pin

 

int buttonState = LOW;

void setup() {

  // initialize the pushbutton pin as an input:

  pinMode(buttonPin, INPUT);    

  Serial.begin(9600);

}

void loop(){

  // read the state of the pushbutton value:

  buttonState = digitalRead(buttonPin);

  

  Serial.print("Button State: ");

  Serial.println(buttonState);

}

 

6. Check the Results. After the sketch is successfully uploaded, let's open the Serial Monitor. Keep pressing the button, the Serial Monitor displays as the left picture. Once released, the terminal displays as the right picture.

 

   aeProduct.getSubject()      aeProduct.getSubject()

 

Download information

https://drive.google.com/?usp=folder&authuser=0&usp=folder#folders/0BzxrU4QvH7jEd3ZJTVdnNUpXNVE

Find EB - Button Material.zip to download schematic and other material.

 

 

 

 

 

 

 

 

about us 02

This product was added to our catalog on Tuesday 11 February, 2014.

Your IP Address is: 54.162.19.123
Copyright © 2017 Maker Studio