Skip to main content

uDrive Module Library

This library offers a collection of functions for managing mDrive module boards, specifically for controlling brushless motors.

Features

  • version 0.1.1
  • Compatible with mDrive board.
  • Python 3.11, 3.12

Extra libraries

pip install pyusb
pip install pyserial 

For system Windows requirements, you need to install the following packages:

pip instal pywin32

Installation

To install the library, you can use the following command:

pip install udrive

Usage

To use the library, you can import it as follows:

import udrive 


device = udrive.find_any(path="usb", timeout=30)

print("device:", device)

When you run the code, you will see the following output:

device: vbus_voltage = 23.183788299560547 (float)
ibus = 0.00032408745028078556 (float)
ibus_report_filter_k = 1.0 (float)
serial_number = 206E35753056 (int)
hw_version_major = 3 (int)
hw_version_minor = 5 (int)
hw_version_variant = 48 (int)
fw_version_major = 0 (int)
fw_version_minor = 0 (int)
fw_version_revision = 0 (int)
fw_version_unreleased = 1 (int)
brake_resistor_armed = True (bool)
brake_resistor_saturated = False (bool)
system_stats:
  uptime = 561893 (int)
  min_heap_space = 41560 (int)
  min_stack_space_axis0 = 1612 (int)
  min_stack_space_axis1 = 1724 (int)
  min_stack_space_comms = 3880 (int)
  min_stack_space_usb = 3740 (int)
  min_stack_space_uart = 3964 (int)
  min_stack_space_can = 836 (int)
  min_stack_space_usb_irq = 1828 (int)
  min_stack_space_startup = 1668 (int)
  stack_usage_axis0 = 436 (int)
  stack_usage_axis1 = 324 (int)
  stack_usage_comms = 216 (int)
  stack_usage_usb = 356 (int)
  stack_usage_uart = 132 (int)
  stack_usage_usb_irq = 220 (int)
  stack_usage_startup = 380 (int)
  stack_usage_can = 188 (int)
  usb: ...
  i2c: ...

Modify the library

Delete requirements library pywin32.

Metadata

Release files for udrive 0.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for udrive 0.1.2
File Interpreter ABI Platform
udrive-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / udrive-0.1.2-py3-none-any.whl

Download URL udrive-0.1.2-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b285f732abb87ff2926f1b61f65c03d8d0469b1579adb7814f7191b4e47fec0d
BLAKE2b-256 checksum
How to use checksums
5877a3db784b47dae136d02e8b951e3f0d86fdc415dc769b9fcfae323b3c970c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for udrive 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

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