Skip to main content

Programmatically control Norsonic Nor1029

Project description

nor1029-controller

Programmatically control Norsonic Nor1029

The Nor265(A) microphone boom / turntable can be controlled by its proprietary Nor1029 software (see downloads section of product page). You can instead control the hardware programmatically over serial using this library.

Install

pip install nor1029-controller

Usage

from nor1029_controller import Nor265

with Nor265() as nor:
    nor.rotate(180, speed=10, acceleration=2)

API

Nor265(port?, timeout?)

port

The serial port to connect to.

timeout

Timeout for operations in seconds.

Default: 300 (5 minutes)

nor

Nor265 instance.

.angle

readonly

.rotations

readonly

Optional parameters will default to whatever was previously set.

.rotate(angle, speed?, acceleration?)

.rotate_relative(angle, speed?, acceleration?)

.sweep(start_angle, stop_angle, duration, acceleration?)

Oscillate between two angles.

.start_continuous_rotation(direction, speed?, acceleration?)

from nor1029_controller import Nor265, RotationDirection
import time

with Nor265() as nor:
    nor.start_continuous_rotation(
        direction=RotationDirection.CLOCKWISE,
        speed=10,
        acceleration=2
    )

    # Rotate for 5 seconds
    time.sleep(5)

    nor.stop()

.start_rotate(angle, speed?, acceleration?)

.start_rotate_relative(angle, speed?, acceleration?)

.start_sweep(start_angle, stop_angle, duration, acceleration?)

The start_* methods will return when the movement starts, while the regular methods will also wait for the movement to finish.

.stop()

Stop any ongoing movement.

.go_home()

Rotate back to the home position.

.is_moving

readonly

.close()

If you're not using a context manager, you should instead call this method when you are done.

from nor1029_controller import Nor265

nor = Nor265()

nor.rotate(180, speed=10, acceleration=2)

nor.close()

RotationDirection

Enum

  • CLOCKWISE
  • COUNTER_CLOCKWISE

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

nor1029_controller-0.3.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

nor1029_controller-0.3.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file nor1029_controller-0.3.0.tar.gz.

File metadata

  • Download URL: nor1029_controller-0.3.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for nor1029_controller-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a0d7ef8f62992c547a0d2fbfd477b5c468ba845e0fa93e063401473284d0e52c
MD5 2d1d15a33e6b9a648323ddf1e1c3ec40
BLAKE2b-256 f1ae1867ff278d20be80d1edab2458f1858b7df37060864e97a06f1f6fde20be

See more details on using hashes here.

File details

Details for the file nor1029_controller-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nor1029_controller-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cc7a070a821b411407bca6edfa7055491da5099aae8341f3a27d24fcb8d6512
MD5 e35ca0021afe11f299339487b88d4f1d
BLAKE2b-256 0f04e91f32f22bfca60f8539135b6e33dd0018bcba4cf69f213e2329f59336bc

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