Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Rtl8821cu | 1,263 | 4 months ago | 118 | gpl-2.0 | C | |||||
Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux | ||||||||||
R8152 | 1,207 | 3 months ago | 100 | gpl-2.0 | C | |||||
Synology DSM driver for Realtek RTL8152/RTL8153/RTL8156 based adapters | ||||||||||
Androbd | 1,026 | 4 days ago | 66 | gpl-3.0 | Java | |||||
Android OBD diagnostics with any ELM327 adapter | ||||||||||
Pi Pwnbox Rogueap | 645 | 3 years ago | gpl-3.0 | Shell | ||||||
Homemade Pwnbox :rocket: / Rogue AP :satellite: based on Raspberry Pi — WiFi Hacking Cheatsheets + MindMap :bulb: | ||||||||||
Libcec | 610 | 10 months ago | 1 | February 27, 2018 | 125 | other | C++ | |||
USB CEC Adapter communication Library http://libcec.pulse-eight.com/ | ||||||||||
Android Arsenal.com | 532 | 3 years ago | 2 | HTML | ||||||
Source to android-arsenal.herokuapp.com | ||||||||||
Gimx | 452 | 2 years ago | 61 | gpl-3.0 | C | |||||
The GIMX software. | ||||||||||
88x2bu | 396 | 4 months ago | other | |||||||
Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets | ||||||||||
8814au | 321 | 3 months ago | 27 | other | C | |||||
Linux Driver for USB WiFi Adapters that are based on the RTL8814AU Chipset | ||||||||||
Daemonbite Retro Controllers Usb | 227 | 7 months ago | 16 | gpl-3.0 | C++ | |||||
A collection of retro controller USB adapters (SNES, NES, Mega Drive/Genesis, Master System, Atari, Commodore, Amiga and Amiga CD32) |
Python library for operating the Alphasense OPC-N2 Optical Particle Counter using a Raspberry Pi (or other linux device). Full documentation can be found here.
One of the following, depending on whether you use GPIO pins or a SPI-USB adapter:
If you wish to build the local documentation or run unittests, there are a few additional dependencies that are required including:
The complete list can be found in requirements-dev.txt
.
For use on the Raspberry Pi (or any other linux device?), install via pip:
$ pip install py-opc [--upgrade]
If you are using the SPI-USB adapter only, you will also need to install pyusbiss
. This can be done as follows:
$ pip install pyusbiss
Depending on your python setup, you may need to use pip3
instead of pip
to install for python3+:
$ pip3 install pyusbiss
If you are using the GPIO pins to communicate with the OPC-N2, you must download the requirement py-spidev
as follows:
$ pip install git+https://github.com/doceme/py-spidev.git
This library is licensed under the MIT license. The full text of the license can be found in this repository at LICENSE.txt.
Full documentation can be found here.
You can also build the documentation by navigating to the docs
directory and issuing the command:
$ make html
To quickly get up and running, follow one of the two examples:
Use if you are using the GPIO pins in conjunction with py-spidev
import spidev
import opc
from time import sleep
spi = spidev.SpiDev()
spi.open(0, 0)
spi.mode = 1
spi.max_speed_hz = 500000
alphasense = opc.OPCN2(spi)
# Turn the opc ON
alphasense.on()
sleep(1)
# Read the information string
print (alphasense.read_info_string())
# Read the histogram
print (alphasense.histogram())
# Turn the opc OFF
alphasense.off()
Use this approach if you have connected your RPi to the OPC-N2 via a SPI-USB adapter.
NOTE: Currently, this method is only supported on python3+ due to limitations in the pyusbiss
library.
from usbiss.spi import SPI
import opc
from time import sleep
# Build the connector
spi = SPI("/dev/ttyACM0")
# Set the SPI mode and clock speed
spi.mode = 1
spi.max_speed_hz = 500000
alpha = opc.OPCN2(spi)
# Turn on the device
alpha.on()
sleep(1)
# read the information string
print (repr(alpha.read_info_string()))
# Read the histogram
alpha.histogram()
# Turn the device off
alpha.off()