Cảm Biến Siêu Âm Us-025 3.3v 5v Arduino Esp8266 Stm32 Raspberry
₫ 58.600
Sản phẩm Cảm Biến Siêu Âm Us-025 3.3v 5v Arduino Esp8266 Stm32 Raspberry đang được mở bán với mức giá siêu tốt khi mua online, giao hàng online trên toàn quốc với chi phí tiết kiệm nhất,0 đã được bán ra kể từ lúc chào bán lần cuối cùng.Trên đây là số liệu về sản phẩm chúng tôi thống kê và gửi đến bạn, hi vọng với những gợi ý ở trên giúp bạn mua sắm tốt hơn tại Pricespy Việt Nam
Description us-025 ultrasonic sensor distance 3.3v 5v arduino esp8266 stm32 raspberry
Ultrasonic distance sensor
Support 3.3v and 5v work voltage
Support arduino,esp8266,wemos,nodemcu,esp32,stm32,raspberry etc.
Ultrasonic ranging module
- operating voltage: Dc 3v-5.5v
Working current: 5.3ma.
- operating temperature: - 40.°C-85°C
- method output: Gpio
- induction angle: < 15°
- detection distance: 2cm - 600cm
- detection accuracy: 0.1cm + 1%
Coding example:
Unsigned int echo = 2;
Unsigned int trigpin = 3;
Unsigned long time_echo_us = 0;
/ / len_mm_x100 = lengthx100
Unsigned long len_mm_x100 = 0;
Unsigned long len_integer = 0; / /
Unsigned int len_faction = 0;
Setup void () (
Serial.begin (9600);
Pinmode (echopin, input);
Pinmode (trigpin, output);
}
Void loop () (
Digitalwrite (trigpin, high);
Delaymicroseconds (50);
Digitalwrite (trigpin, low);
Time_echo_us = pulsein (echopin, high);
If ((time_echo_us < 60000) & & (time_echo_us > 1)
{
Len_mm_x100 = (time_echo_usx34) / 2;
Len_integer = len_mm_x100 / 100;
Len_faction = len_mm_x100% 100;
Series.print ("present length is:");
Series.print (len_integer, dec);
"Serial.print".;
If (len_faction < 10)
Series.print ("0");
Series.print (len_faction, dec);
Series.println ("mm");
}
Delay (1000
Ultrasonic distance sensor
Support 3.3v and 5v work voltage
Support arduino,esp8266,wemos,nodemcu,esp32,stm32,raspberry etc.
Ultrasonic ranging module
- operating voltage: Dc 3v-5.5v
Working current: 5.3ma.
- operating temperature: - 40.°C-85°C
- method output: Gpio
- induction angle: < 15°
- detection distance: 2cm - 600cm
- detection accuracy: 0.1cm + 1%
Coding example:
Unsigned int echo = 2;
Unsigned int trigpin = 3;
Unsigned long time_echo_us = 0;
/ / len_mm_x100 = lengthx100
Unsigned long len_mm_x100 = 0;
Unsigned long len_integer = 0; / /
Unsigned int len_faction = 0;
Setup void () (
Serial.begin (9600);
Pinmode (echopin, input);
Pinmode (trigpin, output);
}
Void loop () (
Digitalwrite (trigpin, high);
Delaymicroseconds (50);
Digitalwrite (trigpin, low);
Time_echo_us = pulsein (echopin, high);
If ((time_echo_us < 60000) & & (time_echo_us > 1)
{
Len_mm_x100 = (time_echo_usx34) / 2;
Len_integer = len_mm_x100 / 100;
Len_faction = len_mm_x100% 100;
Series.print ("present length is:");
Series.print (len_integer, dec);
"Serial.print".;
If (len_faction < 10)
Series.print ("0");
Series.print (len_faction, dec);
Series.println ("mm");
}
Delay (1000