Coder Social home page Coder Social logo

x-weather-station's Introduction

Simple Weather Station and Light detector

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.

Requirements

  • Hardware

    • CC03 microcontroller
    • OD01 OLED Display
    • IP02 interface for connecting core to computer
    • SW01 X-chip with 3 sensors: temperature, humidity, atmospheric pressure
    • BR01 bridge to connect X-chips to Raspberry Pi
    • SL01 UV and Visable light detector
    • Raspberry Pi 3B+
  • libraries

  • 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.

Set-Up

  • 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.

Video Demonstration Here

Graphs of data

alt text

alt text

alt text

x-weather-station's People

Contributors

lawrence-godfrey avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.