|
Re: What VI to use with the line detector?
In case j.cole wasn't clear enough, I'll expand on what he said. The photosensors connect to a DIGITAL I/O pin on the Digital Sidecar. Only one of the black or white wires needs to be connected; one of them provides a signal when the photosensor is detecting an object, and the other provides a signal when it is not. Those pins are read using the DIO In functions (WPI Robotics Library >> IO >> DigitalInput).
The Robot Framework with Game Code project shows you how to use three photosensors to follow a gray line on the carpet. It's all in the Autonomous Independent vi.
|