View Single Post
  #1   Spotlight this post!  
Unread 14-01-2014, 19:57
m1tche11d m1tche11d is offline
m1tche11d
FRC #1997
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2010
Location: Kansas
Posts: 21
m1tche11d is an unknown quantity at this point
Programming MaxSonar EZ1 Ultrasonic Rangefinder in Simple Robot Template

Our team is using the simple robot example as a template for our code for this year. We were wondering what the easiest way to wire and program the MaxSonar EZ1 rangefinder would be.

We looked at some other posts and it seems that we can wire it as either a digital or an analog input. Is there a "better" way to wire it, or are both equally good?

Finally, once we wire it, how would we declare it in our code, and how would we pull in a distance from the sensor?

Thanks,
Team 1997
Reply With Quote