View Single Post
  #11   Spotlight this post!  
Unread 02-03-2015, 21:30
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,088
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Elevator Motion Profiling / PID Ramping

Quote:
Originally Posted by Aero View Post
our elevator is really fast. It's about 0.75 seconds from bottom to top.
First, take Adam's advice about gearing (post#13). Then...

Quote:
Originally Posted by Aero View Post
motion profiling really is what we want. How inefficient would it be to generate a new motion profile every time we change setpoints?
Well it depends on your definition of inefficient I guess.

If you need to change the setpoint only when the speed is zero, it's pretty straightforward to generate a sinusoidal profile for smooth acceleration and deceleration.

Given the max desired acceleration M and the distance D to the new position, compute the constants T, K1, K2, and K3 as shown in the equations. Then you can use the functions a(t), v(t), and x(t) to generate a nice smooth trajectory to the new target. "t" is elapsed time from start of profile.

Note that T will be the time-to-destination and K2 will be the maximum speed.

See the example profile for M=3.5 ft/s2 and D=5 ft.


Attached Thumbnails
Click image for larger version

Name:	trajectory equations.png
Views:	109
Size:	27.7 KB
ID:	18536  Click image for larger version

Name:	M=3.5 D=5 plot.png
Views:	79
Size:	29.1 KB
ID:	18537  

Last edited by Ether : 03-03-2015 at 10:08.