MakerWorld
Electronics
Go to Model
Ultrasonic holder
46
Downloads
8
Likes
8
Makes
UltraschallsensorIch habe eine Halterung für einen Ultraschallsensor entworfen, um diesen besser befestigen zu können. Ursprünglich wollte ich den Sensor mit einem Arduino Uno programmieren, habe aber keine passende Bibliothek gefunden. Deshalb habe ich selbst eine Bibliothek entwickelt, die unter folgendem Link verfügbar ist:https://github.com/Heki-coder/hekisonic/releases/tag/hekisonic Information zur Bibliothek:I created an ultrasonic library. I will explain in the following text how you can use it.To select pins: Hekisonic(int echoPin, int triggerPin);To set the temperature (default is 20°C): set_temperature(int t);To get the distance in cm (returns a float): distance();To get the distance in mm: distance_mm();To get the distance in µm (micrometers): distance_um();If you want more features, feel free to write to me in the comments.
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!