Skip to content

Arduino library for HC-SR04, HC-SRF05, DYP-ME007, BLJ-ME007Y, JSN-SR04T ultrasonic ranging sensor

Notifications You must be signed in to change notification settings

enjoyneering/HCSR04

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license-badge version stars hit-count github-issues

HС-SR04

This is an Arduino library for HC-SR04, HC-SRF05, DYP-ME007, BLJ-ME007Y, SEN136B5B, US-100 (PWM output mode), JSN-SR04T (PWM output mode) ultrasonic ranging sensor

  • Operating voltage: 5v
  • Operating current: 10..20mA
  • Default range: 4cm..250cm
  • Measuring angle: 15°
  • Operating frequency: 40kHz
  • Resolution: 0.3cm
  • Maximum polling rate: 20Hz

Features:

  • Read distance from 4cm to 250cm**
  • Compensate speed of sound according to the ambient temperature
  • Pass distance thought median filter
  • Set maximum distance to speed up measurement

Tested on:

  • Arduino AVR
  • Arduino ESP8266
  • Arduino STM32

**Library returns 38000 if OUT OF RANGE