Skip to main content

Theia MCR motor control functions and calculations

Project description

Theia Technologies IQSmart(R)

Theia Technologies offers a MCR600 motor control board for interfacing with Theia's motorized lenses. This board controls focus, zoom, iris, and IRC filter motors. It can be connected to a host comptuer by USB, UART, or I2C connection. This IQSmart module allows the user to easily convert from engineering units (meters, degrees) to motor steps applicable to Theia's motorized lenses. For sending thess motor steps to the contorl board to move the lens, install TheiaMCR (TheiaMCR on Githum)

Features

python Engineering units can be converted to motor steps and vice versa. The calculations use the design data for the lens but it is possible to load a calibration data file as well.

Motor steps to engineering units

  • zoomStep2FL: calculate the lens focal length from the current focal length motor step.
  • focusStep2OD: calculate the object distance at the current focal length from the current focus motor step.
  • irisStep2NA, irisStep2FNum: calculate the numeric aperture or F/# at the current focal length from the current iris step.

Engineering units to motor steps

  • FL2ZoomStep: calculate the zoom motor step for a focal length (in mm)
  • OD2FocusStep: calculate the focus motor step for a given zoom motor step and object distance (in m)
  • ODFL2FocusStep: calculate the focus motor step for a given focal length (in mm) and object distance (in m)
  • NA2IrisStep: calculate the iris step from the numeric aperture at the current focal length (in mm)
  • fnum2IrisStep: calculate the iris step from the F/# at the current focal length (in mm)
  • AOV2MotorSteps: calculate the focus and zoom motor steps to support the requested angle of view (in deg). This depends on the object distance as well and image sensor size.
  • FOV2MotorSteps: calculate the focus and zoom motor steps to support the field of view (in m). This depends on the object distance as well and image sensor size.

Conversion functions

  • calcAOV: calculate the angle of view (in deg) from a focal length (in mm).
  • calcFOV: calcualte the field of view (in m) from the focal length (in mm) and object distance (in m)
  • calcDOF: calculate the minimum and maximum object distances for acceptable focus at the given focal length (in mm), aperture (in iris motor step position), and focused object distance (in m).

Camera back focal length compensation

  • BFLCorrection: apply a correction to any focus motor step position to compensate for tolerances in the camera side lens mount. BFL correction points are made by adjusting the lens for best focus from the calculated focus step position. The correction is calcualted from a curve through several of these points.
  • addBFLCorrection, removeBFLCorrectionByIndex: add or remove compensation points to the BFL correction curve.

Other support functions

  • NA2FNum: convert numeric aperture to F/#
  • FNum2NA: convert F/# to numeric aperture
  • FOV2AOV: convert field of view at a given object distance to angle of view

This software module is in beta test mode. There may be bugs and the functions may change if corrections or enhancements are required. Please send any comments about issues to the contact information below.

License

Theia Technologies proprietary and confidential license Copyright 2023 Theia Technologies

Contact information

For more information contact: Mark Peterson at Theia Technologies mpeterson@theiatech.com

Revision

v.1.1.1

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

IQSmart-1.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

IQSmart-1.1.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file IQSmart-1.1.1.tar.gz.

File metadata

  • Download URL: IQSmart-1.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for IQSmart-1.1.1.tar.gz
Algorithm Hash digest
SHA256 eda6cc03102bee0d972393e8e83b46258f87080d2f17e27c0c54f7af6677256c
MD5 9ec51c65615dbe06b34fe3f7bdb374d5
BLAKE2b-256 c1f2b65728905b19c234af9c70f0057255ed8bfa23a50363482024e447fc4c93

See more details on using hashes here.

File details

Details for the file IQSmart-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: IQSmart-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for IQSmart-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d56e89687c472293a830621a0c11d73a492317c5e5703c3bbc9793caa37666b
MD5 a07316930bd0bc63741bdbd922ab05f7
BLAKE2b-256 537564097110c3fd097770c75c243f0f002f572d171c7625a2cfc0346a2fb282

See more details on using hashes here.

Supported by

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