Skip to content

Sensor: US015 ultrasonic sensor

Jaume Olivé Petrus edited this page Oct 30, 2017 · 3 revisions

Back to sensor blocks

The US-015 sensor works by transmitting an ultrasonic burst and providing an output pulse that corresponds to the time required for the burst echo to return to the sensor. The distance is calculated by measuring the echo pulse width.

Please, take in mind, that sound speed depends on ambient temperature, about 0.6 m/secs per celsius degree, so combine this sensor with a temperature sensor if you want to get accurate measurements or if the sensor can be subjected to a wide temperature range.

Power supply:

  • Supply voltage: +5 VDC
What Comments
Interface 2 GPIO GPIO1: trigger signal
GPIO2: echo signal.
Read () from sensor distance cm
calibration +/- cm. Default set to 0 cm.
Set () with value () for sensor temperature current ambient temperature

Back to sensor blocks

Clone this wiki locally