Using either limit switches or line trackers

So for this year people have been making auto sorting code for the robot to make it easier on the driver and with that the people I have seen so far have been using line trackers. With that because of different lighting conditions it can be concerning because at a comp it might not work but where you normally practice it does. So is the a big deal. And if it is are limit switches a good Back up. But my concern with those is if you reverse your intakes and everything and then it breaks. So how would you go about solving these problems.

You can bend the metal on limit switches such that its curved. But if you cannot do that due to the sheer size of the balls you can use a 1x1 L-Channel that is a lever with a button on the other side. As for line trackers if you put it in shade, you can get accurate results for consistent usage.


I just made some auto indexing code and used line trackers, havent had any problems with different lighting conditions so I would say these are the way to go.

If you can I would use limit switches. more reliable than line trackers, and probably easier to get working.


Could bumber switches possibly be a good choice too. I’m not really sure because this is my first year that I am going to use sensors. I should have a long time ago but that is why I am doing it know

depends, a limit switch has that give to it so it doesn’t get in the way of balls, but it could work depending on your placement.

Maybe, but limit switches take less force to toggle. And the metal piece can be bent/ taken off if need be. Like Xenon said it could work but imo I’d rather use limit switches than bumper switches.


Not really an answer to the original question, but you can use a “custom” limit switch which is just a piece of metal mounted to a potentiometer. Same functionality as a limit switch but you can get an exact value rather than a 0 or a 1.


i remember seeing a post somewhere that basically implemented a light sensor with line trackers. the light sensor would detect the lighting condition of the room which changes the detection value of the line trackers to better suit the lighting of the room


We personally have been using auto-indexing code for the past 2 months or so, and we utilize an array of line trackers to get the job done. The most you have to look out for is to make sure the line trackers are extremely close to the ball when being sensed. This helps improve the consistency and reliability of the system.


This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.