oracid Posted March 16, 2022 Posted March 16, 2022 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. Quote
CheungsLegoCreation Posted March 23, 2022 Posted March 23, 2022 This looks really cool and the line follower is definitely very quick. How much programming is needed to get this going? Quote
Jim Posted March 23, 2022 Posted March 23, 2022 This surely is one of the fastest line followers I have seen! Quote
oracid Posted March 23, 2022 Author Posted March 23, 2022 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. Quote
CheungsLegoCreation Posted March 31, 2022 Posted March 31, 2022 @oracid Thanks for the link to the code. It is impressive such a small amount of code can do that much :) Quote
oracid Posted March 31, 2022 Author Posted March 31, 2022 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. Quote
Jim Posted March 31, 2022 Posted March 31, 2022 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. Quote
XG BC Posted April 4, 2022 Posted April 4, 2022 once you manage to tune it correctly that is... Quote
oracid Posted April 5, 2022 Author Posted April 5, 2022 9 hours ago, XG BC said: once you manage to tune it correctly that is... Sorry, I don't understand. Quote
XG BC Posted April 5, 2022 Posted April 5, 2022 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. Quote
oracid Posted April 5, 2022 Author Posted April 5, 2022 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. Quote
XG BC Posted April 5, 2022 Posted April 5, 2022 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 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.