RCWL-1670 Waterproof Ultrasonic Distance Sensor 400cm
RCWL-1670 is a waterproof transceiver ultrasonic measurement module. It can measure in the range of 2cm-400cm. This product, which can operate between 3-5V, has an ultra-low power consumption. External control software is compatible with the HC-SR04 module. It is also suitable for use in outdoor environments because it is resistant to water and dust.
Features:
- Model: RCWL-1670
- Operating voltage: 3-5V
- Operating current: 6mA
- Standby current: 3.5uA@5V 1.5uA@3.3V
- Blind area: 2cm
- Farthest distance: 4m
- Measurement cycle: 50mS
- Operating Temperature: -25 ℃ ~ 85 ℃
- Operating Humidity: 5%~95% RH
- Dimension: 57x23x11mm
Arduino Sample Code:const int pingPin = 13;
int inPin = 12
void setup() {
Serial.begin(9600);
}
void loop()
{
long duration, cm;
pinMode(pingPin, OUTPUT);
digitalWrite(pingPin, LOW);
delayMicroseconds(2);
digitalWrite(pingPin, HIGH);
delayMicroseconds(5);
digitalWrite(pingPin, LOW);
pinMode(inPin, INPUT);
duration = pulseIn(inPin, HIGH);
cm = microsecondsToCentimeters(duration);
Serial.print(cm);
Serial.print("cm");
Serial.println();
delay(100);
}
long microsecondsToCentimeters(long microseconds)
{
return microseconds / 29 / 2;
}
Connection Diagram