Spectrometer reading plugin
Records spectrometer readings from the Adafruit AS7341 spectrometer sensor attached to your Pioreactor.
Available wavelengths:
415nm445nm480nm515nm555nm590nm630nm680nm
This plugin also installs a SQL table, as7341_spectrum_readings, that will store the readings.
Charts
After installation, you can add specific bands as charts. Add spec_415=1, or whatever band(s) you want, to the [ui.overview.charts] section, ex:
Hardware installation
See notes here.
How it works
- In between optical density recordings, the white-light LED on the AS7341 board turns on, and all other LEDs from the Pioreactor's LED channels turn off.
- The light is reflected back towards the board, with some wavelengths being absorbed by the culture.
- All sensors for each wavelength are recorded to MQTT and the SQLite3 database (see below)
- The onboard LED is turned off.
If od_reading is not running, this job samples continuously at the same rate as [od_reading.config].samples_per_second. When od_reading starts, the job switches to dodging mode automatically.
Each wavelength is sent to MQTT under the topics:
pioreactor/<unit>/<experiment>/spectrometer_reading/band_<xxx>
And it is also placed in the SQL table as7341_spectrum_readings.
Using a different LED
You can provide a 5mm LED instead of using the onboard one. We suggest using the following config to accomplish this:
led_current_mA=0
turn_off_leds_during_reading=0
Hardware requirements
- Requires the Adafruit board AS7341 and a StemmaQT 4pin cable.
Vendored dependency
This plugin vendors Adafruit's adafruit_as7341.py module in spectrometer_reading_plugin/_vendor/.
License and provenance are included in:
spectrometer_reading_plugin/_vendor/LICENSE_adafruit_as7341.txtspectrometer_reading_plugin/_vendor/NOTICE_adafruit_as7341.txt
Metadata
Release files for spectrometer-reading-plugin 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spectrometer_reading_plugin-0.4.0.tar.gz | 17.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spectrometer_reading_plugin-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.7 kB
Release files / spectrometer_reading_plugin-0.4.0.tar.gz
| Download URL | spectrometer_reading_plugin-0.4.0.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53ed38a4a000234923f0b6d1d3aba3d8c13c96850d966975b3c629d470462ccc
|
|
BLAKE2b-256 checksum How to use checksums |
ecd1babb0008521f11beb58dc6262a8b8bee3e1fb1799ba5af3142c3b5480d00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / spectrometer_reading_plugin-0.4.0-py3-none-any.whl
| Download URL | spectrometer_reading_plugin-0.4.0-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31e3f0c076fefd2a31fac69ed8b9bff341ab14130968c0a0a7db789b446237f2
|
|
BLAKE2b-256 checksum How to use checksums |
3af1e51320c3bf7b55d81c79f3621da78b8aefba9b09dc7c2240e8cb514de461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|