Twitter icon
Facebook icon
LinkedIn icon
Google icon
Reddit icon
StumbleUpon icon
Del.icio.us icon

Smart Indoor Harvesting Using Wio Terminal & Blynk

Added to IoTplaybook or last updated on: 10/14/2021
Smart Indoor Harvesting Using Wio Terminal & Blynk

Story

This project is basically designed and programmed by my daughter, Sashrika with little help from me. She participated in 2021 do-your-bit contest where she prototyped indoor plant harvesting system using Micro:bit. Since then, she was asking me how enhance her project so that she can control certain things in a smarter way.

Things used in this project

Hardware components

Wio Terminal
Seeed Wio Terminal
 
× 1 Seeed
 
Seeed Wio-Terminal-Chassis-Battery
 
× 1

Seeed

 
Seeed Grove-Temperature-Humidity-Sensor-DHT11
 
× 1

Seeed

Grove - Relay
Seeed Grove - Relay
 
× 1

Seeed

 
M5Stack Watering Unit + Soil Moisture
 
× 1

m5stack

LED Strip, 1 m
LED Strip, 1 m
 
× 1

Newark

Software apps and online services

Arduino IDE
Arduino IDE
 
  Arduino
Blynk
Blynk
 
 

Blynk

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
 
 

Motivation

This project is basically designed and programmed by my daughter, Sashrika with little help from me. She participated in 2021 do-your-bit contest where she prototyped indoor plant harvesting system using Micro:bit. Since then, she was asking me how enhance her project so that she can control certain things in a smarter way.

I suggested her to use Wio Terminal for some obvious reasons.

1. In-Build Display

2. In-Build WiFi

3. Rich community support

4. Easy integration with Blynk

Basically all you need to get started with cloud connected IoT solution. For more information about Wio Terminal, visit this.

Though Wio Terminal has 40 pins where you can connect multiple analog and I2C sensors, it's nice to have an expansion board with in-build battery pack. I have used this chassis from Seeed's studio which has four additional digital/analog, one UART Grove connectors.

How To Integrate Wio Terminal With Blynk

I am not going to document the steps here as there is a superb documentation already available on seeedstudio wiki. Follow the tutorial and you will be all set to build your own Blynk app.

Once you create your Blynk app, upload the code ( maalee.ino in code section ) after putting blynk auth code and your wifi credential.

Blynk Widgets

When you build your Blynk app, you need to add following widgets

1. One Gauge with Virtual Pin 1 for temperature

2. One Gauge with Virtual Pin 2 for humidity

3. One Gauge with Virtual Pin 3 for soil moisture

4. One Super Chart with 2 data streams - one for moisture and one for soil moisture

5. One Slider with Virtual pin 6 to control moisture threshold

6. One Slider with Virtual pin 7 to control darkness threshold

7. One Timer, choose your own timer to start and stop LED strip

8. One Notification

Hardware Connections

Connections used in this project can't be easier. I have used all grove sensors which are just plugged into grove sockets. No wiring, no soldering needed except LED strip.

#define PIN_PUMP 3

#define PIN_SOIL 2

#define DHTPIN 4

#define PIN_LIGHT 6

#define PIN_RELAY 0

Integrated pump and soil moisture sensor connected to top-right socket ( pin 2 & 3 )

DHT11 sensor connected to bottom-right socket ( pin 4 )

Relay is connected to top-left socket ( pin 0 )

Light sensor is connected to bottom-left socket ( pin 6 )

LED strip is connected to the relay via battery charging module.

Features

Realtime display

Realtime display of room temperature, humidity, ambient light and soil moisture level on Wio Terminal's display. Same data can be viewed from Blynk app from anywhere. No matter how far you are from home.

Automatic Watering

When soil gets dry, system automatically turns the pump on and water the plants. This threshold can be updated from the Blynk app based on your plants need. You don't need to change your code for different plants.

Automatic Lightings

LEDs are on and off based on predefined schedule. You can set the schedule on Blynk app without touching the code. When the schedule is on, system also checks for ambient light. If it's bright, such as very sunny day, system automatically turn the LEDs off to save energy. This light threshold can also be adjusted from the Blynk app.

I hope this project will inspire some of you to try out Wio Terminal and start harvesting your own plants

Code

Maalee.ino - Arduino

Credits

Mithun Das

Mithun Das

23 projects • 100 followers

Hacker and Maker driven by passion. Ambassador at Edge Impulse and Balena. Follow me on Twitter @tweetmithund.

Hackster.io

This content is provided by our content partner Hackster.io, an Avnet developer community for learning, programming, and building hardware. Visit them online for more great content like this.

This article was originally published at Hackster.io. It was added to IoTplaybook or last modified on 10/14/2021.