Arduino Lib For HCSR04 Ultrasonic Sensor - GitHub
Maybe your like
= 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
Tag » Arduino Hc-sr04 Code
-
Ultrasonic Sensor HC-SR04 With Arduino Tutorial
-
Getting Started With The HC-SR04 Ultrasonic Sensor - Arduino Cloud
-
Ultrasonic Sensor HC-SR04 And Arduino - Complete Guide
-
Complete Guide For Ultrasonic Sensor HC-SR04 With Arduino
-
Sử Dụng Cảm Biến Khoảng Cách HC-SR04
-
Arduino - Ultrasonic Sensor - Tutorialspoint
-
HC-SR04 Ultrasonic Sensor With Arduino Tutorial (5 Examples)
-
Ultrasonic Sensor | Arduino Tutorial
-
How HC-SR04 Ultrasonic Sensor Works & How To Interface It With ...
-
Ultrasonic Sensor HC-SR04 And Arduino Tutorial - YouTube
-
Ultrasonic Sensor HC-SR04 With Arduino Tutorial
-
Ultrasonic Sensor HC-SR04 And Arduino Tutorial
-
Using The HC-SR04 Ultrasonic Distance Sensor With Arduino
