Step 1: Overview
Our goal with this project is that we want to collect data from our two plants. The data we collect are moisture in the soil, day light, humidity and temperatur to our database “MySQL”. These data we also want to use on our dashboard.
First video
For a quickly overview of our porject result. We have uploaded a video that give you guys at short overview of our project.
Second video
Also, we want to be able to water the plants automatically, by setting a limit for the moisture in the soil, or manually water the plant.
Step 2: List of Programs and Parts for This Project
Programs/Software
- node-red
- node-red-dashboard
- node-red-node-mysql
- node-red-node-serialport
- Arduino
- add DHTlib
- Wampserver64
Parts
- Arduino mega 2560
- Arduino Ethernet Shield
- 2x Light Sensor
- 6x 220 ohm resistance
- 2x Green LED
- 2x Red LED
- 2x Yellow LED
- Alot of wire
- USB cable
- Lan cable
Step 3: Wiring Diagram (Fritzing)
Step 4: Arduino Code
We have kept working on the old project program. The reason we keep using arduino is that it gives us good oppunities for data collecting.
From the last project we have modified our program. So it now uploads its data to a html site. Also the arduino will be able to read data recieved from node-red. Remember to add DHTlib. You can find it in step 2.
Step 5: Node-red (Retrieving and Storing Data, Controlling “motor”)
We use node-red to log and display our data, which we retrieve from a very simple homepage arduino hosts (picture 3) and updates continuously. We also use node-red to control the “motors” through the dashboard, right now the “motors” are represented by the 2 sets of green, yellow and red lamps.
COMMENTS