Recommended Posts

Posted (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 by Aris

Share this post


Link to post
Share on other sites

Hi, the basic idea is:

Loop:
When sensor is white then change direction of steering
Wait till sensor is black

That's all ;-)

 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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 

 

 

Share this post


Link to post
Share on other sites
2 hours ago, Munchkin255 said:

I really like, that the winner is using a good old RCX

Yes it's amazing.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.