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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spectrometer_reading_plugin-0.4.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spectrometer_reading_plugin-0.4.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file spectrometer_reading_plugin-0.4.0.tar.gz.

File metadata

File hashes

Hashes for spectrometer_reading_plugin-0.4.0.tar.gz
Algorithm Hash digest
SHA256 53ed38a4a000234923f0b6d1d3aba3d8c13c96850d966975b3c629d470462ccc
MD5 051573bddce6184275725ed4d3ab0309
BLAKE2b-256 ecd1babb0008521f11beb58dc6262a8b8bee3e1fb1799ba5af3142c3b5480d00

See more details on using hashes here.

File details

Details for the file spectrometer_reading_plugin-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spectrometer_reading_plugin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31e3f0c076fefd2a31fac69ed8b9bff341ab14130968c0a0a7db789b446237f2
MD5 ffd3e3bb699d296ccc0f3a2726d22149
BLAKE2b-256 3af1e51320c3bf7b55d81c79f3621da78b8aefba9b09dc7c2240e8cb514de461

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.2.9

2 files

0.2.8

1 file

0.2.7

1 file

0.2.6

1 file

0.2.5

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.0

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page