14. Case 13: Lively Music¶
Make an electronic piano through micro:bit with the trimpot module.
14.2. Quick to Start¶
Nezha expansion board × 1
micro:bit × 1
Trimpot × 1
RJ11 wires × 1
Bricks × n
Connect the trimpot to J1 port on the Nezha expansion board.
14.3. MakeCode Programming.¶
Click “Advanced” in the makecode drawer to see more choices.
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.
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.
The tones could be adjusted via the trimpot.