DESCRIPTION
Octopus Soil Moisture Sensor Brick can read the amount of moisture present in the soil surrounding it. It’s a low-tech sensor, but ideal for monitoring an urban garden, or your pet plant’s water level. This is a must-have tool for a connected garden!
This sensor uses the two probes to pass current through the soil, and then it reads that resistance to get the moisture level. More water makes the soil conduct electricity more easily (less resistance), while dry soil conducts electricity poorly (more resistance).
It will be helpful to remind you to water your indoor plants or to monitor the soil moisture in your garden. The Freaduino Sensor Shield is the perfect shield to connect this sensor to Arduino. Or Freaduino UNO which we had a pre-stray Octopus Brick interface.
SPECIFICATION
Power supply: 3.3v or 5v
Output voltage signal: 0~4.2v
Current: 35mA
Pin definition:
Analog output(Yellow wire)
GND(Black wire)
Power(Red wire)
PACKAGE LIST
Module | Quantity |
---|---|
Moisture sensor Brick | 1 |
Analog Sensor Cable | 1 |
HARDWARE CONNECTION
Connection note: Connect this module to the P1 port on octopus:bit.
PROGRAMMING
STEP 1
Click the “Advanced” selection in the Makecode to check more coding selections.
STEP 2
We need to add a package for the coding. Click “Add package” from the bottom of the page and search”Tinker-kit” in the dialog box, then download the equivalent package.(Pointed by the red arrows below)
CODE
Program links You can also download it directly from below:
RESULTS
Insert this module into the soil, the value of the soil moisture content can be seen on the micro:bit.