Example Code for micro:bit-Mind+ Graphical Programming
This project uses Mind+ graphical programming with the micro:bit to control the MU Vision Sensor for number card detection. The detection result is displayed on the micro:bit.
Hardware Preparation
- micro:bit x 1
- MU Vision Sensor x 1
- Connectors x 1
Software Preparation
- Mind+ V1.5.6 or above (Download Address: http://mindplus.cc)
- Tutorial: Mind+ basic tutorial.
Wiring Diagram
Other Preparation Work
-
Set the DIP switches:
Output Mode: DIP 1 down, DIP 2 up
Device Address: DIP 1 down, DIP 2 down (sets the address to 0x60) -
Open Mind+ and switch to Offline mode.
-
Click Extension to load a controller such as micro:bit or mPython, then add the SEN0314 MU Vision Sensor extension.
-
Connect the device to your computer and upload the program.
Sample Code
Select the target device and start programming.
Taking the micro:bit as an example, use the Mind+ graphical blocks as shown below:
Result
When the sensor detects the number card, the recognition result will be displayed on the micro:bit.(Switch Output DIP 1 down, 2 up; Switch Address DIP 1 down, 2 down.)
Was this article helpful?
