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

Featured Replies

Posted

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

Hi, the basic idea is:

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

That's all ;-)

 

  • Author
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.

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 

 

 

  • Author
2 hours ago, Munchkin255 said:

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

Yes it's amazing.

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

Recently Browsing 0

  • No registered users viewing this page.
Sponsored Links