Skip to content

Latest commit

 

History

History
102 lines (51 loc) · 3.15 KB

Nezha_Inventor_s_kit_for_microbit_case_50.md

File metadata and controls

102 lines (51 loc) · 3.15 KB

Case 50: A Small Trash Can

Introduction

Make a small trash can with Nezha-A Inventor's Kit.

Quick to Start

Materials Rrquired

Nezha-A Inventor's Kit

Assembly

Components List

Build as the steps suggest:

Connection Diagram

Connect the Motor to M1 on Nezha-A Master Box.

MakeCode Programming

Step 1

Click in the "Advanced" in the MakeCode drawer to see more choices.

For programming, we need to add a package: click “Extensions” at the bottom of the MakeCode drawer, and search for “Nezha” in the dialog to download.

Note: If you encounter a prompt that some codebases will be removed due to incompatibility, you can follow the prompt to continue or create a new project in the menu.

Step 2

Program as the picture indicates

Link

Link: https://makecode.microbit.org/_VE00w0E5rLL6

You may download it directly below:

<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;" src="https://makecode.microbit.org/#pub:_VE00w0E5rLL6" frameborder="0" sandbox="allow-popups allow-forms allow-scripts allow-same-origin"></iframe>

Result

Press button A to open the lid of the trash can; press button B to close it.