Your shopping cart is empty!
Monitoring Soil Moisture Using Blynk and micro:bit
- Abdulrahman Alhamed
- 09 Dec 2022
- 1387
With this IoT system, you can monitor the soil moisture of your plants using micro:bit and soil moisture sensor. The sensor readings are collected and transmitted to Blynk cloud server, therefore, you will be able to keep an eye on your soil moisture level from anywhere using your phone.
Video Tutorial
Components Required
Connection
By following the diagram above:
- Connect the grove Wi-Fi module to P15 and P16
- Connect Maker Soil Moisture sensor to P2
Blynk Setup
- go to Blynk website, create a new account and log in
- create a new template
- from datastream add a virtual pin
- then add a new device
- select the template that you have created
- now copy the token and paste it into the micro:bit code
- on your phone, open Blynk app and click on micro:bit device
- from the widget box, add a Gauge and select virtual pin 0
Code
Connect your micro:bit to your computer and open MakeCode editor to start programming.
- Add “ESP8266 Cytron” extension and follow the code block in the picture above
- Type in the name and password of your WiFi
- Paste the Token that you have copied from Blynk, and type in "V0" in Pin section
- After completing the code, download it on microbit
You can also view and edit the code by clicking here!
Project Complete
Now you can monitor the soil moisture using Blynk app on your phone. The higher the value, the dryer the soil.