Metadata-Version: 2.1
Name: spectrometer-reading-plugin
Version: 0.2.2
Summary: Take spectrometer readings (between OD readings) from the Adafruit AS7341 attached to your Pioreactor
Home-page: https://github.com/Pioreactor/spectrometer-reading-plugin
Author: Kelly Tran, Pioreactor
Author-email: cam@pioreactor.com
License: MIT
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: adafruit-circuitpython-as7341

## Spectrometer reading plugin

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

Available wavelengths:

- ![#7600ed](https://via.placeholder.com/15/7600ed/7600ed.png) `415nm`
- ![#0028ff](https://via.placeholder.com/15/0028ff/0028ff.png) `445nm`
- ![#00d5ff](https://via.placeholder.com/15/00d5ff/00d5ff.png) `480nm`
- ![#1fff00](https://via.placeholder.com/15/1fff00/1fff00.png) `515nm`
- ![#b3ff00](https://via.placeholder.com/15/b3ff00/b3ff00.png) `555nm`
- ![#ffdf00](https://via.placeholder.com/15/ffdf00/ffdf00.png) `590nm`
- ![#ff4f00](https://via.placeholder.com/15/ff4f00/ff4f00.png) `630nm`
- ![#ff0000](https://via.placeholder.com/15/ff0000/ff0000.png) `680nm`


This plugin also installs a SQL table, `as7341_spectrum_readings`, that will store the readings.

### How it works

In between optical density recordings, the white-light LED on the AS7341 board turns on. The light is reflected back towards the board, with some wavelengths being absorbed by the culture. All sensors for each wavelength are recorded. The LED is turned off.

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`.



### Hardware requirements

 - Requires the [Adafruit board AS7341](https://www.adafruit.com/product/4698)
