Skip to main content

A more ergonomic wrapper for the feetech Python SDK

Project description

Feetech

A more ergonomic library for controlling Feetech servos.

Install by running:

pip install -e .

Example usage:

import feetech
import time

client = feetech.Client('/dev/ttyACM0')
client.connect() # can also use `with feetech.Client('/dev/ttyACM0') as client:` to avoid needing to call connect/disconnect

motor_id = 1

# Torque enable servo 1
client.enable(motor_id)

# Read the current motor position in degrees
pos = client.read_present_posiiton(motor_id)

# Rotate the servo 15 degrees
client.write_goal_position(motor_id, pos + 15)

time.sleep(1)

new_pos = client.read_present_position(motor_id)
print(f'moved servo from {pos} to {new_pos} degrees')

client.disconnect()

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

tetra_feetech-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

tetra_feetech-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tetra_feetech-0.1.0.tar.gz.

File metadata

  • Download URL: tetra_feetech-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for tetra_feetech-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c7881a3113c476b3e67e1afe275578617829dec41565e6553c0164eea73165ff
MD5 0dd23364cdf0e88f3fabe46030de7d49
BLAKE2b-256 f01821bb7014efb0211cd697bf7cbc15acf3d1e75ba9450dbed6712f8cf96191

See more details on using hashes here.

File details

Details for the file tetra_feetech-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tetra_feetech-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for tetra_feetech-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c8a766062dccfb8ee360190c6849ed4d3fb9b9fa32b95374a187ebf4c2be7ba
MD5 635957f2c48770d157d94f95c4bc850d
BLAKE2b-256 9ceb253ed07264a16ee2c72855abb5a9ba71ef493209f57d51a2330815450d22

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