Ultrasonic Sensor
- This topic has 2 replies, 3 voices, and was last updated 7 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Hi,
I need to install on my mdot one maxbotix i2c ultrasonic sensor -> http://www.maxbotix.com/Ultrasonic_Sensors/MB7137.htm
Any example of code for this ?
https://developer.mbed.org/search/?q=mb7137
https://www.google.com/search?client=ubuntu&channel=fs&q=mb7137+example&ie=utf-8&oe=utf-8
Nothing on mbed but looks like there might be an Arduino example you could use as a reference for writing your own driver.
The Maxbotix sensors have a number of interfaces, Analog, PWM, Serial or I2C. I’ve successfully used the Maxbotix sensors using the PWM option. The MB7137 uses I2C which will be fairly trivial to interface to the mDot. There are 2 commands, one to tell the sensor to take a reading, the other to retrieve the reading as 2 bytes of data.
Regards
Andrew