16. Case 15: Volume Reminder

16.1. Introduction

Make a volume reminder with micro:bit.

../../_images/case_15_01.png

16.2. Quick to Start


Materials


Nezha expansion board × 1

micro:bit × 1

servo × 1

RJ11 wires × 1

Bricks × n

../../_images/case_15_02.png

Bricks Details


../../_images/Bricks_case_15.png

Connection Diagram


  • Connect the 360 degrees servo to S1 port on the Nezha expansion board.

../../_images/case_15_03.png

Bricks Build-up


  • Build a device as the pictures indicate:

../../_images/case_15_04.png

../../_images/case_15_05.png

../../_images/case_15_06.png

Video link:https://youtu.be/sq4fq4W51Ck

16.3. MakeCode Programming


Step 1


Click “Advanced” in the MakeCode drawer to see more choices.

../../_images/case_01_10.png

We need to add a package for programming. Click “Extensions” in the bottom of the drawer and search with “PlanetX” to download it.

../../_images/case_01_11.png

We need to add a package for programming. Click “Extensions” in the bottom of the drawer and search with “Nezha” to download it.

../../_images/case_03_09.png

Note: If you met a tip indicating the codebase might be deleted due to incompatibility, you may continue as the tips say or create a new project in the menu.

Step 2


Programme as the pictures indicate

../../_images/

../../_images/case_15_15.png

Result

  • The servos drive in accordance with the change of the volume.