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:
- dfrobot-matrixlidardistancesensor-thirdex-V0.0.2.mpext
- https://gitee.com/zhangtang6677/ext-matrixLidarDistanceSensor.git
- https://github.com/DFRobot/ext-matrixLidarDistanceSensor.git
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?
