All Projects → dhhagan → opcn2

dhhagan / opcn2

Licence: MIT license
C++ Library for the Alphasense OPC-N2 particle counter

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to opcn2

particle-cookbook
A collection of programming snippets, tips, and tricks for developing with Particle IoT devices
Stars: ✭ 20 (+42.86%)
Mutual labels:  particle-photon, particle-electron
Blynk Server
Blynk is an Internet of Things Platform aimed to simplify building mobile and web applications for the Internet of Things. Easily connect 400+ hardware models like Arduino, ESP8266, ESP32, Raspberry Pi and similar MCUs and drag-n-drop IOT mobile apps for iOS and Android in 5 minutes
Stars: ✭ 8 (-42.86%)
Mutual labels:  particle-photon
Blynk Library
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
Stars: ✭ 3,305 (+23507.14%)
Mutual labels:  particle-photon
po-util
Classic Edition of po-util: The Ultimate Local Particle Experience for Linux and macOS
Stars: ✭ 51 (+264.29%)
Mutual labels:  particle-photon
sps30
Sensirion SPS30 driver for ESP32, SODAQ, MEGA2560, UNO, ESP8266, Particle-photon on UART OR I2C coummunication
Stars: ✭ 57 (+307.14%)
Mutual labels:  particle-photon

opcn2

C++ Library for the Alphasense OPC-N2 particle counter

Alphasense OPC-N2

About

The Alphasense OPC-N2 is an optical particle counter for use in indoor and outdoor particle monitoring. This library makes it easy to operate the OPC-N2 from a Particle Photon, Particle Electron, or Arduino (not yet tested).

Example Usage

Three examples are located in the examples folder.

  1. \run-the-opc: shows you the basics of how to use the library with a Particle photon/electron.
  2. \tests: runs through a solid portion of the methods and prints the results to the console.
  3. \wifi-opc: sets the OPC and sets the PM data as public variables.

Documentation

API documentation can be found in the docs folder.

Issues/Questions

If there is a bug or other issue with the code, please create an issue on this git repo. If you have general questions, please reach out to me via PM over github or email ([email protected]).

Recommended Components

In order to run the Alphasense OPC-N2 from a Particle Photon or Electron, you will need the Alphasense OPC-N2 and one of the microcontrollers from Particle. You will also need the appropriate 30 AWG wiring and either a breadboard, or alternate way to connect the OPC-N2 to the Particle controller.

Circuit Diagram

Connect according to the table below, and as seen in the figure below.

OPC-N2 Pin Number Particle Photon Pin
1 (GND) GND
2 (/CS) A2
3 (MOSI) A5
4 (MISO) A4
5 (CLK) A3
6 (VCC) VIN

Alphasense OPC-N2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].