User Tools

Site Tools


amc2020:group_f:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

amc2020:group_f:start [2020/08/29 19:19] – [Video Tutorial] veronika001amc2020:group_f:start [2023/01/05 14:38] (current) – external edit 127.0.0.1
Line 21: Line 21:
 We are planning to design a portable meteorological measurement station, to measure the temperature, relative humidity, soil moisture, amount of precipitation and solar radiation within a field or garden. \\ We are planning to design a portable meteorological measurement station, to measure the temperature, relative humidity, soil moisture, amount of precipitation and solar radiation within a field or garden. \\
 By knowing the exact conditions in between the plants, we will hopefully be able to draw conclusions about the plants needs and health conditions. Thus, we would be able to optimize irrigation and the use of pesti- or fungicides by adapting it to the plants needs in the specific area. By knowing the exact conditions in between the plants, we will hopefully be able to draw conclusions about the plants needs and health conditions. Thus, we would be able to optimize irrigation and the use of pesti- or fungicides by adapting it to the plants needs in the specific area.
-Agriculture and gardening can be made much more efficient. \\+Agriculture and gardening could be made much more efficient. \\
  
  
Line 326: Line 326:
   int ldrStatus=analogRead(ldr);   int ldrStatus=analogRead(ldr);
   Serial.print("Light conditions: ");    Serial.print("Light conditions: "); 
-// assign data to light conditions by using use if...else structure +// assign data to light conditions by using an if...else structure 
 if (ldrStatus <= 50) {  if (ldrStatus <= 50) { 
   Serial.println("sunny day");   Serial.println("sunny day");
Line 347: Line 347:
  
  
-\\ {{https://www.arduino.cc/reference/en/language/structure/control-structure/else/|if... else}} structure is used to assign data ranges to weather conditions. Other used variables and structures can be found {{https://www.arduino.cc/reference/en/#variables|here}}.+\\ An {{https://www.arduino.cc/reference/en/language/structure/control-structure/else/|if... else}} structure is used to assign data ranges to weather conditions. Other used variables and structures can be found {{https://www.arduino.cc/reference/en/#variables|here}}.
  
 ===Soil Moisture === ===Soil Moisture ===
Line 445: Line 445:
 **Code**\\ **Code**\\
 //Klanten// \\ //Klanten// \\
-The codes explained [[https://wiki.eolab.de/doku.php?id=amc2020:group_f:start#material_and_methods|above]] are combined in a single file to read all measurements at a time.\\+The codes explained [[https://wiki.eolab.de/doku.php?id=amc2020:group_f:start#material_and_methods|above]] are combined in a single file to read all measurement data at a time.\\
 Careful: The serial monitor is now set to an upload speed of 115200.  Careful: The serial monitor is now set to an upload speed of 115200. 
  
Line 452: Line 452:
  
 <file c++ AnalogReadSerial.ino> <file c++ AnalogReadSerial.ino>
-//include library required for DHT sensors, define digital input pin and used DHT type+//include libraries required for the DHT sensor, define digital input pin and used DHT sensor type
 #include <DHT.h> #include <DHT.h>
 #define DHTPIN 2    #define DHTPIN 2   
Line 582: Line 582:
 \\ \\
  
-{{ :amc2020:group_f:amc_proj_2020.png?600 |}}+{{ :amc2020:group_f:amc_proj_2020.png?700 |}}
  
 ''Schematic of the connection of the sensors to the ESP32 board //by Veronika Skwirut// ''\\ ''Schematic of the connection of the sensors to the ESP32 board //by Veronika Skwirut// ''\\
Line 605: Line 605:
  
 === Install Libraries === === Install Libraries ===
 +//Klanten//\\
 +\\
 Before getting started with this project, it is necessary to install some libraries, if they are not already installed.  Before getting started with this project, it is necessary to install some libraries, if they are not already installed. 
 Required libraries for the DHT sensor are:  Required libraries for the DHT sensor are: 
Line 941: Line 943:
 **Start to read Data**\\ **Start to read Data**\\
 ==Temperature and Humidity== ==Temperature and Humidity==
-  * Read and store data from the DHT sensor by using ''dht.readTemperature()'' and ''dht.readHumidity()'', where the temperature in provided in °C,and the humidity in %, by default+  * Read and store data from the DHT sensor by using ''dht.readTemperature()'' and ''dht.readHumidity()'', where the temperature in provided in °C, and the humidity in %, by default
   * It is a relatively slow sensor, so be patient    * It is a relatively slow sensor, so be patient 
   * Include a fail save by checking if reading data is possible, print an error message if not    * Include a fail save by checking if reading data is possible, print an error message if not 
Line 1082: Line 1084:
 </file> </file>
   * In the ''<body>'', the content of our webpage is defined. This includes headers ''<h>'' and paragraphs ''<p>''   * In the ''<body>'', the content of our webpage is defined. This includes headers ''<h>'' and paragraphs ''<p>''
-  * Here we define, how our sensor readings are printed. Label and unit, as well as a ''>%PLACEHOLDER%<'' which is later replaced by the measured values are definide here+  * Here we define, how our sensor readings are printed. Label and unit, as well as a ''>%PLACEHOLDER%<''which is later replaced by the measured valuesare defined here
   * For visual effects, an icon and different colors are added. To change the color, the hexadecimal values of the desired colors must be used. These can be found [[https://www.colorhexa.com/|here]].\\   * For visual effects, an icon and different colors are added. To change the color, the hexadecimal values of the desired colors must be used. These can be found [[https://www.colorhexa.com/|here]].\\
 <file c++ AnalogReadSerial.ino> <file c++ AnalogReadSerial.ino>
Line 1216: Line 1218:
 \\ \\
  
-\\ 
-=====Video Tutorial ===== 
-//Skwirut//\\ 
-\\ 
-The following video will describe the fields of application for our portable meteorological measurement station as well as describe the different sensors which were used. It will be also showed how the box is used and the design will be shortly described. In the end the box will be showed in action. 
-\\ 
-\\ 
-{{ :amc2020:group_f:amc_video.mp4 |}} 
-\\ 
 \\ \\
 =====Measurements at different locations===== =====Measurements at different locations=====
Line 1323: Line 1316:
 ''Box(3) Bottom of the box, Picture by: Skwirut'' ''Box(3) Bottom of the box, Picture by: Skwirut''
 \\ \\ \\ \\
-The water level detection sensor/ precipitation sensor can be placed through a smaller hole on the bottom of the box next to the soil moisture sensor hole to measure the water level. It can also go through the side of the box to measure precipitation. Here it is dependent of the side from which the rain will come because it could be covered by the side of the box. The sensible parts of the sensor are mostly inside but to have a good protection it is also covered by a small plastic layer and fixed with elastic bands which also gives stability to the sensor.\\+The water level detection sensor/ precipitation sensor can be placed through a smaller hole on the bottom of the box next to the soil moisture sensor hole to measure the water level. It can also go through the side of the box to measure precipitation. Here it is dependent of the side from which the rain will come because it could be covered by the side of the box. The sensible parts of the sensor are mostly inside but to have a good protection it is also covered by a small plastic layer and fixed with elastic bands which also gives stability to the sensor. There is also the possibility to measure the exact amount of precipitation by placing the Water level detection sensor inside a rain gauge. The code presented before is intended for this application. \\
 {{:amc2020:group_f:4.jpg?200|}}\\ {{:amc2020:group_f:4.jpg?200|}}\\
 ''Box(4) Right side of the box, Picture by: Skwirut'' ''Box(4) Right side of the box, Picture by: Skwirut''
Line 1346: Line 1339:
 {{:amc2020:group_f:9.jpg?200|}}\\ {{:amc2020:group_f:9.jpg?200|}}\\
 ''Box(9) The build box, Picture by: Skwirut'' ''Box(9) The build box, Picture by: Skwirut''
 +\\ 
 +\\ 
 +=====Video Tutorial ===== 
 +//Video: Skwirut and Meinert, Text: Skwirut//\\ 
 +\\ 
 +The following video will describe the fields of application for our portable meteorological measurement station as well as describe the different sensors which were used. It will be also showed how the box is used and the design will be shortly described. In the end the box will be showed in action. 
 +\\ 
 +\\ 
 +{{ :amc2020:group_f:amc_video.mp4 |}} 
 +\\ 
 +\\
 =====Discussion===== =====Discussion=====
 //Skwirut//\\ //Skwirut//\\
Line 1354: Line 1357:
 After the code for each sensor was written and also connecting worked mostly fine for the Arduino board, the change to the ESP32 had difficulties.\\ After the code for each sensor was written and also connecting worked mostly fine for the Arduino board, the change to the ESP32 had difficulties.\\
 The first problem was to figure out, how to connect the board to the Wi-Fi. This it took especially long due to the fact that there are various ways to do it but many codes are difficult to understand also the strength of the Wi-Fi connection at each home is of different quality. In our case all of us had poor to medium connection, which had the effect that even when a code would work it would not connect. This leads us also to the problem that the ESP board needs a nearby Wi-Fi connection to use it on the fields or garden. The problem is that many fields do not have such far reaching connections on the fields yet. We think this will change in future due to the fact that more and more agriculture work will be done with the help of Wi-Fi to control instruments and machines more easily and effective. In contrast to the Arduino board it has the advantage that you do not have to go to the place and connect your laptop. After we managed to move the sensors to the other board, we thought about the problems the station might have.\\ The first problem was to figure out, how to connect the board to the Wi-Fi. This it took especially long due to the fact that there are various ways to do it but many codes are difficult to understand also the strength of the Wi-Fi connection at each home is of different quality. In our case all of us had poor to medium connection, which had the effect that even when a code would work it would not connect. This leads us also to the problem that the ESP board needs a nearby Wi-Fi connection to use it on the fields or garden. The problem is that many fields do not have such far reaching connections on the fields yet. We think this will change in future due to the fact that more and more agriculture work will be done with the help of Wi-Fi to control instruments and machines more easily and effective. In contrast to the Arduino board it has the advantage that you do not have to go to the place and connect your laptop. After we managed to move the sensors to the other board, we thought about the problems the station might have.\\
-Secondly, we tested both the Arduino and the ESP32 version of our project. Here we could see that the sensors by the ESP32 were less sensible which leads to less exact measurements. For example, the LDR (Photoresistor) is less sensible in case of the ESP version and shows the same values for different light conditions. It was much more sensible by the Arduino board.\\ +Secondly, we tested both the Arduino and the ESP32 version of our project. Here we could see that the sensors by the ESP32 were less sensible which leads to less exact measurements. For example, the LDR (Photoresistor) is less sensible in case of the ESP version and shows the same values for different light conditions. It was much more sensible by the Arduino board.The same is true for the water level sensor.\\ 
-Thirdly, another problem is the soil moisture sensor. It works fine on its own and also when the other sensors are connected to the ESP32 board. But by presenting the results it becomes a mess. The webserver does not show the results the way we wanted it to be. It is not showed and disturbs the other parameters in their whay of presenting the results.\\+Thirdly, another problem is the soil moisture sensor. It works fine on its own and also when the other sensors are connected to the ESP32 board. But the results can only be represented properly, if the soil moisture sensor values are printed separately from the other results. If printed together with the other sensor readings, it is not printed correctly and also disturbs the arrangement of the other printed results. This is a bug we could not fix properly on our owns.\\
 Fourthly, it became clear that the station could not be used effectively outside in this state. The biggest problem was that the station is not weatherproof. In the event of rain, for example, it would damage the individual sensors and the board. \\ Fourthly, it became clear that the station could not be used effectively outside in this state. The biggest problem was that the station is not weatherproof. In the event of rain, for example, it would damage the individual sensors and the board. \\
 Therefore, we decided to build a box. The problems which occur by building it were, to design it. Another problem might be that the often usage of the soil sensor and water level sensor might cause corrosion.\\  Therefore, we decided to build a box. The problems which occur by building it were, to design it. Another problem might be that the often usage of the soil sensor and water level sensor might cause corrosion.\\ 
amc2020/group_f/start.1598721559.txt.gz · Last modified: 2023/01/05 14:38 (external edit)