{user_name}
project ball scale control technology

Ball scale
Experimental setup for control engineering laboratory

Project Ball Scale PIDT1 Controller Icon

Teaching model for control engineering

The ball scale is a fascinating teaching model that vividly conveys the principles of control engineering. With a specially developed function block editor, 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.

Show video info

Ball scale as a teaching model for control engineering - Engineer Glaser

🎱 The ball scale is a fascinating teaching model that vividly conveys the principles of control engineering. With a specially developed function block editor, 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.

🎬 Video of development and production at Engineer Glaser's office.
https://ingenieur-glaser.de/projekt/kugelwaage/

❓Curious about more projects? More on the website!

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

🎯 Development & Manufacturing
https://ingenieur-glaser.de/ – Electronics - Software - Hardware

🔔 Don't miss any development. Subscribe now!
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/TikTok/ – TikTok
https://ingenieur-glaser.de/Xing/ – Xing

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

📞 Did the spark jump over?
https://ingenieur-glaser.de/Kontakt/ – Contact

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

To the YouTube channel

A challenging control track

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

project ball scale control engineering free-standing

The challenge is to develop a control loop that manages the highly dynamic and unstable system so that the rolling ball comes to a stop in the center of the V-profile. Even the slightest changes in tilt set the ball in motion. The weight of the ball acts as a disturbance, as does the varying propeller speed and turbulence of the airflow. These factors significantly increase the complexity of achieving stable control.

project ball scale control engineering mechanics and microcontroller

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

Discreet sensor with impressive precision

The position measurement of the ball is carried out using two carbon fiber rods in transparent acrylic glass. One of the rods is connected to GND and 5V, creating a linearly decreasing voltage. The metal ball acts as a sliding contact, transferring this position-dependent voltage to the second rod. This allows for millimeter-accurate determination of the ball position.

project ball scale v profile ball acrylic glass carbon fiber rod voltage dividerproject ball scale acrylic glass carbon fiber rod voltage divider connection

Angle determination using an accelerometer

The tilt angle of the seesaw is captured with a accelerometer that is attached to the pivoting axis. The sensor uses the constant gravity vector as a reference to precisely determine the tilt angle of the seesaw.
project ball scale bma280 accelerometer lga 14 housing mountedproject ball scale bma280 accelerometer lga 14 housing

Thrust reversal thanks to pitch-adjustable rotor blades

A model building servo changes the angle of attack of the rotor blades, allowing the propeller to generate thrust in both directions without having to change the direction of rotation. This rapid thrust reversal is crucial for stabilizing the complex system.
project ball scale servo propeller drive adjustable propeller pitch adjustmentproject ball scale motor propeller drive adjustable propeller pitch adjustment

Signal and control interface with ATMEGA32 microcontroller 

A microcontroller programmed in C++ captures the sensor data and controls the propeller drive controller as well as the servo for rotor blade adjustment. Communication with the notebook running the control is done via the serial RS232 interface.

project ball scale circuit board atmega32 isolated

Control with function block editor in VB.NET

A specially developed function block editor is available for creating a controller. 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 course during runtime. Changes take effect immediately, without the need for recompilation as required in MATLAB Simulink.

Project Ball Scale Function Block Editor Software Screenshot

Controller design for a nonlinear, highly dynamic system

The ball scale represents a complex, nonlinear control system. The developed control loop includes a total of four cascades with five PIDT1 controllers, which influence the state variables of speed and position of both the ball and the lever. Each cascade stage is finely tuned to reliably keep the ball in the center despite unstable conditions.

project ball scale control loop regulation pidt1 controller signal flow plan

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

project ball scale torque characteristic curve thrust propeller pitch adjustment drive

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

project ball scale motor noise audio recording frequency

Manual control to illustrate the complexity

To better understand the complexity, the experimental setup can optionally be controlled manually via a joystick. This quickly makes it clear how challenging or nearly impossible it is to keep the ball balanced without a sophisticated control system.

project ball scale joystick manual controlproject ball scale power connection mains switch emergency stop

Manufacturing of wood, acrylic glass, and aluminum parts using CNC milling

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

project ball scale construction autocad drawing cadproject ball scale cnc milling acrylic glass
project ball scale cnc milling woodproject ball scale cnc milling aluminum
project ball scale cnc milling milled parts woodproject ball scale cnc milling milled parts aluminum
project ball scale cnc milling wooden constructionproject ball scale aluminum construction acrylic glass carbon fiber rod voltage divider
project ball scale cnc milling wooden constructionproject ball scale aluminum construction acrylic glass carbon fiber rod voltage dividerproject ball scale aluminum construction acrylic glass 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 microcontroller programming in C++, the ATMEL AVR Studio was employed. 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.NET_project ball scale hterm rs232 serial interface screenshot

Fine motor soldering work on the BMA280 accelerometer

Soldering the BMA280 accelerometer posed a particular challenge. The LGA-14 package with a pin pitch of 0.5 mm appears tiny even on a 1-cent coin. Despite having a soldering tip that was far too large, patience for waiting for the delivery of a suitable one was virtually nonexistent. 😉
IMG_6004 3project ball scale bma280 accelerometer lga 14 package soldered

Handing over the experimental setup to THWS

The THWS (Technical University of Würzburg-Schweinfurt) has taken over the experimental setup 'Ball Scale' for its Control Engineering Laboratory. Prof. Dr. Abid Ali, who leads the lab, expressed his heartfelt thanks for the extraordinary commitment.

donation thws technical university wuerzburg schweinfurt control engineering lab johannes glaser and prof dr ali

Pioneering spirit from study times strengthens control engineering lab

THWS thanks Johannes Glaser for the 'Ball Scale', a teaching model that enables students to learn control engineering in a practical way. ➔ Learn more now!

View
quote thws control engineering lab prof dr ali logo

Pioneering spirit from study times strengthens control engineering lab

On behalf of the Technical University of Würzburg-Schweinfurt (THWS), Prof. Dr. Abid Ali sincerely thanks Mr. Johannes Glaser for the transfer of the experimental setup 'Ball Scale' to the Control Engineering Laboratory.

Over ten years ago, the then electrical engineering student of the Faculty of Electrical Engineering showed exceptional commitment. Instead of limiting himself to the required regulation of an existing experimental setup, he independently developed and built a completely new control loop. Together with his fellow student Daniel Neeser, a challenging setup was created - the "Ball Scale". This teaching model now allows our students to learn the theoretical foundations of control engineering in a practical way. The aim of the experiment is to design a stable control loop that regulates a metal ball to the center of a seesaw using a propeller drive.

We are excited about this valuable addition to our control engineering laboratory 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 a self-employed 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 Laboratory - THWS

Ball Scale Challenge: Award for Outstanding Performance

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

project ball scale thws control engineering laboratory function block editor
project ball scale thws control engineering laboratory

THANK YOU!

Many thanks to Prof. Dr. Ali for the thorough imparting of valuable control engineering tools during my studies. The practical and in-depth exercises complementing the lectures have provided me with a solid foundation that continues to play a central role in my engineering work and significantly contributes to my understanding of complex technical systems.

★★★★★

<5 ratings

View more projects

project radar demonstrator led effect sunset night sky shooting stars

Safety Demonstrator - Exhibit for trade fair appearance

Interactive trade fair demonstrator with a double radar measuring path for safe and reliable distance measurement.

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

Module Demonstrator - Exhibit for trade fair appearance

A radar sensor with visualization for a trade fair setup that accurately measures distances through water, dust, and plastic.

View project
Project Sensor Box IMU product photo box

Sensor Box IMU with AHRS

Space technology in the box. A measuring unit that assists in decontaminating radioactively contaminated equipment parts.

View project
Software development code perspective blue Free Pic

Examples from software development

Control software for plant controls in the field of automation technology. With 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 multifunctional foot switch.

Coming Soon
Project Scale Packaging System with Safety Grid

Palletizing Robot

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

Coming Soon
Project Winding Machine 3D Model Linear Guide Brake Motor Landscape Format

Winding Machine

Adaptive winding robot that wraps any rotating body with tape while generating a uniform pressing force.

Coming Soon
Project Function Block Editor Screenshot

Function Block Editor

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

Coming soon
Project process controller PCB with display and peripherals

PIDT1 process controller

Freely programmable process controller with analog inputs and outputs that digitally represents any transfer functions, e.g., the PIDT1 controller.

Coming soon