Coder Social home page Coder Social logo

dust_sensor's Introduction

dust_sensor

Arduino Mega connected to a dust sensor which triggers output if adjustable dust level is exceeded.

How it works

On a hardware level

  • The dust sensor is power cycled at the start of the program. This is done via a PNP BJT (active low).
  • A MOSFET (Active HIGH) is activated when averaged measurements exceed desired threshold level. This shorts an external input.
  • A green and red LED are used to indicate threshold being exceeded (or not exceeded).
  • The dust levels are communicated by the Honeywell HPMA115S0 via UART protocol.
  • The Arduino Dust RX pin is pulled down toward ground via a 2k4 resistor. The TX is pulled up via a 2k4 resistor. This is to accomodate the difference in the communication voltage between the Arduino and the HPMA115S0. Arduino communicates via 5V and the HPMA via 3.3V.
  • This is indicated via the schematic DESIGN_SCHEMATIC.pdf.

On a software level

  • The third party hpma115S0.h Arduino library is used to communicate with the sensor. https://github.com/felixgalindo/HPMA115S0
  • The main code is in the Arduino sketch dust_sensor.ino
  • The measurements are taken in bursts, separated by one minute break. The sensor is powered off in between bursts to preserve its lifetime.

Monitoring

todo

Remote Control

todo

Web User Interface

  • frontend/ contains a basic react application created with npx create-react-app.
  • The repository does not contain the module files to run the react app. Run the command npm install while in the directory to install necessary dependencies which are listed in package.json.
  • Once it's installed, running npm start in the command line will start the application and open it in a localhost browser window.
  • More information on scripts is provided in the README file provided by react in frontend/

dust_sensor's People

Contributors

jamesmoessis avatar

Stargazers

Sebastiaan Schimmel avatar

Watchers

 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.