We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › Ball Balance Machine
Page Index Toggle Pages: 1
Ball Balance Machine (Read 1444 times)
Ball Balance Machine
Apr 30th, 2010, 10:52am
 
Here's an experiment in closed-loop feedback using Processing, Arduino, a webcam, servos, a board, and a ball.

(since this is my first post I need to include links in the following post)

I didn't realize until later that it's a classic exercise in control commonly referred to as "Ball and Plate".

A ball can be moved around on a tilting board using video feedback. The system can keep a ball balanced in the middle of the board, can move the ball around in patterns, or can follow the movement of the cursor on the screen.

The PID tuning could be better, so if anyone has any ideas on how to improve it, I'd love to hear them.
Re: Ball Balance Machine
Reply #1 - Apr 30th, 2010, 10:55am
 
Here's a video of it working:
http://www.youtube.com/watch?v=0DqcnHE6r9M

Here's some more details, including code:
http://origamata.com/
Re: Ball Balance Machine
Reply #2 - Apr 30th, 2010, 11:04am
 
Really cool. What would be needed to "speed" up the hole thing? To which speed can you drive it, before it gets too unstable?

Besides being cool, what is the story behind the project? Boredom, curioustiy or something else?
Re: Ball Balance Machine
Reply #3 - Apr 30th, 2010, 11:16am
 
With a better understanding of the control algorithms, you could get it to move faster and with less fidgeting of the servos. Needs a bit more study.

This is my first step towards a more ambitious project where I want to control an RC helicopter using video feedback - I'll keep you posted.
Re: Ball Balance Machine
Reply #4 - May 1st, 2010, 11:19am
 
realy intresting experiment Wink

Page Index Toggle Pages: 1