You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/default/sensehat/README.md
+66-2Lines changed: 66 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,8 +60,72 @@ How it works
60
60
61
61
Troubleshooting
62
62
63
-
- If you see warnings about "sense_hat library not available", ensure the package python3-sense-hat is installed and you are on a Raspberry Pi.
64
-
- If LED text rendering blocks updates, remember that show_message scrolls the text; it will finish and allow the next poll. Reduce updateInterval or avoid text mode if you prefer continuous updates.
63
+
1. Check that the Sense HAT is detected by the kernel
64
+
65
+
```
66
+
ls -l /dev/i2c*
67
+
dmesg | grep -i "sense"
68
+
```
69
+
70
+
You should see:
71
+
72
+
- /dev/i2c-1 present
73
+
- A line like: fb1: RPi-Sense FB frame buffer device
74
+
- A joystick device entry for the Sense HAT
75
+
76
+
2. Probe I²C bus 1
77
+
78
+
```
79
+
sudo i2cdetect -y 1
80
+
```
81
+
82
+
On a working Sense HAT, you should see several non-"--" addresses (e.g. 1c, 39, 5c, 5f, 6a). If everything shows "--", the HAT may not be seated correctly or could be faulty.
83
+
84
+
3. Test using the official Python library
85
+
86
+
```
87
+
python3 - << 'PY'
88
+
from sense_hat import SenseHat
89
+
90
+
sh = SenseHat()
91
+
92
+
print("Temperature:", sh.get_temperature())
93
+
print("Humidity :", sh.get_humidity())
94
+
print("Pressure :", sh.get_pressure())
95
+
PY
96
+
```
97
+
98
+
- If you get numeric values, the sensors are working.
99
+
- If you see errors like `OSError: Humidity Init Failed`, there may be a contact problem on the header or a sensor issue.
0 commit comments