Your program says you are connected to 14 and 15.
But your diagram shows echo 8, trigger 10.
TRIG = 15 #Associate pin 15 to TRIG
ECHO = 14 #Associate pin 14 to Echo
By the way I liked the way you put timeout :)
(1) I have installed micropython-mpu9250.
(2) I have detected the i2c bus using "i2cdetect -y 1".
How come my program don't run?
(1) What does the command "i2cdetect ..." do?
The commend "i2cdetect -y 1" is used to detect if there is any working I2C devices connected to the bus, and display the devices' ...
The Raspberry Pi does not have any analog input PINs. Thus you will not be able to interpret analog input signals without some additional hardware.
In order to be able to read not only HIGH or LOW levels from your sensor, you need to use an analog-to-digital converter (ADC), e.g. in the form of a ADC-HAT extension for the Rasperry Pi. Then you can connect ...
If you are working with a sensor there are two major options:
1. You have to handle it through I2C
2. You have to read the analog or digital signal from that sensor(basically Vcc,Out,GND)
What ever you do if you are going to use this on Raspberry GPIO then you must maintain a voltage of 3.3V on each pin. Otherwise the board will burn. Maybe this answer will ...