The arduino for computer science application is on the windows store with this plus 80 detailed examples. The material is also available as a kindle book at the amazon store. With the title learning arduino, the station will measure the temperature in the range of 0 to 65 degrees celsius, the humidity between 20 and 90, and the absolute and relative pressure between 300 and 1100 millibar. The measured values will be displayed on the lcd display. The display is limited, so we must create a formatting for the results that is very intuitive. In the first row, we present the temperature in the second row. We present the humidity in the third row. We present the absolute pressure and the altitude at which the sensor is positioned. In the fourth row, we present the calculated pressure relative to sea level. All measurements are shown without decimals, depending on the accuracy of the measurements obtained. The stations peanut diagram is complex. Since half of the digital pins and half of the analog pins are used, as you can see, the diagram joins. The circuit of the three laboratories into a single diagram below is the connection diagram. We put a different color for each connection per sensor to make it easier to identify them if you load, one of the programs studied above, for example, the dht 11. You can test the dht 11 sensor, even in this complete setup. You can do this for each sensor and display confirming that each sub assembly has been assembled correctly.

We must include the dht 11 and bmp 180 sensor and display libraries, the types of sensors, the pin mapping between the arduino, the sensors and the display are defined. The objects dht pressure and lcd are created. In addition, global variables are defined that will receive the measurements made in the setup function, the sensors are initialized and the display is reset in the loop function. We call the read dht function, which obtains the temperature and humidity values read by the dht sensor. Then the read bmp function, which obtains the bmp sensor, readings and finally, the display function, which writes the measurement values on the lcd display in the read dht function. We initialize the data structure that will store the temperature and humidity. We start a temperature reading, wait two seconds and take the temperature reading. We start a humidity measurement, wait two seconds and take a humidity reading. The delay included after each read instruction is necessary so that the sensors analog to digital converter can stabilize and present a correct reading in the read bmp function. We declare the variables t, p and p0 and then start a temperature measurement and wait for the value returned by the status variable and then read the temperature. We carry out the same procedure for the pressure reading. We only read the temperature and pressure in the case where no error occurred. If an error occurs, the temperature or pressure remains with the value of the last correct measurement.

The display function prints the measurements using global variables. Formatting is, as indicated above without decimal places, temperature and humidity, with two significant digits pressure and altitude with three or four significant digits. The assembly uses a breadboard note that in this case, the complexity of the circuit is greater. With a denser assembly pay attention to the assembly because after everything is ready and the program loaded, the expected result does not occur, it is difficult to find out where the error is later. We will see how to eliminate the error. The lab result can be seen here if you want to know in a simplified way how the arduino ide works. Please see the dht bmp and display labs already published now. Lets start the project testing process first ill load. The program we used to test the dht 11 working with the serial monitor we will use the file menu open recent sub menu and load the dht 11 code. Next, in the sketch menu load submenu, we compile and load the test program into arduino using the serial interface in the tools menu. We activate the serial monitor sub menu. The results presented indicate that the assembly of the dht 11 sensor sub assembly was done correctly and that the sensor is working lets do the same for the bmp180 sensor. First, i will load the program we use to test the bmp180. With the serial monitor, we will use the file menu open recent sub menu and load the code bmp180.

Next in the sketch menu load sub menu, we compile and load the test program into arduino using the serial interface in the tools menu. We activate the serial monitor sub menu. The results presented indicate that the assembly of the bmp 180 sensor sub assembly was done correctly and that the sensor is working now lets test the display first ill load. The program we used to test the displays operation. We will use the file menu open recent sub menu and load the display code. Next in the sketch menu load sub menu. We compile and load the test program into arduino using the serial interface. The results presented indicate that the assembly of the display sensor sub assembly was done correctly and that the sensor is working as we can see. All subsets are working correctly. What makes the subsets work as a mini weather station is the mini station program. So when loading the program, we tell arduino how to put all these subsets together in a specific mode of operation load the mini station program. We will use the file menu open recent submenu and load the mini station code. Next, in the sketch menu load submenu, we compile and load the test program into arduino using the serial interface. The results presented indicate that the mini station was assembled correctly and that it is working correctly. The meteorological mini station laboratory is a product that can be commercialized if it is professionally encapsulated search the internet for the cost of similar equipment, how to reduce the cost of equipment so that it is competitive.

https://www.youtube.com/watch?v=9gTnuRfjILg