Arduino Lib For HCSR04 Ultrasonic Sensor - GitHub
Có thể bạn quan tâm
= HCSR04 ultrasonic sensor Library for Arduino =
HCSR04 is an Arduino library HCSR04 Sensors

Documentation
Documentation for the library is on the Github Project Pages
basic example

#include <HCSR04.h> HCSR04 hc(2, new int[6]{5, 6, 7, 8, 9, 10}, 6); //initialisation class HCSR04 (trig pin , echo pin, number of sensor) void setup() { Serial.begin(9600); } void loop() { for (int i = 0; i < 6; i++ ) Serial.println( hc.dist(i) ); //return curent distance (cm) in serial for sensor 1 to 6 delay(60); // we suggest to use over 60ms measurement cycle, in order to prevent trigger signal to the echo signal. }if you want use a multiple sensor
Download
The last version of the Library is available on the github HCSR04 Page
Install
The library can be installed using the standard Arduino library install procedure
License
MIT License
Từ khóa » Thu Vien Hc-sr04
-
Thư Viện Cảm Biến Siêu âm Cho Proteus – Ultrasonic Sensor Library ...
-
Lập Trình Và Mô Phỏng Cảm Biến Khoảng Cách HC-SR04 Hiển Thị ...
-
Cảm Biến Siêu âm Ultrasonic HC-SR04
-
HCSR04 - Arduino Library List
-
Sử Dụng Cảm Biến Khoảng Cách HC-SR04
-
Cảm Biến Siêu Âm HC-SR04 - Nshop
-
HC-SR04: Tất Cả Về Cảm Biến Siêu âm | Phần Cứng Miễn Phí
-
Legacy HC-SR04 Add-On Library For Arduino - File Exchange
-
Cảm Biến Đo Khoảng Cách HC-SR04 - Shopee
-
Sử Dụng Cảm Biến Khoảng Cách HC-SR04 - Linhkienchatluong
-
Bài 5. Lập Trình đọc Cảm Biến Siêu âm HC-SR04 Với Raspberry Pi
-
Đo Khoảng Cách Bằng Cảm Biến Siêu âm HC-SRF04 (Mới Nhất 2021)
-
CẢM BIẾN SIÊU ÂM UTRASONIC HC-SR04 - Linh Kiện Hà Tĩnh
