View Single Post
  #3   Spotlight this post!  
Unread 30-01-2011, 11:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote