Soil Moisture Sensor

Soil Moisture Sensor (HKBM8012H)

../../_images/034.png

This is a soil moisture sensor that detects the moisture level in soil, the reading is high when the soil is dry.

../../_images/IMG_25801.GIF

../../_images/IMG_25791.GIF

Precautions

  • If the sensor is not in use for a long time, please store in a dry container to prevent oxidation due to moisture.

  • A warning line is printed on the module, do not insert the sensor deeper than this line as this may cause damage to the circuitry.

Connecting the module

Connect the Environment Module to Armourbit with a 4Pin cable first, then connect the sensor to the module with a 3Pin cable.

../../_images/soil_wire.png

MakeCode Coding Tutorial

../../_images/mcbanner.png

Powerbrick Extension: https://github.com/KittenBot/pxt-powerbrick

Loading Extensions

Environment Module Blocks:

../../_images/environmentblocks1.png

Detecting soil moisture

../../_images/soil1.png

Sample Code Link

Makecode Tutorial Video

../../_images/envtut1.png

Extension Version and Updates

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

Makecode Extension Update

KittenBlock Coding Tutorial

../../_images/kbbanner.png

Load Powerbrick Extension

Select Powerbrick from the hardware column.

../../_images/addextension1.png

Environment Module Blocks

../../_images/kbenvblocks1.png

Detecting Soil Moisture

../../_images/kbsoil1.png

Sample Code Download

FAQ

1:Why is there no reaction when I click the blocks?

Make sure you have connected the Micro:bit correctly and flash the firmware again.