Custom Sensor - MaxSonar UltraSonic Range Finder

  • Model: LV-MaxSonar-EZ4 (MB1040)
  • Range: 254 inches
  • Output: 1 inch / 9.8mV
  • Power: 5 volts
  • Accuracy: 1 inch

Sensor Definition

Without Voltage Divider

This picture does not show a voltage divider - so it maxes out at 204 inches, and doesn't reach the true 254 inch range of the sensor. A voltage divider should always be used so the voltage never exceeds 2 volts.

 

 "MaxSonar Ultrasonic Range" : {
 "desc" : "LV-MaxSonar-EZ4: MB1040 (5v power, 17' range)",
 "analog" : true,
 "rj45_v1" : true,
 "tblock_v1" : true,
 "do_volt0" : 5,
 "rep_analog" : 1,
 "default_tag" : "distance",
 "analog_tag" : "distance",
 "conversion" : "xyz*8.5",
 "unit" : "feet",
 "precision" : 2
 }

With Voltage Divider
 "MaxSonar Ultrasonic Range" : {
 "desc" : "MaxBotix MaxSonar EZ LV4 (0-254 inches) - with voltage divider",
 "conversion" : "xyz*21.33",
 "analog" : true,
 "rj45_v1" : true,
 "tblock_v1" : true,
 "do_volt0" : 5,
 "rep_analog" : 1,
 "default_tag" : "distance",
 "analog_tag" : "distance",
 "unit" : "ft",
 "precision" : 2
 }