Arduino Ultrasonik Sensor Kullanımı. Jika menempuh jarak 1 cm 1 cm 001 m maka butuh waktu 001 x 00029 s 0000029 s 29 µs. Long ping int pinnumber long duration cm.

Distance sensing with ultrasonic sensor and arduino 3n. Ad delivering a unique combination of software development support manufacturing services. This sensor reads from 2cm to 400cm 08inch to 157inch with an accuracy of 03cm 01inches which is good for most hobbyist projects.
The ultrasonic sensor hc sr04 includes four pins.
Echo pin produces a pulse when the reflected signal is received. Trig trigger pin is used to trigger the ultrasonic sound pulses. The length of the pulse is proportional to the time it took for the transmitted signal to be detected. Search liquidcrystal i2c then find the liquidcrystali2c library by frank de brabander.