Log in

View Full Version : Line Sensor Code


st28
18-02-2004, 15:44
can someone send me the line sensor code??????????????

jacob_dilles
18-02-2004, 15:52
sorry to let you down, but its realy hard to write "canned" line sensor code. things like the mounting of the sensors; how close/far they are apart, how high they are off the ground, even how many of them there are; all go into the code. you could have a very simple 2 sensor tracker with 2 if statements, or you could have 8 sensors and historisas with the acceleromitor from last year helping to. there is the some old PBASIC code here (http://www.chiefdelphi.com/forums/showthread.php?t=18031&highlight=line+tracker) if you have no idea where to start. best of luck, Jacob

Ryan M.
18-02-2004, 15:57
How many sensors do you have and what is their configuratation? (I.E. We have three sensors. The middle one and one of the side ones read the line when the robot is going off the moving away from the line.) If you can give some details like that, somebody will probably whip a quick example up. (Maybe me... :))

Catastrophy
18-02-2004, 18:31
Ya if someone could post thiers' with mounting information that would be extremely helpful! I have one I'm working on but am having problems actually keeping it on the line. :p It does fine in straight aways but curves and corners well... lets just say its a work in progess. If anyone would like the information/code im working on IM or PM me.