Add support for Wiseome iPin-DRC611 MiniLidar rangefinder

iPin-DRC611 Datasheet v1.0.0 1.pdf (905.0 KB)

We would like to add native ArduPilot support for the Wiseome iPin-DRC611 MiniLidar laser rangefinder.

The iPin-DRC611 is a compact UART laser distance sensor intended for applications including UAV altitude hold and low-altitude stabilization.

Sensor specifications

  • Model: Wiseome iPin-DRC611 MiniLidar
  • Interface: UART
  • Default baud rate: 115200
  • Format: 8N1
  • Measurement range: 0.15 m to 13 m
  • Distance resolution: 1 cm
  • Selectable measurement rate: approximately 4 Hz to 1000 Hz
  • Laser wavelength: 850 nm typical

The manufacturer datasheet specifies UAV altitude hold and low-altitude stability control as intended applications.

Communication protocol

Measurement is started by sending:

CD 01 0A 0B

The sensor acknowledges the command and then continuously outputs measurement frames in the following format:

FA 00 03 ZZ YY CHECKSUM

where the distance is:

distance_cm = (YY << 8) | ZZ

The distance value is therefore little-endian and expressed in centimeters.

The checksum is the sum of bytes 1 through 4.

ArduPilot driver implementation

We have already implemented an initial ArduPilot serial rangefinder backend:

  • AP_RangeFinder_iPin_DRC611.cpp
  • AP_RangeFinder_iPin_DRC611.h

The implementation:

  • sends the measurement-start command automatically;
  • searches for the 0xFA frame header;
  • validates the frame length/type;
  • verifies the checksum;
  • decodes the little-endian distance;
  • rejects measurements outside 15–1300 cm;
  • converts the result from centimeters to meters for ArduPilot;
  • reports the MAVLink sensor type as MAV_DISTANCE_SENSOR_LASER.

Test platform

Initial hardware testing has been performed/planned using:

  • Flight controller: Accton Godwit GA1
  • ArduPilot / ArduCopter
  • Sensor: Wiseome iPin-DRC611
  • Connection: UART4
  • ArduPilot serial port: SERIAL6
  • Baud rate: 115200

DRC611 TX is connected to the flight controller RX and DRC611 RX to the flight controller TX.

RangeFinder Type ID

In our current development version we temporarily assigned:

49 : iPin-DRC611

However, we understand that RangeFinder Type IDs are maintained by the ArduPilot project and may change as new rangefinders are added.

Could the AP_RangeFinder maintainers please advise which Type ID should be assigned to the iPin-DRC611 before we submit the final pull request?

Once the Type ID and implementation approach are confirmed, we can submit the complete driver as a Pull Request.

Mission Planner

Our goal is also to have the sensor appear by name in the Mission Planner RangeFinder type selection, for example:

iPin-DRC611

instead of requiring users to manually enter a numeric RNGFNDx_TYPE value.

Please let us know whether any additional parameter metadata or Mission Planner changes are required after the ArduPilot driver is merged.

We can provide the product datasheet, UART protocol documentation, driver source code, hardware connection information, and test results if required.

Thank you for reviewing this new rangefinder integration.

Make a pull request and continue this discussion within the PR conversation on GitHub.