


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



You are asked to explore the simple dynamics of a bouncing robot device, using simulation. There is a single mass with a very light helical spring attached on the bottom of it; the mass is 40 kg, and the spring constant is 10400 N/m. The spring additionally has a little bit of damping, 35 Ns/m. The spring is NOT attached to the ground. The initial condition has zero vertical velocity and a 15 cm compression of the spring.
% Simulate a bouncing mass function bouncingMass clear all; [t,y] = ode45(@func,[0 10],[0 -0.15]) ; figure(1);clf;hold off; subplot(211); plot(t,y(:,1),’LineWidth’,2); grid; ylabel(’ydot, m/s’); subplot(212); plot(t,y(:,2),’LineWidth’,2); grid; ylabel(’y, m’); xlabel(’time, seconds’); function [ydot] = func(t,y) ; % all units MKS m = 40 ; % mass k = 10400 ; % spring constant g = 9.81 ; % gravity b = 35 ; % spring damping % first state is vertical velocity, second is position if y(2) < 0, % the spring is in action ... ydot(1,1) = 1/m * ( -ky(2) - by(1)) - g ; else, % ... or not ydot(1,1) = -g ; end; ydot(2,1) = y(1) ; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MIT OpenCourseWare http://ocw.mit.edu 2.017J Design of Electromechanical Robotic Systems Fall 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.