-19%










Arduino 防水超聲波測距模組 含防水超音波感測器探頭 2.5M 長度
0 out of 5
NT$430 原始價格:NT$430。NT$350目前價格:NT$350。 (未稅)
- 描述
- 評價 (0)
描述
描述
Arduino 防水超聲波測距模組 含防水超音波感測器探頭 2.5M 長度
很多時候我們都想要在戶外長時間使用超聲波測距傳感器,但是傳統的超聲波測距傳感器並不能防水,而戶外經常遇到雨水天氣,導致有些場景下在雨天就不能使用的情況。但是以後就不需要擔心這個問題了,我們這個防水超聲波測距傳感器探頭採用防水全封閉設計,能夠在雨天使用,可以很方便的使用在戶外場景中,例如汽車倒車測距,安防工控檢測等。
技術規格
- 工作電壓: DC5V
- 檢測範圍: 25~400 cm
- 測量角度: 50->70
- 靜態電流: 5mA
- 工作電流: 30mA –> 40mA
- 工作頻率: 40KHz
- 分辨率: 3m
- 工作溫度: -10 ~ 70°C
- 尺寸:41 * 29 *20 mm
(1)採用IO口TRIG觸發測距,給至少10us的高電平信號
(2)模塊自動發送8個40khz的方波,自動檢測是否有信號返回
(3)有信號返回,通過IO口ECHO輸出一個高電平,高電平持續的時間就是超聲波從發射到返回的時間。測試距離=(高電平時間*聲速(340M/S))/2
本模塊使用方法簡單,一個控制口發一個10US以上的高電平,就可以在接收口等待高電平輸出,一有輸出就可以開定時器計時,當此口變為低電平時就可以讀定時器的值,此時就為此次測距的時間,方可算出距離。如此不斷的周期測,即可以達到你移動測量的值,建議測量週期為50ms以上,防止發射信號對迴響型號的影響。
Arduino
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
/* Arduino example sketch to control a JSN-SR04T ultrasonic distance sensor with Arduino. No library needed. More info: https://www.makerguides.com */ // Define Trig and Echo pin: #define trigPin 12 // (RX) Pin to send trigger pulse #define echoPin 11 // (TX) Pin to receive echo pulse // Define variables: long duration; int distance; void setup() { // Define inputs and outputs pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); // Begin Serial communication at a baudrate of 9600: Serial.begin(9600); } void loop() { // Clear the trigPin by setting it LOW: digitalWrite(trigPin, LOW); delayMicroseconds(5); // Trigger the sensor by setting the trigPin high for 10 microseconds: digitalWrite(trigPin, HIGH); delayMicroseconds(20); digitalWrite(trigPin, LOW); // Read the echoPin. pulseIn() returns the duration (length of the pulse) in microseconds: duration = pulseIn(echoPin, HIGH); // Calculate the distance: distance = duration*0.034/2; // Print the distance on the Serial Monitor (Ctrl+Shift+M): Serial.print("Distance = "); Serial.print(distance); Serial.println(" cm"); delay(100); } |
評價 (0)
相關商品
-
距離感測 / 接近感測
SHARP GP2Y0A710K0F 紅外線距離感測器 100~550cm Analog 夏普測距感測器
0 out of 5NT$860原始價格:NT$860。NT$565目前價格:NT$565。 (未稅)加入購物車產品速覽 -
距離感測 / 接近感測
KS103 高精度超聲波測距模組 支援 I2C 和 TTL串口通訊 1cm-8M 高精度1mm
0 out of 5NT$1,100原始價格:NT$1,100。NT$910目前價格:NT$910。 (未稅)加入購物車產品速覽 -
-
距離感測 / 接近感測
Grove – IR Distance Interrupter 紅外線循跡模組
0 out of 5NT$230原始價格:NT$230。NT$210目前價格:NT$210。 (未稅)
商品評價
目前沒有評價。