New answers tagged

0

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 Please confirm By the way I liked the way you put timeout :)


1

This sensor works from 3.3V to 6V. If you are using it with raspberry pi then use the 3.3 V pin of raspberry pi.


-1

Question Setup (1) I have installed micropython-mpu9250. (2) I have detected the i2c bus using "i2cdetect -y 1". Problem How come my program don't run? Answer (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' ...


0

It's preferable that the code listing is in your question and that the error message is cut&pasted into your question. At a guess you should be importing I2C not i2c.


3

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 ...


1

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 ...


Top 50 recent answers are included