Skip to main content

Python driver for 32-bit microscope synchronization device.

Project description

microsync — Python driver for microscope synchronization device

Python driver for microsync — a universal 32-bit Arduino Due-based triggering device. Control lasers, cameras, and timing with microsecond precision.

Install

Requires Python 3.7+ and pyserial (installed automatically):

pip install microsync

Quick start

Upload the microsync firmware to an Arduino Due, then:

from microsync import SyncDevice

sd = SyncDevice("COM4")   # or "/dev/ttyUSB0" on Linux
sd.pos_pulse("D8", 1000, ts=1000)   # 1 ms pulse on D8 after 1 ms delay
sd.go()

Features

  • Microsecond-precision event scheduling (pulses, toggles, camera triggers)
  • Laser shutter and interlock safety logic
  • Acquisition modes: continuous, stroboscopic, ALEX
  • Interactive event visualization (Bokeh)
  • Context manager for jitter-free batch commands

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

microsync-2.6.3.tar.gz (254.2 kB view details)

Uploaded Source

Built Distribution

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

microsync-2.6.3-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file microsync-2.6.3.tar.gz.

File metadata

  • Download URL: microsync-2.6.3.tar.gz
  • Upload date:
  • Size: 254.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for microsync-2.6.3.tar.gz
Algorithm Hash digest
SHA256 20220d8441541fc6e16dbd94b0d0f7d070739239d6bd6ae3330363e05c3062ee
MD5 9d757d3aab9421a2085f01286bb2b948
BLAKE2b-256 27a5f91141d2535ebe25559d71501cb2c1adcc6534fe10cace88619628a3c6db

See more details on using hashes here.

Provenance

The following attestation bundles were made for microsync-2.6.3.tar.gz:

Publisher: publish-pypi.yml on stjude-smc/microsync

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file microsync-2.6.3-py3-none-any.whl.

File metadata

  • Download URL: microsync-2.6.3-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for microsync-2.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cd953136025a2f9b3fc7f6ec49726561e95c9da6b653694397ab5ea7f32b9acd
MD5 8cbfe1e1787d02041d6e09b3fb641fe7
BLAKE2b-256 fcb555ef7415c07b8cafbac18a44823796c2203508dc68362004e872f70ef222

See more details on using hashes here.

Provenance

The following attestation bundles were made for microsync-2.6.3-py3-none-any.whl:

Publisher: publish-pypi.yml on stjude-smc/microsync

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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