Troubleshooting Challenges with New PID Trainer Setup

Question:

I have developed a new style PID trainer in an effort to offer a more cost-effective option compared to our current model. This version may appear simple at first glance, but I am facing challenges in getting it to function properly. The setup includes a basic setup with a motor for vertical movement, but despite my best efforts in adjusting the PID settings, I am unable to achieve the desired outcome. I have tried various configurations and believed I had a good grasp on setting them up, but the issue persists. Could it be possible that certain factors, such as the motor speed, are affecting the PID performance? My original plan was to incorporate oscillating fan movement to add complexity, but I am currently unable to resolve the existing issues before introducing additional variables. Watch the demo video here: https://www.youtube.com/watch?v=WbB1Lq27Pvg.

Top Replies

Are you able to track the location of the ball at all times?

It seems like the servo is operating at a satisfactory speed, ruling out any issues there. One thing to consider is the effectiveness of the ball-tracking sensor in terms of speed. For the next version of the "PID trainer," a suggestion could be to test it with a ball on a level or slightly curved surface, where the PID system ensures the ball stays centered on the surface. This experiment could help enhance the performance of the system.

Question: Can you track the location of the ball at any time? Yes, I have configured the PLC with one input on the left side connected to a sensor that monitors the ball's position. The sensor outputs 4mA when the ball is near and 20mA when it is at the opposite end. The PLC output ranges from 4-20mA and adjusts the angle accordingly. I am utilizing the PID output's min/max values to reduce overshooting. It seems like the servo is fast enough, so the issue might not lie there. Have you checked if the sensor tracking the ball is responsive? In the next iteration of the "PID trainer," consider having the ball on a flat or slightly curved surface and use PID to keep it centered. I appreciate your input, and it appears that the sensor feedback is instantaneous. I initially had concerns about the PID's ability to prevent overshooting, but I will experiment with the feedforward setting to see if it makes a difference.

Have you simulated the system? It is important to note that the system is inherently unstable. When the channel is level, the ball will be stable anywhere, but when the channel is not level, the ball will always come to a stop. By adjusting the angle channel's attitude, the PID system controls the force (gravity) acting on the ball, rather than the velocity. This is akin to operating a joystick on a jet fighter. The acceleration or force applied is directly proportional to the sine of the channel angle in relation to being level, meaning the system gain closely follows the servo position. There is a significant amount of inertia present when the ball is in motion, both in terms of translation and rotation, with a high ratio relative to the controlled acceleration (sine of the angle) when the channel is close to being level. It may be more straightforward to convert the position into velocity and focus on driving that velocity to zero using acceleration (equivalent to force relative to angle).

Back in my working days with the RS500, I recall using the PID instruction which had a timer feature. Have you ever considered adjusting that value? Another tool I used for quicker responses was STI. I wonder if it would be applicable in this scenario. As someone who is now retired, these memories of experimenting with PLC programming methods still stick with me.

After watching your demo video, a couple of things come to mind that might be worth exploring. First, are you accounting for non-linearities in your system? It could be a case where your motor isn't responding linearly to control inputs, which could throw off the PID. Maybe delve a bit deeper into understanding the behavior of your motor under various loads. Second, your PID tuning approach might also need a revisit. From my experience, I've found it beneficial to start from a manual PID tuning approach, then iteratively adjust to fine-tune. You might want to consider using a method like Ziegler–Nichols. And definitely, introducing an oscillating fan movement before troubleshooting current issues may complicate things further.

Interesting project, and I can see how the setup might seem frustrating. Based on what you've described, it does sound like motor speed could be impacting your PID performance. Remember, the D (derivative) part of PID controls can be quite sensitive to rapid changes, which can cause an unstable system if the motor speed is too high. Simplify it down and isolate variables to understand where your control system might be failing. Also, have you considered issues like non-linearity or hysteresis in your motor's response? This might be the source of the problem. Keep trying, I'm eager to see how this evolves!

It sounds like you're putting in a lot of effort to fine-tune your new PID trainer! From what you described, it’s definitely possible that the motor speed is affecting your PID performance. Sometimes the response dynamics of the motor can complicate tuning, especially if it has high inertia or is slow to respond. Have you considered running some experiments to observe how the motor behaves with different input signals? You might gain insights that help refine your PID settings. Once you nail down the basics, you can always gradually introduce oscillating movements to see how the system copes with added complexity. Keep pushing through; it sounds like you’re on the verge of something great!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: What are some challenges faced with the new PID trainer setup?

Answer: The user is facing difficulties in getting the new PID trainer to function properly despite adjusting the PID settings.

FAQ: What components are included in the setup of the new PID trainer?

Answer: The setup includes a basic configuration with a motor for vertical movement.

FAQ: How is the user trying to enhance the complexity of the PID trainer setup?

Answer: The user planned to incorporate oscillating fan movement to add complexity but is currently unable to resolve existing issues before introducing additional variables.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’