View Single Post
  #1   Spotlight this post!  
Unread 07-02-2008, 14:31
de_ de_ is offline
Registered User
AKA: Dave Edwards
FRC #1310 (Runnymede Robotics)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Toronto, Ontario
Posts: 256
de_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the rough
IR Sensor: Does Slow Loop Polling Work.

The IR specs say the IR sensor outputs 100MS pulses. The RC slow loop is ~26ms (unless your code takes longer than 26ms!) which means you should easily be able to catch IR sensor outputs without interrupts. Our quick test a few weeks ago did not catch IR outputs though maybe we did something wrong.

Anyone successfully using standard slow loop polling (ie NOT non-interrupt driven, NOT high speed CPU timer based polling) successfully with the IR Sensor ?

If doesn't work, do we know why not ? Has anyone actually measured the pulse width ?