HC-SR04 Ultrasonic Sensor for P1

Measure distance up to 4m using the HC-SR04 ultrasonic sensor

Share this object
<

Overview

Content

Object and demo code for the HC-SR04 ultrasonic sensor. Uses positive pulse measurement mode of the P1 CTRx module. Methods in the object allow the user to select CTRA or CTRB to handle the measurement, and return distance in microseconds, centimeters, or inches.


Downloads  
Zip archive download

Leave a Reply