Example Code

balljuggler

Code and Documents

Attachment

Balljuggler controlled by NIVision and LabVIEW

This work was done in the HTL Saalfelden (secondarytechnical college and National Instruments Academy) as a final project byStefan Huber and Franz Profelt supported by Gernot Aigner.

The idea behind this project is the opportunity tocontrol the position of a ball on a panel, by tilting the panel. The slant iscaused by the movement of two servo motors, which are attached to two sides ofthe panel. Additionally a USB-Webcam is placed above the panel. This Webcam isreadout by the computer, which detects the current position of the ball. Usingthis data, the software calculates the necessary movements of the servo motorsto cause the asked motion of the ball.

Several tasks allow an easy communication between theservo motors and the computer, the programming of the image recognition, themathematical model for calculating the positions of the servo motors and alsothe planning and building of the hardware.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors