# Case 15: Volume Reminder ## Introduction This device uses the sound intensity detection on the micro:bit V2 to control the servo to rotate to the corresponding position by detecting the surrounding sound level, so that the pointer connected to the servo fluctuates with the volume. ![](./images/case_15_01.png) ## Quick to Start ### Materials Nezha expansion board × 1 micro:bit × 1 servo × 1 RJ11 wires × 1 Bricks × n ***Tips: You may need to purchase [Nezha Inventor's Kit](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-nezha-48-in-1-inventors-kit-without-micro-bit-board?_pos=2&_sid=ed1b6fbd2&_ss=r) if you want all the above compoents.*** ### Connection Diagram Connect the 360 degrees servo to S1 port on the Nezha expansion board. ![](./images/case_15_03.png) ### Assembly Video Video link:[https://youtu.be/sq4fq4W51Ck](https://youtu.be/sq4fq4W51Ck) ### Assembly Steps ![](./images/case_step_15_01.png) ![](./images/case_step_15_02.png) ![](./images/case_step_15_03.png) ![](./images/case_step_15_04.png) ![](./images/case_step_15_05.png) ![](./images/case_step_15_06.png) ![](./images/case_step_15_07.png) ## 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) ### Link Link: [https://makecode.microbit.org/_JfDgxzJkc72X](https://makecode.microbit.org/_JfDgxzJkc72X) You may download it directly below:
### Result The servos drive in accordance with the change of the volume. ![](./images/case-gif-15.gif)