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/30 16:50] – [Combined Code] christine001amc2020:group_f:start [2023/01/05 14:38] (current) – external edit 127.0.0.1
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 1314: 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 1355: 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.1598799000.txt.gz · Last modified: 2023/01/05 14:38 (external edit)