Skip to main content

Power Module


Introduction​

Features​

Power Module: It is responsible for power supply and management of the entire system, stably outputting voltage and current suitable for each module to ensure stable system operation.


Specifications​

ItemParameter
NamePower Module
SKUEF16008
Connection TypePower Supply
Operating Voltage5V
Dimensions48.00mm×31.40mm (L×W)

Appearance and Dimensions​


None


Usage Tutorial​

Hardware Connection Diagram​

Note: Please prepare a 5V power supply separately.

Methods to Turn On/Off Port Power Output​

  1. Go to the [Web Device Debugging Interface](https://jacdac.github.io/jacdac-docs/dashboard/)

2.Connect the micro:bit to a computer via a USB data cable, click "Device Dashboard" and then "Connect" to establish a device connection.

3.Click "Connect USB".

4.Select the corresponding serial port and click "Connect".

5.You can turn on or off the power output of the power module's ports in the web debugging interface.

If the power output of a port is turned off, the port's LED indicator will turn off. Conversely, if the power output of a port is turned on, the port's LED indicator will turn on.


Hardware Connection Diagram​

Note: The power module needs to be connected to a 5V power supply.

Programming Software​

Microsoft MakeCode

MakeCode Programming​

Step 1: How to Add Jacdac Extension​

  1. Go to Microsoft MakeCode and click "New Project".

  1. Enter the project name in the pop-up window and click "Create".

  1. Click "Extensions" in the code drawer.

  1. Enter "Jacdac" in the pop-up interface, click the search icon, and select the Jacdac library as shown.


Step 2:​

  1. Connect the micro:bit to the computer with a data cable. Note: If the micro:bit runs a Jacdac program for the first time, please pre-install a blank Jacdac program on the micro:bit first; otherwise, skip this step.

    Note: Make sure the power selection switch is set correctly. When using the micro:bit board to power the Jacdac modules, set the switch to micro:bit. When using an external power module, set the switch to Power.

  1. Connect the sensor. MakeCode will automatically recognize it and simulate its status in real time in the simulation area.

  1. Click "ADD BLOCKS" for the sensor extension module. Note: When connecting a new sensor, repeat the operation of clicking "ADD BLOCKS" for the sensor extension module.


Program Code Example​


https://makecode.microbit.org/_bW1btg9VzLg9

You can also download and run it via the embedded link:


Result​

The servo rotates from 0° to 90°, then to 180°, and then back from 180° to 0°.