Skip to main content

A simple DC motor environment for reinforcement learning

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym_dcmotor-0.2.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

gym_dcmotor-0.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file gym_dcmotor-0.2.tar.gz.

File metadata

  • Download URL: gym_dcmotor-0.2.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for gym_dcmotor-0.2.tar.gz
Algorithm Hash digest
SHA256 c7a19b9c906e9dca5b7a8d198e900c1a7aaf9508bc2dc122dd40a4ad0c43140e
MD5 f9655006e725fb698c6655b39b3ccd18
BLAKE2b-256 cf5ee5fc60efde39d7b865cddbc80756f876e14d9a089a3541a159e8d7829aa7

See more details on using hashes here.

File details

Details for the file gym_dcmotor-0.2-py3-none-any.whl.

File metadata

  • Download URL: gym_dcmotor-0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for gym_dcmotor-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c0f2cd17df2bef51b0d1379a9d2e2b614f89c269e5c025985d4ce1826d296b8
MD5 4d43cbf9fd396b2f048c2b21ab3db424
BLAKE2b-256 288723dcf156c9bef2580e83a643f82a6f2555cf9613e071b013ce3f739f6371

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