Simple software which uses various X-chips from XinaBox to read in the current temperature, humidity, atmospheric pressure, UV light and visiable light using sensors and display this data on an OLED screen while also saving it to a csv file.
- luma.core and luma.oled libraries
- bme280 python library
- VEML6075 python library
When using the Raspberry Pi, the sensors and display are connected using the BR01 Bridge, which can be easily connected to the GPIO pins on the Pi. If you don't want to use the Pi, the CC03 microcontroller can be used instead, which can be connected via USB to your computer using the IPO2.
We install everything using pip3, since the VEML6075 libraries can only be used with python3.
sudo apt install python3-dev python3-pip libfreetype6-dev libjpeg-dev build-essential libopenjp2-7 libtiff5 python3-smbus i2c-tools -y
git clone https://github.com/adafruit/Adafruit_Python_GPIO.git
sudo pip3 install adafruit-circuitpython-VEML6075
sudo pip3 install RPi.bme280
sudo pip3 install luma.core
sudo -H pip3 install --upgrade luma.oled
- In order to use i2c on your Pi you will also need to enable it using
sudo raspi-config
Dew Point is the highest possible temperature at which water vapor can condense to form dew. For example, if the relative humidity in your room is high, you can observe dew forming on the surface of the window. This happens because the temperature in the vicinity of the window has dropped below the dew point.
Calculating the dew point can be helpful in many areas:
- Meteorology
- Aviation - the dew point temperature is calculated to assess the probability of a carburetor icing, or fog appearing
- Agriculture - to sustain optimal humidity in a greenhouse and to avoid water condensation on the plants
- Technology - dew point meters are used in the generation and usage of various technical gases.
- Medicine - e.g. monitoring of the sterilization process
The python program calculates the dew point from the temperature, humidity and atmospheric pressure using this formula, where the wet bulb temperature is approximated using a formula in this scientific journal.
The Cloud base height is distance from see level to the base of a cloud. The cloud base height is calculated using the approximation shown here. This is obviously also useful to know, especially in aviation.