Example Code for UNIHIKER K10-Read Specified Point Distance in Matrix Mode

- This example will demonstrate reading data from the left and right points and displaying it on the screen of the UNIHIKER K10.

Hardware Preparation

  • DFR0992: UNIHIKER K10 Main Board *1
  • DFR1231: IO Extender for UNIHIKER K10 / micro:bit *1
  • SEN0628: Matrix LiDAR Sensor *1

Software Preparation

  • MindPlus Graphical Programming Platform Download Link: https://mindplus.cc/download.html
  • MindPlus User Library Link:

Wiring Diagram

Wiring Diagram

Other Preparation Work

  • Load the library via the extension feature in MindPlus

Sample Code

Result

Additional Information

  • In MindPlus, there are two modes: Matrix Mode and Obstacle Avoidance Mode.
    • Matrix Mode: By selecting different I2C addresses, it enables the cascading use of up to 4 sensors.
    • Obstacle Avoidance Mode: This is a test function, intended solely for testing purposes. It may contain bugs or have shortcomings in user experience.

Was this article helpful?

TOP