Aris Posted May 2, 2024 Posted May 2, 2024 (edited) Hello everyone! I am sure some of you have the experience with this code. What's the secret of running so fast and never losing the black line? Seems PID control but updated. Here is the video. Thanks! Edited May 4, 2024 by Aris Quote
Lok24 Posted May 2, 2024 Posted May 2, 2024 Hi, the basic idea is: Loop: When sensor is white then change direction of steering Wait till sensor is black That's all ;-) Quote
Aris Posted May 3, 2024 Author Posted May 3, 2024 20 hours ago, Lok24 said: Hi, the basic idea is: Loop: When sensor is white then change direction of steering Wait till sensor is black That's all ;-) Actually this is PID control, is not that simple. Quote
Lok24 Posted May 3, 2024 Posted May 3, 2024 3 hours ago, Aris said: Actually this is PID control, is not that simple. Of course. This is explained here: https://www.youtube.com/watch?v=AMBWV_HGYj4 Quote
Munchkin255 Posted May 3, 2024 Posted May 3, 2024 I really like, that the winner is using a good old RCX Quote
Aris Posted May 3, 2024 Author Posted May 3, 2024 2 hours ago, Munchkin255 said: I really like, that the winner is using a good old RCX Yes it's amazing. Quote
Toastie Posted May 4, 2024 Posted May 4, 2024 On 5/3/2024 at 12:25 PM, Munchkin255 said: really like, that the winner is using a good old RCX That is what I thought! My all-time favorite PBrick. Now, the RCX running LEGO firmware is not that fast to do PID calculations - it has to do that since that firmware had no built-it PID routines. I guess it runs on another firmware. The RobotC firmware (Dick Swan) was pretty fast - I did implement PID train motor control back in the days. And there are other programming languages as well. However, I cannot discern any rotation sensor. Without - no PID control. I also believe that the 9V Technic motors are in favor of using higher rpm's. Best, Thorsten Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.