Ultrasonic sensor
I designed a bracket for the ultrasonic sensor to better secure it. Initially, I planned to program it with an Arduino Uno, but I couldn't find a suitable library. So, I developed my own library, which can be accessed at the following link:
https://github.com/Heki-coder/hekisonic/releases/tag/hekisonic
Library information:
I've created an ultrasound library. I'll explain how to use it in the following text.
Select pins: Hekisonic(int echoPin, int triggerPin);
Set the temperature (the default value is 20°C): set_temperature
Obtain the distance in centimeters (returns a floating-point number): distance
Obtain the millimeter distance: distance_mm();
Obtain the micrometer distance: distance_um();
If you need more features, please feel free to contact me in the comments.
Etiketler
Model Kaynağı
