Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
Connect motor module to P1 port of OSOYOO PnP board with 3-pin PnP cable as below;
Step 0: Go to url: https://makecode.microbit.org, click New Project
Step 1. In the Toolbox, click on the Input categor. Drag an on button pressed block and place it inside the placeholder .
Step 2.Click on the Pins category . Drag a digital write pin block and place it in the on button pressed A block . Then choose P1 from the drop-down menu , also set “to” value as 1.
Step 3. In the Toolbox, click on the Input category again. Drag another on button pressed block and then place it inside the placeholder .Then choose B from the dropdown menu.
Step 4. Click on the Pins category again. Drag a digital write pin block and place it in the on button pressed B block . Then choose P1 from the drop-down menu , also set “to” value as 0.
Step 5. Download this “.hex” file and save it to your MICROBIT disk Driver as following figure.
Below are the full Graphic programming code blocks we have done for you as reference:
Please note that this motor is equipped with a safety feature. After importing the code and applying power, you will need to manually rotate the blades to initiate motor operation.
DownLoad Url osoyoo.com