(SKU:RB-02S033)Crash Sensor

From ALSRobot-Wki
Jump to: navigation, search
Pengz.jpg

Contents

Product overview

Collision sensors, also known as electronic switch is necessary learning introductory digital switch input module, and can be realized by programming glow lamp control, voice control, LCD display key choice function, etc. To 4 wd aluminium alloy can also be installed on the mobile robot platform, realize the collision detection function by 3 p sensor cable connected to the sensor expansion board, convenient and quick.

specification

  1. Working voltage:3.5V—5.5V
  2. Packing: electrostatic bag sealing
  3. weight :14g

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

sample program

void setup()
{
  Serial.begin(9600);		     
  pinMode(9, INPUT);  		     
}
 
void loop()
{
  Serial.println(digitalRead(9));
  delay(100);
}

Application effect

Connect the sensor to the controller on the pin 9, the return value was observed using a serial port monitor.

Products related to recommend

Buy address:[1]

Personal tools
Namespaces

Variants
Actions
Navigation
Tools