Library to communicate with Typhoon robotic arm.
Project description
Typhoon Robotic Arm
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 typhoon-robotic-arm
Quickstart
from typhoon import Typhoon
typhoon = Typhoon("COM3", 0, 170, 130, output=True)
typhoon.move_to(100, 0, 0)
typhoon.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_offset_x: int = 0, tool_offset_y: int = 0, tool_offset_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_offset_x - X offset of the tool.
-
tool_offset_y - Y offset of the tool.
-
tool_offset_z - Z offset of the tool.
-
output - If you want to see output from the Arduino board.
-
-
Methods:
-
move_to(x: int, y: int, z: int):
- Moves the arm to the specified coordinates.
- Calculates the required angles and sends them to the arm.
-
move_home():
- Moves the arm to the starting position.
-
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
separatorto,, program expects on each line data in formatx, y, z
-
close():
- Closes the serial connection to the arm.
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typhoon_robotic_arm-1.0.3.tar.gz.
File metadata
- Download URL: typhoon_robotic_arm-1.0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a0ba3a6ad1b3dce0d0bb2e6d3047b078a12499929878b7b140d5d3c369763b1
|
|
| MD5 |
4a9b4a583fd62955b5f9eb6076615a8d
|
|
| BLAKE2b-256 |
f5aaf0fe886b5a27d12c4e0ad647885d2a27e00e7fed01614b7665938139b3b0
|
File details
Details for the file typhoon_robotic_arm-1.0.3-py3-none-any.whl.
File metadata
- Download URL: typhoon_robotic_arm-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf0ccef8d58223aad7ab7569a5cb5a928d15e44f2e94efd74e35c49bbcd2a500
|
|
| MD5 |
b7a430cf45031818d208613eff6fc9eb
|
|
| BLAKE2b-256 |
068f97408a88fe121034df83cb8de4adc772da7ee6f03c2eb9bca4026cd910dd
|