Skip to main content

Theia MCR motor control functions

Project description

Theia Technologies motor control board interface

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.

Features

python The MCR600 board has a proprietary command protocol to control and get information from the board. The protocol is a customized string of up to 12 bytes which can be deciphered in the MCR600 documentation. However for ease of use, Theia has developed this Python module to format the custom byte strings and send them to the board. The user can request the focus motor to move 1000 steps for example. The focusRel function will convert this request to the appropriate byte string and send it over USB connection to the MCR control board. This will cause the lens motor to move 1000 steps.

Quick start

This module can be loaded into a Python program.
Theia's motorized lens should be connected to the MCR600 board and the board should be connected to the host computer via USB connection thorugh a virtual com port.

Functions

Initialization functions

  • MCRInit: initialize the board
  • focusInit, zoomInit, irisInit, IRCInit: initialize the appropriate motor (setup)
  • focusHome, zoomHome, irisHome: move the motor to the home position

Motor movement functions

  • focusAbs, zoomAbs, irisAbs: move the motor to the home position then to an absolute step number
  • focusRel, zoomRel, irisRel: move a relative number of steps
  • IRCState: set the filter switch state (A/B)

Information functions

  • readFWRevision: read board firmware revision
  • readBoardSN: read board serial number

License

Theia Technologies BSD license Copyright 2023 Theia Technologies

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Contact information

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

Revision

v.1.0.7

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

TheiaMCR-1.0.7.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

TheiaMCR-1.0.7-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file TheiaMCR-1.0.7.tar.gz.

File metadata

  • Download URL: TheiaMCR-1.0.7.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for TheiaMCR-1.0.7.tar.gz
Algorithm Hash digest
SHA256 0dae16488334547408c2b91bd9e013db68c5b64b00b2d4168be6161083172d76
MD5 06ebf585d5af229a8220e387c3cb83b6
BLAKE2b-256 0c590cb5a4e89691ee96bb192f86868c7947dfbd527bf00ea70ec52c4e2f966d

See more details on using hashes here.

Provenance

File details

Details for the file TheiaMCR-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: TheiaMCR-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for TheiaMCR-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a1733e6790b9799f2d410bb5d5f2b28f344bd457991c1007004517f8ad840e1b
MD5 f98245c40cfb86c91ac06b495eb78250
BLAKE2b-256 cfdea75afa30b71afe50b62fd79e84414da76ef02fb441fff0c58c8ed669124e

See more details on using hashes here.

Provenance

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