{user_name}
Project ball-scale control engineering

Ball Balance
Experimental setup for control engineering lab

Ball Balance PIDT1 Controller Icon

Teaching model for control engineering

The ball balance is a fascinating teaching model that clearly demonstrates the principles of control engineering. With a function block editor developed specifically for this purpose, students can design and optimize control loops independently. The goal is to control the tilt of the seesaw via a propeller drive so precisely that a metal ball is stably balanced in the center.

Show video info

Ball balance as a teaching model for control engineering - THWS Schweinfurt - Engineer Glaser

🎱 The ball balance is a fascinating teaching model that clearly demonstrates the principles of control engineering. With a function block editor developed specifically for this purpose, students can independently design and optimize control loops. The goal is to control the tilt of the seesaw via a propeller drive so precisely that a metal ball is stably balanced in the center.
https://ingenieur-glaser.de/kugelwaage/ – Behind the scenes

#ControlEngineering #THWS #ElectricalEngineering #PrototypeConstruction #HardwareDevelopment #Microelectronics #Engineer #Matlab #Simulink #ATMEGA32 #Cplusplus #Cnc

💡️ Development & Manufacturing – Engineering office Glaser
https://ingenieur-glaser.de/ – Electronics・Software・Hardware

🔔 Subscribe now! – Dont miss any development!
https://ingenieur-glaser.de/Instagram/ – Instagram
https://ingenieur-glaser.de/Facebook/ – Facebook
https://ingenieur-glaser.de/YouTube/ – YouTube
https://ingenieur-glaser.de/LinkedIn/ – LinkedIn
https://ingenieur-glaser.de/Twitter/ – Twitter
https://ingenieur-glaser.de/TikTok/ – TikTok
https://ingenieur-glaser.de/Xing/ – Xing

🥇 References – How visions became successes.
https://ingenieur-glaser.de/Projekte/ – References

📞 Contact – Has the spark ignited?
https://ingenieur-glaser.de/Kontakt/ – Contact

#ControlEngineering #THWS #ElectricalEngineering #PrototypeConstruction #HardwareDevelopment #Microelectronics #Engineer #Matlab #Simulink #ATMEGA32 #Cplusplus #Cnc #TeachingModel

To the YouTube channel

A challenging control plant

At the center of the control plant is a propeller drive connected to a rotatably mounted V-profile. A ball can roll freely on this. A servo motor changes the pitch angle of the rotor blades to deliberately generate thrust to the left or right and thus change the tilt of the seesaw.

Project Ball Balance control engineering isolated

The challenge is to develop a control loop that controls the highly dynamic and unstable system so that the rolling ball comes to rest in the middle of the V-profile. Even the slightest changes in tilt set the ball in motion. The ball's own weight acts as a disturbance just like the varying propeller speed and airflow turbulence. These factors significantly increase the complexity of a stable control.

Project Ball Balance control engineering mechanics and microcontroller

For control, the ball position and the tilt angle of the seesaw are available as measured variables. As the only actuator, a pitch-adjustable propeller must suffice to keep the ball in balance.

Unobtrusive sensor with impressive precision

The ball's position is measured using two carbon fiber rods in the transparent acrylic. One of the rods is connected to GND and 5V, creating a linearly falling voltage. The metal ball acts as a sliding contact by transferring this position-dependent voltage to the second rod. This allows the ball position to be determined with millimeter precision.

Project Ball Balance V-profile ball acrylic carbon fiber rod voltage dividerProject Ball Balance acrylic carbon fiber rod voltage divider connection

Angle determination via an accelerometer

The tilt angle of the seesaw is measured with a accelerometer mounted on the rotatably mounted axis. The sensor uses the constant gravity vector as a reference to precisely determine the tilt angle of the seesaw.
Project Ball Balance BMA280 accelerometer LGA-14 package mountedProject Ball Balance BMA280 accelerometer LGA-14 package

Thrust reversal thanks to pitch-adjustable rotor blades

A model aircraft servo changes the pitch angle of the rotor blades, so the propeller produces thrust in both directions without having to change the rotation direction. This rapid thrust reversal is critical to stabilizing the complex system.
Project Ball Balance Servo Propeller Drive Adjustable Propeller Pitch ControlProject Ball Balance Motor Propeller Drive Adjustable Propeller Pitch Control

Signal and control interface with ATMEGA32 microcontroller

A microcontroller programmed in C++ collects sensor data and controls the propeller speed controller as well as the servo for blade pitch adjustment. Communication with the notebook running the control algorithm occurs via the serial RS232 interface.

Project Ball Balance PCB ATMEGA32 isolated

Control with function block editor in VB.NET

A specially developed function block editor is available for creating a controller for this setup. The editor, programmed in VB.NET, includes all common control elements, such as PIDT1 controllers, and can be flexibly extended with user-defined function blocks. A special feature is the ability to edit the entire signal flow during runtime. Changes take effect immediately without needing to recompile as is required with, for example, MATLAB Simulink.

Project Ball Balance Function Block Editor Software Screenshot

Controller design for a nonlinear, highly dynamic system

The ball balance represents a complex, nonlinear control system. The developed control loop comprises a total of four cascades with five PIDT1 controllers, which act on the state variables of velocity and position of both the ball and the seesaw. Each cascade stage is finely tuned to reliably keep the ball centered despite the unstable conditions.

Project Ball Balance Control Loop Regulation PIDT1 Controller Signal Flow Diagram

The inertia dynamics of the propeller drive were recreated using a model simulation and integrated into the control loop as feedforward control. To create the motor characteristic curve, the thrust or the torque acting on the seesaw was measured with a kitchen scale.

Project Ball Balance Torque Characteristic Thrust Propeller Pitch Control Drive

The dynamics of the propeller speed dropping under load were determined by recording the motor noise with a notebook microphone and analyzing the pitch or frequency.

Project Ball Balance Motor Noise Audio Recording Frequency

Manual control to illustrate the complexity

For a better understanding of the complexity, the experimental setup can optionally be controlled manually with a joystick. This quickly makes clear how demanding or nearly impossible it is to keep the ball balanced without an elaborate controller.

Project Ball Balance Joystick Manual ControlProject Ball Balance Power Connection Main Switch Emergency Stop

Manufacturing of the wood, acrylic, and aluminum parts by CNC milling

All mechanical components were designed in AutoCAD and manufactured on a CNC milling machine. This enabled high precision fit and reliability in implementation.

Project Ball Balance Design AutoCAD Drawing CADProject Ball Balance CNC Milling Acrylic
Project Ball Balance CNC Milling WoodProject Ball Balance CNC Milling Aluminum
Project Ball Balance CNC Milling Milled Parts WoodProject Ball Balance CNC Milling Milled Parts Aluminum
Project Ball Balance CNC Milling Wooden ConstructionProject Ball Balance Aluminum Construction Acrylic Carbon Fiber Rod Voltage Divider
Project Ball Balance CNC Milling Wooden ConstructionProject Ball Balance Aluminum Construction Acrylic Carbon Fiber Rod Voltage DividerProject Ball Balance Aluminum Construction Acrylic Carbon Fiber Rod Voltage Divider

Development environments for software development

For programming the function block editor in VB.NET, Visual Studio was used, while for the microcontroller programming in C++ the ATMEL AVR Studio was used. Additionally, HTerm was used to monitor the serial communication between the microcontroller and the PC during development.

Software Development Development Environments AVR Studio C++ and Visual Studio VB.NETProject Ball Balance HTerm RS232 Serial Interface Screenshot

Fine-motor soldering work on the BMA280 accelerometer

Soldering the BMA280 accelerometer was a particular challenge. The LGA-14 package with a pin pitch of 0.5 mm looks tiny even on a 1-cent coin. Despite having a soldering tip that was far too large, there was practically no patience to wait for the delivery of a suitable one. 😉
Project Ball Balance AccelerometerProject Ball Balance BMA280 Accelerometer LGA-14 Package Soldered

Handover of the experimental setup to THWS

The THWS (University of Applied Sciences Würzburg-Schweinfurt) took over the “Ball Balance” experimental setup for its control engineering lab. Prof. Dr. Abid Ali, who leads the lab, expressed his sincere thanks for the outstanding commitment.

Donation THWS Technical University of Applied Sciences Würzburg-Schweinfurt Control Engineering Lab Johannes Glaser and Prof Dr Ali

Pioneering spirit from student days strengthens control engineering lab

THWS thanks Johannes Glaser for the 'ball balance', a teaching model that enables students to learn control engineering in a hands-on way. ➔ Learn more now!

View
Quote THWS Control Engineering Lab Prof Dr Ali Logo

Pioneering spirit from student days strengthens control engineering lab

On behalf of the Technical University of Applied Sciences Würzburg-Schweinfurt (THWS), Prof. Dr. Abid Ali warmly thanks Mr. Johannes Glaser for donating the experimental setup “ball balance” to the Control Engineering Lab.

Over ten years ago, the then electrical engineering student of the Faculty of Electrical Engineering showed extraordinary commitment. Instead of limiting himself to regulating an existing experimental setup as required, he independently developed and built a completely new control plant. Together with his fellow student Daniel Neeser, he created a sophisticated setup-the “ball balance”. This teaching model now enables our students to learn the theoretical fundamentals of control engineering in a practical way. The aim of the experiment is to design a stable control loop that uses a propeller drive to regulate a metal ball into the center of a seesaw.

We are delighted with this valuable addition to our Control Engineering Lab and appreciate Mr. Glaser's contribution to the practical training of our students. We wish him much success and all the best for the future as an independent engineer. His commitment is a shining example of the connection between theory and practice that we particularly promote at our university.

To the Control Engineering Lab - THWS

Ball Balance Challenge: Award for Excellence

The person who takes on the challenge and succeeds in developing a controller that stabilizes the ball precisely at the specified position will be awarded a certificate and a prize by Engineer Glaser. 🙂

Project Ball Balance THWS Control Engineering Lab Function Block EditorProject Ball Balance THWS Control Engineering Lab

THANK YOU!

Many thanks to Prof. Dr. Ali for the solid teaching of valuable control engineering tools during my studies. The hands-on and in-depth exercises complementary to the lectures provided me with a solid foundation that continues to play a central role in my engineering work today and has significantly contributed to my understanding of complex technical systems.

★★★★★

9 Reviews

View more projects

Project Exhibition Exhibit Hygienic Seal Demonstrator Design

Exhibition exhibit for hygienic seal with water - Trade show construction

Noble exhibition exhibit made from an acrylic column filled with water that, using granulate and UV light, makes the advantages of a hygienic seal visible.

View project
Project Radar Demonstrator LED Effect Sunset Night Sky Shooting Stars

Functional model for safety sensor with LED strips - Trade show construction

Interactive demonstration model illustrating the advantages of a dual radar measurement path for safe and reliable distance measurement.

View project
Project Radar Demonstrator - All modules tailored from radar to reflector

Trade show model for radar sensor with display - Trade show construction

Modular trade show model of a robust measurement path that accurately measures distances through water, dust, and plastic with a radar sensor and displays them on a screen.

View project
Project-Sensor-Box-IMU-Product-photo-Box

Sensor Box IMU with AHRS

Spaceflight technology in a box. A measurement unit that assists in decontaminating radioactively contaminated plant parts.

View project
Software development-code-perspective-blue-Free-Pic

Examples from software development

Control software for plant controllers in the field of automation technology. Using Visual Studio in C# and VB.NET.

View project
Project-Warehouse-robot-Mule-Electronics-cable-duct-open

Warehouse robot Mule

The Heavy Mule is a very robust and smart warehouse robot that navigates using an inductive guidance system and RFID tags.

View project
Project-Compact-winding-drive-6-control-cabinets-open

Compact winding drive

Smart winding motor with speed and torque control, synchronous drive and multifunction foot switch.

Coming soon
Project-Scale-packaging-system-with-safety-fence

Palletizing robot

Robot that measures pallet boxes with variable dimensions and loads them precisely. With digital twin and 3D visualization.

Coming soon
Project-winding-machine-3D-model-linear-guide-brake-motor-landscape

Winding machine

Adaptive winding robot that wraps arbitrary rotational bodies with fabric tape while producing a uniform contact pressure.

Coming soon
Project function block editor screenshot

Function block editor

Real-time function block editor that allows control loops to be created graphically and edited during operation.

Coming soon