15. Octopus Motor Brick

15.1. Introduction


OCTOPUS Motor Brick is a type of simple electronic building blocks of the fan motor drive module.

../../_images/vu7ViBU.jpg

15.2. Characteristics


  • The 3-pins ports is easy to plug and play.

15.3. Specifications


Item | Parameter :-: | :-: Power Supply |3.3V-5V N-MOS| IRLML2502TRPBF can support high currency power Low power consumption|Working current 120mA Working Temperature|-25~85℃ Size|39.33mm×31.28mm

15.4. Outlook and Dimensions


../../_images/bFU1faL.jpg

15.5. Quick to Start


Materials used and connection diagram

  • Connect to the P16 port as the picture shows

    Take octopus:bit for example

../../_images/ZBTdQp1.png

Add Package

Program as the picture shows

Digital read pin Pl6 to 1 from button A and pin P16 to 0 from Button B.

../../_images/3se7TBq.png

Reference

Links: https://makecode.microbit.org/_fUURco9Rj8mH

You can also download the links below:

---

Result

  • 当按下A键时电机旋转,当按下B键时电机停止旋转。

  • While pressing button A, the motor starts rotating; while pressing button B, the motor stops rotating.

15.6. Relevant Cases


15.7. Technique Files