Plant Care System Based on Pi3 and Wio Node

by Seeed Studio in Circuits > Raspberry Pi

3268 Views, 34 Favorites, 0 Comments

Plant Care System Based on Pi3 and Wio Node

34.png
Irrigation Control System Based On Wio Node
1.png

I always wanted to bulid a project that can control many nodes for Green house Irrigation System, but never found the right solution. The Wio Node is suitable for my project.

Wio Node is designed to simplify your IoT development, aims to make it easy to develop Internet of Things products and services. It is an ESP8266 based open-source Wi-Fi development board to create IoT applications by virtualizing plug-n-play modules to RESTful APIs with mobile APPs.

Compared to Wio Link, It's more small and cheaper. This product is suitable for application in the scenario requires a large number of sensors collecting data or somewhere is only need simple wireless input output.

In this project, I connected a Grove – Moisture Sensor to Wio Node to measure the soil moisture as well as Grove – Relay to control a pump. I will run a Universal Windows Platform(UWP) app on Raspberry Pi3 to view the sensor values and control the pumps remotely.

Here is the video about this project.

What Do We Need

0.png
3.png
10.png
11.png

Wiring for Wio Node

Wio Node.jpg

Now, we should Connect Grove modules to Wio Node as the picture below shows.

Connect Grove – Moisture Sensor to Port1

Connect Grove – Relay to Port0

Assemble Water Pump Circuit

2.png

1. Select all parts required to build water pump circuit from this kit: 12V Water Pump,Grove-Relay,12V Power Connector, Power Cables.

2. Plug one red wire of water pump into positive terminal of power connector and fix it with screw.

3. Plug cable to relay's either J1 port and fix it.

4. Plug black wire of water pump into negative terminal of power connector and fix them.

5. Plug red wire of water pump into relay's another port of J1 connector.

6. Have a look at the completed connection.

Setup for Wio Node

3.png
4.png

If this is your first time to use Wio Series product you can put hand on http://iot.seeed.cc/index.html to get more info.

There is a video of how to get started on Wio Link. The Wio Node is similar with Wio Link.

https://youtu.be/lqLxJmU5rdE

Then following this guide and configure the Wio Node as the picture below shows.

Setup for Raspberry Pi3

5.png
6.png

I have been running Win10 IoT on Raspberry Pi, you can put hand on here to get started with Windows 10 IoT Core.

I assume that you are already familiar with Win10 IoT Core and set up the development environment. Don’t forget connect an HDMI monitor to the HDMI port on the board.

1. Download the code from Github.

2. Click “Download zip” button on right side of webpage to download all codes.

3. Decompress the downloaded zip files and remove “-master” in decompressed file name.

4. Launch IrrigationControlSystem.sln.

5. Change the Code

Change all the Uri in the code to your own, you can get it in your Wio APP.

Deploy Your App.

7.png
8.png

1. With the application open in Visual Studio, set the architecture in the toolbar dropdown. Select ARM.

2. Next, in the Visual Studio toolbar, click on the Local Machine dropdown and select Remote Machine.

3. At this point, Visual Studio will present the Remote Connections dialog. If you previously used PowerShell to set a unique name for your device, you can enter it here (in this example, we’re using my-device). Otherwise, use the IP address of your Windows IoT Core device. After entering the device name/IP select None for Windows Authentication, then click Select.

4. You can verify or modify these values by navigating to the project properties (select Properties in the Solution Explorer) and choosing the Debug tab on the left.


When everything is set up, you should be able to press F5 from Visual Studio. If there are any missing packages that you did not install during setup, Visual Studio may prompt you to acquire those now.

The Result

9.png

If you deploy your APP successfully on Raspberry Pi3, you can see the info as the picture below shows on LCD screen. And you can press the button to open or close the water pump.

This project is just a prototype, and the control
interface is a little ugly. I will take some time to beautifies the UI, and displays the sensor data graphically.