Octopus Button Switch Brick

From Wiki

Jump to: navigation, search

Contents

Introduction

By using Octopus electronic bricks, you may connect Arduino/Freaduino compatible boards easily with various digital, analog and I2C/Uart interfaces. These the breadboard-less firm connection are prepared to extensive modules like poteniometers, sensors, relays, servos…even buttons, just plug and play.

This is a a Button Switch with Circle Transparent Cap , which detects your press action. It is ideal for beginner class to test the Arduino or be your first sensor in your project. It was easy be used for Chipkit, STM32, AVR, ARM and others mirc-MCU.

The Freaduino Sensor Shield is the perfect shield to connect this senor to Arduino. Or Freaduino UNO which we had pre-stray Octopus Brick interface.

PushButtonS-01.jpg PushButtonS-02.jpg PushButtonS-03.jpg

Model: OBButton

Feature

Schematic

PushButtonS-04.jpg


Soil-OB-05.jpg

Specification

Pin definition and Rating

GND VCC Signal
GND VCC Signal

Mechanic Dimensions

Sw-CC.jpg

Usage

Soil-OB-07.jpg


Hardware Installation

PushButtonS-06.jpg

Programming

Includes important code snippet. Demo code like :

int ledPin = 13;                // choose the pin for the LED
int inputPin = 14;               // Connect sensor to input pin 3 
 
 
void setup() {
  pinMode(ledPin, OUTPUT);      // declare LED as output
  pinMode(inputPin, INPUT);     // declare pushbutton as input
}
 
void loop(){
  val = digitalRead(inputPin);  // read input value
  if (val == HIGH) {            // check if the input is HIGH
    digitalWrite(ledPin, LOW);  // turn LED OFF
  } else {
    digitalWrite(ledPin, HIGH); // turn LED ON
  }
}

Example

The projects and application examples.

OB.jpg

Soil-OB-06.jpg



SHD IOE01 6.jpg


PushButtonS-07.jpg

Version Tracker

Revision Descriptions Release
v1.0b Initial public release date

Bug Tracker

Bug Tracker is the place you can publish any bugs you think you might have found during use. Please write down what you have to say, your answers will help us improve our

products.

Resources

How to buy

Click here to buy: http://www.elecfreaks.com/store/octopus-digital-pushbutton-brick-p-423.html

See Also

Other related products and resources.

Licensing

This documentation is licensed under the Creative Commons Attribution-ShareAlike License 3.0 Source code and libraries are

licensed under GPL/LGPL, see source code files for details.

External Links

Links to external webpages which provide more application ideas, documents/datasheet or software libraries

Personal tools
Namespaces
Variants
Actions
Navigation
Support
Toolbox