# Case 13: Lively Music ## Introduction We can adjust the frequency of the buzzer sound through the potentiometer. Try to create unique music by turning the potentiometer! ![](./images/case_13_01.png) ## Quick to Start ### Mterials Nezha expansion board × 1 micro:bit × 1 Trimpot × 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 trimpot to J1 port on the Nezha expansion board. ![](./images/case_13_03.png) ### Assembly Video Video reference for building:[https://youtu.be/G0hycQ2rxCk](https://youtu.be/G0hycQ2rxCk) ### Assembly Steps ![](./images/case_step_13_01.png) ![](./images/case_step_13_02.png) ![](./images/case_step_13_03.png) ![](./images/case_step_13_04.png) ![](./images/case_step_13_05.png) ![](./images/case_step_13_06.png) ![](./images/case_step_13_07.png) ## MakeCode Programming. ### Step 1 Click "Advanced" in the makecode drawer to see more choices. ![](./images/case_01_10.png) We need add a package for programming. Click "Extensions" in the bottom of the makecode drawer and search with "Planet X" to have the package downloaded. ![](./images/case_01_11.png) ***Note:*** If you met a tip indicating it might be deleted due to incompatibility, you may continue as it indicates or create a new project in the menu. ### Step 2 ### Programme ![](./images/case_13_15.png) ### Link Link: [https://makecode.microbit.org/_Fp5c7g7XjRMg](https://makecode.microbit.org/_Fp5c7g7XjRMg) You may download it directly below:
### Result The tones could be adjusted via the trimpot. ![](./images/case-gif-13.gif)