So in this article, I will show you how to do a lot of cool software projects. We showed you how to getting started with Raspberry Pi weather station with sense Hat. However, until now, we have not done more additional hardware. Let’s change this. Today, we are going to do something more hardware-intensive: we show you how to set up a Raspberry Pi weather station that can be accessed over the Internet. We will not push this raspberry pi to this project’s space, but we can use the Sense HAT’s ability to do something cool on Earth. In order to record all environmental information, Sense HAT has designed many sensors that can detect temperature.
There may be a thermometer in your home so when you’re there you do not need a sensation hat to know the temperature. But with Raspberry Pi and Sense HAT working together, we can put this information online – to give your family a whole new smart feature.
In this article, we found Sense HAT. Now let’s see how we program. In this article, we will see how to get data (temperature, pressure, humidity) from the environmental sensors to create a simple Weather station.
Sense HAT comes with a Python library developed by the Raspberry Pi team. This Python library called sense Hat, if you are not familiar what is Sense Hat then please have a look on my previous article.
Getting start with sense Hat and Build Astro Pi
How to program sense hat with python programming?
So let’s Get Started
The following components are used for this project:
- Raspberry Pi 3
- Sense Hat
- HDMI Cable
Looking for a great introduction to Raspberry Pi? Try the Zagros Raspberry Pi 3 Starter Kit which has everything you need to begin discovering Raspberry Pi.
Weather station based on environmental sensor readings. The value of getting environmental sensors is very simple. Just create a perceptual HAT object and get the sensor values as follows:
from sense_hat import SenseHat
sense = SenseHat()
temperature = sense.get_temperature_from_humidity()
humidity = sense.get_humidity()
pressure = sense.get_pressure()
The temperature is in degrees celcius, the humidity is in percent and the pressure in millibars.
Weather Station 0.1.0 – OpenGL 2.1 (Raspbian Jessie)(Download)
To start the Weather station, unzip the file and launch GeeXLab. The Weather station demo will load automatically. The weather_station_src / folder can be found in the weather station source code (Python).
The weather station demo is also available in the gl-21/rpi/sense_hat_python/weather_station_src/ folder of GeeXLab’s code sample pack.
If the Sense HAT is connected directly to the Raspberry Pi’s GPIO connector, the temperature/humidity sensor is on the Sense HAT board and shows a higher value than the actual value.
If “Sense HAT” is directly connected to the Raspberry Pi’s GPIO connector, the temperature/humidity sensor is located on the Sense HAT board and shows a higher value than the actual value.
For example, in my lab, the temperature is about 20 ° C and the temperature sensor is about 30 ° C …
This error is caused by the heat generated by the Raspberry Pi board. To solve this problem, I used a cable (40-pin connector + 40-pin male-male-300mm jumper) to separate the Sense HAT on the RPI from the RPi:
And It will with patch, the temperature is look good.
So,It will work just great if you face any problem with then please do comment write below!
Visit similar tutorials on Raspberry pi
How to Build your own Super Computer with Raspberry Pi 3 Cluster
Build Super Computer with 5$ Raspberry pi zero using Cluster HAT
How to make a Raspberry Pi bitcoin mining rig
Convert Any Printer into a Wireless Printer with a Raspberry Pi zero (10$ Cost)
Build AYI Google Voice Home with Raspberry Pi Under 35$