Ultrasonic Library Arduino Hc-sr04 Code
Ultrasonic-library - Arduino Library to use with the ultrasonic sensor HC-SR04. We have already sold many HC-SR04 modules and though it is easy use and we have published a demo, still some users mail us for a specialized code of their own. Minimalist library for Ultrasonic Module HC-SR04, PING))) and Seeed SEN136B5B to Arduino.
Ultrasonic SR04 library for Arduino by Ashish Rajput - 2012 CURRENT VERSION Release 2.0 24-April-2012 beta version. HISTORY Release 1.0 24-April-2012 Initial Release DESCRIPTION Easy to use ultrasonic library based on HC- SR04 sensor. This simple library uses delay. Don't use this if your sketch require no delay. HOW TO IMPORT/INSTALL Download here: Put the Logging folder in 'libraries '.
Open example project which is included in the zip file. Try it, like it:-) Detailed description is included in doc folder Methods for measuring Methode Comment Range()!Returns the distance in CM Time()! Returns the time in us for To and Fro Cycle.
Arduino HC-SR04 Ultrasonic Distance Sensor Library Click here to download: • 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. Ora De Varf 4 Subtitrat. • 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.