Loading... Please wait...

HC-SR04 Ultrasonic Distance Sensor Library Download

HC-SR04 Ultrasonic Distance Sensor Library Download

Arduino HC-SR04 Ultrasonic Distance Sensor Library

Click here to download: NewPing.h

  • Works with many different ultrasonic sensor models: SR04, SRF05, SRF06, DYP-ME007 & Parallax PING)))™.
  • Option to interface with all but the SRF06 sensor using only one Arduino pin.
  • Doesn't lag for a full second if no ping echo is received like all other ultrasonic libraries.
  • Ping sensors consistently and reliably at up to 30 times per second.
  • Timer interrupt method for event-driven sketches.
  • Built-in digital filter method ping_median() for easy error correction.
  • Uses port registers when accessing pins for faster execution and smaller code size.
  • Allows setting of a maximum distance where pings beyond that distance are read as no ping "clear".
  • Ease of using multiple sensors (example sketch with 15 sensors).
  • More accurate distance calculation (cm, inches & uS).
  • Doesn't use pulseIn, which is slow and gives incorrect results with some ultrasonic sensor models.
  • Actively developed with features being added and bugs/issues addressed.

For more info: http://playground.arduino.cc/Code/NewPing


Copyright 2019 Resistor Park. All Rights Reserved.
Sitemap | BigCommerce Design by PSDCenter