Proximity – MaxBotix LV-EZ1

The LV-MaxSonar-EZ1 detects objects from 0 cm to 6.45 m and provides sonar range information from 15 cm out to 6.45 m with 1-inch (2.54 cm) resolution. Objects from 0 cm to 15 cm range as 15 cm.


  • 42kHz Ultrasonic sensor
  • Operates from 2.5-5.5V
  • Low 2mA supply current
  • 20Hz reading rate
  • RS232 Serial Output – 9600bps
  • Analog Output – 10mV/inch
  • PWM Output – 147uS/inch
  • Small, light weight module

Connecting to an Arduino

  • GND to GND
  • +5 to 5V
  • AN to Analog Input 0

Note: you might get unstable readings if you connect this directly to Arduino like this. Add a 100 ohm resistor and a 100 µ capacitor to the schematic like this.


You can also use RX/TX or PW pins to read the sensor data, but the analog output is the easiest to setup and use.

Arduino Code

// Reads values from a sensor connected to the analog input pin 0

int val;

void setup()
Serial.begin(9600);           // sets the serial port to 9600

void loop()
val = analogRead(0);       // read analog input pin 0
Serial.print("The value is: ");
Serial.println(val, DEC);    // prints the value
delay(100);              // wait 100ms for next reading

Connecting to the BU0836

The sensor uses a simple three-wire interface so it is easy to connect to the BU0836. I’ve made it even easier by making a couple of cables that let you plug the sensor directly to the BU0836. Just make sure you plug the sensor the right way into the connector. Black to GND, red to +5 and yellow to AN.

The cables are marked: “MaxSonar to BU0836”

Links and Resources