I would like to connect three MAX EZ1 sonars on my Serializer and I am not sure how to do it.
I tried to connect them on the Digital I/O pins following the instruction given on the Robotics Connection web site (GND/+5v/Analog). When I tried to execute on a terminal console the command "maxez1" and I have got all the time NACK.
I don't understand why, as discribed in the Serializer documentation, we have to provide two parameters, two pin ids.
Could someone explain me why the maxez1 command requires two parameters?
It requires two pins because one pin is the trigger pin (to initiate the ping), and the second is the output pin, which provides the distance.
The RX pin is the trigger pin, and the PW is the output pin on the MaxSonar-EZ1s.
If you want to connect 3 max sonars, you'll need 6 I/O lines (a trigger/output pin pair for each).