MaxBotix Inc., had completed an application note that may help teams use the MaxSonar ultrasonics sensors in the 2011 FIRST competition. This note covers using the sensors for pole detection, distance, and direction to align the minibot for placement on the pole.
You need to set it as a output to send the initial pulse. Then as an input to let the pulse “loop back around” from the last MaxSonar.
I was a little worried about Java not GC’ing the DigitalOutput object fast enough. But it looks like using DigitalModule.*DIO() should allow the control needed.
Has anyone actually gotten these working with the daisy chaining? We wired up two LV-MaxSonar-EZ4s for daisy chaining and we can get it working on a breadboard.
Unfortunately, we can’t figure out how to reconfigure a digital i/o pin as an input once it is configured as an output. We are getting an AllocateException. We are using Java. Any ideas?
Will using an XL-MaxSonar-EZ0 work just as well as XL-MaxSonar-EZ0? I’ve looked at the schematic for the daisy chain and I was wondering where each of the wires get wired back to on the digital side car. Our team has limited electronic experience so any additional help would be great.