View Single Post
  #1   Spotlight this post!  
Unread 10-02-2014, 23:25
cogbrained3244 cogbrained3244 is offline
Registered User
FRC #3244
 
Join Date: Nov 2012
Location: St.Cloud MN
Posts: 5
cogbrained3244 is an unknown quantity at this point
Question How in the world do I code and wire this wacky sensor(a.k.a. Photoswitch)

So, we're tossing a telescoping blocker on our robot, and the mentors want a way to control it so it doesn't try and go past it's safe spot. So they handed me this thingy and told me "Figure out how to wire this. Then figure out how to program it." The Javadocs don't have anything I could see about using these. So how they work is a little beyond me.

I know that this is a photoswitch/photometer and that I want to get a true false value out of the thing's feedback. But where do these four wires connect to, is it analog or digital, and how do I write code for it?

Note that other members of my team might write replies to this topic consorting with me, so check our team number before you get confused by someone's post. Also, apologies for tossing the pictures of the thing in a word document. It was the only way to get the file size down.
Attached Files
File Type: doc Photo 2 Photometer.doc (358.5 KB, 34 views)
Reply With Quote