GithubHelp home page GithubHelp logo

venkyr / air-monitoring-hat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sbcshop/air-monitoring-hat

0.0 0.0 0.0 7.02 MB

SB Components developed the Air Monitor HAT for Raspberry Pi an open-source portable sensor that has the ability to provide the level of quantity of the suspended particulates with their mass.

Python 100.00%

air-monitoring-hat's Introduction

Air Monitoring HAT

SB Components developed the Air Monitor HAT for Raspberry Pi an open-source portable sensor that has the ability to provide the level of quantity of the suspended particulates with their mass.

Buy it from : https://shop.sb-components.co.uk/products/air-monitoring-hat-for-raspberry-pi

Pinout (Internally connected via header)

Peripheral Pins Raspberry Pi Pins
5V 5V
GND GND
PMS RX GPIO14
PMS TX GPIO15
PMS SET GPIO27
PMS RESET GPIO17
Oled SDA GPIO2
Oled SCL GPIO3

Enable I2C and Serial Interface

Open a terminal and run the following commands to enable I2C and Serial:

  • sudo raspi-config

Choose Interfacing Options -> I2C ->yes

  • sudo raspi-config

Choose Interfacing Options -> Serial -> No -> Yes

Testing

  • Stack Air Monitoring HAT on top of Raspberry Pi GPIO Header pins.
  • Before test, please install required dependancy by running below command.

pip3 install pillow

Clone Repository

git clone https://github.com/sbcshop/Air-Monitoring-HAT.git

cd Air-Monitoring-HAT

Run GUI by running below command:

python3 Air_Monitoring_GUI.py

Select COM port from above GUI ("/dev/ttyS0" in case of default connection), and click on the start button to start Real-Time data from the sensor on Graph and on Oled Display.

You can also use these two examples and modify it easily :

1.) display_on_oled_example.py :- To print the sensor data on Oled Display.

2.) read_example.py : To print the sensor data on Python shell or Terminal.

For detailed information please visit wiki of this repository.

https://github.com/sbcshop/Air-Monitoring-HAT/wiki/Wiki

air-monitoring-hat's People

Contributors

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