Hi Dwayne- I have done a rough cut, but that's all. So I would be interested in your solution. What I did is calculate the distance in steps from the starting, or stopping, point and use the distance to modify the rate. So, for instance, RATE = (HERE-START)*2+1. The nice thing about this is, it lets you calculate the deceleration so you stop in a certain place. Ie: RATE = MIN( MAXRATE, (HERE-START)*2+1, (STOP-HERE)*2). Note, the last expression will be zero when it reaches the destination, while the +1 in the first expression lets it start from the start position. (gee thanks Dwayne, I have now stated it clearly for myself :-) I am doing this for a turntable, so I have to worry about signs and stuff. David H Dwayne Reid wrote: > Good day to all. > > I am about to start a hobby project using a single standard stepper motor > that moves a specified number of steps each time it is triggered. Easy, so > far. But I'd like to add acceleration and deceleration ramps. Not too > hard, really. But before I get into it, I thought I'd check to see if > someone has seen something like this already done. > > dwayne > > Dwayne Reid > Trinity Electronics Systems Ltd Edmonton, AB, CANADA > (780) 489-3199 voice (780) 487-6397 fax > > Celebrating 18 years of Engineering Innovation (1984 - 2002) > .-. .-. .-. .-. .-. .-. .-. .-. .-. .- > `-' `-' `-' `-' `-' `-' `-' `-' `-' > Do NOT send unsolicited commercial email to this email address. > This message neither grants consent to receive unsolicited > commercial email nor is intended to solicit commercial email. > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads