Reference
Last revision 2026/01/14
The article discusses installing library files for MakeCode programming and details power supply methods, including USB and external options, essential for classes and robotics projects.
Library
Library files for MakeCode: https://github.com/DFRobot/pxt-DFRobot_xia_mi_Board. Installation instructions: Enter the MakeCode programming platform, create a new project, click “setting”, then “expansion”, paste the link in the search box to load the library.
Power Supply Method
-
USB power supply: The power supply of the USB interface is 5V. It can be powered by the USB interface of PC or the charger of phone, and at this time, the on-boarded switch doesn’t work. This method mainly facilitates class teaching. However, the current supplied by the USB interface is limited, it is hard to drive multiple motors or servos.
-
External power supply: Next to the USB interface, here is an external power supply interface, which supplies voltage of 5~12V. The on-boarded switch works here. This method of power supply is mainly used to drive multiple motors and servos. It can be used to make robot car, servo robot, etc. Multiple lithium batteries are used to power. To avoid damage to the mainboard, distinguish the positive and negative poles when connecting.
Was this article helpful?
