MakerSlide Camera Slider control Program

Discussion Related to Blog Posts (suggestions welcome)

Re: MakerSlide Camera Slider control Program

Postby bdring » Sat Dec 17, 2011 8:27 pm

With two aiming points you describe the whole triangle to the controller. It can figure out each new aiming point on its own. It is not linear, but solvable in real time. Half the math is done once, and the other is done on the fly as you go. Realistically the angle is changing rather slowly compared to the linear motion of the carriage.

I know someone is going to throw real time tilt into the mix now. That adds a whole new level of complexity, but again, probably doable.
"If you didn't build it, you will never own it."
Site Admin
Posts: 2966
Joined: Sun Nov 22, 2009 7:33 pm
Location: Chicago, IL, USA

Re: MakerSlide Camera Slider control Program

Postby rogue555 » Sun Dec 18, 2011 4:15 pm

If there's enough memory, look up tables can be produced before the motion starts and are really fast.

A third or forth order polynomial (spline) could be fit for each axis and would probably work for each move segment. The math to do the fit is more intensive, but it scales nicely for many axes and is much faster than trig functions.

Also, the standard trig functions usually compute to the precision of the machine, which is way overkill for some applications. I implemented sin and cos functions using taylor series to a few terms and it was plenty fast for that project ( That was on an old HC11 with a 2 MHz clock, the arduino should have no problem with it.
Posts: 32
Joined: Sat May 28, 2011 2:40 am

Re: MakerSlide Camera Slider control Program

Postby kitsu » Thu Jan 19, 2012 6:13 am

Just curious if anyone has modified Bart's program for an EasyDriver? If someone has I can save myself some time before I start comparing the available pins to the code (and since this is my first Arduino project, it may take some time).
Posts: 2
Joined: Thu Jan 05, 2012 4:53 am


Return to Blog Posts

Who is online

Users browsing this forum: No registered users and 1 guest