bluerobotics / bluerobotics/ms5837-python
Remote I/O error - running example.py
- Lenguaje dominante
- Python
- Estrellas
- 33
- Forks
- 41
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi,
I am trying to run example.py on a RPi4, but when I do, I get the following error:
```
Traceback (most recent call last):
File "./example.py", line 13, in
if not sensor.init():
File "/home/pi/ms5837-python/ms5837/ms5837.py", line 74, in init
self._bus.write_byte(self._MS5837_ADDR, self._MS5837_RESET)
IOError: [Errno 121] Remote I/O error
```
It appears that the ms5837 is recognized when I run `i2cdetect`:
```
i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76 --
```
Any ideas why I'm getting this error? Any help would be greatly appreciated!
Thanks,
Jonathan
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza con example.py línea 13 y ms5837/ms5837.py línea 74; después, reproduce el fallo de inicialización mientras lo comparas con la salida de i2cdetect que muestra la dirección 76. Determina por qué la escritura de restablecimiento devuelve el error Remote I/O y documenta o implementa una solución verificada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- embedded-iot
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100