Jump to content

Recommended Posts

Posted

In this new video, I show a Robot Chariot with the HuskyLens AI camera following a line. Here the speed is greater than with a tank and a PID shows its efficiency.
As usual, I associated Lego, Arduino and servo RC technology. This association allows achievements without constraints and without limits.

 

 

Posted
2 hours ago, CheungsLegoCreation said:

How much programming is needed to get this going?

The code is 30 lines long. You can see it at 1'53". The link is on description, but here it is, https://github.com/oracid/Chariot-Robot-HuskyLens-Line-Follower-with-PID/blob/main/Chariot-LINE_TRACKING-V4-ref.ino

1 hour ago, Jim said:

This surely is one of the fastest line followers I have seen!

Thank you, but I should work still a little bit. 

 

Posted
9 minutes ago, CheungsLegoCreation said:

It is impressive such a small amount of code can do that much :)

Thank you.

I've always thought that the fewer lines of code, the more readable it is.
It is for this reason that when several instructions relate to the same objective, I group them together on the same line.

When all the whole code fits on the screen, I'm very happy.
This way is considered heretical, but I will not change it.
Unfortunately, this is not possible with Python. Pity.

Posted
28 minutes ago, oracid said:

This way is considered heretical, but I will not change it.

Indeed it is hahaha.

PID controllers are impressive though.

Posted

pid controllers require tuning the amount of p the amount of i and the amount of d in order to prevent the robot from beeing to slow to react or to fast. if you reach the perfect amounts you get a result like you did. my post was referring to the one above that pid controllers are impressive. they are but only if you manage to get the amounts of p i and d correct.

Posted
1 hour ago, XG BC said:

pid controllers require tuning the amount of p the amount of i and the amount of d in order to prevent the robot from beeing to slow to react or to fast. if you reach the perfect amounts you get a result like you did. my post was referring to the one above that pid controllers are impressive. they are but only if you manage to get the amounts of p i and d correct.

Yes, you are right, but the problem is what is the method to get good value for P, I and D.

Posted
26 minutes ago, oracid said:

Yes, you are right, but the problem is what is the method to get good value for P, I and D.

good question. this is the question i dont have the answer for. maybe try it out in increments till it works best for each value? maybe there is some other way but you are going to have to google that

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