Skip to content

Commit 13383bd

Browse files
committed
drivers: sensor: mb7040: add support for MB7040 ultrasonic sensor
This commit adds a new driver for the MaxBotix MB7040 ultrasonic rangefinder. The driver uses I2C communication to read range data from the sensor and exposes it via the Zephyr sensor API. Tested on an esp32-s3 board using I2C bus. Verified readings at multiple distances to confirm accuracy. Signed-off-by: Sabrina Simkhovich <sabrinasimkhovich@gmail.com>
1 parent b5857f7 commit 13383bd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/sensor/mb7040/mb7040.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ static int mb7040_sample_fetch(const struct device *dev, enum sensor_channel cha
107107
return ret;
108108
}
109109
#endif
110-
111110
/*
112111
* Small wait due to device specific internal i2c timings. 10ms is a common
113112
* wait to time to ensure ultrasonic sensors achieve stability and accuracy.

0 commit comments

Comments
 (0)