View Single Post
  #41   Spotlight this post!  
Unread 12-01-2011, 16:37
Tem1514 Mentor's Avatar
Tem1514 Mentor Tem1514 Mentor is offline
Registered User
FRC #1514
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Toronto
Posts: 239
Tem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to behold
Re: How should we wire the photoswitchs?

I’ll be brief here and skip all the electronic information as how it works and what is required to make it work

To connect the photo sensor to the Digital I/O inputs

Wire colors on the sensor are
Brown wire to + 12 volts from the power distribution board (PD).
Blue wire to 0 volts (Ground/Negative ) from PD board.

You now need the White wire on a PWM cable. The Red and Black wire on the PWM cable you do not need so either remove them or insulate so they can not short to anything.

With the White wire in the PWM cable connect it to EITHER the White OR Black wire on the sensor. Plug the PWM cable into the Digital Sidecar (general purpose I/O) side.

The cRIO will now be able to read the sensor as a logical 1 or 0 that may be used as required by your software. You will even be able to see the sensor state on the Classmate diagnostic screen.