MB704X Class
- ID: mb704x
- Name: I2C MaxSonar WR Ultrasonic Ranger
- Other Names: MB7040 MB7047 MB7247
- Category: sound
- Manufacturer: maxbotix
- Connection: i2c
- Link: http://www.maxbotix.com/Ultrasonic_Sensors/I2C_Distance_Sensors.htm
This driver was tested with the MB704x MaxSonar-WR Ultrasonic Ranger using the long distance, weather resistant horn. Depending on your sensor type and horn, tanges from 20cm to 750cm are possible.
Methods
MB704X
(
Number
-
bus
-
addr
Initialize a device context.
Parameters:
-
bus
NumberSpecify which the I2C bus to use. The default is 0.
-
addr
NumberSpecify the I2C address to use. The default is 112.
Returns:
Number:
getRange
()
Number
Query the device for a range reading. The range will be reported in centimeters (cm).
Returns:
Number:
Measured range, -1 on error. The range is reported in centimeters (cm).