|
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
|