Jump to content
THIS IS THE TEST SITE OF EUROBRICKS! ×
THIS IS THE TEST SITE OF EUROBRICKS!

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
Posted

Hi, the basic idea is:

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

That's all ;-)

 

Posted
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.

Posted
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 

 

 

Posted
2 hours ago, Munchkin255 said:

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

Yes it's amazing.

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...