@NobPilot1 Not sure of the robot configuration. Usually robots need to have one side being run by one set of motors and the other side by a different set of motors. So let's just say the A motor is the right and the B is the left. Then you just follow the directions. If you have one motor that runs both of the back wheels and one that runs the right front and one that runs the left front; then you can't really turn the robot, at least not easily
@NobPilot1 I do have a nice all wheel drive that uses only two motors and 4 wheels. The two right wheels are run off the same motor, using gears. And the two left wheels are run off the other motor, again using gears. It turns a little clunky, but it gets over things much better with the all wheel drive. Visit the Maine Robotics website and download the PDF file for the robot
@kingsof982 If you have the commercial 2.0 version then it comes with a color sensor. But you can set the color sensor to behave as a light sensor and you are all set.
@goad951 If you have the color sensor, in the block for the color sensor you should be able to tell it to act like a light sensor instead of a color sensor and you would be all set.
Hi over there! I am having some sort of trouble! The thing is that I can't make my Lego choose beetween lines! I don't know what can I do! Maybe you can give me an idea? I wish you all the best!
Only one of my motors moves and it doesn't matter if it is light or dark. All connections are good but I don't know what is wrong. Can you help me?!?!?!?!?!?!?!?!
@Jmaz926 : Have you ever used the VIEW function on the NXT? From the Main Screen on the NXT, use the arrow buttons until you reach the VIEW function (looks like a screen with an arrow). Select this. Now use the arrow keys to move until you get REFLECTED LIGHT (looks like a light bulb that is on). Select the Port it is plugged into (1, 2, 3 or 4). It should now have the value of the light being received showing on the display window. Move it around, check different surfaces.
@Jmaz926 : The LED should be on. If the LED doesn't come on or you don't get any number showing in the display window for the light value... then you either have a bad sensor, a bad wire, or a bad port on the NXT. Try a different wire, different sensor, different port.
Mine is not working and I have double checked everything. Isn't the light sensor suppose to be red or something and shouldn't it be a color sensor, not a light sensor. Can you help me!!!!????
@Jmaz926 : You can run a line follower with either a light sensor or a color sensor (running as a light sensor). And yes, when you run the program one of the LED lights on the sensor should turn on. There are two LEDs (Light Emitting Diodes) on the light sensor. In the sensor block in your program, make sure you have the "generate light" check box marked. Also make sure that whatever port you have listed in the program you have the light sensor plugged into that port.
thanks for the tut, hopefully it works! All this really is is common sense, but as I am very tired, I thank you for this tuorial... subscribing to you
If you are running the motors directly on the NXT drive wheels (most times this is true), then you can power the motors between 25% power and 100% power and still have the robot run. If the robot is going too fast, try dropping the power down to 50 or 40% and try again. If it still is going too fast (or missing the line) then double check that the robot is seeing the line by using the view command on the NXT (we have a video about using that function as well). Good luck.
If you are running the motors directly on the NXT drive wheels (most times this is true), then you can power the motors between 25% power and 100% power and still have the robot run. If the robot is going too fast, try dropping the power down to 50 or 40% and try again. If it still is going too fast (or missing the line) then double check that the robot is seeing the line by using the view command on the NXT (we have a video about using that function as well). Good luck.
There are a couple of things to check. 1) make sure the light sensor is plugged into the same port on your NXT as the program is looking for (the default is to look on Port 3, so make sure you are plugged in to Port 3). 2) if the light/dark values are too high or too low then you are probably stuck in the turn left part of the loop. From the main menu on the NXT, use the arrows to go to VIEW and check on what values the light/dark are giving you and match program to something between this.
can you help me mine use the same program but mine just turned around in circles. i started with it in the middle of the line and it turned in big left circles!
Do you know how to follow a line with 2 light sensor?? Please reply
GeneralHayate 1 week ago
how can i do a line follower program, with a car that has 4 wheels and 3 motors? can you help me, have a big problem with this?
NobPilot1 1 month ago
@NobPilot1 Not sure of the robot configuration. Usually robots need to have one side being run by one set of motors and the other side by a different set of motors. So let's just say the A motor is the right and the B is the left. Then you just follow the directions. If you have one motor that runs both of the back wheels and one that runs the right front and one that runs the left front; then you can't really turn the robot, at least not easily
MainelyTom 1 month ago
@NobPilot1 I do have a nice all wheel drive that uses only two motors and 4 wheels. The two right wheels are run off the same motor, using gears. And the two left wheels are run off the other motor, again using gears. It turns a little clunky, but it gets over things much better with the all wheel drive. Visit the Maine Robotics website and download the PDF file for the robot
MainelyTom 1 month ago
thanks alot does this work with the nxt 2.0 version?
kingsof982 2 months ago
@kingsof982 If you have the commercial 2.0 version then it comes with a color sensor. But you can set the color sensor to behave as a light sensor and you are all set.
MainelyTom 1 month ago
@MainelyTom ok thanks
kingsof982 1 month ago
can u use a color sensor???????
goad951 2 months ago
@goad951 If you have the color sensor, in the block for the color sensor you should be able to tell it to act like a light sensor instead of a color sensor and you would be all set.
MainelyTom 1 month ago
Very helpful thx
810mb3Rg 3 months ago
Hi over there! I am having some sort of trouble! The thing is that I can't make my Lego choose beetween lines! I don't know what can I do! Maybe you can give me an idea? I wish you all the best!
Benjatr0n 6 months ago
this is the "NXT" or "NXT 2.0" couse I try and it doesent work
ttominable 6 months ago
do you know how to make it fast and smooth using th light sensor
TheMexicano17 7 months ago
only one motor is working and it doesnt matter if its dark or light.
I dont know whats wrong.
HELP MEEE....
17Andronikos 10 months ago
Only one of my motors moves and it doesn't matter if it is light or dark. All connections are good but I don't know what is wrong. Can you help me?!?!?!?!?!?!?!?!
Jmaz926 10 months ago
@Jmaz926 : Have you ever used the VIEW function on the NXT? From the Main Screen on the NXT, use the arrow buttons until you reach the VIEW function (looks like a screen with an arrow). Select this. Now use the arrow keys to move until you get REFLECTED LIGHT (looks like a light bulb that is on). Select the Port it is plugged into (1, 2, 3 or 4). It should now have the value of the light being received showing on the display window. Move it around, check different surfaces.
MainelyTom 10 months ago
@Jmaz926 : The LED should be on. If the LED doesn't come on or you don't get any number showing in the display window for the light value... then you either have a bad sensor, a bad wire, or a bad port on the NXT. Try a different wire, different sensor, different port.
MainelyTom 10 months ago
Mine is not working and I have double checked everything. Isn't the light sensor suppose to be red or something and shouldn't it be a color sensor, not a light sensor. Can you help me!!!!????
Jmaz926 10 months ago
@Jmaz926 : You can run a line follower with either a light sensor or a color sensor (running as a light sensor). And yes, when you run the program one of the LED lights on the sensor should turn on. There are two LEDs (Light Emitting Diodes) on the light sensor. In the sensor block in your program, make sure you have the "generate light" check box marked. Also make sure that whatever port you have listed in the program you have the light sensor plugged into that port.
MainelyTom 10 months ago
Thank you very very mutch :) It works :)
Atrejuh 10 months ago
thanks for the tut, hopefully it works! All this really is is common sense, but as I am very tired, I thank you for this tuorial... subscribing to you
ultimatebung 1 year ago
If you are running the motors directly on the NXT drive wheels (most times this is true), then you can power the motors between 25% power and 100% power and still have the robot run. If the robot is going too fast, try dropping the power down to 50 or 40% and try again. If it still is going too fast (or missing the line) then double check that the robot is seeing the line by using the view command on the NXT (we have a video about using that function as well). Good luck.
MainelyTom 1 year ago
how to make the robot sped away without being stagnant?
should i change the power's value?
hirumiyamada 1 year ago
@hirumiyamada
If you are running the motors directly on the NXT drive wheels (most times this is true), then you can power the motors between 25% power and 100% power and still have the robot run. If the robot is going too fast, try dropping the power down to 50 or 40% and try again. If it still is going too fast (or missing the line) then double check that the robot is seeing the line by using the view command on the NXT (we have a video about using that function as well). Good luck.
MainelyTom 1 year ago
There are a couple of things to check. 1) make sure the light sensor is plugged into the same port on your NXT as the program is looking for (the default is to look on Port 3, so make sure you are plugged in to Port 3). 2) if the light/dark values are too high or too low then you are probably stuck in the turn left part of the loop. From the main menu on the NXT, use the arrows to go to VIEW and check on what values the light/dark are giving you and match program to something between this.
MainelyTom 1 year ago
can you help me mine use the same program but mine just turned around in circles. i started with it in the middle of the line and it turned in big left circles!
stuntidiotz 1 year ago