Jump to content

User:Alsrobotbase

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Alsrobotbase (talk | contribs) at 06:24, 15 August 2013 (Sensor). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Sensor

RB URF02 Ultrasonic Sensor(RB-02S001)

Description

The RB URF02 Ultrasonic Sensor is used exclusively for 5V power input. With the power supply, sensors keep transmitting at default transmit condition. Two modes of selection function are available: single-line mode only needs a signal line, greatly reduce the IO port resources; wire mode only needs a line of input and output signals. Detection distance can be accurate from 1cm to 500cm.RB URF02 Ultrasonic sensors can generate high frequency sound waves.

Specifications

  • Working voltage: +5v
  • Working current :< 20mA
  • Work frequency: 40 KHz
  • Temperature range: -10°C-+70°C
  • Detecting distance: 1cm-500cm
  • Resolution: 0.5cm
  • Accuracy: ±0.5%
  • Sensitivity: detect objects 2cm in diameter over 1.8m
  • Interface: TTL
  • Detecting range: directional (horizontal/vertical) 65 degrees
  • Weight: 9g
  • Size: 120mm x 115mm

Test Code

int duration;         
int distance;         
int srfPin = 2;        
 
void setup() 
{ 
Serial.begin(9600); 
} 
void loop() 
{ 
  pinMode(srfPin, OUTPUT); 
  digitalWrite(srfPin, LOW);            
  delayMicroseconds(2); 
  digitalWrite(srfPin, HIGH);           
  delayMicroseconds(10); 
  digitalWrite(srfPin, LOW);            
  pinMode(srfPin, INPUT); 
  duration = pulseIn(srfPin, HIGH);   
  distance = duration/58;  
  Serial.println(distance); 
  delay(50);             
}    



File:Nextredirectltr.png购买 RB URF02 Ultrasonic Sensor)

LED/LCD

Motor

Controller

Communication Module

Mechanics