Giter Club home page Giter Club logo

mass_spring_damper_simulation's Introduction

Mass-Spring-Damper System Control Simulation

This repo is my work in response to the following prompt:

Your task is to build a closed-loop simulation of the following Mass-Spring-Damper system and implement a controller to control its position.

A few things to keep in mind...

  • All parameters in the simulation should be configurable
  • Keep the user in mind as you design the interface to the simulation
  • One input to the simulation should be a desired position for the mass, and the controller should be able to bring the mass to that position
  • The controller and the dynamics should be able to operate at separate frequencies
  • The simulation should be scalable, so pay special attention to how it is structured, and how data is managed

This prompt is left purposefully open-ended, so feel free to get creative with your implementation and with any additional features that you think demonstrate your abilities.

When adding features, keep in mind that the goal of simulation is to validate the control performance, stability, and robustness of the algorithm, and to validate future designs.

Usage

To use manually, do the following in a terminal:

  1. python3 -m venv myvenv
  2. On Linux/MacOS, source myvenv/bin/activate. On Windows (powershell), venv\Scripts\Activate.ps1
  3. python3 -m pip install -r requirements.txt
  4. python3 main.py

To run tests, do the following in a terminal:

  1. python3 -m venv myvenv
  2. On Linux/MacOS, source myvenv/bin/activate. On Windows (powershell), venv\Scripts\Activate.ps1
  3. python3 -m pip install -r requirements.txt
  4. python3 -m pytest tests/

mass_spring_damper_simulation's People

Contributors

michaelbonnet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.