EB - Toggle Button


  • 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.


  • 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



  • Circuit Control





Use with Makerduino

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


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


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



2. Connect EB - Memorial Button to Makerduino as following.



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);



void loop(){

  // read the state of the pushbutton value:

  buttonState = digitalRead(buttonPin);


  Serial.print("Button State: ");




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


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:
Copyright © 2020 Maker Studio