Make a Weather Station Using Environmental Sensor

by Jaychouu in Circuits > Sensors

4124 Views, 25 Favorites, 0 Comments

Make a Weather Station Using Environmental Sensor

QQ图片20220921102436.png
QQ图片20220919110847.png
QQ图片20220919110924.png
How UART Protocol Works - Gravity: UART Fiber Optic Transceiver Module

On a daily basis, people use weather forecasts to determine what to wear on a given day or to plan travel or events

However, it only tells temperature in a relatively large range. Sometimes we need environmental parameters in a specific place like a fishpond, greenhouse, an open field, etc. Here I want to know the exact temperatures during a day on my terrace. So I decide to make a weather monitoring station that outputs the real-time data I need. 

I got this environmental sensor from DFRobot that can measure temperature, humidity, pressure, ambient light, and UV, which is well suitable for this project.

This summer is much hotter than previous ones, and many places got record-breaking temperatures of over 40℃. For the sake of convenience, I add a UART fiber optic transceiver module in the project for data transmission, so I don't need to go outside to view data all the time.

Supplies

QQ图片20220921134843.jpg

Hardware Connection

QQ图片2.png
QQ图片1.png

The parts for the data display and the sensor monitoring ends should be connected as the diagrams above.

Assembly - Data Display End

QQ图片20220919133957.png
QQ图片20220919161441.jpg
QQ图片20220919161445.jpg
QQ图片20220921134847.jpg
QQ图片20220919161510.jpg
QQ图片20220919161516.jpg
  1. We need to design the housing first and 3D print it.
  2. Then connect all the modules according to the connection diagram.
  3. Put hardware modules into the housing. Install ESP32 main controller first (please be careful during installation to avoid wire disconnection), then fix the battery on the top of the housing with glue.
  4. Install the UART fiber optic transceiver module on the bottom of the housing
  5. Connect ESP32 to the cable that comes with the OLED transparent display, and tidy it up.
  6. Connect the cable to the display converter.

Make a Frame for the Display

QQ图片20220919155758.png
QQ图片20220919161430.jpg
QQ图片20220919162301.jpg
QQ图片20220921134850.jpg

Next, we need to make a frame for the display. 

  1. Draw the frame and laser cut two acrylic sheets according to the drawing.
  2. Then put the display between the two sheets and join them with super glue.
  3. Install the display frame on the housing, and the display end is done.

Assemly - Sensor Monitoring End

QQ图片20220919133948.png
QQ图片20220919144845.jpg
QQ图片20220919144851.jpg
QQ图片20220919145808.jpg
QQ图片20220919163453.png
  1. Design the housing for the sensor end.
  2. In the same way, connect all the modules according to the connection diagram.
  3. Then we need to make the battery charger and the sensor adhere to the fiber optic transceiver.
  4. Use glue to fix the charger; thread a nylon hex bolt through the upper-right holes of the sensor and transceiver and fasten it with a fit nut to fix the sensor.
  5. Fix the battery on the transceiver with glue, and thread nylon hex bolts through the holes in the two corners of the fiber optic module and fasten them so that the structure can keep steady on flat.
  6. As shown in the figure below, the structure has three layers. Now put the structure into the housing, and put on the cover.

All done! Let's have it a go.


Test the Weather Monitoring Station

QQ图片20220921102426.png
QQ图片20220921102433.png

Now we place the tripod holding the sensor end outside.

  1. Connect the sensor end to the display end with optic-fiber cable.
  2. Then we can view the real-time temperature and humidity data at the display end.
  3. If there is no data shown on your display, try exchanging pins TX and RX of one end.

The Codes are uploaded to Github: https://github.com/DFRobot/WeatherStationSHTC3

Extension

FUPLB0ZL9E7WSYG.png

With the multi-functional environmental sensor, the weather station can also measure air pressure, ambient light and UV intensity besides temperature and humidity, so we can use our brains to make the most of it. For example, we can apply it to greenhouse planting monitoring, fishpond status view, laboratory experiments, etc. But we need to take good care of the display lest a backlight bleed may occur at the damaged corner and thus affect the display effect.

Thanks for reading, feel free to leave your comments if you have any other good ideas!


3D files for this projects are here.