If you programme it correctly it will drift itself,because at the corner when it goes straight the sensor will see the white place,but as I said if you programme it correctly,it will only go on anything black.Its so simple...it took our 15 minutes at school to do.
I still don't get, how did you programmed it to know when to turn lef or right? how can the robot distinguish the situation, to know wich side it will turn??
@antoniono95 Take a look at the tutorial on techbricks.nl on how to build a line tracer robot using a PID controller. This method uses a feedback loop and calculates the error value relative to a setpoint. The program then adjusts the robot to minimize the error. So effectively, when the error gets larger and larger, the program will know to turn the other way to keep on course.
@dolah1995 Yes, it can be done using a normal NXT light sensor, but the implementation is more of a hack. I can send you the link to a similar implementation on a website I used.
Hi, your robot is fast and amazing. I am very interested to read your line tracing program using C. Can you kindly mail it to me at ongchinhui@gmail.com. Thanks alot.
Well, i am as well interested on knowing on how you made the program, we are going to make a robot for a competition. and this program could be handy. if you happen to have a copy of the program of this robot, would you please let a download link for it?
@MacWii You can take a look at techbricks.nl where they explain how to implement a PID controller and I found that implementation works very well too.
@robojove You can take a look at techbricks.nl where they explain how to implement a PID controller and I found that implementation works very well too.
@jjdogman170 I used a state machine where if the robot detects that it doesn't require any turning for a while, then the two motors are set to be the same power for it to go straight.
How did you program the sensor to know the colors and to turn right and left?
right now i am using nxt 2.1 programmer for the lego mindstorm and we have it following a line but it will only make left turns and not right turns. what should i do?
How did you program the sensor to know the colors and to turn right and left?
right now i am using nxt 2.1 programmer for the lego mindstorm and we have it following a line but it will only make left turns and not right turns. what should i do?
@levibowhunter I used NXC to program the color sensor. If you are using NXT-G there is a pretty good implementation and explanation on this site that I found. I'll email you the link.
@lamzhiyuan I programmed it with NXC, a C like language. It is also possible to program it with LabVIEW, the graphical flow-chart like software that came with the NXT set.
@lamzhiyuan The color sensor shines red, green, and blue light. When the robot goes off course and slightly to one side, it would detect one of the colors. So the robot is able to distinguish between the left side and the right side and turn appropriately.
@pandalori Very clever, I never would have thought to use the offset of the color LEDs to detect the sensor position. I will use this idea, thanks! :-) Steve Putz, Robotics Learning
@lamzhiyuan the robot doesn't really follow the line, it follows the edge of the line = to dark turn left, to bright turn right, this programmed with a PID-Controller (a formula witch compensate errors) and the robot can follow lines very nice and fast
@pandalori: I do not believe you can use LabVIEW for this application, since it allows only one color lamp to illuminate at a time and can't switch back and forth quickly enough to be of use. I guess I'll have to learn NXC!
nice
Myrsloken3 4 weeks ago
pretty good
AzNoelle493 2 months ago
How did you make it go so fast?
MrAlimurka 4 months ago
Nice and smooth with one sensor. Good parametrs. We use tighter line for student competitions and bigger wheels, so they have to use more sensors.
thePavuk 4 months ago
If you programme it correctly it will drift itself,because at the corner when it goes straight the sensor will see the white place,but as I said if you programme it correctly,it will only go on anything black.Its so simple...it took our 15 minutes at school to do.
SkipperWordPress 5 months ago
I still don't get, how did you programmed it to know when to turn lef or right? how can the robot distinguish the situation, to know wich side it will turn??
antoniono95 7 months ago
@antoniono95 Take a look at the tutorial on techbricks.nl on how to build a line tracer robot using a PID controller. This method uses a feedback loop and calculates the error value relative to a setpoint. The program then adjusts the robot to minimize the error. So effectively, when the error gets larger and larger, the program will know to turn the other way to keep on course.
pandalori 7 months ago
Erm.... Can this same line tracing be done using a normal NXT light sensor ?
Im very interested to learn how you program such a fast line tracing NXT robot.
May i request that you share the logic of the line tracing program ?
I would really appreciate it if you do.
dolah1995 8 months ago
@dolah1995 Yes, it can be done using a normal NXT light sensor, but the implementation is more of a hack. I can send you the link to a similar implementation on a website I used.
pandalori 8 months ago
This has been flagged as spam show
@pandalori
Hi, your robot is fast and amazing. I am very interested to read your line tracing program using C. Can you kindly mail it to me at ongchinhui@gmail.com. Thanks alot.
ongchnihui 4 months ago
Well, i am as well interested on knowing on how you made the program, we are going to make a robot for a competition. and this program could be handy. if you happen to have a copy of the program of this robot, would you please let a download link for it?
Thanks in advice
MacWii 11 months ago
@MacWii You can take a look at techbricks.nl where they explain how to implement a PID controller and I found that implementation works very well too.
pandalori 10 months ago
@pandalori Nice project! Did u programm it with the "normal" Software from LEGO? I hope u answer, it's really important!
MrSwiss313 9 months ago
@MrSwiss313 No, I didn't use the software that came with the Lego kit. I used a C like programming language called NXC.
pandalori 9 months ago
ey whats up i saw u line following robot can u lend me the program that u use? i want to do something like this thanks so much
robojove 11 months ago
@robojove You can take a look at techbricks.nl where they explain how to implement a PID controller and I found that implementation works very well too.
pandalori 10 months ago
how did u make it to go straight
cause mine still goes zig zag line
jjdogman170 11 months ago
@jjdogman170 I used a state machine where if the robot detects that it doesn't require any turning for a while, then the two motors are set to be the same power for it to go straight.
pandalori 10 months ago
This has been flagged as spam show
How did you program the sensor to know the colors and to turn right and left?
right now i am using nxt 2.1 programmer for the lego mindstorm and we have it following a line but it will only make left turns and not right turns. what should i do?
levibowhunter 11 months ago
How did you program the sensor to know the colors and to turn right and left?
right now i am using nxt 2.1 programmer for the lego mindstorm and we have it following a line but it will only make left turns and not right turns. what should i do?
levibowhunter 11 months ago
@levibowhunter I used NXC to program the color sensor. If you are using NXT-G there is a pretty good implementation and explanation on this site that I found. I'll email you the link.
pandalori 10 months ago
@pandalori could you email me the link to get my bot to line trace too?
GMSamuelRhine 7 months ago
wow put loop
123456bnys 11 months ago
How did you program it?
lamzhiyuan 1 year ago
@lamzhiyuan I programmed it with NXC, a C like language. It is also possible to program it with LabVIEW, the graphical flow-chart like software that came with the NXT set.
pandalori 1 year ago
@pandalori What I mean is, how did you get the robot to know whether to turn left/right when it sees white?
lamzhiyuan 1 year ago
@lamzhiyuan The color sensor shines red, green, and blue light. When the robot goes off course and slightly to one side, it would detect one of the colors. So the robot is able to distinguish between the left side and the right side and turn appropriately.
pandalori 1 year ago
@pandalori Very clever, I never would have thought to use the offset of the color LEDs to detect the sensor position. I will use this idea, thanks! :-) Steve Putz, Robotics Learning
RoboticsLearning 1 year ago
@lamzhiyuan the robot doesn't really follow the line, it follows the edge of the line = to dark turn left, to bright turn right, this programmed with a PID-Controller (a formula witch compensate errors) and the robot can follow lines very nice and fast
8597465 1 year ago
@pandalori: I do not believe you can use LabVIEW for this application, since it allows only one color lamp to illuminate at a time and can't switch back and forth quickly enough to be of use. I guess I'll have to learn NXC!
hydrogenhead 11 months ago