Scientists are writing the first synthetic yeast genome.

Our software interprets the input and regulates the output of the Microbial Remediator. It does this by interacting with processing units which help convert signals that could be interpreted by our software. We programmed the software with Python.

Our software implements class modularity; we created multiple classes for specific functions and they work together systematically to control the hardware. Each class is written in its own .py file, and they are gathered together with the import command in the main.py file.

The PH class reads the pH value given by the pH detector in the water following degradation. It has a get_ph() function that returns the value of pH.

descript

The COLOR class reads the wavelength of the light present in the water in the detection chamber. It has a get_blue()function that prints and returns the color value.

descript

The TOGGLE class regulates the output of the hardware components. It assigns each hardware component to a variable: UPPER_STIR, LOWER_STIR, NAOH_STIR, UPPER_PUMP, SAMPLE_PUMP, LOWER_PUMP, WASTE_PUMP, NAOH_PUMP, VACUUM_PUMP, HEATER_PWR, and E_VALVE. It has a do(self, target, action) function that accepts the parameters of a hardware component and an action(which can be "ON" or "OFF"). By calling toggle.do(), the software can turn on and off any target hardware component.

descript

The AS726X class interacts with AS726X spectral sensors to provide comprehensive control and data acquisition of the light intensity of water in the detection chamber across different wavenlength bands. It can also monitor the temperature of the water. There are two sensors: AS7262, which measures visible light(violet, blue, green, yellow, orange, red); AS7263, which measures near-infrared light(R, S, T, U, V, W bands). The class has multiple methods: virtual_read_register() and virtual_write_register() handle low-level I2C communication through virtual registers; set_measurement_mode() configures continuous or one-shot reading modes; set_gain() adjusts sensor amplification; set_integration_time() controls exposure duration; set_bulb_current(), enable_bulb(), and disable_bulb() manage the illumination source; enable_indicator_led(), disable_indicator_led(), and set_indicator_current() control the status LED; take_measurements() and take_measurements_with_bulb() acquire spectral data; get_calibrated_value() and get_calibrated_values() retrieve calibrated intensity measurements; get_temperature() reads the sensor temperature; soft_reset() reboots the device; init_device() initializes the sensor; individual methods like get_calibrated_violet() through get_calibrated_W() provide channel-specific readings; and get_sensor_type() and get_wavelengths() return device identification and spectral band information. The COLOR class uses the AS726X class to acquire the color value of the water.

descript

descript

descript

descript

descript

descript

descript

descript

descript

descript

descript

descript