Skip to main content

dynamixel-controller

dynamixel-controller is a Python library designed from the ground up to work with any Dynamixel motor on the market with few to no modifications.

Installation

Use the package manager pip to install dynamixel-controller.

pip install dynamixel-controller

Usage

Import:

from dynio import *

Port handling:

dxl_io = dxl.DynamixelIO('portname') # your port for U2D2 or other serial device

Pre-made motor declarations:

See documentation for full list of motors. See below for sample:

ax_12 = dxl_io.new_ax12(1)       # AX-12 protocol 1 with ID 1
mx_64_1 = dxl_io.new_mx64(2, 1)  # MX-64 protocol 1 with ID 2
mx_64_2 = dxl_io.new_mx64(3, 2)  # MX-64 protocol 2 with ID 3

Motor Control:

See documentation for full list of functions and their usage.

The most prevalent functions are pre-implemented as methods for the motor objects. These include:

motor.torque_enable()
motor.torque_disable()
motor.set_acceleration(acceleration)
motor.set_velocity_mode()
motor.set_velocity(velocity)
motor.set_position_mode()
motor.set_position(position)
motor.set_angle(angle) 
motor.set_extended_position_mode()
motor.set_position(position)
position = motor.get_position()
angle = motor.get_angle()
current = motor.get_current()

All other values can be easily read from or written to using their control table name. Example:

motor.write_control_table("LED", 1) # Turns the LED on
speed = motor.read_control_table("Present_Speed") # Returns present velocity

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Especially encouraged is new control tables to be published as part of the package.

License

Apache 2.0

Metadata

Release files for dynamixel-controller 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dynamixel-controller 0.9.2
File Size Uploaded
dynamixel_controller-0.9.2.tar.gz 17.7 kB Details

Release files / dynamixel_controller-0.9.2.tar.gz

Download URL dynamixel_controller-0.9.2.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9d6f121be6280b48df998de29f1786408f58c8a4fb5e7d1d75f5e02f885bae9c
BLAKE2b-256 checksum
How to use checksums
84eb08f0c44a8184add6984c5dc4ca4fc3ee5125dbf91aa7b6e960db4ad4250a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.9.2 This release

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7

1 release file

0.6

1 release file

0.5.1

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page