EB - Toggle Button

$1.40

  • Model: EB0100310M
  • Shipping Weight: 2gram
  • 9998 Units in Stock

Add to Cart:



Item specifics

Brand Name:Maker Studio

Product Description

 

 

 

 

Electronic Brick - Memorial Button is a state keeping input module. When the button is pressed, the output signal keeps HIGH leave. It will change to LOW leave after next operation.

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: 2g

 

Applications

  • Circuit Control

 

Details

              aeProduct.getSubject()

 

Use with Makerduino

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

Materials

  • Makerduino
  • Electronic Brick Shield
  • EB - Memorial 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 - Memorial Button to Makerduino as following.

 

aeProduct.getSubject()

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

 

4. Download the Makerduino demo code EB - Memorial 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_MemorialButton.ino and upload it to the Makerduino.

 

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

 

/*

  EB - MemorialButton demo code

 

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

  The momentary button will keep the state untill you push it again.

 

 

*/

 

// set pin numbers:

const int buttonPin = 2;     // the number of the pushbutton pin

// variables will change:

int buttonState = 0;         // variable for reading the pushbutton status

 

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. Press the button and release your hand. The terminal displays as the left picture. Press the button again, 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 - Memorial 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.105.241
Copyright © 2017 Maker Studio