(SKU:RB-02S027)Digital Tilt Sensor(Green)

From ALSRobot-Wki
Jump to: navigation, search


Product overview

One-way Angle sensor is based on the number of steel ball switch module, using the characteristics of the steel ball, make steel ball downward rolling by gravity, so that the switch is closed or disconnected, domestic ball switch are mostly mercury switch, easy to damage, oxidation, disadvantages such as leakage, short life, environmental pollution, steel ball switch to abandon the above shortcomings, more environmentally friendly and easy to use, more security than using mercury switch. Therefore can be used as a one-way Angle sensor. One-way inclination sensor input module, can be applied in the controller, by 3 p sensor cable plug received special sensor extension board, can achieve very interesting interactive work.


  1. Working voltage:3.5V—5.5V
  2. Interface type: Numbers
  3. Angle steel ball switch module:2-5°
  4. Packing: electrostatic bag sealing

Method of use

Pin definition

  • S:signal
  • VCC:+
  • GND:-

connection method

By 3 p sensor cable plug received Carduino UNO R3 controller board using special sensor extension

Application of routine

Green one-way Angle sensor and LED a small light in accordance with the procedure to access the Arduino UNO controller, observe the green LED small lights when unidirectional tilt Angle sensor.

sample program

int qingjiaoPin = 2;
int ledPin =  13;     
int qingjiaoState = 0;        
void setup() {
  pinMode(ledPin, OUTPUT);      
  pinMode(qingjiaoPin, INPUT);     

void loop(){
  qingjiaoState = digitalRead(qingjiaoPin);
  if (qingjiaoState == LOW) {       
    digitalWrite(ledPin, HIGH);  
  else {
    digitalWrite(ledPin, LOW); 

Application effect

One-way tilt sensor, 13 small pins of the LED lights, tilt to the other always inclined or not, LED lights.

Products related to recommend

Buy address:[1]

Personal tools