Octopus Button Switch Brick
From Wiki
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.
Model: OBButton
Feature
- Power supply: 3.3v or 5v
- 3P buckled wires connector
- Easy to 'plug and play
- Large button keypad and high-quality first-class hat
- Able to achieve very interesting and an interactive work
- Size: 19mm x 27mm
Schematic
Specification
Pin definition and Rating
| GND | VCC | Signal |
|---|---|---|
| GND | VCC | Signal |
Mechanic Dimensions
Usage
- 3P buckled wires connector
Hardware Installation
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.
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

