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:
- Define a default position and a default wavelength. Ideally
DEFAULT_POSITION=0and a wavelength in the middle of the available range, e.g., 650 nm. - Choose a set of wavelengths (e.g.: [350, 500, 650, 800, 950] nm)
- Manually set the monochromator to the default wavelength and start the Arduino code.
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file automatic_spectral_acquisition-0.1.1.tar.gz.
File metadata
- Download URL: automatic_spectral_acquisition-0.1.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c70b3e28658007135d1fdd12d4a10a4ce69783452c4eb52e86c8fe14e616b323
|
|
| MD5 |
979f8db97aa6c5bde3a81a44fbec76b4
|
|
| BLAKE2b-256 |
468f1d4726ff6ce8321f0874f5f2a500058671a241fe3a36187944f469eb56f2
|
File details
Details for the file automatic_spectral_acquisition-0.1.1-py3-none-any.whl.
File metadata
- Download URL: automatic_spectral_acquisition-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67a3c47cf6e22b1c241ed8f55adc69e0bb0e1ff163ea7adf33ef1444d494f492
|
|
| MD5 |
51ff069708f6c3ed2d80bf69be553151
|
|
| BLAKE2b-256 |
5301f4418eb537e436f23c00b4552e32f309f3469a76fc19e745c24ae86a225a
|