Octopus Tilt Sensor

From ELECFREAKS-WIKI
Jump to: navigation, search

Introduction

Octopus Electronic Bricks, you can use them build electronics projects just as easy as piling bricks. 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.

Octopus Tilt Sensor is a sensor based on tilt switch,used together with Arduino specific sensor shield for the measurement of object angle. Three pins electronic building blocks interface: input 5V - GND. S for the detection pin.

Octopus Tilt Sensor A.jpg Octopus Tilt Sensor C.JPG

Model: EF04001

Feature

  • Operating voltage:DC 5.0V
  • Power supply needs: 5V
  • Interface type: Analog
  • Pin Definition: 1-Signal 2-VCC 3-GND
  • Fast response and High sensitivity
  • Simple drive circuit
  • Stable and long life


Schematic

Octopus Tilt Sensor D.jpg


Soil-OB-05.jpg

Specification

Pin definition and Rating

GND VCC Signal
GND VCC Signal

Mechanic Dimensions

Oct.jpg

Usage

  • 3P buckled wires connector

Soil-OB-07.jpg


Hardware Installation

OCTOPUS Tilt Sensor.jpg

Programming

Includes important code snippet. Demo code like :

<syntaxhighlight lang="php">

const int SensorPin = 9; // the number of the Sensor pin const int ledPin = 13; // the number of the led pin

// variables will change: int SensorState = 0; // variable for reading the Sensor status

void setup() {

 // initialize the led pin as an output:
 pinMode(ledPin, OUTPUT);      
 // initialize the Sensor pin as an input:
 pinMode(SensorPin, INPUT);     

}

void loop(){

 // read the state of the Sensor value:
 SensorState = digitalRead(SensorPin);

 // check if the Sensor is close.
 // if it is, the SensorState is HIGH:
 if (SensorState == HIGH) {     
   // turn led on:    
   digitalWrite(ledPin, HIGH);  
 } 
 else {
   // turn led off:
   digitalWrite(ledPin, LOW); 
 }

} </syntaxhighlight>

Example

The projects and application examples.

Octopus Tilt Sensor B.JPG


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/estore/octopus-tilt-sensor.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