Distance
Ultrasonic Distance Sensor
- Overview
- Driver
- Tethered
- Standalone
This sensor sends an ultrasonic chirp, then it measures the time it takes for the sound to bounce back. The time it takes maps to the distance between the sensor and the object it's facing.
Key features • Ultrasonic Type | Resources PID: 0x060008 |
Driver Scripts go hand-in-hand with DUELink official firmware. See the Driver Scripts page for further details.
| Function | Description |
|---|---|
Distance() | Reads the current distance in cm. |
DVer() | This driver version. |
The Code!
Distance Driver
loading...
These Tethered samples assume the driver is installed, see the Driver Tab.
- Python
- MicroPython
- JavaScript
- .NET
Python Sample
loading...
MicroPython Sample
loading...
JavaScript Sample
loading...
.NET Sample
loading...
These samples show how to run DUELink Standalone.
- Script
- Arduino
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the driver to be loaded first, see the Driver Tab.
Standalone Script Sample
loading...
See Arduino page for more info.
Standalone Arduino Sample
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink Distance | GDL-SEDISTANCE-B | $9.95 |