Skip to main content

Spectrometer reading plugin

Records spectrometer readings from the Adafruit AS7341 spectrometer sensor attached to your Pioreactor.

Available wavelengths:

  • #7600ed 415nm
  • #0028ff 445nm
  • #00d5ff 480nm
  • #1fff00 515nm
  • #b3ff00 555nm
  • #ffdf00 590nm
  • #ff4f00 630nm
  • #ff0000 680nm

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:

ui of configuration

Hardware installation

See notes here.

How it works

  1. 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.
  2. The light is reflected back towards the board, with some wavelengths being absorbed by the culture.
  3. All sensors for each wavelength are recorded to MQTT and the SQLite3 database (see below)
  4. 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

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.txt
  • spectrometer_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)

Source distribution for spectrometer-reading-plugin 0.4.0
File Size Uploaded
spectrometer_reading_plugin-0.4.0.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spectrometer-reading-plugin 0.4.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.13

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page