Skip to main content

Gym DCMotor

A simple DC Motor simulator in Python that uses the RK45 numerical ODE solver.

Kinematic Equations

The dynamics of the DC motor are governed by the following equations:

Armature Current ($I_a$):

$$ \frac{dI_a}{dt} = \frac{V_a - K_b \cdot \omega - R_a \cdot I_a}{L_a} $$

Angular Velocity ($\omega$):

$$ \frac{d\omega}{dt} = \frac{K_t \cdot I_a - B \cdot \omega - T_l}{J} $$

Parameters:

  • $I_a$ : Armature current
  • $\omega$ : Angular velocity
  • $V_a$ : Applied voltage
  • $K_b$ : Back EMF constant
  • $R_a$ : Armature resistance
  • $L_a$ : Armature inductance
  • $K_t$ : Torque constant
  • $B$ : Viscous damping coefficient
  • $T_l$ : Load torque
  • $J$ : Moment of inertia

Metadata

Release files for gym-dcmotor 0.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 gym-dcmotor 0.2
File Size Uploaded Provenance Actions
gym_dcmotor-0.2.tar.gz 17.9 kB Without provenance Details for gym_dcmotor-0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gym-dcmotor 0.2
File Interpreter ABI Platform Actions
gym_dcmotor-0.2-py3-none-any.whl Python 3 none any Details for gym_dcmotor-0.2-py3-none-any.whl

Total release size: 36.5 kB

Release files / gym_dcmotor-0.2.tar.gz

Download URL gym_dcmotor-0.2.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c7a19b9c906e9dca5b7a8d198e900c1a7aaf9508bc2dc122dd40a4ad0c43140e
BLAKE2b-256 checksum
How to use checksums
cf5ee5fc60efde39d7b865cddbc80756f876e14d9a089a3541a159e8d7829aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / gym_dcmotor-0.2-py3-none-any.whl

Download URL gym_dcmotor-0.2-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c0f2cd17df2bef51b0d1379a9d2e2b614f89c269e5c025985d4ce1826d296b8
BLAKE2b-256 checksum
How to use checksums
288723dcf156c9bef2580e83a643f82a6f2555cf9613e071b013ce3f739f6371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for gym-dcmotor 0.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.2 This release

2 release files 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