View Single Post
  #10   Spotlight this post!  
Unread 05-02-2012, 23:50
carrillo694's Avatar
carrillo694 carrillo694 is offline
Alex Carrillo
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: New York, NY
Posts: 66
carrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the roughcarrillo694 is a jewel in the rough
Re: What sensor to use?

Quote:
Originally Posted by Jared341 View Post
Banner Engineering (ex: http://www.bannerengineering.com/en-...M-QS18-Series/) makes this type of sensor as well.
The sensor you suggest outputs in an oscillating wave pattern; it outputs ON for 600 μs and then OFF for 600 μs. Any tips/tricks/fancy hacks for writing code to detect such a pattern and discern it from a long OFF period?