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.0.tar.gz (13.0 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.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for automatic_spectral_acquisition-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c0f50e88bfac01b22ac434be24277530559bde4e35f5cb21b8e0cc2fd7eda44
MD5 062f20d6623d8b384a76abe291bfb5d5
BLAKE2b-256 2735e694abb5440d1b80788d4126791a069ac9722f61e890ea68dcc92810d2c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for automatic_spectral_acquisition-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 790ef711a3e7e278ecad174a72ac0c4ca369fa72f535c999a7301029e137d8c1
MD5 476af302719477d7d82f3f126d4fb15a
BLAKE2b-256 0fdb0965e9fb965dda2a87aa57363d48aa80275fd051158ffff7cfd7e750a56d

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