With the ride of the outdoor activities, Surfing, paragliding, kites, hot air balloons and other activities have attracted more and more attention. Those activities are more or less affected by the wind speed, and the too strong or too weak wind is not suitable. I want to make a project named wind weather station to measure the wind anytime in the wild.
Wind weather station provide a project to measure wind speed everywhere, also it can measure other parameters if need. It has the ability to work alone without control in the field.
Wind weather station report the data with A9G to the internet, and the data can be accessible all over the world.
There is an issue that some asked it has no rain sensor. I did not plan to measure the rain, but the station provides two expandable interfaces for creating other sensors like the rain sensor, UV sensor and so on.
I reprogramming it for running and monitoring long time. Drive the weather station to wake up every thirty minutes for reading the measures and transmitting the readings to ThingSpeak. For transmitting limit that only int data can be sent, that the reading of temperature and humidity would be turned to 10 times. Plug the SIM card into the board for internet connecting.
Now, I have put the station on the roof. It was starting to monitor the wind and other readings.
As your saw in the store, we provide the control board and anemometer that basic of the weather station. To better, I decided to make it to a waterproof, pretty one.
First, a wind direction sensor is necessary for the weather station, so I purchased one online. And in the process of purchasing, I had met an issue about the kind of wind direction sensor: what kind should I choose, the current output one, voltage output one, and support RS485 one? According to the board and schematic, the one which power by 5V and output 5V is the best choice.
In fact, the interface for PM2.5 on board provides the 5V, the GND, one channel ADC and so on, which is also suitable for wind direction interface. As the picture, the sensor outputs 0~5V level and the microcontroller will receive 0~3.3V level.
After I received the indicator, I had to remake the interface that the original interface does not work.
I purchased one UV sensor grove in seeed, which is an expansion to measure the intensity of incident ultraviolet(UV) radiation. For creating the value which displays on the OLED of the weather station, I tried to connect the UV sensor grove to the expansion interface of the station. Following the wiki of the UV sensor grove, I have finished the programming. Now, show the result I tried.
I had prepared a case to install the PCB, but it was hard because the interfaces are out of the board. To installed the PCB board to a case, I had to modify it.
In the debugging, I found the display was turned on and had no way to turn it off, it increased the consumption. In order to reduce the consumption and improve the battery life of the weather station, I designed a button to turn off the display screen. At the same time, I deleted the power LED on board. I added a solar panel interface to the board, which can plug the solar panel into it to charge the battery.
Since the first debug, the sensors were working fine, and the measurements could be displayed on the LCD. After it, I would test the A9G module working, I had prepared a SIM card for the A9G module to connect the network.
First, I had to program the board to drive the A9G module running. I spent some time programming for the microcontroller to control the A9G module power on and communicate with it by UART. Used the SERIAL monitor of Arduino IDE to send some AT command, I could get the reply such as ”OK”, that prove the communication between the microcontroller and A9G module is well.
After it, I began to try transmitting the data to MQTT by the A9G module. Referring the guide of A9G module, I use the serial monitor to send the commands for MQTT one by one that is succeed to transmit the data and I could receive the transmitted data by other MQTT client. But it is worth noting that the GSM antenna must be connected, otherwise the module could not be connected to the network that I wasted a lot of time because of it.
Next, I programmed the commands to the code, to drive the board transmitting data to MQTT automatically.
After completing the verification experiment, I designed a board based on the components used. The controller and sensors used are integrated on the board. This would be the first version of this project. After I finished the design, I entrusted the factory to make it for me. Now, I have got the first version of wind weather station, I can’t wait to power on now.