6. Case04: Soil Moisture Sensor#

6.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.

6.2. Materials#

  • 1 x micro:bit

  • 1 x Basic : bit

  • 1 x Soil Moisture Sensor

6.3. Software Platform#

MicroSoft makecode

6.4. Hardware connect#


6.5. Programming#

Program annotation#



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

You can also download it directly below:

6.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.

6.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.

6.8. FAQ#

6.9. Relevant Files#