Crash Collision Sensor Detection Module [S230]





https://www.youtube.com/watch?v=1yeZcZQk-Y8


*GitHubhttps://github.com/rdiot/rdiot-s230.git


* Specs 

Wrobot Crash Sensor is arduino compatible and can be used for for robot collision detection, touch collision detection. 

It is based on the high sensitivity crash sensor. 

With the Arduino sensor expansion board, in combination, it can be very easy to achieve robot collision detection, touch collision detection. 


When touch, output low level ; when release, maintain a high level

Wrobot Crash Sensor pin definitions : (1) Output (2) Vcc (3) GND

Features :

1.Based on the high sensitivity crash sensor

2.Can be used for robot collision detection, touch collision detection

3.Type : Digital

4.Sensitivity : High

5.Power Supply : 5V

6.Pin Definitions : (1) Output (2) Vcc (3) GND

7.When touch, output low level ; when release, maintain a high level

8.Apply to a variety of platforms including Arduino/51/AVR/ARM


* Contents

- connect

OUT - D3

VCC - 5V

GND - GND

 

- Key Code

int ledPin = 13;                // choose the pin for the LED
int inputPin = 3;               // connect sensor to input pin 3
 
 
void setup() {
  Serial.begin(9600);           // Init the serial port
   
  pinMode(ledPin, OUTPUT);      // declare LED as output
  pinMode(inputPin, INPUT);     // declare Micro switch as input
}
 
void loop(){
  int 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
    Serial.println("Switch Pressed!");
  }
  delay(50);
}


Posted by RD IoT RDIoT

댓글을 달아 주세요

IR Infrared Obstacle Avoidance Sensor 2-180cm (DIY) [S246]



https://www.youtube.com/watch?v=iIR1fbxM9uo


*GitHub https://github.com/rdiot/rdiot-s246.git

* Specs

Features:

1.Many kinds of welding methods,vertical and horizontal,expand the scope of application.

2.With precision potentiometer to adjust the range of infrared 38KHz detection.

3.The sensor detects the band enable port,which is convenient for the signal line as the bus line.

4.On power enable the port of the high level of the sensor,the sensor can detect the output signal.

5.Detection range can be up to 1.2 meters.

6.The software is enhanced,and the infrared ray interference of the infrared remote control equipment can be avoided.

7.Using EEPROM to record the work of each module, the probability of interference with each other is down to 1%.

8.Signal low level output.

9.Pin SIP head,application of bread board or through hole project.

10.Board set the jumper JP,short circuit when the output signal has a latch function,or dynamic output.

 

Specifications:

1.Power requirements:5 VDC

2.Communication:digital high/low output

3.Working temperature:32 to 158 degrees F (0 to +70 degrees)

4.Size:2.4cm * 2.8cm

 

Applications:

1.Warehouse door switch (latch set)

2.Security alarm system

3.Automatic production line transportation belt object count

4.Robot control

 

Package Included:

1 * 38KHz IR Infrared Obstacle Avoidance Sensor Switch


* Contents

- Connect

EN ----- X

SIG ----- D2

VCC ----- 5V

GND ----- GND


- Key Code

int T = 2; // INPUT PIN

 

void setup()

{

 Serial.begin(115200); 

 Serial.println("Arduino Examples - IR Sensor");

 Serial.println(" http://docs.whiteat.com/?p=1142");

 pinMode(T, INPUT);

}

 

void loop()

{

 if (LOW == digitalRead(T))

 {

 Serial.println("IR Detected"); //detected

 }

 else

 {

 Serial.print("."); 

 }

 delay(100);

}

Posted by RD IoT RDIoT

댓글을 달아 주세요