Testing the HC-SR04 to measuring distances![[IMG]](proxy.php?image=https%3A%2F%2Ftuixte.files.wordpress.com%2F2013%2F03%2Fultrasonic_sensor_schema.jpg&hash=1e24cdb5deeda2b9e0d04be25298b9a2)
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