7. Case04: Soil Moisture Sensor#

7.1. Purpose#

  • In this project, you will learn how to change the music playing from Basic:bit and the icons on the micro:bit through Soil Moisture Sensor.

7.2. Materials#

  • 1 x micro:bit

  • 1 x Basic : bit

  • 1 x Soil Moisture Sensor

7.3. Software Platform#

MicroSoft makecode

7.4. Hardware connect#


7.5. Programming#

Program annotation#



Links: https://makecode.microbit.org/_YkJR6g4wpbqE

You can also download it directly below:

7.6. Result#

  • While the Soil Moisture value is below the setting value, the basic:bit plays the music and the micro:bit changes the icon on its screen.

7.7. Exploration#

  • How to programme to make the basicLbit change the music itself whit defferent soil moisture value being detected and the micro:bit change the icon on its screen.

7.8. FAQ#

7.9. Relevant Files#