Skip to main content

Python interface for the automatic data acquisition of spectral data.

Project description

Automatic spectral acquisition

Python interface for the automatic data acquisition of spectral data. Connects to an arduino running a custom program and to an oscilloscope.

Arduino and motor controller

The diagram for the controller of the stepper motor is shown next.

A schematic of the setup:

Calibration process

A initial calibration is necessary for setting the DEFAULT_POSITION (default=0) and CALIBRATION_POSITIONS in automatic_spectral_acquisition\constants.py. This calibration has to be done manually for now, and requires the user to choose a set of points that will be used for further calibrations:

  1. Define a default position and a default wavelength. Ideally DEFAULT_POSITION=0 and a wavelength in the middle of the available range, e.g., 650 nm.
  2. Choose a set of wavelengths (e.g.: [350, 500, 650, 800, 950] nm)
  3. Manually set the monochromator to the default wavelength and start the Arduino code.
  4. Find the associated position by trial and error. Use this values to populate CALIBRATION_POSITIONS.

As long as the following measurements conclude successfully, there won't be necessary to redefine this constants. Even if there is some problem and the motor doesn't return to the default position, if DEFAULT_POSITION=0, the monochromator can be manually set to the default wavelength associated with the default position to return to normal functionality.

After that, the calibration process can be performed using, e.g., spectral config calibrate. The motor will be moved to the set positions and the user will be asked to input the current wavelength value.

At the end of a measurement the motor will return to the default position to guarantee the correct behavior of further measurements.

The calibration parameters are saved to a file and can be reused for every measurement. However, it is recommended to recalibrate the system every session.

Project details


Download files

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

Source Distribution

automatic_spectral_acquisition-0.1.1.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

automatic_spectral_acquisition-0.1.1-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file automatic_spectral_acquisition-0.1.1.tar.gz.

File metadata

File hashes

Hashes for automatic_spectral_acquisition-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c70b3e28658007135d1fdd12d4a10a4ce69783452c4eb52e86c8fe14e616b323
MD5 979f8db97aa6c5bde3a81a44fbec76b4
BLAKE2b-256 468f1d4726ff6ce8321f0874f5f2a500058671a241fe3a36187944f469eb56f2

See more details on using hashes here.

File details

Details for the file automatic_spectral_acquisition-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for automatic_spectral_acquisition-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67a3c47cf6e22b1c241ed8f55adc69e0bb0e1ff163ea7adf33ef1444d494f492
MD5 51ff069708f6c3ed2d80bf69be553151
BLAKE2b-256 5301f4418eb537e436f23c00b4552e32f309f3469a76fc19e745c24ae86a225a

See more details on using hashes here.

Supported by

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