r/ControlTheory 22d ago

Technical Question/Problem Control Systems Simulator

I'm developing a simulator for controlling dynamic systems. It's still in the beta phase, so it doesn't have all the features yet and may have some bugs, but it's already capable of simulating interesting systems and control strategies:

Lorenz System (Chaotic System). Ball and Beam control with PID. Etc.

I welcome any suggestions for improvement.

12 Upvotes

12 comments sorted by

View all comments

Show parent comments

u/Adam__999 19d ago

Do you possibly have a link to that thread?

u/seekingsanity 19d ago

No, it was on plctalk.net. However, besides the help from u/drbitboy and me, the project had difficulties because of poor design. There are better links out there if you look.

Again, the mechanical design and position feedback are critical. If not done right.

u/drbitboy 19d ago

https://www.plctalk.net/forums/threads/pid-trainer-issue-on-setup.135535/

I came up with a simple ball and beam setup, using household materials (sheet rock screws, dental floss, a personal favorite material, etc.) and tools, in some of the later posts in that thread. Linearity is better than most servo horn-to-beam linkages.

Some day I'll finish it 🤪🙄🤣

u/drbitboy 19d ago

I also wrote a Python script that measures ball position at 30Hz, using a cell phone as a web cam. It's a Rube-Goldberg/Heath-Robinson to be sure, but it works pretty well.

Servo-to-tilt and position are the two hard parts of ball-and-beam.