8000 GitHub - ZhangYanglyu/actuatorDynamics: This is the repository for example MATLAB code to simulate a spring mass damper. It was created for Oregon State University's ME 536 (Actuator Dynamics) class. It is based off of Andrew Peekmea's code but is heavily modified and extended.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This is the repository for example MATLAB code to simulate a spring mass damper. It was created for Oregon State University's ME 536 (Actuator Dynamics) class. It is based off of Andrew Peekmea's code but is heavily modified and extended.

License

Notifications You must be signed in to change notification settings

ZhangYanglyu/actuatorDynamics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actuatorDynamics

This is the repository for example MATLAB code to simulate a spring mass damper. It was created for Oregon State University's ROB 542: Actuator Dynamics class (formerly ME 536). It is based off Andrew Peekmea's code but is heavily modified and extended.

This repo contains some basic utilities (groupTheory and visualization) and three examples of simulating dynamic systems. More information on each example can be found in the readme in their respective folder.

This example simulated a damped spring mass in the presence of an external force.

This example illustrates:

  • Basic usage of ODE45().
  • Use of the solution results structure and deval() function to sample the resulting solution.
  • Binding parameters to an anonymous function for use as the dynamics.
  • Use of a structure for dynamics parameters.
  • Animation using our visualization interfaces and transformations.
  • Exporting a video file using MATLAB's VideoWriter().

Example 2: Control

This example simulated a point mass with viscous friction moving in 2D under the influence of a 2D control force.

This example illustrates:

  • An approach to seperate command trajectory, controller and system dynamics into seperate functions.

Example 3: Hybrid Simulation

This example simulated a puck under the influence of a constant force that bounces between a moving paddle and a stationary ceiling. The paddle moves with prescribed sinusoidal motion, which can be thought of as having infinite mass and a infinitely strong actuator moving it.

This example illustrates:

  • Use of event functions to halt ODE45().
  • Differentiating between different events.
  • Use of sampled results from ODE45() instead of the solution structure.
  • Application of hybrid jump maps for impact events.
  • Interpolating sampled results for animation.

About

This is the repository for example MATLAB code to simulate a spring mass damper. It was created for Oregon State University's ME 536 (Actuator Dynamics) class. It is based off of Andrew Peekmea's code but is heavily modified and extended.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%
0