Welcome to Mini Microbit Handle repository
5.Omnibit
Omni:bit micro:bit Handle control
In this lesson we will learn to use the Handle to remotely control the building blocks Omni:bit.
1. Programming method:
Mode 1 online programming: First, we need to connect the micro:bit to the computer by USB cable. The computer will pop up a USB flash drive and click on the URL in the USB flash drive: http://microbit.org/ to enter the programming interface. Add the Yahboom package https://github.com/lzty634158/OmniBit and https://github.com/lzty634158/GHBit to program.
Mode 2 offline programming: We need to open the offline programming software. After the installation is complete, enter the programming interface, click【New Project】, add Yahboom package:
https://github.com/lzty634158/OmniBit and https://github.com/lzty634158/GHBit, you can program.
2. About code:
Please refer to the microbit-Omnibit-code.hex file and microbit-Omnibit-Handle-code.hex of this experiment.
3. Assembly steps
Please refer to the 1.Omnibit installation steps in the 1.Assembly steps folder for building blocks assembly steps.
4. About wiring
The left front motor is connected to the M1 interface of the Super:bit expansion board. The black line is on the battery side;
The left rear motor is connected to the M2 interface of the Super:bit expansion board, The black line is on the battery side;
The right front motor is connected to the M3 interface of the Super:bit expansion board, The black line is on the battery side;
The right rear motor is connected to the M4 interface of the Super:bit expansion board, The black line is on the battery side.
As shown below.
5. Steps:
5.1 Handle rocker control
First, we need to download the microbit-Omnibit-code.hex to micro:bit of Omni:bit, you can see that the micro:bit dot matrix shows an pattern as shown in Figure 1.1.
we need to download the microbit-Omnibit-Handle-code.hex to micro:bit of micro:bit handle, you can see that the micro:bit dot matrix shows an pattern as shown in Figure 1.2.

Figure 1.1 Figure 1.2
5.2 Handle rocker control