The HC-SR04 Ultrasonic Module has 4 pins, Ground, VCC, Trig and Echo.... The Echo pin will output the time in microseconds the sound wave travelled. For example, if the object is 10 cm away from the sensor, and the speed of the sound is 340 m/s or 0.034 cm/µs the sound wave will need to travel about 294 u seconds
how to use if:
if(project variable low than or higher than ){
action//
else
action//
pin out:
Video project :
Comments