01
Introduction
This kit is specifically designed for LEGO motor products, supporting: LEGO M motors, LEGO L motors, LEGO XL motors, and Monster motors.
It not only supports direct power supply from the LEGO battery box but can also control the motor’s rotation and stop using two IO ports of a microcontroller with high and low level signals. Additionally, PWM pulse width can be used to adjust the motor speed.
02
Principle
- Power supply voltage: 3V-9V
- Connection method: 2.54mm 4P Dupont wire
Standard kit item list:

Performance kit item list:

Difference Between Standard and Performance Kits
The performance kit includes an additional 9V battery box and a dedicated LEGO wire, allowing the 9V power supply to directly power the motor, enabling the fastest motor speed.
03
Wiring


- The Micro:bit mainboard, expansion board, PF to DC wire, and battery box shown in the image are not included in the kit.
- The image shows a LEGO L motor; the wiring method is the same for LEGO M motors and LEGO XL motors.
- The mainboard in the image is a Micro:bit, but it can be replaced with a Raspberry Pi, ESP32, or Arduino, and the wiring method remains the same as long as the motor driver pins correspond to the signals.
- If the motor rotation direction does not meet expectations, adjust the pins of the two signal wires. For example, if motor A is reversing and needs to be adjusted to forward, simply swap the connections of A1 and A2.

- The Micro:bit mainboard, expansion board, PF to DC wire shown in the image are not included in the kit.
- The image shows a LEGO L motor; the wiring method is the same for LEGO M motors and LEGO XL motors.
- The mainboard in the image is a Micro:bit, but it can be replaced with a Raspberry Pi, ESP32, or Arduino, and the wiring method remains the same as long as the motor driver pins correspond to the signals.
- If the motor rotation direction does not meet expectations, adjust the pins of the two signal wires. For example, if motor A is reversing and needs to be adjusted to forward, simply swap the connections of A1 and A2.
04
Program
Program Explanation:
You can write digital signals or analog signals to control the motor speed.


05
Demonstration

Students who need accessories can purchase them from my Taobao store under the same name.
Follow me for more sharing|Weilan Classroom

