dimanche 28 août 2016

Ultrasonic Ranging module HC-SR04

Testing the HC-SR04 to measuring distances

[​IMG]


The accuraccy of the sensor depends greatly on device (chinese, cheap, etc..); in code, I limited the measurement between 3 cm and 100 cm (probably your device can measure larger distance)

Thanks to inline C code, I've used the PulseIn...

Ultrasonic Ranging module HC-SR04

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bdRH3e
via IFTTT

Aucun commentaire:

Enregistrer un commentaire