Skip to main content

Library to communicate with Typhoon robotic arm.

Project description

Typhoon Robotic Arm

en sk

typhoon-robotic-arm is a Python library that enables control of the Typhoon robotic arm. This library provides various functionalities, including calculations, communication and movement of the arm.

Installation

Requires Python 3.8+. Download and install the latest release:

pip install pyserial
pip install -i https://test.pypi.org/simple/ typhoon-robotic-arm

More info on our Test PyPi site.

Quickstart

from typhoon import Typhoon

typhoon = Typhoon("COM3", 130, 0, 0, output=True)

typhoon.move_to(100, 0, 0)
typhoon.activate_tool(pw9=255)
typhoon.move_to(0, 0, 0)

typhoon.close()

References

class Typhoon(port: str, start_x: int, start_y: int, start_z: int, tool_x: int = 0, tool_y: int = 0, tool_z: int = 0, output: bool = False)

  • Controls a Typhoon robotic arm through serial communication. Offers a user-friendly interface for various arm operations.

  • Parameters:

    • port (required) - Port on which is typhoon robotic arm connected. You can check this in your Device Manager on - Windows under USB Connector Managers.

    • start_x (required): - Startring X position of robotic arm.

    • start_y (required) - Startring Y position of robotic arm.

    • start_z (required) - Startring Z position of robotic arm.

    • tool_x - X offset of the tool.

    • tool_y - Y offset of the tool.

    • tool_z - Z offset of the tool.

    • output - If you want to see output from the Arduino board.

  • Methods:

    • goto(x: int, y: int, z: int):

      • Moves the arm to the specified coordinates.
      • Calculates the required angles and sends them to the arm.
    • tool(pw8: int = 0, pw9: int = 0, pw10: int = 0):

      • Controls the state of the tool (e.g., gripper open/close, suction on/off).
      • Sends PWM values to the arm to activate the desired tool functions.
    • get_angles():

      • Returns the current base, upper, and lower arm angles as a tuple.
    • get_coords():

      • Returns the current X, Y, and Z coordinates of the arm tip as a tuple.
    • send_file(file_path: str, separator: str = " "):

      • Moves the arm according to coordinates specified in a text file.
      • Each coordinate must be written on new line in format x y z.
      • When you set separator to , , program expects on each line data in format x, y, z
    • close():

      • Closes the serial connection to the arm.

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

typhoon_robotic_arm-1.0.0.tar.gz (6.9 kB view details)

Uploaded Source

File details

Details for the file typhoon_robotic_arm-1.0.0.tar.gz.

File metadata

  • Download URL: typhoon_robotic_arm-1.0.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for typhoon_robotic_arm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 01a78611bf71d3b9568aed1c0c1994576c33c6516897444e29cc4e3ee1660368
MD5 700187347deb3e120f58bf598af51964
BLAKE2b-256 cd85318dda3a70c6066041732cb4ea266ee5b8f7eaf4c4efb0762c3fff8e81f5

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